Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | · | 1 | ·2362a2992dc0a74f5d578f285d4fb88d·1504508·doc·optional·allegro5-doc_5.2.8.0+dfsg-1_all.deb |
2 | ·83a6cf74ff328339f6bc0507531580c4·16960·libdevel·optional·liballegro-acodec5-dev_5.2.8.0+dfsg-1_amd64.deb | 2 | ·83a6cf74ff328339f6bc0507531580c4·16960·libdevel·optional·liballegro-acodec5-dev_5.2.8.0+dfsg-1_amd64.deb |
3 | ·c2d97e80754958afbb6cf1e27685ed06·60704·debug·optional·liballegro-acodec5.2-dbgsym_5.2.8.0+dfsg-1_amd64.deb | 3 | ·c2d97e80754958afbb6cf1e27685ed06·60704·debug·optional·liballegro-acodec5.2-dbgsym_5.2.8.0+dfsg-1_amd64.deb |
4 | ·60ade78a8519a6782c4b7554bd475c41·34716·libs·optional·liballegro-acodec5.2_5.2.8.0+dfsg-1_amd64.deb | 4 | ·60ade78a8519a6782c4b7554bd475c41·34716·libs·optional·liballegro-acodec5.2_5.2.8.0+dfsg-1_amd64.deb |
5 | ·747c67c74b3a99c5895bc9267d102b13·19740·libdevel·optional·liballegro-audio5-dev_5.2.8.0+dfsg-1_amd64.deb | 5 | ·747c67c74b3a99c5895bc9267d102b13·19740·libdevel·optional·liballegro-audio5-dev_5.2.8.0+dfsg-1_amd64.deb |
6 | ·c77d29dfc038a99d79804b7c2d2f0633·108060·debug·optional·liballegro-audio5.2-dbgsym_5.2.8.0+dfsg-1_amd64.deb | 6 | ·c77d29dfc038a99d79804b7c2d2f0633·108060·debug·optional·liballegro-audio5.2-dbgsym_5.2.8.0+dfsg-1_amd64.deb |
7 | ·47886feedd76c63272150acd2f81111a·58268·libs·optional·liballegro-audio5.2_5.2.8.0+dfsg-1_amd64.deb | 7 | ·47886feedd76c63272150acd2f81111a·58268·libs·optional·liballegro-audio5.2_5.2.8.0+dfsg-1_amd64.deb |
8 | ·1eb91b927fedee6cc797539e8af51d80·18028·libdevel·optional·liballegro-dialog5-dev_5.2.8.0+dfsg-1_amd64.deb | 8 | ·1eb91b927fedee6cc797539e8af51d80·18028·libdevel·optional·liballegro-dialog5-dev_5.2.8.0+dfsg-1_amd64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2022-12-06·16:59:12.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2022-12-06·16:59:12.000000·debian-binary |
2 | -rw-r--r--···0········0········0····314 | 2 | -rw-r--r--···0········0········0····31416·2022-12-06·16:59:12.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··147 | 3 | -rw-r--r--···0········0········0··1472900·2022-12-06·16:59:12.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.8.0+dfsg-1 | 3 | Version:·2:5.2.8.0+dfsg-1 |
4 | Architecture:·all | 4 | Architecture:·all |
5 | Maintainer:·Debian·Games·Team·<pkg-games-devel@lists.alioth.debian.org> | 5 | Maintainer:·Debian·Games·Team·<pkg-games-devel@lists.alioth.debian.org> |
6 | Installed-Size:·55 | 6 | Installed-Size:·5528 |
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 197, 65 lines modified | Offset 197, 65 lines modified | ||
197 | -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2017-05-30·18:25:58.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c | 197 | -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2017-05-30·18:25:58.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c |
198 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2015-08-31·04:43:15.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c | 198 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2015-08-31·04:43:15.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c |
199 | -rw-r--r--···0·root·········(0)·root·········(0)·····4515·2021-10-23·04:51:52.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c | 199 | -rw-r--r--···0·root·········(0)·root·········(0)·····4515·2021-10-23·04:51:52.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c |
200 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2013-11-06·11:26:41.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c | 200 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2013-11-06·11:26:41.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c |
201 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2016-02-21·20:36:27.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp | 201 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2016-02-21·20:36:27.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp |
202 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2013-07-07·19:37:58.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp | 202 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2013-07-07·19:37:58.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp |
203 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/ | 203 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/ |
204 | -rw-r--r--···0·root·········(0)·root·········(0)····11 | 204 | -rw-r--r--···0·root·········(0)·root·········(0)····11365·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/acodec.html |
205 | -rw-r--r--···0·root·········(0)·root·········(0)···222 | 205 | -rw-r--r--···0·root·········(0)·root·········(0)···222951·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/audio.html |
206 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js | 206 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js |
207 | -rw-r--r--···0·root·········(0)·root·········(0)····65 | 207 | -rw-r--r--···0·root·········(0)·root·········(0)····65575·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/color.html |
208 | -rw-r--r--···0·root·········(0)·root·········(0)····36835·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/config.html | 208 | -rw-r--r--···0·root·········(0)·root·········(0)····36835·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/config.html |
209 | -rw-r--r--···0·root·········(0)·root·········(0)····17025·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html | 209 | -rw-r--r--···0·root·········(0)·root·········(0)····17025·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html |
210 | -rw-r--r--···0·root·········(0)·root·········(0)····8126 | 210 | -rw-r--r--···0·root·········(0)·root·········(0)····81265·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/display.html |
211 | -rw-r--r--···0·root·········(0)·root·········(0)····76 | 211 | -rw-r--r--···0·root·········(0)·root·········(0)····76630·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/events.html |
212 | -rw-r--r--···0·root·········(0)·root·········(0)····610 | 212 | -rw-r--r--···0·root·········(0)·root·········(0)····61020·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/file.html |
213 | -rw-r--r--···0·root·········(0)·root·········(0)····55786·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/fixed.html | 213 | -rw-r--r--···0·root·········(0)·root·········(0)····55786·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/fixed.html |
214 | -rw-r--r--···0·root·········(0)·root·········(0)····9 | 214 | -rw-r--r--···0·root·········(0)·root·········(0)····93506·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/font.html |
215 | -rw-r--r--···0·root·········(0)·root·········(0)····41161·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/fshook.html | 215 | -rw-r--r--···0·root·········(0)·root·········(0)····41161·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/fshook.html |
216 | -rw-r--r--···0·root·········(0)·root·········(0)····13087·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html | 216 | -rw-r--r--···0·root·········(0)·root·········(0)····13087·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html |
217 | -rw-r--r--···0·root·········(0)·root·········(0)····16408·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html | 217 | -rw-r--r--···0·root·········(0)·root·········(0)····16408·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html |
218 | -rw-r--r--···0·root·········(0)·root·········(0)···21903 | 218 | -rw-r--r--···0·root·········(0)·root·········(0)···219103·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/graphics.html |
219 | -rw-r--r--···0·root·········(0)·root·········(0)····68337·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/haptic.html | 219 | -rw-r--r--···0·root·········(0)·root·········(0)····68337·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/haptic.html |
220 | -rw-r--r--···0·root·········(0)·root·········(0)····11 | 220 | -rw-r--r--···0·root·········(0)·root·········(0)····11976·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/image.html |
221 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/ | 221 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/ |
222 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png | 222 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png |
223 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png | 223 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png |
224 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png | 224 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png |
225 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png | 225 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png |
226 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png | 226 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png |
227 | -rw-r--r--···0·root·········(0)·root·········(0)·····6469·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/index.html | 227 | -rw-r--r--···0·root·········(0)·root·········(0)·····6469·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/index.html |
228 | -rw-r--r--···0·root·········(0)·root·········(0)···109449·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/index_all.html | 228 | -rw-r--r--···0·root·········(0)·root·········(0)···109449·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/index_all.html |
229 | -rw-r--r--···0·root·········(0)·root·········(0)····34302·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/joystick.html | 229 | -rw-r--r--···0·root·········(0)·root·········(0)····34302·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/joystick.html |
230 | -rw-r--r--···0·root·········(0)·root·········(0)····22567·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html | 230 | -rw-r--r--···0·root·········(0)·root·········(0)····22567·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html |
231 | -rw-r--r--···0·root·········(0)·root·········(0)·····8705·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/main.html | 231 | -rw-r--r--···0·root·········(0)·root·········(0)·····8705·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/main.html |
232 | -rw-r--r--···0·root·········(0)·root·········(0)····10 | 232 | -rw-r--r--···0·root·········(0)·root·········(0)····10148·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/memfile.html |
233 | -rw-r--r--···0·root·········(0)·root·········(0)····21741·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/memory.html | 233 | -rw-r--r--···0·root·········(0)·root·········(0)····21741·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/memory.html |
234 | -rw-r--r--···0·root·········(0)·root·········(0)····10021·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/misc.html | 234 | -rw-r--r--···0·root·········(0)·root·········(0)····10021·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/misc.html |
235 | -rw-r--r--···0·root·········(0)·root·········(0)····17322·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/monitor.html | 235 | -rw-r--r--···0·root·········(0)·root·········(0)····17322·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/monitor.html |
236 | -rw-r--r--···0·root·········(0)·root·········(0)····395 | 236 | -rw-r--r--···0·root·········(0)·root·········(0)····39570·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/mouse.html |
237 | -rw-r--r--···0·root·········(0)·root·········(0)····7 | 237 | -rw-r--r--···0·root·········(0)·root·········(0)····76509·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html |
238 | -rw-r--r--···0·root·········(0)·root·········(0)····26484·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/opengl.html | 238 | -rw-r--r--···0·root·········(0)·root·········(0)····26484·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/opengl.html |
239 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css | 239 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css |
240 | -rw-r--r--···0·root·········(0)·root·········(0)····37115·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/path.html | 240 | -rw-r--r--···0·root·········(0)·root·········(0)····37115·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/path.html |
241 | -rw-r--r--···0·root·········(0)·root·········(0)····11 | 241 | -rw-r--r--···0·root·········(0)·root·········(0)····11469·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/physfs.html |
242 | -rw-r--r--···0·root·········(0)·root·········(0)····25747·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/platform.html | 242 | -rw-r--r--···0·root·········(0)·root·········(0)····25747·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/platform.html |
243 | -rw-r--r--···0·root·········(0)·root·········(0)···1 | 243 | -rw-r--r--···0·root·········(0)·root·········(0)···143428·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/primitives.html |
244 | -rw-r--r--···0·root·········(0)·root·········(0)····71562·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/search_index.js | 244 | -rw-r--r--···0·root·········(0)·root·········(0)····71562·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/search_index.js |
245 | -rw-r--r--···0·root·········(0)·root·········(0)····44272·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/shader.html | 245 | -rw-r--r--···0·root·········(0)·root·········(0)····44272·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/shader.html |
246 | -rw-r--r--···0·root·········(0)·root·········(0)····15417·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/state.html | 246 | -rw-r--r--···0·root·········(0)·root·········(0)····15417·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/state.html |
247 | -rw-r--r--···0·root·········(0)·root·········(0)····66981·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/system.html | 247 | -rw-r--r--···0·root·········(0)·root·········(0)····66981·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/system.html |
248 | -rw-r--r--···0·root·········(0)·root·········(0)····345 | 248 | -rw-r--r--···0·root·········(0)·root·········(0)····34546·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/threads.html |
249 | -rw-r--r--···0·root·········(0)·root·········(0)····12236·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/time.html | 249 | -rw-r--r--···0·root·········(0)·root·········(0)····12236·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/time.html |
250 | -rw-r--r--···0·root·········(0)·root·········(0)····24471·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/timer.html | 250 | -rw-r--r--···0·root·········(0)·root·········(0)····24471·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/timer.html |
251 | -rw-r--r--···0·root·········(0)·root·········(0)····2145 | 251 | -rw-r--r--···0·root·········(0)·root·········(0)····21450·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/touch.html |
252 | -rw-r--r--···0·root·········(0)·root·········(0)····811 | 252 | -rw-r--r--···0·root·········(0)·root·········(0)····81161·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/transformations.html |
253 | -rw-r--r--···0·root·········(0)·root·········(0)···100613·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/utf8.html | 253 | -rw-r--r--···0·root·········(0)·root·········(0)···100613·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/utf8.html |
254 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 254 | -rw-r--r--···0·root·········(0)·root·········(0)····30831·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/video.html |
255 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2022-12-06·16:59:12.000000·./usr/share/doc-base/ | 255 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2022-12-06·16:59:12.000000·./usr/share/doc-base/ |
256 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2022-12-06·16:50:02.000000·./usr/share/doc-base/allegro5-doc.allegro5 | 256 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2022-12-06·16:50:02.000000·./usr/share/doc-base/allegro5-doc.allegro5 |
257 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2022-12-06·16:59:12.000000·./usr/share/man/ | 257 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2022-12-06·16:59:12.000000·./usr/share/man/ |
258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2022-12-06·16:59:12.000000·./usr/share/man/man3/ | 258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2022-12-06·16:59:12.000000·./usr/share/man/man3/ |
259 | -rw-r--r--···0·root·········(0)·root·········(0)······536·2022-12-06·16:59:12.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz | 259 | -rw-r--r--···0·root·········(0)·root·········(0)······536·2022-12-06·16:59:12.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz |
260 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2022-12-06·16:59:12.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz | 260 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2022-12-06·16:59:12.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz |
261 | -rw-r--r--···0·root·········(0)·root·········(0)······685·2022-12-06·16:59:12.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz | 261 | -rw-r--r--···0·root·········(0)·root·········(0)······685·2022-12-06·16:59:12.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz |
Offset 225, 11 lines modified | Offset 225, 14 lines modified | ||
225 | id="al_get_allegro_acodec_version">al_get_allegro_acodec_version</h1> | 225 | id="al_get_allegro_acodec_version">al_get_allegro_acodec_version</h1> |
226 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_acodec_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 226 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_acodec_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
227 | <p><a | 227 | <p><a |
228 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L13">Source | 228 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L13">Source |
229 | Code</a></p> | 229 | Code</a></p> |
230 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 230 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
231 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 231 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
232 | <p·class="timestamp"> | ||
233 | Allegro·version·5.2.8 | ||
234 | ·-·Last·updated:·2024-01-08·05:22:50·UTC | ||
235 | </p> | ||
232 | </div> | 236 | </div> |
233 | </body> | 237 | </body> |
234 | </html> | 238 | </html> |
Offset 82, 7 lines modified | Offset 82, 8 lines modified | ||
82 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. | 82 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. |
83 | Since:·5.2.6 | 83 | Since:·5.2.6 |
84 | ******·al_get_allegro_acodec_version·****** | 84 | ******·al_get_allegro_acodec_version·****** |
85 | uint32_t·al_get_allegro_acodec_version(void) | 85 | uint32_t·al_get_allegro_acodec_version(void) |
86 | Source_Code | 86 | Source_Code |
87 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 87 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
88 | al_get_allegro_version. | 88 | al_get_allegro_version. |
89 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:50·UTC |
Offset 551, 17 lines modified | Offset 551, 17 lines modified | ||
551 | href="audio.html#al_set_default_mixer">al_set_default_mixer</a>,·<a | 551 | href="audio.html#al_set_default_mixer">al_set_default_mixer</a>,·<a |
552 | href="audio.html#al_play_sample">al_play_sample</a></p> | 552 | href="audio.html#al_play_sample">al_play_sample</a></p> |
553 | <p>Examples:</p> | 553 | <p>Examples:</p> |
554 | <ul> | 554 | <ul> |
555 | <li><a | 555 | <li><a |
556 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L97">ex_saw.c</a></li> | 556 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L97">ex_saw.c</a></li> |
557 | <li><a | 557 | <li><a |
558 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L470">ex_synth.cpp</a></li> | ||
559 | <li><a | ||
560 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L167">ex_audio_props.cpp</a></li> | 558 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L167">ex_audio_props.cpp</a></li> |
559 | <li><a | ||
560 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L182">ex_resample_test.c</a></li> | ||
561 | </ul> | 561 | </ul> |
562 | <h2·id="al_play_sample">al_play_sample</h2> | 562 | <h2·id="al_play_sample">al_play_sample</h2> |
563 | <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> | 563 | <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> |
564 | <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> | 564 | <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> |
565 | <p><a | 565 | <p><a |
566 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L342">Source | 566 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L342">Source |
567 | Code</a></p> | 567 | Code</a></p> |
Offset 1636, 15 lines modified | Offset 1636, 15 lines modified | ||
1636 | <p>Examples:</p> | 1636 | <p>Examples:</p> |
1637 | <ul> | 1637 | <ul> |
1638 | <li><a | 1638 | <li><a |
1639 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L14">ex_saw.c</a></li> | 1639 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L14">ex_saw.c</a></li> |
1640 | <li><a | 1640 | <li><a |
1641 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L79">ex_stream_file.c</a></li> | 1641 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L79">ex_stream_file.c</a></li> |
1642 | <li><a | 1642 | <li><a |
1643 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_s | 1643 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L17">ex_resample_test.c</a></li> |
1644 | </ul> | 1644 | </ul> |
1645 | <h2·id="al_create_audio_stream">al_create_audio_stream</h2> | 1645 | <h2·id="al_create_audio_stream">al_create_audio_stream</h2> |
1646 | <div·class="sourceCode"·id="cb60"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb60-1"><a·href="#cb60-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>al_create_audio_stream<span·class="op">(</span><span·class="dt">size_t</span>·fragment_count<span·class="op">,</span></span> | 1646 | <div·class="sourceCode"·id="cb60"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb60-1"><a·href="#cb60-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>al_create_audio_stream<span·class="op">(</span><span·class="dt">size_t</span>·fragment_count<span·class="op">,</span></span> |
1647 | <span·id="cb60-2"><a·href="#cb60-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">int</span>·frag_samples<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·freq<span·class="op">,</span>·ALLEGRO_AUDIO_DEPTH·depth<span·class="op">,</span></span> | 1647 | <span·id="cb60-2"><a·href="#cb60-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">int</span>·frag_samples<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·freq<span·class="op">,</span>·ALLEGRO_AUDIO_DEPTH·depth<span·class="op">,</span></span> |
1648 | <span·id="cb60-3"><a·href="#cb60-3"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_CHANNEL_CONF·chan_conf<span·class="op">)</span></span></code></pre></div> | 1648 | <span·id="cb60-3"><a·href="#cb60-3"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_CHANNEL_CONF·chan_conf<span·class="op">)</span></span></code></pre></div> |
1649 | <p><a | 1649 | <p><a |
1650 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L49">Source | 1650 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L49">Source |
Offset 1699, 17 lines modified | Offset 1699, 17 lines modified | ||
1699 | before·the·audio·system·is·shut·down.</p> | 1699 | before·the·audio·system·is·shut·down.</p> |
1700 | </blockquote> | 1700 | </blockquote> |
1701 | <p>Examples:</p> | 1701 | <p>Examples:</p> |
1702 | <ul> | 1702 | <ul> |
1703 | <li><a | 1703 | <li><a |
1704 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L99">ex_saw.c</a></li> | 1704 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L99">ex_saw.c</a></li> |
1705 | <li><a | 1705 | <li><a |
1706 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L480">ex_synth.cpp</a></li> | ||
1707 | <li><a | ||
1708 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L34">ex_resample_test.c</a></li> | 1706 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L34">ex_resample_test.c</a></li> |
1707 | <li><a | ||
1708 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L480">ex_synth.cpp</a></li> | ||
1709 | </ul> | 1709 | </ul> |
1710 | <h2·id="al_load_audio_stream">al_load_audio_stream</h2> | 1710 | <h2·id="al_load_audio_stream">al_load_audio_stream</h2> |
1711 | <div·class="sourceCode"·id="cb65"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb65-1"><a·href="#cb65-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>al_load_audio_stream<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>filename<span·class="op">,</span></span> | 1711 | <div·class="sourceCode"·id="cb65"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb65-1"><a·href="#cb65-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>al_load_audio_stream<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>filename<span·class="op">,</span></span> |
1712 | <span·id="cb65-2"><a·href="#cb65-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">size_t</span>·buffer_count<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·samples<span·class="op">)</span></span></code></pre></div> | 1712 | <span·id="cb65-2"><a·href="#cb65-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">size_t</span>·buffer_count<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·samples<span·class="op">)</span></span></code></pre></div> |
1713 | <p><a | 1713 | <p><a |
1714 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio_io.c#L357">Source | 1714 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio_io.c#L357">Source |
1715 | Code</a></p> | 1715 | Code</a></p> |
Offset 1790, 15 lines modified | Offset 1790, 15 lines modified | ||
1790 | <p>Examples:</p> | 1790 | <p>Examples:</p> |
1791 | <ul> | 1791 | <ul> |
1792 | <li><a | 1792 | <li><a |
1793 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L115">ex_saw.c</a></li> | 1793 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L115">ex_saw.c</a></li> |
1794 | <li><a | 1794 | <li><a |
1795 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L124">ex_stream_file.c</a></li> | 1795 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L124">ex_stream_file.c</a></li> |
1796 | <li><a | 1796 | <li><a |
1797 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_s | 1797 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L191">ex_resample_test.c</a></li> |
1798 | </ul> | 1798 | </ul> |
1799 | <h2 | 1799 | <h2 |
1800 | id="al_get_audio_stream_event_source">al_get_audio_stream_event_source</h2> | 1800 | id="al_get_audio_stream_event_source">al_get_audio_stream_event_source</h2> |
1801 | <div·class="sourceCode"·id="cb68"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb68-1"><a·href="#cb68-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>al_get_audio_stream_event_source<span·class="op">(</span></span> | 1801 | <div·class="sourceCode"·id="cb68"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb68-1"><a·href="#cb68-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>al_get_audio_stream_event_source<span·class="op">(</span></span> |
1802 | <span·id="cb68-2"><a·href="#cb68-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>stream<span·class="op">)</span></span></code></pre></div> | 1802 | <span·id="cb68-2"><a·href="#cb68-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>stream<span·class="op">)</span></span></code></pre></div> |
1803 | <p><a | 1803 | <p><a |
1804 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L911">Source | 1804 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L911">Source |
Offset 1812, 15 lines modified | Offset 1812, 15 lines modified | ||
1812 | <p>Examples:</p> | 1812 | <p>Examples:</p> |
1813 | <ul> | 1813 | <ul> |
1814 | <li><a | 1814 | <li><a |
1815 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L24">ex_saw.c</a></li> | 1815 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L24">ex_saw.c</a></li> |
1816 | <li><a | 1816 | <li><a |
1817 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L102">ex_stream_file.c</a></li> | 1817 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L102">ex_stream_file.c</a></li> |
1818 | <li><a | 1818 | <li><a |
1819 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_s | 1819 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L49">ex_resample_test.c</a></li> |
1820 | </ul> | 1820 | </ul> |
1821 | <h2·id="al_drain_audio_stream">al_drain_audio_stream</h2> | 1821 | <h2·id="al_drain_audio_stream">al_drain_audio_stream</h2> |
1822 | <div·class="sourceCode"·id="cb69"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb69-1"><a·href="#cb69-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_drain_audio_stream<span·class="op">(</span>ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>stream<span·class="op">)</span></span></code></pre></div> | 1822 | <div·class="sourceCode"·id="cb69"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb69-1"><a·href="#cb69-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_drain_audio_stream<span·class="op">(</span>ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>stream<span·class="op">)</span></span></code></pre></div> |
1823 | <p><a | 1823 | <p><a |
1824 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L165">Source | 1824 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L165">Source |
1825 | Code</a></p> | 1825 | Code</a></p> |
1826 | <p>You·should·call·this·to·finalise·an·audio·stream·that·you·will·no | 1826 | <p>You·should·call·this·to·finalise·an·audio·stream·that·you·will·no |
Offset 2110, 17 lines modified | Offset 2110, 17 lines modified | ||
2110 | <a | 2110 | <a |
2111 | href="audio.html#al_get_audio_stream_length">al_get_audio_stream_length</a></p> | 2111 | href="audio.html#al_get_audio_stream_length">al_get_audio_stream_length</a></p> |
2112 | <p>Examples:</p> | 2112 | <p>Examples:</p> |
2113 | <ul> | 2113 | <ul> |
2114 | <li><a | 2114 | <li><a |
2115 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L39">ex_saw.c</a></li> | 2115 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L39">ex_saw.c</a></li> |
2116 | <li><a | 2116 | <li><a |
2117 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L396">ex_synth.cpp</a></li> | ||
2118 | <li><a | ||
2119 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L73">ex_resample_test.c</a></li> | 2117 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L73">ex_resample_test.c</a></li> |
2118 | <li><a | ||
2119 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L396">ex_synth.cpp</a></li> | ||
2120 | </ul> | 2120 | </ul> |
2121 | <h2·id="al_set_audio_stream_fragment">al_set_audio_stream_fragment</h2> | 2121 | <h2·id="al_set_audio_stream_fragment">al_set_audio_stream_fragment</h2> |
2122 | <div·class="sourceCode"·id="cb89"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb89-1"><a·href="#cb89-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_audio_stream_fragment<span·class="op">(</span>ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>stream<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>val<span·class="op">)</span></span></code></pre></div> | 2122 | <div·class="sourceCode"·id="cb89"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb89-1"><a·href="#cb89-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_audio_stream_fragment<span·class="op">(</span>ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>stream<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>val<span·class="op">)</span></span></code></pre></div> |
2123 | <p><a | 2123 | <p><a |
2124 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L588">Source | 2124 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L588">Source |
2125 | Code</a></p> | 2125 | Code</a></p> |
2126 | <p>This·function·needs·to·be·called·for·every·successful·call·of·<a | 2126 | <p>This·function·needs·to·be·called·for·every·successful·call·of·<a |
Offset 2130, 17 lines modified | Offset 2130, 17 lines modified | ||
2130 | <p>See·also:·<a | 2130 | <p>See·also:·<a |
2131 | href="audio.html#al_get_audio_stream_fragment">al_get_audio_stream_fragment</a></p> | 2131 | href="audio.html#al_get_audio_stream_fragment">al_get_audio_stream_fragment</a></p> |
2132 | <p>Examples:</p> | 2132 | <p>Examples:</p> |
2133 | <ul> | 2133 | <ul> |
2134 | <li><a | 2134 | <li><a |
2135 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L57">ex_saw.c</a></li> | 2135 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L57">ex_saw.c</a></li> |
2136 | <li><a | 2136 | <li><a |
2137 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L427">ex_synth.cpp</a></li> | ||
2138 | <li><a | ||
2139 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L83">ex_resample_test.c</a></li> | 2137 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L83">ex_resample_test.c</a></li> |
2138 | <li><a | ||
2139 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L427">ex_synth.cpp</a></li> | ||
2140 | </ul> | 2140 | </ul> |
2141 | <h2 | 2141 | <h2 |
2142 | id="al_get_audio_stream_fragments">al_get_audio_stream_fragments</h2> | 2142 | id="al_get_audio_stream_fragments">al_get_audio_stream_fragments</h2> |
2143 | <div·class="sourceCode"·id="cb90"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb90-1"><a·href="#cb90-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">unsigned</span>·<span·class="dt">int</span>·al_get_audio_stream_fragments<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>stream<span·class="op">)</span></span></code></pre></div> | 2143 | <div·class="sourceCode"·id="cb90"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb90-1"><a·href="#cb90-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">unsigned</span>·<span·class="dt">int</span>·al_get_audio_stream_fragments<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_AUDIO_STREAM·<span·class="op">*</span>stream<span·class="op">)</span></span></code></pre></div> |
2144 | <p><a | 2144 | <p><a |
2145 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L204">Source | 2145 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L204">Source |
2146 | Code</a></p> | 2146 | Code</a></p> |
Max diff block lines reached; 3619/12786 bytes (28.30%) of diff not shown. |
Offset 285, 16 lines modified | Offset 285, 16 lines modified | ||
285 | ····································\········. | 285 | ····································\········. |
286 | ······································sample·instance·N | 286 | ······································sample·instance·N |
287 | Returns·true·on·success,·false·on·error.·al_install_audio·must·have·been·called | 287 | Returns·true·on·success,·false·on·error.·al_install_audio·must·have·been·called |
288 | first. | 288 | first. |
289 | See·also:·al_set_default_mixer,·al_play_sample | 289 | See·also:·al_set_default_mixer,·al_play_sample |
290 | Examples: | 290 | Examples: |
291 | ····*·ex_saw.c | 291 | ····*·ex_saw.c |
292 | ····*·ex_synth.cpp | ||
293 | ····*·ex_audio_props.cpp | 292 | ····*·ex_audio_props.cpp |
293 | ····*·ex_resample_test.c | ||
294 | *****·al_play_sample·***** | 294 | *****·al_play_sample·***** |
295 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, | 295 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, |
296 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) | 296 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) |
297 | Source_Code | 297 | Source_Code |
298 | Plays·a·sample·on·one·of·the·sample·instances·created·by·al_reserve_samples. | 298 | Plays·a·sample·on·one·of·the·sample·instances·created·by·al_reserve_samples. |
299 | Returns·true·on·success,·false·on·failure.·Playback·may·fail·because·all·the | 299 | Returns·true·on·success,·false·on·failure.·Playback·may·fail·because·all·the |
300 | reserved·sample·instances·are·currently·used. | 300 | reserved·sample·instances·are·currently·used. |
Offset 924, 15 lines modified | Offset 924, 15 lines modified | ||
924 | with·supplying·data·to·the·stream. | 924 | with·supplying·data·to·the·stream. |
925 | If·the·stream·is·created·by·al_load_audio_stream·or·al_play_audio_stream·then | 925 | If·the·stream·is·created·by·al_load_audio_stream·or·al_play_audio_stream·then |
926 | it·will·also·generate·an·ALLEGRO_EVENT_AUDIO_STREAM_FINISHED·event·if·it | 926 | it·will·also·generate·an·ALLEGRO_EVENT_AUDIO_STREAM_FINISHED·event·if·it |
927 | reaches·the·end·of·the·file·and·is·not·set·to·loop. | 927 | reaches·the·end·of·the·file·and·is·not·set·to·loop. |
928 | Examples: | 928 | Examples: |
929 | ····*·ex_saw.c | 929 | ····*·ex_saw.c |
930 | ····*·ex_stream_file.c | 930 | ····*·ex_stream_file.c |
931 | ····*·ex_s | 931 | ····*·ex_resample_test.c |
932 | *****·al_create_audio_stream·***** | 932 | *****·al_create_audio_stream·***** |
933 | ALLEGRO_AUDIO_STREAM·*al_create_audio_stream(size_t·fragment_count, | 933 | ALLEGRO_AUDIO_STREAM·*al_create_audio_stream(size_t·fragment_count, |
934 | ···unsigned·int·frag_samples,·unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, | 934 | ···unsigned·int·frag_samples,·unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, |
935 | ···ALLEGRO_CHANNEL_CONF·chan_conf) | 935 | ···ALLEGRO_CHANNEL_CONF·chan_conf) |
936 | Source_Code | 936 | Source_Code |
937 | Creates·an·ALLEGRO_AUDIO_STREAM.·The·stream·will·be·set·to·play·by·default.·It | 937 | Creates·an·ALLEGRO_AUDIO_STREAM.·The·stream·will·be·set·to·play·by·default.·It |
938 | will·feed·audio·data·from·a·buffer,·which·is·split·into·a·number·of·fragments. | 938 | will·feed·audio·data·from·a·buffer,·which·is·split·into·a·number·of·fragments. |
Offset 967, 16 lines modified | Offset 967, 16 lines modified | ||
967 | ·····The·size·of·the·complete·buffer·is: | 967 | ·····The·size·of·the·complete·buffer·is: |
968 | ·····buffer_size·=·bytes_per_fragment·*·fragment_count | 968 | ·····buffer_size·=·bytes_per_fragment·*·fragment_count |
969 | ·····Note:·Unlike·many·Allegro·objects,·audio·streams·are·not·implicitly | 969 | ·····Note:·Unlike·many·Allegro·objects,·audio·streams·are·not·implicitly |
970 | ·····destroyed·when·Allegro·is·shut·down.·You·must·destroy·them·manually | 970 | ·····destroyed·when·Allegro·is·shut·down.·You·must·destroy·them·manually |
971 | ·····with·al_destroy_audio_stream·before·the·audio·system·is·shut·down. | 971 | ·····with·al_destroy_audio_stream·before·the·audio·system·is·shut·down. |
972 | Examples: | 972 | Examples: |
973 | ····*·ex_saw.c | 973 | ····*·ex_saw.c |
974 | ····*·ex_synth.cpp | ||
975 | ····*·ex_resample_test.c | 974 | ····*·ex_resample_test.c |
975 | ····*·ex_synth.cpp | ||
976 | *****·al_load_audio_stream·***** | 976 | *****·al_load_audio_stream·***** |
977 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream(const·char·*filename, | 977 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream(const·char·*filename, |
978 | ···size_t·buffer_count,·unsigned·int·samples) | 978 | ···size_t·buffer_count,·unsigned·int·samples) |
979 | Source_Code | 979 | Source_Code |
980 | Loads·an·audio·file·from·disk·as·it·is·needed. | 980 | Loads·an·audio·file·from·disk·as·it·is·needed. |
981 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be·fed·by | 981 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be·fed·by |
982 | the·user;·the·library·will·automatically·read·more·of·the·file·as·it·is·needed. | 982 | the·user;·the·library·will·automatically·read·more·of·the·file·as·it·is·needed. |
Offset 1023, 26 lines modified | Offset 1023, 26 lines modified | ||
1023 | al_load_audio_stream. | 1023 | al_load_audio_stream. |
1024 | ·····Note:·If·the·stream·is·still·attached·to·a·mixer·or·voice, | 1024 | ·····Note:·If·the·stream·is·still·attached·to·a·mixer·or·voice, |
1025 | ·····al_detach_audio_stream·is·automatically·called·on·it·first. | 1025 | ·····al_detach_audio_stream·is·automatically·called·on·it·first. |
1026 | See·also:·al_drain_audio_stream. | 1026 | See·also:·al_drain_audio_stream. |
1027 | Examples: | 1027 | Examples: |
1028 | ····*·ex_saw.c | 1028 | ····*·ex_saw.c |
1029 | ····*·ex_stream_file.c | 1029 | ····*·ex_stream_file.c |
1030 | ····*·ex_s | 1030 | ····*·ex_resample_test.c |
1031 | *****·al_get_audio_stream_event_source·***** | 1031 | *****·al_get_audio_stream_event_source·***** |
1032 | ALLEGRO_EVENT_SOURCE·*al_get_audio_stream_event_source( | 1032 | ALLEGRO_EVENT_SOURCE·*al_get_audio_stream_event_source( |
1033 | ···ALLEGRO_AUDIO_STREAM·*stream) | 1033 | ···ALLEGRO_AUDIO_STREAM·*stream) |
1034 | Source_Code | 1034 | Source_Code |
1035 | Retrieve·the·associated·event·source. | 1035 | Retrieve·the·associated·event·source. |
1036 | See·al_get_audio_stream_fragment·for·a·description·of·the | 1036 | See·al_get_audio_stream_fragment·for·a·description·of·the |
1037 | ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT·event·that·audio·streams·emit. | 1037 | ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT·event·that·audio·streams·emit. |
1038 | Examples: | 1038 | Examples: |
1039 | ····*·ex_saw.c | 1039 | ····*·ex_saw.c |
1040 | ····*·ex_stream_file.c | 1040 | ····*·ex_stream_file.c |
1041 | ····*·ex_s | 1041 | ····*·ex_resample_test.c |
1042 | *****·al_drain_audio_stream·***** | 1042 | *****·al_drain_audio_stream·***** |
1043 | void·al_drain_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | 1043 | void·al_drain_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) |
1044 | Source_Code | 1044 | Source_Code |
1045 | You·should·call·this·to·finalise·an·audio·stream·that·you·will·no·longer·be | 1045 | You·should·call·this·to·finalise·an·audio·stream·that·you·will·no·longer·be |
1046 | feeding,·to·wait·for·all·pending·buffers·to·finish·playing.·The·streamâs | 1046 | feeding,·to·wait·for·all·pending·buffers·to·finish·playing.·The·streamâs |
1047 | playing·state·will·change·to·false. | 1047 | playing·state·will·change·to·false. |
1048 | See·also:·al_destroy_audio_stream | 1048 | See·also:·al_destroy_audio_stream |
Offset 1201, 27 lines modified | Offset 1201, 27 lines modified | ||
1201 | ·····that·al_get_audio_stream_fragment·will·not·return·NULL,·so·you·still | 1201 | ·····that·al_get_audio_stream_fragment·will·not·return·NULL,·so·you·still |
1202 | ·····must·check·for·it. | 1202 | ·····must·check·for·it. |
1203 | See·also:·al_set_audio_stream_fragment,·al_get_audio_stream_event_source, | 1203 | See·also:·al_set_audio_stream_fragment,·al_get_audio_stream_event_source, |
1204 | al_get_audio_stream_frequency,·al_get_audio_stream_channels, | 1204 | al_get_audio_stream_frequency,·al_get_audio_stream_channels, |
1205 | al_get_audio_stream_depth,·al_get_audio_stream_length | 1205 | al_get_audio_stream_depth,·al_get_audio_stream_length |
1206 | Examples: | 1206 | Examples: |
1207 | ····*·ex_saw.c | 1207 | ····*·ex_saw.c |
1208 | ····*·ex_synth.cpp | ||
1209 | ····*·ex_resample_test.c | 1208 | ····*·ex_resample_test.c |
1209 | ····*·ex_synth.cpp | ||
1210 | *****·al_set_audio_stream_fragment·***** | 1210 | *****·al_set_audio_stream_fragment·***** |
1211 | bool·al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM·*stream,·void·*val) | 1211 | bool·al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM·*stream,·void·*val) |
1212 | Source_Code | 1212 | Source_Code |
1213 | This·function·needs·to·be·called·for·every·successful·call·of | 1213 | This·function·needs·to·be·called·for·every·successful·call·of |
1214 | al_get_audio_stream_fragment·to·indicate·that·the·buffer·(pointed·to·by·val)·is | 1214 | al_get_audio_stream_fragment·to·indicate·that·the·buffer·(pointed·to·by·val)·is |
1215 | filled·with·new·data. | 1215 | filled·with·new·data. |
1216 | See·also:·al_get_audio_stream_fragment | 1216 | See·also:·al_get_audio_stream_fragment |
1217 | Examples: | 1217 | Examples: |
1218 | ····*·ex_saw.c | 1218 | ····*·ex_saw.c |
1219 | ····*·ex_synth.cpp | ||
1220 | ····*·ex_resample_test.c | 1219 | ····*·ex_resample_test.c |
1220 | ····*·ex_synth.cpp | ||
1221 | *****·al_get_audio_stream_fragments·***** | 1221 | *****·al_get_audio_stream_fragments·***** |
1222 | unsigned·int·al_get_audio_stream_fragments(const·ALLEGRO_AUDIO_STREAM·*stream) | 1222 | unsigned·int·al_get_audio_stream_fragments(const·ALLEGRO_AUDIO_STREAM·*stream) |
1223 | Source_Code | 1223 | Source_Code |
1224 | Returns·the·number·of·fragments·this·stream·uses.·This·is·the·same·value·as | 1224 | Returns·the·number·of·fragments·this·stream·uses.·This·is·the·same·value·as |
1225 | passed·to·al_create_audio_stream·when·a·new·stream·is·created. | 1225 | passed·to·al_create_audio_stream·when·a·new·stream·is·created. |
1226 | See·also:·al_get_available_audio_stream_fragments | 1226 | See·also:·al_get_available_audio_stream_fragments |
1227 | *****·al_get_available_audio_stream_fragments·***** | 1227 | *****·al_get_available_audio_stream_fragments·***** |
Offset 1739, 16 lines modified | Offset 1739, 16 lines modified | ||
1739 | configurations·of·mixers·and·voices·can·be·used,·in·most·cases·a·single·mixer | 1739 | configurations·of·mixers·and·voices·can·be·used,·in·most·cases·a·single·mixer |
1740 | attached·to·a·voice·is·what·you·want.·The·default·mixer·is·used·by | 1740 | attached·to·a·voice·is·what·you·want.·The·default·mixer·is·used·by |
1741 | al_play_sample. | 1741 | al_play_sample. |
1742 | See·also:·al_reserve_samples,·al_play_sample,·al_set_default_mixer, | 1742 | See·also:·al_reserve_samples,·al_play_sample,·al_set_default_mixer, |
1743 | al_restore_default_mixer | 1743 | al_restore_default_mixer |
1744 | Examples: | 1744 | Examples: |
1745 | ····*·ex_saw.c | 1745 | ····*·ex_saw.c |
1746 | ····*·ex_synth.cpp | ||
1747 | ····*·ex_audio_props.cpp | 1746 | ····*·ex_audio_props.cpp |
1747 | ····*·ex_resample_test.c | ||
1748 | *****·al_set_default_mixer·***** | 1748 | *****·al_set_default_mixer·***** |
1749 | bool·al_set_default_mixer(ALLEGRO_MIXER·*mixer) | 1749 | bool·al_set_default_mixer(ALLEGRO_MIXER·*mixer) |
1750 | Source_Code | 1750 | Source_Code |
1751 | Sets·the·default·mixer.·All·samples·started·with·al_play_sample·will·be·stopped | 1751 | Sets·the·default·mixer.·All·samples·started·with·al_play_sample·will·be·stopped |
1752 | and·all·sample·instances·returned·by·al_lock_sample_id·will·be·invalidated.·If | 1752 | and·all·sample·instances·returned·by·al_lock_sample_id·will·be·invalidated.·If |
1753 | you·are·using·your·own·mixer,·this·should·be·called·before·al_reserve_samples. | 1753 | you·are·using·your·own·mixer,·this·should·be·called·before·al_reserve_samples. |
1754 | Returns·true·on·success,·false·on·error. | 1754 | Returns·true·on·success,·false·on·error. |
Offset 1810, 15 lines modified | Offset 1810, 15 lines modified | ||
Max diff block lines reached; 1728/7079 bytes (24.41%) of diff not shown. |
Offset 428, 15 lines modified | Offset 428, 15 lines modified | ||
428 | <p>Examples:</p> | 428 | <p>Examples:</p> |
429 | <ul> | 429 | <ul> |
430 | <li><a | 430 | <li><a |
431 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample_target.c#L97">ex_multisample_target.c</a></li> | 431 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample_target.c#L97">ex_multisample_target.c</a></li> |
432 | <li><a | 432 | <li><a |
433 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clip.c#L198">ex_clip.c</a></li> | 433 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clip.c#L198">ex_clip.c</a></li> |
434 | <li><a | 434 | <li><a |
435 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 435 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blit.c#L234">ex_blit.c</a></li> |
436 | </ul> | 436 | </ul> |
437 | <h1·id="al_color_name_to_rgb">al_color_name_to_rgb</h1> | 437 | <h1·id="al_color_name_to_rgb">al_color_name_to_rgb</h1> |
438 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_color_name_to_rgb<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>name<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>r<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>g<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>b<span·class="op">)</span></span></code></pre></div> | 438 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_color_name_to_rgb<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>name<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>r<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>g<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>b<span·class="op">)</span></span></code></pre></div> |
439 | <p><a | 439 | <p><a |
440 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L210">Source | 440 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L210">Source |
441 | Code</a></p> | 441 | Code</a></p> |
442 | <p>Parameters:</p> | 442 | <p>Parameters:</p> |
Offset 942, 12 lines modified | Offset 942, 12 lines modified | ||
942 | <p>Convert·linear·sRGB·color·values·to·gamma·corrected·(i.e. normal)·RGB | 942 | <p>Convert·linear·sRGB·color·values·to·gamma·corrected·(i.e. normal)·RGB |
943 | values.</p> | 943 | values.</p> |
944 | <p>Since:·5.2.8</p> | 944 | <p>Since:·5.2.8</p> |
945 | <p>See·also:·[al_color_linera],·<a | 945 | <p>See·also:·[al_color_linera],·<a |
946 | href="color.html#al_color_rgb_to_linear">al_color_rgb_to_linear</a></p> | 946 | href="color.html#al_color_rgb_to_linear">al_color_rgb_to_linear</a></p> |
947 | <p·class="timestamp"> | 947 | <p·class="timestamp"> |
948 | Allegro·version·5.2.8 | 948 | Allegro·version·5.2.8 |
949 | ·-·Last·updated:·202 | 949 | ·-·Last·updated:·2024-01-08·05:22:52·UTC |
950 | </p> | 950 | </p> |
951 | </div> | 951 | </div> |
952 | </body> | 952 | </body> |
953 | </html> | 953 | </html> |
Offset 217, 15 lines modified | Offset 217, 15 lines modified | ||
217 | Source_Code | 217 | Source_Code |
218 | Return·an·ALLEGRO_COLOR·with·the·given·name.·If·the·color·is·not·found·then | 218 | Return·an·ALLEGRO_COLOR·with·the·given·name.·If·the·color·is·not·found·then |
219 | black·is·returned. | 219 | black·is·returned. |
220 | See·al_color_name_to_rgb·for·the·list·of·names. | 220 | See·al_color_name_to_rgb·for·the·list·of·names. |
221 | Examples: | 221 | Examples: |
222 | ····*·ex_multisample_target.c | 222 | ····*·ex_multisample_target.c |
223 | ····*·ex_clip.c | 223 | ····*·ex_clip.c |
224 | ····*·ex_ | 224 | ····*·ex_blit.c |
225 | ******·al_color_name_to_rgb·****** | 225 | ******·al_color_name_to_rgb·****** |
226 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) | 226 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) |
227 | Source_Code | 227 | Source_Code |
228 | Parameters: | 228 | Parameters: |
229 | ····*·name·-·The·(lowercase)·name·of·the·color. | 229 | ····*·name·-·The·(lowercase)·name·of·the·color. |
230 | ····*·r,·g,·b·-·If·one·of·the·recognized·color·names·below·is·passed,·the | 230 | ····*·r,·g,·b·-·If·one·of·the·recognized·color·names·below·is·passed,·the |
231 | ······corresponding·RGB·values·in·the·range·0..1·are·written. | 231 | ······corresponding·RGB·values·in·the·range·0..1·are·written. |
Offset 545, 8 lines modified | Offset 545, 8 lines modified | ||
545 | ******·al_color_linear_to_rgb·****** | 545 | ******·al_color_linear_to_rgb·****** |
546 | void·al_color_linear_to_rgb(float·r,·float·g,·float·b, | 546 | void·al_color_linear_to_rgb(float·r,·float·g,·float·b, |
547 | ····float·*red,·float·*green,·float·*blue) | 547 | ····float·*red,·float·*green,·float·*blue) |
548 | Source_Code | 548 | Source_Code |
549 | Convert·linear·sRGB·color·values·to·gamma·corrected·(i.e. normal)·RGB·values. | 549 | Convert·linear·sRGB·color·values·to·gamma·corrected·(i.e. normal)·RGB·values. |
550 | Since:·5.2.8 | 550 | Since:·5.2.8 |
551 | See·also:·[al_color_linera],·al_color_rgb_to_linear | 551 | See·also:·[al_color_linera],·al_color_rgb_to_linear |
552 | Allegro·version·5.2.8·-·Last·updated:·202 | 552 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:52·UTC |
Offset 564, 12 lines modified | Offset 564, 12 lines modified | ||
564 | <p>Merge·one·configuration·structure·into·another.·Values·in | 564 | <p>Merge·one·configuration·structure·into·another.·Values·in |
565 | configuration·‘add’·override·those·in·‘master’.·‘master’·is·modified. | 565 | configuration·‘add’·override·those·in·‘master’.·‘master’·is·modified. |
566 | Comments·from·‘add’·are·not·retained.</p> | 566 | Comments·from·‘add’·are·not·retained.</p> |
567 | <p>See·also:·<a | 567 | <p>See·also:·<a |
568 | href="config.html#al_merge_config">al_merge_config</a></p> | 568 | href="config.html#al_merge_config">al_merge_config</a></p> |
569 | <p·class="timestamp"> | 569 | <p·class="timestamp"> |
570 | Allegro·version·5.2.8 | 570 | Allegro·version·5.2.8 |
571 | ·-·Last·updated:·202 | 571 | ·-·Last·updated:·2024-01-08·05:21:53·UTC |
572 | </p> | 572 | </p> |
573 | </div> | 573 | </div> |
574 | </body> | 574 | </body> |
575 | </html> | 575 | </html> |
Offset 297, 8 lines modified | Offset 297, 8 lines modified | ||
297 | ******·al_merge_config_into·****** | 297 | ******·al_merge_config_into·****** |
298 | void·al_merge_config_into(ALLEGRO_CONFIG·*master,·const·ALLEGRO_CONFIG·*add) | 298 | void·al_merge_config_into(ALLEGRO_CONFIG·*master,·const·ALLEGRO_CONFIG·*add) |
299 | Source_Code | 299 | Source_Code |
300 | Merge·one·configuration·structure·into·another.·Values·in·configuration | 300 | Merge·one·configuration·structure·into·another.·Values·in·configuration |
301 | âaddâ·override·those·in·âmasterâ.·âmasterâ·is·modified.·Comments | 301 | âaddâ·override·those·in·âmasterâ.·âmasterâ·is·modified.·Comments |
302 | from·âaddâ·are·not·retained. | 302 | from·âaddâ·are·not·retained. |
303 | See·also:·al_merge_config | 303 | See·also:·al_merge_config |
304 | Allegro·version·5.2.8·-·Last·updated:·202 | 304 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:21:53·UTC |
Offset 297, 12 lines modified | Offset 297, 12 lines modified | ||
297 | is·restored.·In·the·callback·you·should·restore·any·d3d·resources·you | 297 | is·restored.·In·the·callback·you·should·restore·any·d3d·resources·you |
298 | have·created·yourself.·The·callback·receives·the·affected·display·as·a | 298 | have·created·yourself.·The·callback·receives·the·affected·display·as·a |
299 | parameter.</p> | 299 | parameter.</p> |
300 | <p>Pass·NULL·to·disable·the·callback.</p> | 300 | <p>Pass·NULL·to·disable·the·callback.</p> |
301 | <p>Since:·5.1.0</p> | 301 | <p>Since:·5.1.0</p> |
302 | <p·class="timestamp"> | 302 | <p·class="timestamp"> |
303 | Allegro·version·5.2.8 | 303 | Allegro·version·5.2.8 |
304 | ·-·Last·updated:·202 | 304 | ·-·Last·updated:·2024-01-08·05:22:47·UTC |
305 | </p> | 305 | </p> |
306 | </div> | 306 | </div> |
307 | </body> | 307 | </body> |
308 | </html> | 308 | </html> |
Offset 132, 8 lines modified | Offset 132, 8 lines modified | ||
132 | ···void·(*callback)(ALLEGRO_DISPLAY·*display)) | 132 | ···void·(*callback)(ALLEGRO_DISPLAY·*display)) |
133 | Source_Code | 133 | Source_Code |
134 | The·callback·will·be·called·whenever·a·D3D·device·that·has·been·reset·is | 134 | The·callback·will·be·called·whenever·a·D3D·device·that·has·been·reset·is |
135 | restored.·In·the·callback·you·should·restore·any·d3d·resources·you·have·created | 135 | restored.·In·the·callback·you·should·restore·any·d3d·resources·you·have·created |
136 | yourself.·The·callback·receives·the·affected·display·as·a·parameter. | 136 | yourself.·The·callback·receives·the·affected·display·as·a·parameter. |
137 | Pass·NULL·to·disable·the·callback. | 137 | Pass·NULL·to·disable·the·callback. |
138 | Since:·5.1.0 | 138 | Since:·5.1.0 |
139 | Allegro·version·5.2.8·-·Last·updated:·202 | 139 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:47·UTC |
Offset 303, 17 lines modified | Offset 303, 17 lines modified | ||
303 | Code</a></p> | 303 | Code</a></p> |
304 | <p>An·opaque·type·representing·an·open·display·or·window.</p> | 304 | <p>An·opaque·type·representing·an·open·display·or·window.</p> |
305 | <p>Examples:</p> | 305 | <p>Examples:</p> |
306 | <ul> | 306 | <ul> |
307 | <li><a | 307 | <li><a |
308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L33">ex_monitorinfo.c</a></li> | 308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L33">ex_monitorinfo.c</a></li> |
309 | <li><a | 309 | <li><a |
310 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L33">common.c</a></li> | ||
311 | <li><a | ||
312 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L24">ex_d3d.cpp</a></li> | 310 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L24">ex_d3d.cpp</a></li> |
311 | <li><a | ||
312 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L12">ex_keyboard_focus.c</a></li> | ||
313 | </ul> | 313 | </ul> |
314 | <h2·id="al_create_display">al_create_display</h2> | 314 | <h2·id="al_create_display">al_create_display</h2> |
315 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY·<span·class="op">*</span>al_create_display<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div> | 315 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY·<span·class="op">*</span>al_create_display<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div> |
316 | <p><a | 316 | <p><a |
317 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source | 317 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source |
318 | Code</a></p> | 318 | Code</a></p> |
319 | <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The | 319 | <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The |
Offset 521, 15 lines modified | Offset 521, 15 lines modified | ||
521 | <p>Examples:</p> | 521 | <p>Examples:</p> |
522 | <ul> | 522 | <ul> |
523 | <li><a | 523 | <li><a |
524 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L35">ex_d3d.cpp</a></li> | 524 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L35">ex_d3d.cpp</a></li> |
525 | <li><a | 525 | <li><a |
526 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L138">ex_opengl.c</a></li> | 526 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L138">ex_opengl.c</a></li> |
527 | <li><a | 527 | <li><a |
528 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 528 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L55">ex_opengl_pixel_shader.c</a></li> |
529 | </ul> | 529 | </ul> |
530 | <h2·id="al_get_new_display_option">al_get_new_display_option</h2> | 530 | <h2·id="al_get_new_display_option">al_get_new_display_option</h2> |
531 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_option<span·class="op">(</span><span·class="dt">int</span>·option<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>importance<span·class="op">)</span></span></code></pre></div> | 531 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_option<span·class="op">(</span><span·class="dt">int</span>·option<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>importance<span·class="op">)</span></span></code></pre></div> |
532 | <p><a | 532 | <p><a |
533 | href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L64">Source | 533 | href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L64">Source |
534 | Code</a></p> | 534 | Code</a></p> |
535 | <p>Retrieve·an·extra·display·setting·which·was·previously·set·with·<a | 535 | <p>Retrieve·an·extra·display·setting·which·was·previously·set·with·<a |
Offset 815, 17 lines modified | Offset 815, 17 lines modified | ||
815 | href="events.html#allegro_event_display_expose">documentation·on | 815 | href="events.html#allegro_event_display_expose">documentation·on |
816 | events</a>·for·a·list·of·the·events·displays·will·generate.</p> | 816 | events</a>·for·a·list·of·the·events·displays·will·generate.</p> |
817 | <p>Examples:</p> | 817 | <p>Examples:</p> |
818 | <ul> | 818 | <ul> |
819 | <li><a | 819 | <li><a |
820 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L141">ex_keyboard_events.c</a></li> | 820 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L141">ex_keyboard_events.c</a></li> |
821 | <li><a | 821 | <li><a |
822 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L67">ex_touch_input.c</a></li> | ||
823 | <li><a | ||
824 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L146">ex_opengl.c</a></li> | 822 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L146">ex_opengl.c</a></li> |
823 | <li><a | ||
824 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L67">ex_touch_input.c</a></li> | ||
825 | </ul> | 825 | </ul> |
826 | <h2·id="al_get_backbuffer">al_get_backbuffer</h2> | 826 | <h2·id="al_get_backbuffer">al_get_backbuffer</h2> |
827 | <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>ALLEGRO_BITMAP·<span·class="op">*</span>al_get_backbuffer<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 827 | <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>ALLEGRO_BITMAP·<span·class="op">*</span>al_get_backbuffer<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
828 | <p><a | 828 | <p><a |
829 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L177">Source | 829 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L177">Source |
830 | Code</a></p> | 830 | Code</a></p> |
831 | <p>Return·a·special·bitmap·representing·the·back-buffer·of·the | 831 | <p>Return·a·special·bitmap·representing·the·back-buffer·of·the |
Offset 942, 35 lines modified | Offset 942, 35 lines modified | ||
942 | <p>See·also:·<a | 942 | <p>See·also:·<a |
943 | href="display.html#al_get_display_height">al_get_display_height</a></p> | 943 | href="display.html#al_get_display_height">al_get_display_height</a></p> |
944 | <p>Examples:</p> | 944 | <p>Examples:</p> |
945 | <ul> | 945 | <ul> |
946 | <li><a | 946 | <li><a |
947 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L42">ex_font_justify.cpp</a></li> | 947 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L42">ex_font_justify.cpp</a></li> |
948 | <li><a | 948 | <li><a |
949 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 949 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_bitmap.c#L135">ex_bitmap.c</a></li> |
950 | <li><a | 950 | <li><a |
951 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 951 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ogre3d.cpp#L107">ex_ogre3d.cpp</a></li> |
952 | </ul> | 952 | </ul> |
953 | <h2·id="al_get_display_height">al_get_display_height</h2> | 953 | <h2·id="al_get_display_height">al_get_display_height</h2> |
954 | <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_display_height<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 954 | <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_display_height<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
955 | <p><a | 955 | <p><a |
956 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L280">Source | 956 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L280">Source |
957 | Code</a></p> | 957 | Code</a></p> |
958 | <p>Gets·the·height·of·the·display.·This·is·like·SCREEN_H·in·Allegro | 958 | <p>Gets·the·height·of·the·display.·This·is·like·SCREEN_H·in·Allegro |
959 | 4.x.</p> | 959 | 4.x.</p> |
960 | <p>See·also:·<a | 960 | <p>See·also:·<a |
961 | href="display.html#al_get_display_width">al_get_display_width</a></p> | 961 | href="display.html#al_get_display_width">al_get_display_width</a></p> |
962 | <p>Examples:</p> | 962 | <p>Examples:</p> |
963 | <ul> | 963 | <ul> |
964 | <li><a | 964 | <li><a |
965 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 965 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ogre3d.cpp#L108">ex_ogre3d.cpp</a></li> |
966 | <li><a | 966 | <li><a |
967 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_fs_resize.c#L102">ex_fs_resize.c</a></li> | 967 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_fs_resize.c#L102">ex_fs_resize.c</a></li> |
968 | <li><a | 968 | <li><a |
969 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_o | 969 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L101">ex_window_maximized.c</a></li> |
970 | </ul> | 970 | </ul> |
971 | <h2·id="al_resize_display">al_resize_display</h2> | 971 | <h2·id="al_resize_display">al_resize_display</h2> |
972 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_resize_display<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·<span·class="dt">int</span>·width<span·class="op">,</span>·<span·class="dt">int</span>·height<span·class="op">)</span></span></code></pre></div> | 972 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_resize_display<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·<span·class="dt">int</span>·width<span·class="op">,</span>·<span·class="dt">int</span>·height<span·class="op">)</span></span></code></pre></div> |
973 | <p><a | 973 | <p><a |
974 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L235">Source | 974 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L235">Source |
975 | Code</a></p> | 975 | Code</a></p> |
976 | <p>Resize·the·display.·Returns·true·on·success,·or·false·on·error.·This | 976 | <p>Resize·the·display.·Returns·true·on·success,·or·false·on·error.·This |
Offset 1398, 17 lines modified | Offset 1398, 17 lines modified | ||
1398 | <p>See·also:·<a | 1398 | <p>See·also:·<a |
1399 | href="events.html#allegro_event_display_halt_drawing">ALLEGRO_EVENT_DISPLAY_HALT_DRAWING</a></p> | 1399 | href="events.html#allegro_event_display_halt_drawing">ALLEGRO_EVENT_DISPLAY_HALT_DRAWING</a></p> |
1400 | <p>Examples:</p> | 1400 | <p>Examples:</p> |
1401 | <ul> | 1401 | <ul> |
1402 | <li><a | 1402 | <li><a |
1403 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L108">ex_touch_input.c</a></li> | 1403 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L108">ex_touch_input.c</a></li> |
1404 | <li><a | 1404 | <li><a |
1405 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L194">ex_vertex_buffer.c</a></li> | ||
1406 | <li><a | ||
1407 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L199">ex_android.c</a></li> | 1405 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L199">ex_android.c</a></li> |
1406 | <li><a | ||
1407 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_depth_mask.c#L231">ex_depth_mask.c</a></li> | ||
1408 | </ul> | 1408 | </ul> |
1409 | <h2 | 1409 | <h2 |
1410 | id="al_acknowledge_drawing_resume">al_acknowledge_drawing_resume</h2> | 1410 | id="al_acknowledge_drawing_resume">al_acknowledge_drawing_resume</h2> |
1411 | <div·class="sourceCode"·id="cb42"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb42-1"><a·href="#cb42-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_acknowledge_drawing_resume<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 1411 | <div·class="sourceCode"·id="cb42"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb42-1"><a·href="#cb42-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_acknowledge_drawing_resume<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
1412 | <p><a | 1412 | <p><a |
1413 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L586">Source | 1413 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L586">Source |
1414 | Code</a></p> | 1414 | Code</a></p> |
Offset 1500, 12 lines modified | Offset 1500, 12 lines modified | ||
1500 | <p>Examples:</p> | 1500 | <p>Examples:</p> |
1501 | <ul> | 1501 | <ul> |
1502 | <li><a | 1502 | <li><a |
1503 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clipboard.c#L68">ex_clipboard.c</a></li> | 1503 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clipboard.c#L68">ex_clipboard.c</a></li> |
1504 | </ul> | 1504 | </ul> |
1505 | <p·class="timestamp"> | 1505 | <p·class="timestamp"> |
1506 | Allegro·version·5.2.8 | 1506 | Allegro·version·5.2.8 |
1507 | ·-·Last·updated:·202 | 1507 | ·-·Last·updated:·2024-01-08·05:22:13·UTC |
1508 | </p> | 1508 | </p> |
1509 | </div> | 1509 | </div> |
1510 | </body> | 1510 | </body> |
1511 | </html> | 1511 | </html> |
Offset 130, 16 lines modified | Offset 130, 16 lines modified | ||
130 | ******·Display·creation·****** | 130 | ******·Display·creation·****** |
131 | *****·ALLEGRO_DISPLAY·***** | 131 | *****·ALLEGRO_DISPLAY·***** |
132 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | 132 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; |
133 | Source_Code | 133 | Source_Code |
134 | An·opaque·type·representing·an·open·display·or·window. | 134 | An·opaque·type·representing·an·open·display·or·window. |
135 | Examples: | 135 | Examples: |
136 | ····*·ex_monitorinfo.c | 136 | ····*·ex_monitorinfo.c |
137 | ····*·common.c | ||
138 | ····*·ex_d3d.cpp | 137 | ····*·ex_d3d.cpp |
138 | ····*·ex_keyboard_focus.c | ||
139 | *****·al_create_display·***** | 139 | *****·al_create_display·***** |
140 | ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h) | 140 | ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h) |
141 | Source_Code | 141 | Source_Code |
142 | Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of | 142 | Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of |
143 | the·display·are·determined·by·the·last·calls·to·al_set_new_display_*.·Default | 143 | the·display·are·determined·by·the·last·calls·to·al_set_new_display_*.·Default |
144 | parameters·are·used·if·none·are·set·explicitly.·Creating·a·new·display·will | 144 | parameters·are·used·if·none·are·set·explicitly.·Creating·a·new·display·will |
145 | automatically·make·it·the·active·one,·with·the·backbuffer·selected·for·drawing. | 145 | automatically·make·it·the·active·one,·with·the·backbuffer·selected·for·drawing. |
Offset 263, 15 lines modified | Offset 263, 15 lines modified | ||
263 | ······incompatible·with·ALLEGRO_FULLSCREEN.·Since:·5.1.5 | 263 | ······incompatible·with·ALLEGRO_FULLSCREEN.·Since:·5.1.5 |
264 | 0·can·be·used·for·default·values. | 264 | 0·can·be·used·for·default·values. |
265 | See·also:·al_set_new_display_option,·al_get_display_option, | 265 | See·also:·al_set_new_display_option,·al_get_display_option, |
266 | al_set_display_option | 266 | al_set_display_option |
267 | Examples: | 267 | Examples: |
268 | ····*·ex_d3d.cpp | 268 | ····*·ex_d3d.cpp |
269 | ····*·ex_opengl.c | 269 | ····*·ex_opengl.c |
270 | ····*·ex_ | 270 | ····*·ex_opengl_pixel_shader.c |
271 | *****·al_get_new_display_option·***** | 271 | *****·al_get_new_display_option·***** |
272 | int·al_get_new_display_option(int·option,·int·*importance) | 272 | int·al_get_new_display_option(int·option,·int·*importance) |
273 | Source_Code | 273 | Source_Code |
274 | Retrieve·an·extra·display·setting·which·was·previously·set·with | 274 | Retrieve·an·extra·display·setting·which·was·previously·set·with |
275 | al_set_new_display_option. | 275 | al_set_new_display_option. |
276 | *****·al_set_new_display_option·***** | 276 | *****·al_set_new_display_option·***** |
277 | void·al_set_new_display_option(int·option,·int·value,·int·importance) | 277 | void·al_set_new_display_option(int·option,·int·value,·int·importance) |
Offset 436, 16 lines modified | Offset 436, 16 lines modified | ||
436 | *****·al_get_display_event_source·***** | 436 | *****·al_get_display_event_source·***** |
437 | ALLEGRO_EVENT_SOURCE·*al_get_display_event_source(ALLEGRO_DISPLAY·*display) | 437 | ALLEGRO_EVENT_SOURCE·*al_get_display_event_source(ALLEGRO_DISPLAY·*display) |
438 | Source_Code | 438 | Source_Code |
439 | Retrieve·the·associated·event·source.·See·the·documentation_on_events·for·a | 439 | Retrieve·the·associated·event·source.·See·the·documentation_on_events·for·a |
440 | list·of·the·events·displays·will·generate. | 440 | list·of·the·events·displays·will·generate. |
441 | Examples: | 441 | Examples: |
442 | ····*·ex_keyboard_events.c | 442 | ····*·ex_keyboard_events.c |
443 | ····*·ex_touch_input.c | ||
444 | ····*·ex_opengl.c | 443 | ····*·ex_opengl.c |
444 | ····*·ex_touch_input.c | ||
445 | *****·al_get_backbuffer·***** | 445 | *****·al_get_backbuffer·***** |
446 | ALLEGRO_BITMAP·*al_get_backbuffer(ALLEGRO_DISPLAY·*display) | 446 | ALLEGRO_BITMAP·*al_get_backbuffer(ALLEGRO_DISPLAY·*display) |
447 | Source_Code | 447 | Source_Code |
448 | Return·a·special·bitmap·representing·the·back-buffer·of·the·display. | 448 | Return·a·special·bitmap·representing·the·back-buffer·of·the·display. |
449 | Care·should·be·taken·when·using·the·backbuffer·bitmap·(and·its·sub-bitmaps)·as | 449 | Care·should·be·taken·when·using·the·backbuffer·bitmap·(and·its·sub-bitmaps)·as |
450 | the·source·bitmap·(e.g·as·the·bitmap·argument·to·al_draw_bitmap).·Only | 450 | the·source·bitmap·(e.g·as·the·bitmap·argument·to·al_draw_bitmap).·Only |
451 | untransformed·operations·are·hardware·accelerated.·These·consist·of | 451 | untransformed·operations·are·hardware·accelerated.·These·consist·of |
Offset 512, 25 lines modified | Offset 512, 25 lines modified | ||
512 | *****·al_get_display_width·***** | 512 | *****·al_get_display_width·***** |
513 | int·al_get_display_width(ALLEGRO_DISPLAY·*display) | 513 | int·al_get_display_width(ALLEGRO_DISPLAY·*display) |
514 | Source_Code | 514 | Source_Code |
515 | Gets·the·width·of·the·display.·This·is·like·SCREEN_W·in·Allegro·4.x. | 515 | Gets·the·width·of·the·display.·This·is·like·SCREEN_W·in·Allegro·4.x. |
516 | See·also:·al_get_display_height | 516 | See·also:·al_get_display_height |
517 | Examples: | 517 | Examples: |
518 | ····*·ex_font_justify.cpp | 518 | ····*·ex_font_justify.cpp |
519 | ····*·ex_window_maximized.c | ||
520 | ····*·ex_ | 519 | ····*·ex_bitmap.c |
520 | ····*·ex_ogre3d.cpp | ||
521 | *****·al_get_display_height·***** | 521 | *****·al_get_display_height·***** |
522 | int·al_get_display_height(ALLEGRO_DISPLAY·*display) | 522 | int·al_get_display_height(ALLEGRO_DISPLAY·*display) |
523 | Source_Code | 523 | Source_Code |
524 | Gets·the·height·of·the·display.·This·is·like·SCREEN_H·in·Allegro·4.x. | 524 | Gets·the·height·of·the·display.·This·is·like·SCREEN_H·in·Allegro·4.x. |
525 | See·also:·al_get_display_width | 525 | See·also:·al_get_display_width |
526 | Examples: | 526 | Examples: |
527 | ····*·ex_window_maximized.c | ||
528 | ····*·ex_fs_resize.c | ||
529 | ····*·ex_ogre3d.cpp | 527 | ····*·ex_ogre3d.cpp |
528 | ····*·ex_fs_resize.c | ||
529 | ····*·ex_window_maximized.c | ||
530 | *****·al_resize_display·***** | 530 | *****·al_resize_display·***** |
531 | bool·al_resize_display(ALLEGRO_DISPLAY·*display,·int·width,·int·height) | 531 | bool·al_resize_display(ALLEGRO_DISPLAY·*display,·int·width,·int·height) |
532 | Source_Code | 532 | Source_Code |
533 | Resize·the·display.·Returns·true·on·success,·or·false·on·error.·This·works·on | 533 | Resize·the·display.·Returns·true·on·success,·or·false·on·error.·This·works·on |
534 | both·fullscreen·and·windowed·displays,·regardless·of·the·ALLEGRO_RESIZABLE | 534 | both·fullscreen·and·windowed·displays,·regardless·of·the·ALLEGRO_RESIZABLE |
535 | flag. | 535 | flag. |
536 | Adjusts·the·clipping·rectangle·to·the·full·size·of·the·backbuffer. | 536 | Adjusts·the·clipping·rectangle·to·the·full·size·of·the·backbuffer. |
Offset 773, 16 lines modified | Offset 773, 16 lines modified | ||
773 | display·while·it·is·not·being·shown.·If·you·do·not·call·this·function·to·let | 773 | display·while·it·is·not·being·shown.·If·you·do·not·call·this·function·to·let |
774 | the·operating·system·know·that·you·have·stopped·drawing·or·if·you·call·it·to | 774 | the·operating·system·know·that·you·have·stopped·drawing·or·if·you·call·it·to |
775 | late·the·application·likely·will·be·considered·misbehaving·and·get·terminated. | 775 | late·the·application·likely·will·be·considered·misbehaving·and·get·terminated. |
776 | Since:·5.1.0 | 776 | Since:·5.1.0 |
777 | See·also:·ALLEGRO_EVENT_DISPLAY_HALT_DRAWING | 777 | See·also:·ALLEGRO_EVENT_DISPLAY_HALT_DRAWING |
778 | Examples: | 778 | Examples: |
779 | ····*·ex_touch_input.c | 779 | ····*·ex_touch_input.c |
780 | ····*·ex_vertex_buffer.c | ||
781 | ····*·ex_android.c | 780 | ····*·ex_android.c |
781 | ····*·ex_depth_mask.c | ||
782 | *****·al_acknowledge_drawing_resume·***** | 782 | *****·al_acknowledge_drawing_resume·***** |
783 | void·al_acknowledge_drawing_resume(ALLEGRO_DISPLAY·*display) | 783 | void·al_acknowledge_drawing_resume(ALLEGRO_DISPLAY·*display) |
784 | Source_Code | 784 | Source_Code |
785 | Call·this·in·response·to·the·ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING·event. | 785 | Call·this·in·response·to·the·ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING·event. |
786 | Since:·5.1.1 | 786 | Since:·5.1.1 |
787 | See·also:·ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING | 787 | See·also:·ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING |
788 | Examples: | 788 | Examples: |
Offset 829, 8 lines modified | Offset 829, 8 lines modified | ||
829 | bool·al_clipboard_has_text(ALLEGRO_DISPLAY·*display) | 829 | bool·al_clipboard_has_text(ALLEGRO_DISPLAY·*display) |
830 | Source_Code | 830 | Source_Code |
831 | This·function·returns·true·if·and·only·if·the·clipboard·has·text·available. | 831 | This·function·returns·true·if·and·only·if·the·clipboard·has·text·available. |
832 | Since:·5.1.12 | 832 | Since:·5.1.12 |
833 | See·also:·al_set_clipboard_text,·al_get_clipboard_text | 833 | See·also:·al_set_clipboard_text,·al_get_clipboard_text |
834 | Examples: | 834 | Examples: |
835 | ····*·ex_clipboard.c | 835 | ····*·ex_clipboard.c |
836 | Allegro·version·5.2.8·-·Last·updated:·202 | 836 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:13·UTC |
Offset 313, 19 lines modified | Offset 313, 19 lines modified | ||
313 | The·time·is·referenced·to·the·same·starting·point·as·<a | 313 | The·time·is·referenced·to·the·same·starting·point·as·<a |
314 | href="time.html#al_get_time">al_get_time</a>.</p> | 314 | href="time.html#al_get_time">al_get_time</a>.</p> |
315 | <p>Each·event·is·of·one·of·the·following·types,·with·the·usable·fields | 315 | <p>Each·event·is·of·one·of·the·following·types,·with·the·usable·fields |
316 | given.</p> | 316 | given.</p> |
317 | <p>Examples:</p> | 317 | <p>Examples:</p> |
318 | <ul> | 318 | <ul> |
319 | <li><a | 319 | <li><a |
320 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L66">common.c</a></li> | ||
321 | <li><a | ||
322 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> | 320 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> |
323 | <li><a | 321 | <li><a |
324 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> | 322 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> |
323 | <li><a | ||
324 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L24">ex_timer_pause.c</a></li> | ||
325 | </ul> | 325 | </ul> |
326 | <h2·id="allegro_event_joystick_axis">ALLEGRO_EVENT_JOYSTICK_AXIS</h2> | 326 | <h2·id="allegro_event_joystick_axis">ALLEGRO_EVENT_JOYSTICK_AXIS</h2> |
327 | <p>A·joystick·axis·value·changed.</p> | 327 | <p>A·joystick·axis·value·changed.</p> |
328 | <dl> | 328 | <dl> |
329 | <dt>joystick.id·(ALLEGRO_JOYSTICK·*)</dt> | 329 | <dt>joystick.id·(ALLEGRO_JOYSTICK·*)</dt> |
330 | <dd> | 330 | <dd> |
331 | The·joystick·which·generated·the·event.·This·is·not·the·same·as·the | 331 | The·joystick·which·generated·the·event.·This·is·not·the·same·as·the |
Offset 988, 19 lines modified | Offset 988, 19 lines modified | ||
988 | order.</p> | 988 | order.</p> |
989 | <p>See·also:·<a | 989 | <p>See·also:·<a |
990 | href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a | 990 | href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a |
991 | href="events.html#al_destroy_event_queue">al_destroy_event_queue</a></p> | 991 | href="events.html#al_destroy_event_queue">al_destroy_event_queue</a></p> |
992 | <p>Examples:</p> | 992 | <p>Examples:</p> |
993 | <ul> | 993 | <ul> |
994 | <li><a | 994 | <li><a |
995 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L66">common.c</a></li> | ||
996 | <li><a | ||
997 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L18">ex_inject_events.c</a></li> | 995 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L18">ex_inject_events.c</a></li> |
998 | <li><a | 996 | <li><a |
999 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> | 997 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> |
998 | <li><a | ||
999 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L24">ex_timer_pause.c</a></li> | ||
1000 | </ul> | 1000 | </ul> |
1001 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> | 1001 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> |
1002 | <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> | 1002 | <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> |
1003 | <p><a | 1003 | <p><a |
1004 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L72">Source | 1004 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L72">Source |
1005 | Code</a></p> | 1005 | Code</a></p> |
1006 | <p>An·event·source·is·any·object·which·can·generate·events.·For·example, | 1006 | <p>An·event·source·is·any·object·which·can·generate·events.·For·example, |
Offset 1083, 19 lines modified | Offset 1083, 19 lines modified | ||
1083 | <p>See·also:·<a | 1083 | <p>See·also:·<a |
1084 | href="events.html#al_register_event_source">al_register_event_source</a>, | 1084 | href="events.html#al_register_event_source">al_register_event_source</a>, |
1085 | <a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a>, | 1085 | <a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a>, |
1086 | <a·href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> | 1086 | <a·href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> |
1087 | <p>Examples:</p> | 1087 | <p>Examples:</p> |
1088 | <ul> | 1088 | <ul> |
1089 | <li><a | 1089 | <li><a |
1090 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L66">common.c</a></li> | ||
1091 | <li><a | ||
1092 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L33">ex_inject_events.c</a></li> | 1090 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L33">ex_inject_events.c</a></li> |
1093 | <li><a | 1091 | <li><a |
1094 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L213">ex_enet_server.c</a></li> | 1092 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L213">ex_enet_server.c</a></li> |
1093 | <li><a | ||
1094 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L36">ex_timer_pause.c</a></li> | ||
1095 | </ul> | 1095 | </ul> |
1096 | <h1·id="al_destroy_event_queue">al_destroy_event_queue</h1> | 1096 | <h1·id="al_destroy_event_queue">al_destroy_event_queue</h1> |
1097 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_event_queue<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">)</span></span></code></pre></div> | 1097 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_event_queue<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">)</span></span></code></pre></div> |
1098 | <p><a | 1098 | <p><a |
1099 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L120">Source | 1099 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L120">Source |
1100 | Code</a></p> | 1100 | Code</a></p> |
1101 | <p>Destroy·the·event·queue·specified.·All·event·sources·currently | 1101 | <p>Destroy·the·event·queue·specified.·All·event·sources·currently |
Offset 1103, 19 lines modified | Offset 1103, 19 lines modified | ||
1103 | queue·is·destroyed.</p> | 1103 | queue·is·destroyed.</p> |
1104 | <p>See·also:·<a | 1104 | <p>See·also:·<a |
1105 | href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a | 1105 | href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a |
1106 | href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> | 1106 | href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> |
1107 | <p>Examples:</p> | 1107 | <p>Examples:</p> |
1108 | <ul> | 1108 | <ul> |
1109 | <li><a | 1109 | <li><a |
1110 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L70">common.c</a></li> | ||
1111 | <li><a | ||
1112 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L66">ex_inject_events.c</a></li> | 1110 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L66">ex_inject_events.c</a></li> |
1113 | <li><a | 1111 | <li><a |
1114 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L68">ex_timer_pause.c</a></li> | 1112 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L68">ex_timer_pause.c</a></li> |
1113 | <li><a | ||
1114 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L70">common.c</a></li> | ||
1115 | </ul> | 1115 | </ul> |
1116 | <h1·id="al_register_event_source">al_register_event_source</h1> | 1116 | <h1·id="al_register_event_source">al_register_event_source</h1> |
1117 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_register_event_source<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span></span> | 1117 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_register_event_source<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span></span> |
1118 | <span·id="cb14-2"><a·href="#cb14-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>source<span·class="op">)</span></span></code></pre></div> | 1118 | <span·id="cb14-2"><a·href="#cb14-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>source<span·class="op">)</span></span></code></pre></div> |
1119 | <p><a | 1119 | <p><a |
1120 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L161">Source | 1120 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L161">Source |
1121 | Code</a></p> | 1121 | Code</a></p> |
Offset 1125, 19 lines modified | Offset 1125, 19 lines modified | ||
1125 | more·than·once·does·nothing.</p> | 1125 | more·than·once·does·nothing.</p> |
1126 | <p>See·also:·<a | 1126 | <p>See·also:·<a |
1127 | href="events.html#al_unregister_event_source">al_unregister_event_source</a>, | 1127 | href="events.html#al_unregister_event_source">al_unregister_event_source</a>, |
1128 | <a·href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a></p> | 1128 | <a·href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a></p> |
1129 | <p>Examples:</p> | 1129 | <p>Examples:</p> |
1130 | <ul> | 1130 | <ul> |
1131 | <li><a | 1131 | <li><a |
1132 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L67">common.c</a></li> | ||
1133 | <li><a | ||
1134 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L34">ex_inject_events.c</a></li> | 1132 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L34">ex_inject_events.c</a></li> |
1135 | <li><a | 1133 | <li><a |
1136 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L215">ex_enet_server.c</a></li> | 1134 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L215">ex_enet_server.c</a></li> |
1135 | <li><a | ||
1136 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L39">ex_timer_pause.c</a></li> | ||
1137 | </ul> | 1137 | </ul> |
1138 | <h1·id="al_unregister_event_source">al_unregister_event_source</h1> | 1138 | <h1·id="al_unregister_event_source">al_unregister_event_source</h1> |
1139 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_unregister_event_source<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span></span> | 1139 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_unregister_event_source<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span></span> |
1140 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>source<span·class="op">)</span></span></code></pre></div> | 1140 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>source<span·class="op">)</span></span></code></pre></div> |
1141 | <p><a | 1141 | <p><a |
1142 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L181">Source | 1142 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L181">Source |
1143 | Code</a></p> | 1143 | Code</a></p> |
Offset 1197, 17 lines modified | Offset 1197, 17 lines modified | ||
1197 | href="events.html#al_get_next_event">al_get_next_event</a>,·<a | 1197 | href="events.html#al_get_next_event">al_get_next_event</a>,·<a |
1198 | href="events.html#al_peek_next_event">al_peek_next_event</a></p> | 1198 | href="events.html#al_peek_next_event">al_peek_next_event</a></p> |
1199 | <p>Examples:</p> | 1199 | <p>Examples:</p> |
1200 | <ul> | 1200 | <ul> |
1201 | <li><a | 1201 | <li><a |
1202 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L49">ex_inject_events.c</a></li> | 1202 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L49">ex_inject_events.c</a></li> |
1203 | <li><a | 1203 | <li><a |
1204 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L70">ex_touch_input.c</a></li> | ||
1205 | <li><a | ||
1206 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L151">ex_opengl.c</a></li> | 1204 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L151">ex_opengl.c</a></li> |
1205 | <li><a | ||
1206 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L70">ex_touch_input.c</a></li> | ||
1207 | </ul> | 1207 | </ul> |
1208 | <h1·id="al_get_next_event">al_get_next_event</h1> | 1208 | <h1·id="al_get_next_event">al_get_next_event</h1> |
1209 | <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_next_event<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span>·ALLEGRO_EVENT·<span·class="op">*</span>ret_event<span·class="op">)</span></span></code></pre></div> | 1209 | <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_next_event<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span>·ALLEGRO_EVENT·<span·class="op">*</span>ret_event<span·class="op">)</span></span></code></pre></div> |
1210 | <p><a | 1210 | <p><a |
1211 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L299">Source | 1211 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L299">Source |
Max diff block lines reached; 2027/9573 bytes (21.17%) of diff not shown. |
Offset 137, 17 lines modified | Offset 137, 17 lines modified | ||
137 | ······When·the·event·was·generated. | 137 | ······When·the·event·was·generated. |
138 | By·examining·the·type·field·you·can·then·access·type-specific·fields.·The | 138 | By·examining·the·type·field·you·can·then·access·type-specific·fields.·The |
139 | any.source·field·tells·you·which·event·source·generated·that·particular·event. | 139 | any.source·field·tells·you·which·event·source·generated·that·particular·event. |
140 | The·any.timestamp·field·tells·you·when·the·event·was·generated.·The·time·is | 140 | The·any.timestamp·field·tells·you·when·the·event·was·generated.·The·time·is |
141 | referenced·to·the·same·starting·point·as·al_get_time. | 141 | referenced·to·the·same·starting·point·as·al_get_time. |
142 | Each·event·is·of·one·of·the·following·types,·with·the·usable·fields·given. | 142 | Each·event·is·of·one·of·the·following·types,·with·the·usable·fields·given. |
143 | Examples: | 143 | Examples: |
144 | ····*·common.c | ||
145 | ····*·ex_inject_events.c | 144 | ····*·ex_inject_events.c |
146 | ····*·ex_enet_server.c | 145 | ····*·ex_enet_server.c |
146 | ····*·ex_timer_pause.c | ||
147 | *****·ALLEGRO_EVENT_JOYSTICK_AXIS·***** | 147 | *****·ALLEGRO_EVENT_JOYSTICK_AXIS·***** |
148 | A·joystick·axis·value·changed. | 148 | A·joystick·axis·value·changed. |
149 | ··joystick.id·(ALLEGRO_JOYSTICK·*) | 149 | ··joystick.id·(ALLEGRO_JOYSTICK·*) |
150 | ······The·joystick·which·generated·the·event.·This·is·not·the·same·as·the·event | 150 | ······The·joystick·which·generated·the·event.·This·is·not·the·same·as·the·event |
151 | ······source·joystick.source. | 151 | ······source·joystick.source. |
152 | ··joystick.stick·(int) | 152 | ··joystick.stick·(int) |
153 | ······The·stick·number,·counting·from·zero.·Axes·on·a·joystick·are·grouped·into | 153 | ······The·stick·number,·counting·from·zero.·Axes·on·a·joystick·are·grouped·into |
Offset 509, 17 lines modified | Offset 509, 17 lines modified | ||
509 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | 509 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; |
510 | Source_Code | 510 | Source_Code |
511 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are | 511 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are |
512 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. | 512 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. |
513 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. | 513 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. |
514 | See·also:·al_create_event_queue,·al_destroy_event_queue | 514 | See·also:·al_create_event_queue,·al_destroy_event_queue |
515 | Examples: | 515 | Examples: |
516 | ····*·common.c | ||
517 | ····*·ex_inject_events.c | 516 | ····*·ex_inject_events.c |
518 | ····*·ex_enet_server.c | 517 | ····*·ex_enet_server.c |
518 | ····*·ex_timer_pause.c | ||
519 | ******·ALLEGRO_EVENT_SOURCE·****** | 519 | ******·ALLEGRO_EVENT_SOURCE·****** |
520 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | 520 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; |
521 | Source_Code | 521 | Source_Code |
522 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an | 522 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an |
523 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE | 523 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE |
524 | pointer·from·an·ALLEGRO_DISPLAY·with·al_get_display_event_source. | 524 | pointer·from·an·ALLEGRO_DISPLAY·with·al_get_display_event_source. |
525 | You·may·create·your·own·âuserâ·event·sources·that·emit·custom·events. | 525 | You·may·create·your·own·âuserâ·event·sources·that·emit·custom·events. |
Offset 571, 40 lines modified | Offset 571, 40 lines modified | ||
571 | ******·al_create_event_queue·****** | 571 | ******·al_create_event_queue·****** |
572 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) | 572 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) |
573 | Source_Code | 573 | Source_Code |
574 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created | 574 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created |
575 | object·if·successful.·Returns·NULL·on·error. | 575 | object·if·successful.·Returns·NULL·on·error. |
576 | See·also:·al_register_event_source,·al_destroy_event_queue,·ALLEGRO_EVENT_QUEUE | 576 | See·also:·al_register_event_source,·al_destroy_event_queue,·ALLEGRO_EVENT_QUEUE |
577 | Examples: | 577 | Examples: |
578 | ····*·common.c | ||
579 | ····*·ex_inject_events.c | 578 | ····*·ex_inject_events.c |
580 | ····*·ex_enet_server.c | 579 | ····*·ex_enet_server.c |
580 | ····*·ex_timer_pause.c | ||
581 | ******·al_destroy_event_queue·****** | 581 | ******·al_destroy_event_queue·****** |
582 | void·al_destroy_event_queue(ALLEGRO_EVENT_QUEUE·*queue) | 582 | void·al_destroy_event_queue(ALLEGRO_EVENT_QUEUE·*queue) |
583 | Source_Code | 583 | Source_Code |
584 | Destroy·the·event·queue·specified.·All·event·sources·currently·registered·with | 584 | Destroy·the·event·queue·specified.·All·event·sources·currently·registered·with |
585 | the·queue·will·be·automatically·unregistered·before·the·queue·is·destroyed. | 585 | the·queue·will·be·automatically·unregistered·before·the·queue·is·destroyed. |
586 | See·also:·al_create_event_queue,·ALLEGRO_EVENT_QUEUE | 586 | See·also:·al_create_event_queue,·ALLEGRO_EVENT_QUEUE |
587 | Examples: | 587 | Examples: |
588 | ····*·common.c | ||
589 | ····*·ex_inject_events.c | 588 | ····*·ex_inject_events.c |
590 | ····*·ex_timer_pause.c | 589 | ····*·ex_timer_pause.c |
590 | ····*·common.c | ||
591 | ******·al_register_event_source·****** | 591 | ******·al_register_event_source·****** |
592 | void·al_register_event_source(ALLEGRO_EVENT_QUEUE·*queue, | 592 | void·al_register_event_source(ALLEGRO_EVENT_QUEUE·*queue, |
593 | ···ALLEGRO_EVENT_SOURCE·*source) | 593 | ···ALLEGRO_EVENT_SOURCE·*source) |
594 | Source_Code | 594 | Source_Code |
595 | Register·the·event·source·with·the·event·queue·specified.·An·event·source·may | 595 | Register·the·event·source·with·the·event·queue·specified.·An·event·source·may |
596 | be·registered·with·any·number·of·event·queues·simultaneously,·or·none.·Trying | 596 | be·registered·with·any·number·of·event·queues·simultaneously,·or·none.·Trying |
597 | to·register·an·event·source·with·the·same·event·queue·more·than·once·does | 597 | to·register·an·event·source·with·the·same·event·queue·more·than·once·does |
598 | nothing. | 598 | nothing. |
599 | See·also:·al_unregister_event_source,·ALLEGRO_EVENT_SOURCE | 599 | See·also:·al_unregister_event_source,·ALLEGRO_EVENT_SOURCE |
600 | Examples: | 600 | Examples: |
601 | ····*·common.c | ||
602 | ····*·ex_inject_events.c | 601 | ····*·ex_inject_events.c |
603 | ····*·ex_enet_server.c | 602 | ····*·ex_enet_server.c |
603 | ····*·ex_timer_pause.c | ||
604 | ******·al_unregister_event_source·****** | 604 | ******·al_unregister_event_source·****** |
605 | void·al_unregister_event_source(ALLEGRO_EVENT_QUEUE·*queue, | 605 | void·al_unregister_event_source(ALLEGRO_EVENT_QUEUE·*queue, |
606 | ···ALLEGRO_EVENT_SOURCE·*source) | 606 | ···ALLEGRO_EVENT_SOURCE·*source) |
607 | Source_Code | 607 | Source_Code |
608 | Unregister·an·event·source·with·an·event·queue.·If·the·event·source·is·not | 608 | Unregister·an·event·source·with·an·event·queue.·If·the·event·source·is·not |
609 | actually·registered·with·the·event·queue,·nothing·happens. | 609 | actually·registered·with·the·event·queue,·nothing·happens. |
610 | If·the·queue·had·any·events·in·it·which·originated·from·the·event·source,·they | 610 | If·the·queue·had·any·events·in·it·which·originated·from·the·event·source,·they |
Offset 639, 16 lines modified | Offset 639, 16 lines modified | ||
639 | ******·al_is_event_queue_empty·****** | 639 | ******·al_is_event_queue_empty·****** |
640 | bool·al_is_event_queue_empty(ALLEGRO_EVENT_QUEUE·*queue) | 640 | bool·al_is_event_queue_empty(ALLEGRO_EVENT_QUEUE·*queue) |
641 | Source_Code | 641 | Source_Code |
642 | Return·true·if·the·event·queue·specified·is·currently·empty. | 642 | Return·true·if·the·event·queue·specified·is·currently·empty. |
643 | See·also:·al_get_next_event,·al_peek_next_event | 643 | See·also:·al_get_next_event,·al_peek_next_event |
644 | Examples: | 644 | Examples: |
645 | ····*·ex_inject_events.c | 645 | ····*·ex_inject_events.c |
646 | ····*·ex_touch_input.c | ||
647 | ····*·ex_opengl.c | 646 | ····*·ex_opengl.c |
647 | ····*·ex_touch_input.c | ||
648 | ******·al_get_next_event·****** | 648 | ******·al_get_next_event·****** |
649 | bool·al_get_next_event(ALLEGRO_EVENT_QUEUE·*queue,·ALLEGRO_EVENT·*ret_event) | 649 | bool·al_get_next_event(ALLEGRO_EVENT_QUEUE·*queue,·ALLEGRO_EVENT·*ret_event) |
650 | Source_Code | 650 | Source_Code |
651 | Take·the·next·event·out·of·the·event·queue·specified,·and·copy·the·contents | 651 | Take·the·next·event·out·of·the·event·queue·specified,·and·copy·the·contents |
652 | into·ret_event,·returning·true.·The·original·event·will·be·removed·from·the | 652 | into·ret_event,·returning·true.·The·original·event·will·be·removed·from·the |
653 | queue.·If·the·event·queue·is·empty,·return·false·and·the·contents·of·ret_event | 653 | queue.·If·the·event·queue·is·empty,·return·false·and·the·contents·of·ret_event |
654 | are·unspecified. | 654 | are·unspecified. |
Offset 683, 17 lines modified | Offset 683, 17 lines modified | ||
683 | Source_Code | 683 | Source_Code |
684 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, | 684 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, |
685 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the | 685 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the |
686 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. | 686 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. |
687 | See·also:·ALLEGRO_EVENT,·al_wait_for_event_timed,·al_wait_for_event_until, | 687 | See·also:·ALLEGRO_EVENT,·al_wait_for_event_timed,·al_wait_for_event_until, |
688 | al_get_next_event | 688 | al_get_next_event |
689 | Examples: | 689 | Examples: |
690 | ····*·common.c | ||
691 | ····*·ex_inject_events.c | 690 | ····*·ex_inject_events.c |
692 | ····*·ex_enet_server.c | 691 | ····*·ex_enet_server.c |
692 | ····*·ex_timer_pause.c | ||
693 | ******·al_wait_for_event_timed·****** | 693 | ******·al_wait_for_event_timed·****** |
694 | bool·al_wait_for_event_timed(ALLEGRO_EVENT_QUEUE·*queue, | 694 | bool·al_wait_for_event_timed(ALLEGRO_EVENT_QUEUE·*queue, |
695 | ···ALLEGRO_EVENT·*ret_event,·float·secs) | 695 | ···ALLEGRO_EVENT·*ret_event,·float·secs) |
696 | Source_Code | 696 | Source_Code |
697 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, | 697 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, |
698 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the | 698 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the |
699 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. | 699 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. |
Offset 822, 8 lines modified | Offset 822, 8 lines modified | ||
822 | ******·al_set_event_source_data·****** | 822 | ******·al_set_event_source_data·****** |
823 | void·al_set_event_source_data(ALLEGRO_EVENT_SOURCE·*source,·intptr_t·data) | 823 | void·al_set_event_source_data(ALLEGRO_EVENT_SOURCE·*source,·intptr_t·data) |
824 | Source_Code | 824 | Source_Code |
825 | Assign·the·abstract·user·data·to·the·event·source.·Allegro·does·not·use·the | 825 | Assign·the·abstract·user·data·to·the·event·source.·Allegro·does·not·use·the |
826 | data·internally·for·anything;·it·is·simply·meant·as·a·convenient·way·to | 826 | data·internally·for·anything;·it·is·simply·meant·as·a·convenient·way·to |
827 | associate·your·own·data·or·objects·with·events. | 827 | associate·your·own·data·or·objects·with·events. |
828 | See·also:·al_get_event_source_data | 828 | See·also:·al_get_event_source_data |
829 | Allegro·version·5.2.8·-·Last·updated:·202 | 829 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:14·UTC |
Max diff block lines reached; -1/5564 bytes (-0.02%) of diff not shown. |
Offset 226, 17 lines modified | Offset 226, 17 lines modified | ||
226 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file | 226 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file |
227 | on·disk·or·a·virtual·file.</p> | 227 | on·disk·or·a·virtual·file.</p> |
228 | <p>Examples:</p> | 228 | <p>Examples:</p> |
229 | <ul> | 229 | <ul> |
230 | <li><a | 230 | <li><a |
231 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L23">ex_file.c</a></li> | 231 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L23">ex_file.c</a></li> |
232 | <li><a | 232 | <li><a |
233 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L19">ex_memfile.c</a></li> | ||
234 | <li><a | ||
235 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L18">ex_dir.c</a></li> | 233 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L18">ex_dir.c</a></li> |
234 | <li><a | ||
235 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L19">ex_memfile.c</a></li> | ||
236 | </ul> | 236 | </ul> |
237 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> | 237 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> |
238 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div> | 238 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div> |
239 | <p><a | 239 | <p><a |
240 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source | 240 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source |
241 | Code</a></p> | 241 | Code</a></p> |
242 | <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”, | 242 | <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”, |
Offset 324, 15 lines modified | Offset 324, 15 lines modified | ||
324 | <p>Examples:</p> | 324 | <p>Examples:</p> |
325 | <ul> | 325 | <ul> |
326 | <li><a | 326 | <li><a |
327 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L27">ex_file.c</a></li> | 327 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L27">ex_file.c</a></li> |
328 | <li><a | 328 | <li><a |
329 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L29">ex_file_slice.c</a></li> | 329 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L29">ex_file_slice.c</a></li> |
330 | <li><a | 330 | <li><a |
331 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_p | 331 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_bitmap_file.c#L80">ex_bitmap_file.c</a></li> |
332 | </ul> | 332 | </ul> |
333 | <h1·id="al_fopen_interface">al_fopen_interface</h1> | 333 | <h1·id="al_fopen_interface">al_fopen_interface</h1> |
334 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_fopen_interface<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILE_INTERFACE·<span·class="op">*</span>drv<span·class="op">,</span></span> | 334 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_fopen_interface<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILE_INTERFACE·<span·class="op">*</span>drv<span·class="op">,</span></span> |
335 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>path<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div> | 335 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>path<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div> |
336 | <p><a | 336 | <p><a |
337 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L32">Source | 337 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L32">Source |
338 | Code</a></p> | 338 | Code</a></p> |
Offset 954, 12 lines modified | Offset 954, 12 lines modified | ||
954 | <p>Examples:</p> | 954 | <p>Examples:</p> |
955 | <ul> | 955 | <ul> |
956 | <li><a | 956 | <li><a |
957 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L145">ex_curl.c</a></li> | 957 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L145">ex_curl.c</a></li> |
958 | </ul> | 958 | </ul> |
959 | <p·class="timestamp"> | 959 | <p·class="timestamp"> |
960 | Allegro·version·5.2.8 | 960 | Allegro·version·5.2.8 |
961 | ·-·Last·updated:·202 | 961 | ·-·Last·updated:·2024-01-08·05:22:14·UTC |
962 | </p> | 962 | </p> |
963 | </div> | 963 | </div> |
964 | </body> | 964 | </body> |
965 | </html> | 965 | </html> |
Offset 94, 16 lines modified | Offset 94, 16 lines modified | ||
94 | ******·ALLEGRO_FILE·****** | 94 | ******·ALLEGRO_FILE·****** |
95 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | 95 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; |
96 | Source_Code | 96 | Source_Code |
97 | An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk | 97 | An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk |
98 | or·a·virtual·file. | 98 | or·a·virtual·file. |
99 | Examples: | 99 | Examples: |
100 | ····*·ex_file.c | 100 | ····*·ex_file.c |
101 | ····*·ex_memfile.c | ||
102 | ····*·ex_dir.c | 101 | ····*·ex_dir.c |
102 | ····*·ex_memfile.c | ||
103 | ******·ALLEGRO_FILE_INTERFACE·****** | 103 | ******·ALLEGRO_FILE_INTERFACE·****** |
104 | typedef·struct·ALLEGRO_FILE_INTERFACE | 104 | typedef·struct·ALLEGRO_FILE_INTERFACE |
105 | Source_Code | 105 | Source_Code |
106 | A·structure·containing·function·pointers·to·handle·a·type·of·âfileâ,·real | 106 | A·structure·containing·function·pointers·to·handle·a·type·of·âfileâ,·real |
107 | or·virtual.·See·the·full·discussion·in·al_set_new_file_interface. | 107 | or·virtual.·See·the·full·discussion·in·al_set_new_file_interface. |
108 | The·fields·are: | 108 | The·fields·are: |
109 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); | 109 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); |
Offset 160, 15 lines modified | Offset 160, 15 lines modified | ||
160 | files.·To·avoid·this·behaviour·you·need·to·open·file·streams·in·binary·mode·by | 160 | files.·To·avoid·this·behaviour·you·need·to·open·file·streams·in·binary·mode·by |
161 | using·a·mode·argument·containing·a·âbâ,·e.g. ârbâ,·âwbâ. | 161 | using·a·mode·argument·containing·a·âbâ,·e.g. ârbâ,·âwbâ. |
162 | Returns·a·file·handle·on·success,·or·NULL·on·error. | 162 | Returns·a·file·handle·on·success,·or·NULL·on·error. |
163 | See·also:·al_set_new_file_interface,·al_fclose. | 163 | See·also:·al_set_new_file_interface,·al_fclose. |
164 | Examples: | 164 | Examples: |
165 | ····*·ex_file.c | 165 | ····*·ex_file.c |
166 | ····*·ex_file_slice.c | 166 | ····*·ex_file_slice.c |
167 | ····*·ex_p | 167 | ····*·ex_bitmap_file.c |
168 | ******·al_fopen_interface·****** | 168 | ******·al_fopen_interface·****** |
169 | ALLEGRO_FILE·*al_fopen_interface(const·ALLEGRO_FILE_INTERFACE·*drv, | 169 | ALLEGRO_FILE·*al_fopen_interface(const·ALLEGRO_FILE_INTERFACE·*drv, |
170 | ···const·char·*path,·const·char·*mode) | 170 | ···const·char·*path,·const·char·*mode) |
171 | Source_Code | 171 | Source_Code |
172 | Opens·a·file·using·the·specified·interface,·instead·of·the·interface·set·with | 172 | Opens·a·file·using·the·specified·interface,·instead·of·the·interface·set·with |
173 | al_set_new_file_interface. | 173 | al_set_new_file_interface. |
174 | See·also:·al_fopen | 174 | See·also:·al_fopen |
Offset 550, 8 lines modified | Offset 550, 8 lines modified | ||
550 | *****·al_get_file_userdata·***** | 550 | *****·al_get_file_userdata·***** |
551 | void·*al_get_file_userdata(ALLEGRO_FILE·*f) | 551 | void·*al_get_file_userdata(ALLEGRO_FILE·*f) |
552 | Source_Code | 552 | Source_Code |
553 | Returns·a·pointer·to·the·custom·userdata·that·is·attached·to·the·file·handle. | 553 | Returns·a·pointer·to·the·custom·userdata·that·is·attached·to·the·file·handle. |
554 | This·is·intended·to·be·used·by·functions·that·extend·ALLEGRO_FILE_INTERFACE. | 554 | This·is·intended·to·be·used·by·functions·that·extend·ALLEGRO_FILE_INTERFACE. |
555 | Examples: | 555 | Examples: |
556 | ····*·ex_curl.c | 556 | ····*·ex_curl.c |
557 | Allegro·version·5.2.8·-·Last·updated:·202 | 557 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:14·UTC |
Offset 655, 12 lines modified | Offset 655, 12 lines modified | ||
655 | href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source | 655 | href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source |
656 | Code</a></p> | 656 | Code</a></p> |
657 | <p>Fixed·point·hypotenuse·(returns·the·square·root·of | 657 | <p>Fixed·point·hypotenuse·(returns·the·square·root·of |
658 | <code>x*x·+·y*y</code>).·This·should·be·better·than·calculating·the | 658 | <code>x*x·+·y*y</code>).·This·should·be·better·than·calculating·the |
659 | formula·yourself·manually,·since·the·error·is·much·smaller.</p> | 659 | formula·yourself·manually,·since·the·error·is·much·smaller.</p> |
660 | <p·class="timestamp"> | 660 | <p·class="timestamp"> |
661 | Allegro·version·5.2.8 | 661 | Allegro·version·5.2.8 |
662 | ·-·Last·updated:·202 | 662 | ·-·Last·updated:·2024-01-08·05:22:23·UTC |
663 | </p> | 663 | </p> |
664 | </div> | 664 | </div> |
665 | </body> | 665 | </body> |
666 | </html> | 666 | </html> |
Offset 439, 8 lines modified | Offset 439, 8 lines modified | ||
439 | errno·is·set·to·EDOM·and·the·function·returns·zero. | 439 | errno·is·set·to·EDOM·and·the·function·returns·zero. |
440 | *****·al_fixhypot·***** | 440 | *****·al_fixhypot·***** |
441 | al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y) | 441 | al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y) |
442 | Source_Code | 442 | Source_Code |
443 | Fixed·point·hypotenuse·(returns·the·square·root·of·x*x·+·y*y).·This·should·be | 443 | Fixed·point·hypotenuse·(returns·the·square·root·of·x*x·+·y*y).·This·should·be |
444 | better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much | 444 | better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much |
445 | smaller. | 445 | smaller. |
446 | Allegro·version·5.2.8·-·Last·updated:·202 | 446 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:23·UTC |
Offset 251, 18 lines modified | Offset 251, 18 lines modified | ||
251 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded | 251 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded |
252 | with·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>·and·a | 252 | with·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>·and·a |
253 | font·in·Allegro’s·bitmap·font·format·will·be·created·from·it·with·<a | 253 | font·in·Allegro’s·bitmap·font·format·will·be·created·from·it·with·<a |
254 | href="font.html#al_grab_font_from_bitmap">al_grab_font_from_bitmap</a>.</p> | 254 | href="font.html#al_grab_font_from_bitmap">al_grab_font_from_bitmap</a>.</p> |
255 | <p>Examples:</p> | 255 | <p>Examples:</p> |
256 | <ul> | 256 | <ul> |
257 | <li><a | 257 | <li><a |
258 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L17">ex_font_justify.cpp</a></li> | ||
259 | <li><a | ||
260 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L10">ex_disable_screensaver.c</a></li> | 258 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L10">ex_disable_screensaver.c</a></li> |
261 | <li><a | 259 | <li><a |
260 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L17">ex_font_justify.cpp</a></li> | ||
261 | <li><a | ||
262 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L26">ex_display_events.c</a></li> | 262 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L26">ex_display_events.c</a></li> |
263 | </ul> | 263 | </ul> |
264 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> | 264 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> |
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">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH<span·class="op">;</span></span></code></pre></div> | 265 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH<span·class="op">;</span></span></code></pre></div> |
266 | <p><a | 266 | <p><a |
267 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source | 267 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source |
268 | Code</a></p> | 268 | Code</a></p> |
Offset 318, 18 lines modified | Offset 318, 18 lines modified | ||
318 | <p>See·also:·<a | 318 | <p>See·also:·<a |
319 | href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a | 319 | href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a |
320 | href="font.html#al_init_ttf_addon">al_init_ttf_addon</a>,·<a | 320 | href="font.html#al_init_ttf_addon">al_init_ttf_addon</a>,·<a |
321 | href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> | 321 | href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> |
322 | <p>Examples:</p> | 322 | <p>Examples:</p> |
323 | <ul> | 323 | <ul> |
324 | <li><a | 324 | <li><a |
325 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L104">ex_font_justify.cpp</a></li> | ||
326 | <li><a | ||
327 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L28">ex_disable_screensaver.c</a></li> | 325 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L28">ex_disable_screensaver.c</a></li> |
328 | <li><a | 326 | <li><a |
327 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L104">ex_font_justify.cpp</a></li> | ||
328 | <li><a | ||
329 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L40">ex_display_events.c</a></li> | 329 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L40">ex_display_events.c</a></li> |
330 | </ul> | 330 | </ul> |
331 | <h2·id="al_is_font_addon_initialized">al_is_font_addon_initialized</h2> | 331 | <h2·id="al_is_font_addon_initialized">al_is_font_addon_initialized</h2> |
332 | <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> | 332 | <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> |
333 | <p><a | 333 | <p><a |
334 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L393">Source | 334 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L393">Source |
335 | Code</a></p> | 335 | Code</a></p> |
Offset 382, 19 lines modified | Offset 382, 19 lines modified | ||
382 | Code</a></p> | 382 | Code</a></p> |
383 | <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if | 383 | <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if |
384 | passed·NULL.</p> | 384 | passed·NULL.</p> |
385 | <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p> | 385 | <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p> |
386 | <p>Examples:</p> | 386 | <p>Examples:</p> |
387 | <ul> | 387 | <ul> |
388 | <li><a | 388 | <li><a |
389 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L139">ex_font_justify.cpp</a></li> | ||
390 | <li><a | ||
391 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L67">ex_disable_screensaver.c</a></li> | 389 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L67">ex_disable_screensaver.c</a></li> |
392 | <li><a | 390 | <li><a |
391 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L139">ex_font_justify.cpp</a></li> | ||
392 | <li><a | ||
393 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 393 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L86">ex_cpu.c</a></li> |
394 | </ul> | 394 | </ul> |
395 | <h2·id="al_register_font_loader">al_register_font_loader</h2> | 395 | <h2·id="al_register_font_loader">al_register_font_loader</h2> |
396 | <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> | 396 | <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> |
397 | <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> | 397 | <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> |
398 | <p><a | 398 | <p><a |
399 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L426">Source | 399 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L426">Source |
400 | Code</a></p> | 400 | Code</a></p> |
Offset 480, 18 lines modified | Offset 480, 18 lines modified | ||
480 | <p>See·also:·<a | 480 | <p>See·also:·<a |
481 | href="font.html#al_get_ustr_width">al_get_ustr_width</a>,·<a | 481 | href="font.html#al_get_ustr_width">al_get_ustr_width</a>,·<a |
482 | href="font.html#al_get_font_line_height">al_get_font_line_height</a>,·<a | 482 | href="font.html#al_get_font_line_height">al_get_font_line_height</a>,·<a |
483 | href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p> | 483 | href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p> |
484 | <p>Examples:</p> | 484 | <p>Examples:</p> |
485 | <ul> | 485 | <ul> |
486 | <li><a | 486 | <li><a |
487 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L224">ex_record_name.c</a></li> | ||
488 | <li><a | ||
489 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_options.c#L182">ex_display_options.c</a></li> | 487 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_options.c#L182">ex_display_options.c</a></li> |
490 | <li><a | 488 | <li><a |
489 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L224">ex_record_name.c</a></li> | ||
490 | <li><a | ||
491 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L59">ex_color_gradient.c</a></li> | 491 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L59">ex_color_gradient.c</a></li> |
492 | </ul> | 492 | </ul> |
493 | <h2·id="al_get_ustr_width">al_get_ustr_width</h2> | 493 | <h2·id="al_get_ustr_width">al_get_ustr_width</h2> |
494 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_ustr_width<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">,</span>·ALLEGRO_USTR·<span·class="dt">const</span>·<span·class="op">*</span>ustr<span·class="op">)</span></span></code></pre></div> | 494 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_ustr_width<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">,</span>·ALLEGRO_USTR·<span·class="dt">const</span>·<span·class="op">*</span>ustr<span·class="op">)</span></span></code></pre></div> |
495 | <p><a | 495 | <p><a |
496 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L269">Source | 496 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L269">Source |
497 | Code</a></p> | 497 | Code</a></p> |
Offset 625, 15 lines modified | Offset 625, 15 lines modified | ||
625 | <p>Examples:</p> | 625 | <p>Examples:</p> |
626 | <ul> | 626 | <ul> |
627 | <li><a | 627 | <li><a |
628 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L50">ex_disable_screensaver.c</a></li> | 628 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L50">ex_disable_screensaver.c</a></li> |
629 | <li><a | 629 | <li><a |
630 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L67">ex_display_events.c</a></li> | 630 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L67">ex_display_events.c</a></li> |
631 | <li><a | 631 | <li><a |
632 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 632 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L60">ex_cpu.c</a></li> |
633 | </ul> | 633 | </ul> |
634 | <h2·id="al_draw_justified_textf">al_draw_justified_textf</h2> | 634 | <h2·id="al_draw_justified_textf">al_draw_justified_textf</h2> |
635 | <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_justified_textf<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">,</span></span> | 635 | <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_justified_textf<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">,</span></span> |
636 | <span·id="cb22-2"><a·href="#cb22-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span></span> | 636 | <span·id="cb22-2"><a·href="#cb22-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span></span> |
637 | <span·id="cb22-3"><a·href="#cb22-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·diff<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>format<span·class="op">,</span>·<span·class="op">...)</span></span></code></pre></div> | 637 | <span·id="cb22-3"><a·href="#cb22-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·diff<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>format<span·class="op">,</span>·<span·class="op">...)</span></span></code></pre></div> |
638 | <p><a | 638 | <p><a |
639 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L246">Source | 639 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L246">Source |
Offset 728, 14 lines modified | Offset 728, 19 lines modified | ||
728 | be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the | 728 | be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the |
729 | application!·Pass·NULL·to·remove·a·fallback·font·again.</p> | 729 | application!·Pass·NULL·to·remove·a·fallback·font·again.</p> |
730 | <p>Since:·5.1.12</p> | 730 | <p>Since:·5.1.12</p> |
731 | <p>See·also:·<a | 731 | <p>See·also:·<a |
732 | href="font.html#al_get_fallback_font">al_get_fallback_font</a>,·<a | 732 | href="font.html#al_get_fallback_font">al_get_fallback_font</a>,·<a |
733 | href="font.html#al_draw_glyph">al_draw_glyph</a>,·<a | 733 | href="font.html#al_draw_glyph">al_draw_glyph</a>,·<a |
734 | href="font.html#al_draw_text">al_draw_text</a></p> | 734 | href="font.html#al_draw_text">al_draw_text</a></p> |
735 | <p>Examples:</p> | ||
736 | <ul> | ||
737 | <li><a | ||
738 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L304">ex_ttf.c</a></li> | ||
739 | </ul> | ||
735 | <h2·id="al_get_fallback_font">al_get_fallback_font</h2> | 740 | <h2·id="al_get_fallback_font">al_get_fallback_font</h2> |
736 | <div·class="sourceCode"·id="cb28"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb28-1"><a·href="#cb28-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FONT·<span·class="op">*</span>al_get_fallback_font<span·class="op">(</span>ALLEGRO_FONT·<span·class="op">*</span>font<span·class="op">)</span></span></code></pre></div> | 741 | <div·class="sourceCode"·id="cb28"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb28-1"><a·href="#cb28-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FONT·<span·class="op">*</span>al_get_fallback_font<span·class="op">(</span>ALLEGRO_FONT·<span·class="op">*</span>font<span·class="op">)</span></span></code></pre></div> |
737 | <p><a | 742 | <p><a |
738 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L702">Source | 743 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L702">Source |
739 | Code</a></p> | 744 | Code</a></p> |
740 | <p>Retrieves·the·fallback·font·for·this·font·or·NULL.</p> | 745 | <p>Retrieves·the·fallback·font·for·this·font·or·NULL.</p> |
741 | <p>Since:·5.1.12</p> | 746 | <p>Since:·5.1.12</p> |
Offset 926, 14 lines modified | Offset 931, 21 lines modified | ||
926 | ·····/······\···| | 931 | ·····/······\···| |
927 | ····/········\···\_············· | 932 | ····/········\···\_············· |
928 | ····---------------</code></pre> | 933 | ····---------------</code></pre> |
929 | <p>Since:·5.1.12</p> | 934 | <p>Since:·5.1.12</p> |
930 | <p>See·also:·<a·href="font.html#al_draw_glyph">al_draw_glyph</a>,·<a | 935 | <p>See·also:·<a·href="font.html#al_draw_glyph">al_draw_glyph</a>,·<a |
931 | href="font.html#al_get_glyph_width">al_get_glyph_width</a>,·<a | 936 | href="font.html#al_get_glyph_width">al_get_glyph_width</a>,·<a |
Max diff block lines reached; 11936/20841 bytes (57.27%) of diff not shown. |
Offset 108, 16 lines modified | Offset 108, 16 lines modified | ||
108 | Source_Code | 108 | Source_Code |
109 | A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with | 109 | A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with |
110 | al_load_font·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by | 110 | al_load_font·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by |
111 | the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it | 111 | the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it |
112 | will·be·loaded·with·al_load_bitmap·and·a·font·in·Allegroâs·bitmap·font·format | 112 | will·be·loaded·with·al_load_bitmap·and·a·font·in·Allegroâs·bitmap·font·format |
113 | will·be·created·from·it·with·al_grab_font_from_bitmap. | 113 | will·be·created·from·it·with·al_grab_font_from_bitmap. |
114 | Examples: | 114 | Examples: |
115 | ····*·ex_font_justify.cpp | ||
116 | ····*·ex_disable_screensaver.c | 115 | ····*·ex_disable_screensaver.c |
116 | ····*·ex_font_justify.cpp | ||
117 | ····*·ex_display_events.c | 117 | ····*·ex_display_events.c |
118 | *****·ALLEGRO_GLYPH·***** | 118 | *****·ALLEGRO_GLYPH·***** |
119 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | 119 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; |
120 | Source_Code | 120 | Source_Code |
121 | A·structure·containing·the·properties·of·a·character·in·a·font. | 121 | A·structure·containing·the·properties·of·a·character·in·a·font. |
122 | typedef·struct·ALLEGRO_GLYPH·{ | 122 | typedef·struct·ALLEGRO_GLYPH·{ |
123 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on | 123 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on |
Offset 155, 16 lines modified | Offset 155, 16 lines modified | ||
155 | al_init_ttf_addon. | 155 | al_init_ttf_addon. |
156 | Returns·true·on·success,·false·on·failure.·On·the·5.0·branch,·this·function·has | 156 | Returns·true·on·success,·false·on·failure.·On·the·5.0·branch,·this·function·has |
157 | no·return·value.·You·may·wish·to·avoid·checking·the·return·value·if·your·code | 157 | no·return·value.·You·may·wish·to·avoid·checking·the·return·value·if·your·code |
158 | needs·to·be·compatible·with·Allegro·5.0.·Currently,·the·function·will·never | 158 | needs·to·be·compatible·with·Allegro·5.0.·Currently,·the·function·will·never |
159 | return·false. | 159 | return·false. |
160 | See·also:·al_init_image_addon,·al_init_ttf_addon,·al_shutdown_font_addon | 160 | See·also:·al_init_image_addon,·al_init_ttf_addon,·al_shutdown_font_addon |
161 | Examples: | 161 | Examples: |
162 | ····*·ex_font_justify.cpp | ||
163 | ····*·ex_disable_screensaver.c | 162 | ····*·ex_disable_screensaver.c |
163 | ····*·ex_font_justify.cpp | ||
164 | ····*·ex_display_events.c | 164 | ····*·ex_display_events.c |
165 | *****·al_is_font_addon_initialized·***** | 165 | *****·al_is_font_addon_initialized·***** |
166 | bool·al_is_font_addon_initialized(void) | 166 | bool·al_is_font_addon_initialized(void) |
167 | Source_Code | 167 | Source_Code |
168 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. | 168 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. |
169 | Since:·5.2.6 | 169 | Since:·5.2.6 |
170 | See·also:·al_init_font_addon,·al_shutdown_font_addon | 170 | See·also:·al_init_font_addon,·al_shutdown_font_addon |
Offset 190, 17 lines modified | Offset 190, 17 lines modified | ||
190 | ····*·ex_window_title.c | 190 | ····*·ex_window_title.c |
191 | *****·al_destroy_font·***** | 191 | *****·al_destroy_font·***** |
192 | void·al_destroy_font(ALLEGRO_FONT·*f) | 192 | void·al_destroy_font(ALLEGRO_FONT·*f) |
193 | Source_Code | 193 | Source_Code |
194 | Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL. | 194 | Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL. |
195 | See·also:·al_load_font | 195 | See·also:·al_load_font |
196 | Examples: | 196 | Examples: |
197 | ····*·ex_font_justify.cpp | ||
198 | ····*·ex_disable_screensaver.c | 197 | ····*·ex_disable_screensaver.c |
199 | ····*·ex_t | 198 | ····*·ex_font_justify.cpp |
199 | ····*·ex_cpu.c | ||
200 | *****·al_register_font_loader·***** | 200 | *****·al_register_font_loader·***** |
201 | bool·al_register_font_loader(char·const·*extension, | 201 | bool·al_register_font_loader(char·const·*extension, |
202 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | 202 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) |
203 | Source_Code | 203 | Source_Code |
204 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this | 204 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this |
205 | format. | 205 | format. |
206 | The·extension·should·include·the·leading·dot·(â.â)·character.·It·will·be | 206 | The·extension·should·include·the·leading·dot·(â.â)·character.·It·will·be |
Offset 250, 16 lines modified | Offset 250, 16 lines modified | ||
250 | ····*·ex_ttf.c | 250 | ····*·ex_ttf.c |
251 | *****·al_get_text_width·***** | 251 | *****·al_get_text_width·***** |
252 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) | 252 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) |
253 | Source_Code | 253 | Source_Code |
254 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. | 254 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. |
255 | See·also:·al_get_ustr_width,·al_get_font_line_height,·al_get_text_dimensions | 255 | See·also:·al_get_ustr_width,·al_get_font_line_height,·al_get_text_dimensions |
256 | Examples: | 256 | Examples: |
257 | ····*·ex_record_name.c | ||
258 | ····*·ex_display_options.c | 257 | ····*·ex_display_options.c |
258 | ····*·ex_record_name.c | ||
259 | ····*·ex_color_gradient.c | 259 | ····*·ex_color_gradient.c |
260 | *****·al_get_ustr_width·***** | 260 | *****·al_get_ustr_width·***** |
261 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) | 261 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) |
262 | Source_Code | 262 | Source_Code |
263 | Like·al_get_text_width·but·expects·an·ALLEGRO_USTR. | 263 | Like·al_get_text_width·but·expects·an·ALLEGRO_USTR. |
264 | See·also:·al_get_text_width,·al_get_ustr_dimensions | 264 | See·also:·al_get_text_width,·al_get_ustr_dimensions |
265 | Examples: | 265 | Examples: |
Offset 328, 15 lines modified | Offset 328, 15 lines modified | ||
328 | Source_Code | 328 | Source_Code |
329 | Formatted·text·output,·using·a·printf()·style·format·string.·All·parameters | 329 | Formatted·text·output,·using·a·printf()·style·format·string.·All·parameters |
330 | have·the·same·meaning·as·with·al_draw_text·otherwise. | 330 | have·the·same·meaning·as·with·al_draw_text·otherwise. |
331 | See·also:·al_draw_text,·al_draw_ustr | 331 | See·also:·al_draw_text,·al_draw_ustr |
332 | Examples: | 332 | Examples: |
333 | ····*·ex_disable_screensaver.c | 333 | ····*·ex_disable_screensaver.c |
334 | ····*·ex_display_events.c | 334 | ····*·ex_display_events.c |
335 | ····*·ex_ | 335 | ····*·ex_cpu.c |
336 | *****·al_draw_justified_textf·***** | 336 | *****·al_draw_justified_textf·***** |
337 | void·al_draw_justified_textf(const·ALLEGRO_FONT·*f, | 337 | void·al_draw_justified_textf(const·ALLEGRO_FONT·*f, |
338 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2,·float·y, | 338 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2,·float·y, |
339 | ···float·diff,·int·flags,·const·char·*format,·...) | 339 | ···float·diff,·int·flags,·const·char·*format,·...) |
340 | Source_Code | 340 | Source_Code |
341 | Formatted·text·output,·using·a·printf()·style·format·string.·All·parameters | 341 | Formatted·text·output,·using·a·printf()·style·format·string.·All·parameters |
342 | have·the·same·meaning·as·with·al_draw_justified_text·otherwise. | 342 | have·the·same·meaning·as·with·al_draw_justified_text·otherwise. |
Offset 390, 14 lines modified | Offset 390, 16 lines modified | ||
390 | void·al_set_fallback_font(ALLEGRO_FONT·*font,·ALLEGRO_FONT·*fallback) | 390 | void·al_set_fallback_font(ALLEGRO_FONT·*font,·ALLEGRO_FONT·*fallback) |
391 | Source_Code | 391 | Source_Code |
392 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present.·Can·be | 392 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present.·Can·be |
393 | chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the·application! | 393 | chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the·application! |
394 | Pass·NULL·to·remove·a·fallback·font·again. | 394 | Pass·NULL·to·remove·a·fallback·font·again. |
395 | Since:·5.1.12 | 395 | Since:·5.1.12 |
396 | See·also:·al_get_fallback_font,·al_draw_glyph,·al_draw_text | 396 | See·also:·al_get_fallback_font,·al_draw_glyph,·al_draw_text |
397 | Examples: | ||
398 | ····*·ex_ttf.c | ||
397 | *****·al_get_fallback_font·***** | 399 | *****·al_get_fallback_font·***** |
398 | ALLEGRO_FONT·*al_get_fallback_font(ALLEGRO_FONT·*font) | 400 | ALLEGRO_FONT·*al_get_fallback_font(ALLEGRO_FONT·*font) |
399 | Source_Code | 401 | Source_Code |
400 | Retrieves·the·fallback·font·for·this·font·or·NULL. | 402 | Retrieves·the·fallback·font·for·this·font·or·NULL. |
401 | Since:·5.1.12 | 403 | Since:·5.1.12 |
402 | See·also:·al_set_fallback_font | 404 | See·also:·al_set_fallback_font |
403 | ******·Per·glyph·text·handling·****** | 405 | ******·Per·glyph·text·handling·****** |
Offset 542, 14 lines modified | Offset 544, 17 lines modified | ||
542 | ·······/··\·····| | 544 | ·······/··\·····| |
543 | ······/____\····| | 545 | ······/____\····| |
544 | ·····/······\···| | 546 | ·····/······\···| |
545 | ····/········\···\_ | 547 | ····/········\···\_ |
546 | ····--------------- | 548 | ····--------------- |
547 | Since:·5.1.12 | 549 | Since:·5.1.12 |
548 | See·also:·al_draw_glyph,·al_get_glyph_width,·al_get_glyph_dimensions. | 550 | See·also:·al_draw_glyph,·al_get_glyph_width,·al_get_glyph_dimensions. |
551 | Examples: | ||
552 | ····*·ex_font.c | ||
553 | ····*·ex_ttf.c | ||
549 | ******·Multiline·text·drawing·****** | 554 | ******·Multiline·text·drawing·****** |
550 | *****·al_draw_multiline_text·***** | 555 | *****·al_draw_multiline_text·***** |
551 | void·al_draw_multiline_text(const·ALLEGRO_FONT·*font, | 556 | void·al_draw_multiline_text(const·ALLEGRO_FONT·*font, |
552 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | 557 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, |
553 | ·····int·flags,·const·char·*text) | 558 | ·····int·flags,·const·char·*text) |
554 | Source_Code | 559 | Source_Code |
555 | Like·al_draw_text,·but·this·function·supports·drawing·multiple·lines·of·text. | 560 | Like·al_draw_text,·but·this·function·supports·drawing·multiple·lines·of·text. |
Offset 577, 14 lines modified | Offset 582, 17 lines modified | ||
577 | The·flags·ALLEGRO_ALIGN_LEFT,·ALLEGRO_ALIGN_CENTRE,·ALLEGRO_ALIGN_RIGHT·and | 582 | The·flags·ALLEGRO_ALIGN_LEFT,·ALLEGRO_ALIGN_CENTRE,·ALLEGRO_ALIGN_RIGHT·and |
578 | ALLEGRO_ALIGN_INTEGER·will·be·honoured·by·this·function. | 583 | ALLEGRO_ALIGN_INTEGER·will·be·honoured·by·this·function. |
579 | If·you·want·to·calculate·the·size·of·what·this·function·will·draw·without | 584 | If·you·want·to·calculate·the·size·of·what·this·function·will·draw·without |
Max diff block lines reached; 4476/9529 bytes (46.97%) of diff not shown. |
Offset 705, 12 lines modified | Offset 705, 12 lines modified | ||
705 | <p>Return·a·pointer·to·the·<a | 705 | <p>Return·a·pointer·to·the·<a |
706 | href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·table | 706 | href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·table |
707 | in·effect·for·the·calling·thread.</p> | 707 | in·effect·for·the·calling·thread.</p> |
708 | <p>See·also:·<a·href="state.html#al_store_state">al_store_state</a>,·<a | 708 | <p>See·also:·<a·href="state.html#al_store_state">al_store_state</a>,·<a |
709 | href="state.html#al_restore_state">al_restore_state</a>.</p> | 709 | href="state.html#al_restore_state">al_restore_state</a>.</p> |
710 | <p·class="timestamp"> | 710 | <p·class="timestamp"> |
711 | Allegro·version·5.2.8 | 711 | Allegro·version·5.2.8 |
712 | ·-·Last·updated:·202 | 712 | ·-·Last·updated:·2024-01-08·05:22:24·UTC |
713 | </p> | 713 | </p> |
714 | </div> | 714 | </div> |
715 | </body> | 715 | </body> |
716 | </html> | 716 | </html> |
Offset 378, 8 lines modified | Offset 378, 8 lines modified | ||
378 | See·also:·al_set_fs_interface. | 378 | See·also:·al_set_fs_interface. |
379 | *****·al_get_fs_interface·***** | 379 | *****·al_get_fs_interface·***** |
380 | const·ALLEGRO_FS_INTERFACE·*al_get_fs_interface(void) | 380 | const·ALLEGRO_FS_INTERFACE·*al_get_fs_interface(void) |
381 | Source_Code | 381 | Source_Code |
382 | Return·a·pointer·to·the·ALLEGRO_FS_INTERFACE·table·in·effect·for·the·calling | 382 | Return·a·pointer·to·the·ALLEGRO_FS_INTERFACE·table·in·effect·for·the·calling |
383 | thread. | 383 | thread. |
384 | See·also:·al_store_state,·al_restore_state. | 384 | See·also:·al_store_state,·al_restore_state. |
385 | Allegro·version·5.2.8·-·Last·updated:·202 | 385 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:24·UTC |
Offset 242, 12 lines modified | Offset 242, 12 lines modified | ||
242 | <li><a | 242 | <li><a |
243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L32">ex_monitorinfo.c</a></li> | 243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L32">ex_monitorinfo.c</a></li> |
244 | <li><a | 244 | <li><a |
245 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_options.c#L93">ex_display_options.c</a></li> | 245 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_options.c#L93">ex_display_options.c</a></li> |
246 | </ul> | 246 | </ul> |
247 | <p·class="timestamp"> | 247 | <p·class="timestamp"> |
248 | Allegro·version·5.2.8 | 248 | Allegro·version·5.2.8 |
249 | ·-·Last·updated:·202 | 249 | ·-·Last·updated:·2024-01-08·05:22:25·UTC |
250 | </p> | 250 | </p> |
251 | </div> | 251 | </div> |
252 | </body> | 252 | </body> |
253 | </html> | 253 | </html> |
Offset 90, 8 lines modified | Offset 90, 8 lines modified | ||
90 | al_set_new_display_refresh_rate,·and·al_set_new_display_flags·to·find·the | 90 | al_set_new_display_refresh_rate,·and·al_set_new_display_flags·to·find·the |
91 | number·of·modes·that·match.·Settings·the·new·display·parameters·to·zero·will | 91 | number·of·modes·that·match.·Settings·the·new·display·parameters·to·zero·will |
92 | give·a·list·of·all·modes·for·the·default·driver. | 92 | give·a·list·of·all·modes·for·the·default·driver. |
93 | See·also:·al_get_display_mode | 93 | See·also:·al_get_display_mode |
94 | Examples: | 94 | Examples: |
95 | ····*·ex_monitorinfo.c | 95 | ····*·ex_monitorinfo.c |
96 | ····*·ex_display_options.c | 96 | ····*·ex_display_options.c |
97 | Allegro·version·5.2.8·-·Last·updated:·202 | 97 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:25·UTC |
Offset 327, 12 lines modified | Offset 327, 12 lines modified | ||
327 | href="system.html#al_init">al_init</a>·becomes·more·scrict.·See | 327 | href="system.html#al_init">al_init</a>·becomes·more·scrict.·See |
328 | documentation·of·those·functions·for·details.</p> | 328 | documentation·of·those·functions·for·details.</p> |
329 | <h1·id="not-the-end">Not·the·end</h1> | 329 | <h1·id="not-the-end">Not·the·end</h1> |
330 | <p>There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet.</p> | 330 | <p>There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet.</p> |
331 | <p>Enjoy!</p> | 331 | <p>Enjoy!</p> |
332 | <p·class="timestamp"> | 332 | <p·class="timestamp"> |
333 | Allegro·version·5.2.8 | 333 | Allegro·version·5.2.8 |
334 | ·-·Last·updated:·202 | 334 | ·-·Last·updated:·2024-01-08·05:21:37·UTC |
335 | </p> | 335 | </p> |
336 | </div> | 336 | </div> |
337 | </body> | 337 | </body> |
338 | </html> | 338 | </html> |
Offset 195, 8 lines modified | Offset 195, 8 lines modified | ||
195 | including·Allegroâs·headers. | 195 | including·Allegroâs·headers. |
196 | Note·that·when·you·define·that·macro,·the·version·check·performed·by | 196 | Note·that·when·you·define·that·macro,·the·version·check·performed·by |
197 | al_install_system·and·al_init·becomes·more·scrict.·See·documentation·of·those | 197 | al_install_system·and·al_init·becomes·more·scrict.·See·documentation·of·those |
198 | functions·for·details. | 198 | functions·for·details. |
199 | ******·Not·the·end·****** | 199 | ******·Not·the·end·****** |
200 | Thereâs·a·heap·of·stuff·we·havenât·even·mentioned·yet. | 200 | Thereâs·a·heap·of·stuff·we·havenât·even·mentioned·yet. |
201 | Enjoy! | 201 | Enjoy! |
202 | Allegro·version·5.2.8·-·Last·updated:·202 | 202 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:21:37·UTC |
Offset 405, 15 lines modified | Offset 405, 15 lines modified | ||
405 | <p>Examples:</p> | 405 | <p>Examples:</p> |
406 | <ul> | 406 | <ul> |
407 | <li><a | 407 | <li><a |
408 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li> | 408 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li> |
409 | <li><a | 409 | <li><a |
410 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L128">ex_keyboard_events.c</a></li> | 410 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L128">ex_keyboard_events.c</a></li> |
411 | <li><a | 411 | <li><a |
412 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 412 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L93">ex_drawpixels.c</a></li> |
413 | </ul> | 413 | </ul> |
414 | <h2·id="al_map_rgba">al_map_rgba</h2> | 414 | <h2·id="al_map_rgba">al_map_rgba</h2> |
415 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgba<span·class="op">(</span></span> | 415 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgba<span·class="op">(</span></span> |
416 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> | 416 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> |
417 | <p><a | 417 | <p><a |
418 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L553">Source | 418 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L553">Source |
419 | Code</a></p> | 419 | Code</a></p> |
Offset 625, 15 lines modified | Offset 625, 15 lines modified | ||
625 | <p>Examples:</p> | 625 | <p>Examples:</p> |
626 | <ul> | 626 | <ul> |
627 | <li><a | 627 | <li><a |
628 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L21">ex_lockbitmap.c</a></li> | 628 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L21">ex_lockbitmap.c</a></li> |
629 | <li><a | 629 | <li><a |
630 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_premulalpha.c#L16">ex_premulalpha.c</a></li> | 630 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_premulalpha.c#L16">ex_premulalpha.c</a></li> |
631 | <li><a | 631 | <li><a |
632 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 632 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L52">ex_multisample.c</a></li> |
633 | </ul> | 633 | </ul> |
634 | <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2> | 634 | <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2> |
635 | <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> | 635 | <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> |
636 | <p><a | 636 | <p><a |
637 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source | 637 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source |
638 | Code</a></p> | 638 | Code</a></p> |
639 | <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit | 639 | <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit |
Offset 751, 15 lines modified | Offset 751, 15 lines modified | ||
751 | <p>Examples:</p> | 751 | <p>Examples:</p> |
752 | <ul> | 752 | <ul> |
753 | <li><a | 753 | <li><a |
754 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L31">ex_convert.c</a></li> | 754 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L31">ex_convert.c</a></li> |
755 | <li><a | 755 | <li><a |
756 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L80">ex_drawpixels.c</a></li> | 756 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L80">ex_drawpixels.c</a></li> |
757 | <li><a | 757 | <li><a |
758 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 758 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L33">ex_lockbitmap.c</a></li> |
759 | </ul> | 759 | </ul> |
760 | <h2·id="al_get_pixel_size">al_get_pixel_size</h2> | 760 | <h2·id="al_get_pixel_size">al_get_pixel_size</h2> |
761 | <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_pixel_size<span·class="op">(</span><span·class="dt">int</span>·format<span·class="op">)</span></span></code></pre></div> | 761 | <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_pixel_size<span·class="op">(</span><span·class="dt">int</span>·format<span·class="op">)</span></span></code></pre></div> |
762 | <p><a | 762 | <p><a |
763 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L398">Source | 763 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L398">Source |
764 | Code</a></p> | 764 | Code</a></p> |
765 | <p>Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies. | 765 | <p>Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies. |
Offset 1001, 15 lines modified | Offset 1001, 15 lines modified | ||
1001 | <p>Examples:</p> | 1001 | <p>Examples:</p> |
1002 | <ul> | 1002 | <ul> |
1003 | <li><a | 1003 | <li><a |
1004 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L12">ex_convert.c</a></li> | 1004 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L12">ex_convert.c</a></li> |
1005 | <li><a | 1005 | <li><a |
1006 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L11">ex_nodisplay.c</a></li> | 1006 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L11">ex_nodisplay.c</a></li> |
1007 | <li><a | 1007 | <li><a |
1008 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1008 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L18">ex_opengl_pixel_shader.c</a></li> |
1009 | </ul> | 1009 | </ul> |
1010 | <h2·id="al_create_bitmap">al_create_bitmap</h2> | 1010 | <h2·id="al_create_bitmap">al_create_bitmap</h2> |
1011 | <div·class="sourceCode"·id="cb31"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb31-1"><a·href="#cb31-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_BITMAP·<span·class="op">*</span>al_create_bitmap<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div> | 1011 | <div·class="sourceCode"·id="cb31"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb31-1"><a·href="#cb31-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_BITMAP·<span·class="op">*</span>al_create_bitmap<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div> |
1012 | <p><a | 1012 | <p><a |
1013 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L188">Source | 1013 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L188">Source |
1014 | Code</a></p> | 1014 | Code</a></p> |
1015 | <p>Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the | 1015 | <p>Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the |
Offset 1137, 15 lines modified | Offset 1137, 15 lines modified | ||
1137 | <p>Examples:</p> | 1137 | <p>Examples:</p> |
1138 | <ul> | 1138 | <ul> |
1139 | <li><a | 1139 | <li><a |
1140 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_subbitmap.c#L266">ex_subbitmap.c</a></li> | 1140 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_subbitmap.c#L266">ex_subbitmap.c</a></li> |
1141 | <li><a | 1141 | <li><a |
1142 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font.c#L20">ex_font.c</a></li> | 1142 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font.c#L20">ex_font.c</a></li> |
1143 | <li><a | 1143 | <li><a |
1144 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1144 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_premulalpha.c#L64">ex_premulalpha.c</a></li> |
1145 | </ul> | 1145 | </ul> |
1146 | <h2·id="al_convert_bitmap">al_convert_bitmap</h2> | 1146 | <h2·id="al_convert_bitmap">al_convert_bitmap</h2> |
1147 | <div·class="sourceCode"·id="cb34"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb34-1"><a·href="#cb34-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_convert_bitmap<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> | 1147 | <div·class="sourceCode"·id="cb34"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb34-1"><a·href="#cb34-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_convert_bitmap<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> |
1148 | <p><a | 1148 | <p><a |
1149 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_type.c#L154">Source | 1149 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_type.c#L154">Source |
1150 | Code</a></p> | 1150 | Code</a></p> |
1151 | <p>Converts·the·bitmap·to·the·current·bitmap·flags·and·format.·The | 1151 | <p>Converts·the·bitmap·to·the·current·bitmap·flags·and·format.·The |
Offset 1494, 17 lines modified | Offset 1494, 17 lines modified | ||
1494 | API</a>:</em>·This·is·an·experimental·feature.</p> | 1494 | API</a>:</em>·This·is·an·experimental·feature.</p> |
1495 | </blockquote> | 1495 | </blockquote> |
1496 | <p>See·also:·<a | 1496 | <p>See·also:·<a |
1497 | href="graphics.html#allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</a></p> | 1497 | href="graphics.html#allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</a></p> |
1498 | <p>Examples:</p> | 1498 | <p>Examples:</p> |
1499 | <ul> | 1499 | <ul> |
1500 | <li><a | 1500 | <li><a |
1501 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L690">ex_prim.c</a></li> | ||
1502 | <li><a | ||
1503 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L152">ex_prim_wrap.c</a></li> | 1501 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L152">ex_prim_wrap.c</a></li> |
1502 | <li><a | ||
1503 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L690">ex_prim.c</a></li> | ||
1504 | </ul> | 1504 | </ul> |
1505 | <h2·id="al_get_new_bitmap_wrap">al_get_new_bitmap_wrap</h2> | 1505 | <h2·id="al_get_new_bitmap_wrap">al_get_new_bitmap_wrap</h2> |
1506 | <p><a·href="">Source·Code</a></p> | 1506 | <p><a·href="">Source·Code</a></p> |
1507 | <p>Returns·the·value·currently·set·with·<a | 1507 | <p>Returns·the·value·currently·set·with·<a |
1508 | href="graphics.html#al_set_new_bitmap_wrap">al_set_new_bitmap_wrap</a> | 1508 | href="graphics.html#al_set_new_bitmap_wrap">al_set_new_bitmap_wrap</a> |
1509 | on·the·current·thread.</p> | 1509 | on·the·current·thread.</p> |
1510 | <p>Since:·5.2.8</p> | 1510 | <p>Since:·5.2.8</p> |
Offset 1531, 17 lines modified | Offset 1531, 17 lines modified | ||
1531 | to·the·edges·that·they·go·past.</p></li> | 1531 | to·the·edges·that·they·go·past.</p></li> |
1532 | <li><p>ALLEGRO_BITMAP_WRAP_MIRROR·-·The·texture·coordinates·get·mirrored | 1532 | <li><p>ALLEGRO_BITMAP_WRAP_MIRROR·-·The·texture·coordinates·get·mirrored |
1533 | across·the·edges·that·they·go·past.</p></li> | 1533 | across·the·edges·that·they·go·past.</p></li> |
1534 | </ul> | 1534 | </ul> |
1535 | <p>Examples:</p> | 1535 | <p>Examples:</p> |
1536 | <ul> | 1536 | <ul> |
1537 | <li><a | 1537 | <li><a |
1538 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L690">ex_prim.c</a></li> | ||
1539 | <li><a | ||
1540 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L131">ex_prim_wrap.c</a></li> | 1538 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L131">ex_prim_wrap.c</a></li> |
1539 | <li><a | ||
1540 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L690">ex_prim.c</a></li> | ||
1541 | </ul> | 1541 | </ul> |
1542 | <h1·id="bitmap-properties">Bitmap·properties</h1> | 1542 | <h1·id="bitmap-properties">Bitmap·properties</h1> |
1543 | <h2·id="al_get_bitmap_flags">al_get_bitmap_flags</h2> | 1543 | <h2·id="al_get_bitmap_flags">al_get_bitmap_flags</h2> |
1544 | <div·class="sourceCode"·id="cb50"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb50-1"><a·href="#cb50-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_bitmap_flags<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> | 1544 | <div·class="sourceCode"·id="cb50"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb50-1"><a·href="#cb50-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_bitmap_flags<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> |
1545 | <p><a | 1545 | <p><a |
1546 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L330">Source | 1546 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L330">Source |
1547 | Code</a></p> | 1547 | Code</a></p> |
Offset 1641, 17 lines modified | Offset 1641, 17 lines modified | ||
1641 | href="graphics.html#al_put_pixel">al_put_pixel</a>,·<a | 1641 | href="graphics.html#al_put_pixel">al_put_pixel</a>,·<a |
1642 | href="graphics.html#al_lock_bitmap">al_lock_bitmap</a></p> | 1642 | href="graphics.html#al_lock_bitmap">al_lock_bitmap</a></p> |
1643 | <p>Examples:</p> | 1643 | <p>Examples:</p> |
1644 | <ul> | 1644 | <ul> |
1645 | <li><a | 1645 | <li><a |
1646 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_test.c#L54">ex_blend_test.c</a></li> | 1646 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_test.c#L54">ex_blend_test.c</a></li> |
1647 | <li><a | 1647 | <li><a |
Max diff block lines reached; 7611/15689 bytes (48.51%) of diff not shown. |
Offset 204, 15 lines modified | Offset 204, 15 lines modified | ||
204 | Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·ALLEGRO_COLOR,·using·1.0f·for | 204 | Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·ALLEGRO_COLOR,·using·1.0f·for |
205 | alpha. | 205 | alpha. |
206 | This·function·can·be·called·before·Allegro·is·initialized. | 206 | This·function·can·be·called·before·Allegro·is·initialized. |
207 | See·also:·al_map_rgba,·al_map_rgb,·al_map_rgba_f | 207 | See·also:·al_map_rgba,·al_map_rgb,·al_map_rgba_f |
208 | Examples: | 208 | Examples: |
209 | ····*·ex_enet_server.c | 209 | ····*·ex_enet_server.c |
210 | ····*·ex_keyboard_events.c | 210 | ····*·ex_keyboard_events.c |
211 | ····*·ex_ | 211 | ····*·ex_drawpixels.c |
212 | *****·al_map_rgba·***** | 212 | *****·al_map_rgba·***** |
213 | ALLEGRO_COLOR·al_map_rgba( | 213 | ALLEGRO_COLOR·al_map_rgba( |
214 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) | 214 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) |
215 | Source_Code | 215 | Source_Code |
216 | Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·ALLEGRO_COLOR. | 216 | Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·ALLEGRO_COLOR. |
217 | This·function·can·be·called·before·Allegro·is·initialized. | 217 | This·function·can·be·called·before·Allegro·is·initialized. |
218 | See·also:·al_map_rgb,·al_premul_rgba,·al_map_rgb_f | 218 | See·also:·al_map_rgb,·al_premul_rgba,·al_map_rgb_f |
Offset 339, 15 lines modified | Offset 339, 15 lines modified | ||
339 | ······size·of·a·single·pixel,·but·for·blocked·pixel·formats·this·value·is | 339 | ······size·of·a·single·pixel,·but·for·blocked·pixel·formats·this·value·is |
340 | ······different. | 340 | ······different. |
341 | See·also:·al_lock_bitmap,·al_lock_bitmap_region,·al_unlock_bitmap, | 341 | See·also:·al_lock_bitmap,·al_lock_bitmap_region,·al_unlock_bitmap, |
342 | ALLEGRO_PIXEL_FORMAT | 342 | ALLEGRO_PIXEL_FORMAT |
343 | Examples: | 343 | Examples: |
344 | ····*·ex_lockbitmap.c | 344 | ····*·ex_lockbitmap.c |
345 | ····*·ex_premulalpha.c | 345 | ····*·ex_premulalpha.c |
346 | ····*·ex_ | 346 | ····*·ex_multisample.c |
347 | *****·ALLEGRO_PIXEL_FORMAT·***** | 347 | *****·ALLEGRO_PIXEL_FORMAT·***** |
348 | typedef·enum·ALLEGRO_PIXEL_FORMAT | 348 | typedef·enum·ALLEGRO_PIXEL_FORMAT |
349 | Source_Code | 349 | Source_Code |
350 | Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a | 350 | Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a |
351 | pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for | 351 | pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for |
352 | example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. | 352 | example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. |
353 | ·····Note: | 353 | ·····Note: |
Offset 446, 15 lines modified | Offset 446, 15 lines modified | ||
446 | ······compression·algorithm.·Each·4x4·pixel·block·is·encoded·in·128·bytes, | 446 | ······compression·algorithm.·Each·4x4·pixel·block·is·encoded·in·128·bytes, |
447 | ······resulting·in·4x·compression·ratio.·This·format·supports·smooth·alpha | 447 | ······resulting·in·4x·compression·ratio.·This·format·supports·smooth·alpha |
448 | ······transitions.·Since·5.1.9. | 448 | ······transitions.·Since·5.1.9. |
449 | See·also:·al_set_new_bitmap_format,·al_get_bitmap_format | 449 | See·also:·al_set_new_bitmap_format,·al_get_bitmap_format |
450 | Examples: | 450 | Examples: |
451 | ····*·ex_convert.c | 451 | ····*·ex_convert.c |
452 | ····*·ex_drawpixels.c | 452 | ····*·ex_drawpixels.c |
453 | ····*·ex_ | 453 | ····*·ex_lockbitmap.c |
454 | *****·al_get_pixel_size·***** | 454 | *****·al_get_pixel_size·***** |
455 | int·al_get_pixel_size(int·format) | 455 | int·al_get_pixel_size(int·format) |
456 | Source_Code | 456 | Source_Code |
457 | Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies.·For | 457 | Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies.·For |
458 | blocked·pixel·formats·(e.g. compressed·formats),·this·returns·0. | 458 | blocked·pixel·formats·(e.g. compressed·formats),·this·returns·0. |
459 | See·also:·ALLEGRO_PIXEL_FORMAT,·al_get_pixel_format_bits | 459 | See·also:·ALLEGRO_PIXEL_FORMAT,·al_get_pixel_format_bits |
460 | *****·al_get_pixel_format_bits·***** | 460 | *****·al_get_pixel_format_bits·***** |
Offset 589, 15 lines modified | Offset 589, 15 lines modified | ||
589 | *****·ALLEGRO_BITMAP·***** | 589 | *****·ALLEGRO_BITMAP·***** |
590 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | 590 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; |
591 | Source_Code | 591 | Source_Code |
592 | Abstract·type·representing·a·bitmap·(2D·image). | 592 | Abstract·type·representing·a·bitmap·(2D·image). |
593 | Examples: | 593 | Examples: |
594 | ····*·ex_convert.c | 594 | ····*·ex_convert.c |
595 | ····*·ex_nodisplay.c | 595 | ····*·ex_nodisplay.c |
596 | ····*·ex_ | 596 | ····*·ex_opengl_pixel_shader.c |
597 | *****·al_create_bitmap·***** | 597 | *****·al_create_bitmap·***** |
598 | ALLEGRO_BITMAP·*al_create_bitmap(int·w,·int·h) | 598 | ALLEGRO_BITMAP·*al_create_bitmap(int·w,·int·h) |
599 | Source_Code | 599 | Source_Code |
600 | Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the·current·thread. | 600 | Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the·current·thread. |
601 | Blitting·between·bitmaps·of·differing·formats,·or·blitting·between·memory | 601 | Blitting·between·bitmaps·of·differing·formats,·or·blitting·between·memory |
602 | bitmaps·and·display·bitmaps·may·be·slow. | 602 | bitmaps·and·display·bitmaps·may·be·slow. |
603 | Unless·you·set·the·ALLEGRO_MEMORY_BITMAP·flag,·the·bitmap·is·created·for·the | 603 | Unless·you·set·the·ALLEGRO_MEMORY_BITMAP·flag,·the·bitmap·is·created·for·the |
Offset 678, 15 lines modified | Offset 678, 15 lines modified | ||
678 | the·new·bitmap·is·a·memory·bitmap,·its·projection·bitmap·is·reset·to·be | 678 | the·new·bitmap·is·a·memory·bitmap,·its·projection·bitmap·is·reset·to·be |
679 | orthographic. | 679 | orthographic. |
680 | See·also:·al_create_bitmap,·al_set_new_bitmap_format,·al_set_new_bitmap_flags, | 680 | See·also:·al_create_bitmap,·al_set_new_bitmap_format,·al_set_new_bitmap_flags, |
681 | al_convert_bitmap | 681 | al_convert_bitmap |
682 | Examples: | 682 | Examples: |
683 | ····*·ex_subbitmap.c | 683 | ····*·ex_subbitmap.c |
684 | ····*·ex_font.c | 684 | ····*·ex_font.c |
685 | ····*·ex_ | 685 | ····*·ex_premulalpha.c |
686 | *****·al_convert_bitmap·***** | 686 | *****·al_convert_bitmap·***** |
687 | void·al_convert_bitmap(ALLEGRO_BITMAP·*bitmap) | 687 | void·al_convert_bitmap(ALLEGRO_BITMAP·*bitmap) |
688 | Source_Code | 688 | Source_Code |
689 | Converts·the·bitmap·to·the·current·bitmap·flags·and·format.·The·bitmap·will·be | 689 | Converts·the·bitmap·to·the·current·bitmap·flags·and·format.·The·bitmap·will·be |
690 | as·if·it·was·created·anew·with·al_create_bitmap·but·retain·its·contents.·All·of | 690 | as·if·it·was·created·anew·with·al_create_bitmap·but·retain·its·contents.·All·of |
691 | this·bitmapâs·sub-bitmaps·are·also·converted.·If·the·new·bitmap·type·is | 691 | this·bitmapâs·sub-bitmaps·are·also·converted.·If·the·new·bitmap·type·is |
692 | memory,·then·the·bitmapâs·projection·bitmap·is·reset·to·be·orthographic. | 692 | memory,·then·the·bitmapâs·projection·bitmap·is·reset·to·be·orthographic. |
Offset 898, 16 lines modified | Offset 898, 16 lines modified | ||
898 | ·····addon·which·(for·backwards·compatibility)·alters·the·wrapping | 898 | ·····addon·which·(for·backwards·compatibility)·alters·the·wrapping |
899 | ·····setting.·To·minimize·this·issue,·use·a·wrapping·setting·thatâs·not | 899 | ·····setting.·To·minimize·this·issue,·use·a·wrapping·setting·thatâs·not |
900 | ·····ALLEGRO_BITMAP_WRAP_DEFAULT. | 900 | ·····ALLEGRO_BITMAP_WRAP_DEFAULT. |
901 | Since:·5.2.8 | 901 | Since:·5.2.8 |
902 | ·····Unstable_API:·This·is·an·experimental·feature. | 902 | ·····Unstable_API:·This·is·an·experimental·feature. |
903 | See·also:·ALLEGRO_BITMAP_WRAP | 903 | See·also:·ALLEGRO_BITMAP_WRAP |
904 | Examples: | 904 | Examples: |
905 | ····*·ex_prim.c | ||
906 | ····*·ex_prim_wrap.c | 905 | ····*·ex_prim_wrap.c |
906 | ····*·ex_prim.c | ||
907 | *****·al_get_new_bitmap_wrap·***** | 907 | *****·al_get_new_bitmap_wrap·***** |
908 | Source·Code | 908 | Source·Code |
909 | Returns·the·value·currently·set·with·al_set_new_bitmap_wrap·on·the·current | 909 | Returns·the·value·currently·set·with·al_set_new_bitmap_wrap·on·the·current |
910 | thread. | 910 | thread. |
911 | Since:·5.2.8 | 911 | Since:·5.2.8 |
912 | ·····Unstable_API:·This·is·an·experimental·feature. | 912 | ·····Unstable_API:·This·is·an·experimental·feature. |
913 | See·also:·ALLEGRO_BITMAP_WRAP | 913 | See·also:·ALLEGRO_BITMAP_WRAP |
Offset 922, 16 lines modified | Offset 922, 16 lines modified | ||
922 | ····*·ALLEGRO_BITMAP_WRAP_REPEAT·-·The·texture·coordinates·get·shifted·to·the | 922 | ····*·ALLEGRO_BITMAP_WRAP_REPEAT·-·The·texture·coordinates·get·shifted·to·the |
923 | ······opposite·edge·that·they·go·past. | 923 | ······opposite·edge·that·they·go·past. |
924 | ····*·ALLEGRO_BITMAP_WRAP_CLAMP·-·The·texture·coordinates·get·clamped·to·the | 924 | ····*·ALLEGRO_BITMAP_WRAP_CLAMP·-·The·texture·coordinates·get·clamped·to·the |
925 | ······edges·that·they·go·past. | 925 | ······edges·that·they·go·past. |
926 | ····*·ALLEGRO_BITMAP_WRAP_MIRROR·-·The·texture·coordinates·get·mirrored·across | 926 | ····*·ALLEGRO_BITMAP_WRAP_MIRROR·-·The·texture·coordinates·get·mirrored·across |
927 | ······the·edges·that·they·go·past. | 927 | ······the·edges·that·they·go·past. |
928 | Examples: | 928 | Examples: |
929 | ····*·ex_prim.c | ||
930 | ····*·ex_prim_wrap.c | 929 | ····*·ex_prim_wrap.c |
930 | ····*·ex_prim.c | ||
931 | ******·Bitmap·properties·****** | 931 | ******·Bitmap·properties·****** |
932 | *****·al_get_bitmap_flags·***** | 932 | *****·al_get_bitmap_flags·***** |
933 | int·al_get_bitmap_flags(ALLEGRO_BITMAP·*bitmap) | 933 | int·al_get_bitmap_flags(ALLEGRO_BITMAP·*bitmap) |
934 | Source_Code | 934 | Source_Code |
935 | Return·the·flags·used·to·create·the·bitmap. | 935 | Return·the·flags·used·to·create·the·bitmap. |
936 | See·also:·al_set_new_bitmap_flags | 936 | See·also:·al_set_new_bitmap_flags |
937 | Examples: | 937 | Examples: |
Offset 982, 16 lines modified | Offset 982, 16 lines modified | ||
982 | Source_Code | 982 | Source_Code |
983 | Get·a·pixelâs·color·value·from·the·specified·bitmap.·This·operation·is·slow | 983 | Get·a·pixelâs·color·value·from·the·specified·bitmap.·This·operation·is·slow |
984 | on·non-memory·bitmaps.·Consider·locking·the·bitmap·if·you·are·going·to·use·this | 984 | on·non-memory·bitmaps.·Consider·locking·the·bitmap·if·you·are·going·to·use·this |
985 | function·multiple·times·on·the·same·bitmap. | 985 | function·multiple·times·on·the·same·bitmap. |
986 | See·also:·ALLEGRO_COLOR,·al_put_pixel,·al_lock_bitmap | 986 | See·also:·ALLEGRO_COLOR,·al_put_pixel,·al_lock_bitmap |
987 | Examples: | 987 | Examples: |
988 | ····*·ex_blend_test.c | 988 | ····*·ex_blend_test.c |
989 | ····*·ex_vertex_buffer.c | ||
990 | ····*·ex_compressed.c | 989 | ····*·ex_compressed.c |
990 | ····*·ex_vertex_buffer.c | ||
991 | *****·al_is_bitmap_locked·***** | 991 | *****·al_is_bitmap_locked·***** |
Max diff block lines reached; 3665/8703 bytes (42.11%) of diff not shown. |
Offset 1241, 12 lines modified | Offset 1241, 12 lines modified | ||
1241 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 1241 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
1242 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all | 1242 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all |
1243 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from | 1243 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from |
1244 | users.</p> | 1244 | users.</p> |
1245 | </blockquote> | 1245 | </blockquote> |
1246 | <p·class="timestamp"> | 1246 | <p·class="timestamp"> |
1247 | Allegro·version·5.2.8 | 1247 | Allegro·version·5.2.8 |
1248 | ·-·Last·updated:·202 | 1248 | ·-·Last·updated:·2024-01-08·05:22:29·UTC |
1249 | </p> | 1249 | </p> |
1250 | </div> | 1250 | </div> |
1251 | </body> | 1251 | </body> |
1252 | </html> | 1252 | </html> |
Offset 726, 8 lines modified | Offset 726, 8 lines modified | ||
726 | again·manually·in·this·case.·However,·if·true·is·returned,·it·is·necessary·to | 726 | again·manually·in·this·case.·However,·if·true·is·returned,·it·is·necessary·to |
727 | call·al_release_haptic_effect·when·the·effect·isnât·needed·anymore,·to | 727 | call·al_release_haptic_effect·when·the·effect·isnât·needed·anymore,·to |
728 | prevent·the·amount·of·available·effects·on·the·haptic·device·from·running·out. | 728 | prevent·the·amount·of·available·effects·on·the·haptic·device·from·running·out. |
729 | Since:·5.1.8 | 729 | Since:·5.1.8 |
730 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for | 730 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for |
731 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 731 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
732 | ·····feedback·from·users. | 732 | ·····feedback·from·users. |
733 | Allegro·version·5.2.8·-·Last·updated:·202 | 733 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:29·UTC |
Offset 196, 14 lines modified | Offset 196, 23 lines modified | ||
196 | installed·libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to | 196 | installed·libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to |
197 | be·universally·available.</p> | 197 | be·universally·available.</p> |
198 | <p>The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS | 198 | <p>The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS |
199 | file·contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats. | 199 | file·contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats. |
200 | Note·that·when·loading·a·DDS·file,·the·created·bitmap·will·always·be·a | 200 | Note·that·when·loading·a·DDS·file,·the·created·bitmap·will·always·be·a |
201 | video·bitmap·and·will·have·the·pixel·format·matching·the·format·in·the | 201 | video·bitmap·and·will·have·the·pixel·format·matching·the·format·in·the |
202 | file.</p> | 202 | file.</p> |
203 | <p>Examples:</p> | ||
204 | <ul> | ||
205 | <li><a | ||
206 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L29">ex_convert.c</a></li> | ||
207 | <li><a | ||
208 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L22">ex_nodisplay.c</a></li> | ||
209 | <li><a | ||
210 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L53">ex_opengl_pixel_shader.c</a></li> | ||
211 | </ul> | ||
203 | <h1 | 212 | <h1 |
204 | id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1> | 213 | id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1> |
205 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_image_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 214 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><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> |
206 | <p><a | 215 | <p><a |
207 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source | 216 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source |
208 | Code</a></p> | 217 | Code</a></p> |
209 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns | 218 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns |
Offset 221, 12 lines modified | Offset 230, 12 lines modified | ||
221 | <p><a | 230 | <p><a |
222 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L185">Source | 231 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L185">Source |
223 | Code</a></p> | 232 | Code</a></p> |
224 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 233 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
225 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 234 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
226 | <p·class="timestamp"> | 235 | <p·class="timestamp"> |
227 | Allegro·version·5.2.8 | 236 | Allegro·version·5.2.8 |
228 | ·-·Last·updated:·202 | 237 | ·-·Last·updated:·2024-01-08·05:22:54·UTC |
229 | </p> | 238 | </p> |
230 | </div> | 239 | </div> |
231 | </body> | 240 | </body> |
232 | </html> | 241 | </html> |
Offset 68, 14 lines modified | Offset 68, 18 lines modified | ||
68 | Other·formats·may·be·available·depending·on·the·operating·system·and·installed | 68 | Other·formats·may·be·available·depending·on·the·operating·system·and·installed |
69 | libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to·be·universally | 69 | libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to·be·universally |
70 | available. | 70 | available. |
71 | The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file | 71 | The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file |
72 | contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when | 72 | contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when |
73 | loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will | 73 | loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will |
74 | have·the·pixel·format·matching·the·format·in·the·file. | 74 | have·the·pixel·format·matching·the·format·in·the·file. |
75 | Examples: | ||
76 | ····*·ex_convert.c | ||
77 | ····*·ex_nodisplay.c | ||
78 | ····*·ex_opengl_pixel_shader.c | ||
75 | ******·al_is_image_addon_initialized·****** | 79 | ******·al_is_image_addon_initialized·****** |
76 | bool·al_is_image_addon_initialized(void) | 80 | bool·al_is_image_addon_initialized(void) |
77 | Source_Code | 81 | Source_Code |
78 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. | 82 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. |
79 | Since:·5.2.6 | 83 | Since:·5.2.6 |
80 | ******·al_shutdown_image_addon·****** | 84 | ******·al_shutdown_image_addon·****** |
81 | void·al_shutdown_image_addon(void) | 85 | void·al_shutdown_image_addon(void) |
Offset 83, 8 lines modified | Offset 87, 8 lines modified | ||
83 | Shut·down·the·image·addon.·This·is·done·automatically·at·program·exit,·but·can | 87 | Shut·down·the·image·addon.·This·is·done·automatically·at·program·exit,·but·can |
84 | be·called·any·time·the·user·wishes·as·well. | 88 | be·called·any·time·the·user·wishes·as·well. |
85 | ******·al_get_allegro_image_version·****** | 89 | ******·al_get_allegro_image_version·****** |
86 | uint32_t·al_get_allegro_image_version(void) | 90 | uint32_t·al_get_allegro_image_version(void) |
87 | Source_Code | 91 | Source_Code |
88 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 92 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
89 | al_get_allegro_version. | 93 | al_get_allegro_version. |
90 | Allegro·version·5.2.8·-·Last·updated:·202 | 94 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:54·UTC |
Offset 154, 12 lines modified | Offset 154, 12 lines modified | ||
154 | <li><a·href="native_dialog.html">Native·dialogs·addon</a></li> | 154 | <li><a·href="native_dialog.html">Native·dialogs·addon</a></li> |
155 | <li><a·href="physfs.html">PhysicsFS·addon</a></li> | 155 | <li><a·href="physfs.html">PhysicsFS·addon</a></li> |
156 | <li><a·href="primitives.html">Primitives·addon</a></li> | 156 | <li><a·href="primitives.html">Primitives·addon</a></li> |
157 | <li><a·href="video.html">Video·streaming·addon</a></li> | 157 | <li><a·href="video.html">Video·streaming·addon</a></li> |
158 | </ul> | 158 | </ul> |
159 | <p·class="timestamp"> | 159 | <p·class="timestamp"> |
160 | Allegro·version·5.2.8 | 160 | Allegro·version·5.2.8 |
161 | ·-·Last·updated:·202 | 161 | ·-·Last·updated:·2024-01-08·05:23:05·UTC |
162 | </p> | 162 | </p> |
163 | </div> | 163 | </div> |
164 | </body> | 164 | </body> |
165 | </html> | 165 | </html> |
Offset 88, 8 lines modified | Offset 88, 8 lines modified | ||
88 | ····*·Image_I/O_addon | 88 | ····*·Image_I/O_addon |
89 | ····*·Main_addon | 89 | ····*·Main_addon |
90 | ····*·Memfile_addon | 90 | ····*·Memfile_addon |
91 | ····*·Native_dialogs_addon | 91 | ····*·Native_dialogs_addon |
92 | ····*·PhysicsFS_addon | 92 | ····*·PhysicsFS_addon |
93 | ····*·Primitives_addon | 93 | ····*·Primitives_addon |
94 | ····*·Video_streaming_addon | 94 | ····*·Video_streaming_addon |
95 | Allegro·version·5.2.8·-·Last·updated:·202 | 95 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:23:05·UTC |
Offset 2879, 12 lines modified | Offset 2879, 12 lines modified | ||
2879 | <li><a | 2879 | <li><a |
2880 | href="platform.html#al_x_set_initial_icon">al_x_set_initial_icon</a> | 2880 | href="platform.html#al_x_set_initial_icon">al_x_set_initial_icon</a> |
2881 | <!--·--></li> | 2881 | <!--·--></li> |
2882 | <li><a·href="platform.html#iphone">iPhone</a>·<!--·--></li> | 2882 | <li><a·href="platform.html#iphone">iPhone</a>·<!--·--></li> |
2883 | </ul> | 2883 | </ul> |
2884 | <p·class="timestamp"> | 2884 | <p·class="timestamp"> |
2885 | Allegro·version·5.2.8 | 2885 | Allegro·version·5.2.8 |
2886 | ·-·Last·updated:·202 | 2886 | ·-·Last·updated:·2024-01-08·05:23:07·UTC |
2887 | </p> | 2887 | </p> |
2888 | </div> | 2888 | </div> |
2889 | </body> | 2889 | </body> |
2890 | </html> | 2890 | </html> |
Offset 1252, 8 lines modified | Offset 1252, 8 lines modified | ||
1252 | ····*·al_wait_for_event_timed | 1252 | ····*·al_wait_for_event_timed |
1253 | ····*·al_wait_for_event_until | 1253 | ····*·al_wait_for_event_until |
1254 | ····*·al_wait_for_vsync | 1254 | ····*·al_wait_for_vsync |
1255 | ····*·al_win_add_window_callback | 1255 | ····*·al_win_add_window_callback |
1256 | ····*·al_win_remove_window_callback | 1256 | ····*·al_win_remove_window_callback |
1257 | ····*·al_x_set_initial_icon | 1257 | ····*·al_x_set_initial_icon |
1258 | ····*·iPhone | 1258 | ····*·iPhone |
1259 | Allegro·version·5.2.8·-·Last·updated:·202 | 1259 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:23:07·UTC |
Offset 587, 12 lines modified | Offset 587, 12 lines modified | ||
587 | <li><a | 587 | <li><a |
588 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L250">ex_joystick_events.c</a></li> | 588 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L250">ex_joystick_events.c</a></li> |
589 | <li><a | 589 | <li><a |
590 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L875">ex_haptic2.cpp</a></li> | 590 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L875">ex_haptic2.cpp</a></li> |
591 | </ul> | 591 | </ul> |
592 | <p·class="timestamp"> | 592 | <p·class="timestamp"> |
593 | Allegro·version·5.2.8 | 593 | Allegro·version·5.2.8 |
594 | ·-·Last·updated:·202 | 594 | ·-·Last·updated:·2024-01-08·05:22:31·UTC |
595 | </p> | 595 | </p> |
596 | </div> | 596 | </div> |
597 | </body> | 597 | </body> |
598 | </html> | 598 | </html> |
Offset 284, 8 lines modified | Offset 284, 8 lines modified | ||
284 | Source_Code | 284 | Source_Code |
285 | Returns·the·global·joystick·event·source.·All·joystick_events·are·generated·by | 285 | Returns·the·global·joystick·event·source.·All·joystick_events·are·generated·by |
286 | this·event·source. | 286 | this·event·source. |
287 | Examples: | 287 | Examples: |
288 | ····*·ex_joystick_hotplugging.c | 288 | ····*·ex_joystick_hotplugging.c |
289 | ····*·ex_joystick_events.c | 289 | ····*·ex_joystick_events.c |
290 | ····*·ex_haptic2.cpp | 290 | ····*·ex_haptic2.cpp |
291 | Allegro·version·5.2.8·-·Last·updated:·202 | 291 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:31·UTC |
Offset 471, 12 lines modified | Offset 471, 12 lines modified | ||
471 | <li><a | 471 | <li><a |
472 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L145">ex_opengl.c</a></li> | 472 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L145">ex_opengl.c</a></li> |
473 | <li><a | 473 | <li><a |
474 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L37">ex_timedwait.c</a></li> | 474 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L37">ex_timedwait.c</a></li> |
475 | </ul> | 475 | </ul> |
476 | <p·class="timestamp"> | 476 | <p·class="timestamp"> |
477 | Allegro·version·5.2.8 | 477 | Allegro·version·5.2.8 |
478 | ·-·Last·updated:·202 | 478 | ·-·Last·updated:·2024-01-08·05:22:35·UTC |
479 | </p> | 479 | </p> |
480 | </div> | 480 | </div> |
481 | </body> | 481 | </body> |
482 | </html> | 482 | </html> |
Offset 268, 8 lines modified | Offset 268, 8 lines modified | ||
268 | Retrieve·the·keyboard·event·source.·All·keyboard_events·are·generated·by·this | 268 | Retrieve·the·keyboard·event·source.·All·keyboard_events·are·generated·by·this |
269 | event·source. | 269 | event·source. |
270 | Returns·NULL·if·the·keyboard·subsystem·was·not·installed. | 270 | Returns·NULL·if·the·keyboard·subsystem·was·not·installed. |
271 | Examples: | 271 | Examples: |
272 | ····*·ex_keyboard_events.c | 272 | ····*·ex_keyboard_events.c |
273 | ····*·ex_opengl.c | 273 | ····*·ex_opengl.c |
274 | ····*·ex_timedwait.c | 274 | ····*·ex_timedwait.c |
275 | Allegro·version·5.2.8·-·Last·updated:·202 | 275 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:35·UTC |
Offset 178, 12 lines modified | Offset 178, 12 lines modified | ||
178 | <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="dt">int</span>·main<span·class="op">(</span><span·class="dt">int</span>·argc<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**</span>argv<span·class="op">)</span></span></code></pre></div> | 178 | <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="dt">int</span>·main<span·class="op">(</span><span·class="dt">int</span>·argc<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**</span>argv<span·class="op">)</span></span></code></pre></div> |
179 | <p>This·addon·does·nothing·on·platforms·that·don’t·require·its | 179 | <p>This·addon·does·nothing·on·platforms·that·don’t·require·its |
180 | functionality,·but·you·should·keep·it·in·mind·in·case·you·need·to·port | 180 | functionality,·but·you·should·keep·it·in·mind·in·case·you·need·to·port |
181 | to·platforms·that·do·require·it.</p> | 181 | to·platforms·that·do·require·it.</p> |
182 | <p>Link·with·allegro_main.</p> | 182 | <p>Link·with·allegro_main.</p> |
183 | <p·class="timestamp"> | 183 | <p·class="timestamp"> |
184 | Allegro·version·5.2.8 | 184 | Allegro·version·5.2.8 |
185 | ·-·Last·updated:·202 | 185 | ·-·Last·updated:·2024-01-08·05:22:56·UTC |
186 | </p> | 186 | </p> |
187 | </div> | 187 | </div> |
188 | </body> | 188 | </body> |
189 | </html> | 189 | </html> |
Offset 56, 8 lines modified | Offset 56, 8 lines modified | ||
56 | If·the·user·main·function·is·defined·in·C++,·then·it·must·have·the·following | 56 | If·the·user·main·function·is·defined·in·C++,·then·it·must·have·the·following |
57 | signature·for·this·addon·to·work: | 57 | signature·for·this·addon·to·work: |
58 | int·main(int·argc,·char·**argv) | 58 | int·main(int·argc,·char·**argv) |
59 | This·addon·does·nothing·on·platforms·that·donât·require·its·functionality, | 59 | This·addon·does·nothing·on·platforms·that·donât·require·its·functionality, |
60 | but·you·should·keep·it·in·mind·in·case·you·need·to·port·to·platforms·that·do | 60 | but·you·should·keep·it·in·mind·in·case·you·need·to·port·to·platforms·that·do |
61 | require·it. | 61 | require·it. |
62 | Link·with·allegro_main. | 62 | Link·with·allegro_main. |
63 | Allegro·version·5.2.8·-·Last·updated:·202 | 63 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:56·UTC |
Offset 186, 22 lines modified | Offset 186, 27 lines modified | ||
186 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file | 186 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file |
187 | size·is·fixed·and·cannot·be·expanded.·The·file·is·always·read | 187 | size·is·fixed·and·cannot·be·expanded.·The·file·is·always·read |
188 | from/written·to·in·binary·mode,·which·means·that·no·newline·translation | 188 | from/written·to·in·binary·mode,·which·means·that·no·newline·translation |
189 | is·performed.</p> | 189 | is·performed.</p> |
190 | <p>It·should·be·closed·with·<a·href="file.html#al_fclose">al_fclose</a>. | 190 | <p>It·should·be·closed·with·<a·href="file.html#al_fclose">al_fclose</a>. |
191 | After·the·file·is·closed,·you·are·responsible·for·freeing·the·memory·(if | 191 | After·the·file·is·closed,·you·are·responsible·for·freeing·the·memory·(if |
192 | needed).</p> | 192 | needed).</p> |
193 | <p>Examples:</p> | ||
194 | <ul> | ||
195 | <li><a | ||
196 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L36">ex_memfile.c</a></li> | ||
197 | </ul> | ||
193 | <h1 | 198 | <h1 |
194 | id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> | 199 | id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> |
195 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">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> | 200 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">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> |
196 | <p><a | 201 | <p><a |
197 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source | 202 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source |
198 | Code</a></p> | 203 | Code</a></p> |
199 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 204 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
200 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 205 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
201 | <p·class="timestamp"> | 206 | <p·class="timestamp"> |
202 | Allegro·version·5.2.8 | 207 | Allegro·version·5.2.8 |
203 | ·-·Last·updated:·202 | 208 | ·-·Last·updated:·2024-01-08·05:22:59·UTC |
204 | </p> | 209 | </p> |
205 | </div> | 210 | </div> |
206 | </body> | 211 | </body> |
207 | </html> | 212 | </html> |
Offset 61, 13 lines modified | Offset 61, 15 lines modified | ||
61 | upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open. | 61 | upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open. |
62 | The·mode·can·be·any·combination·of·ârâ·(readable)·and·âwâ·(writable). | 62 | The·mode·can·be·any·combination·of·ârâ·(readable)·and·âwâ·(writable). |
63 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is | 63 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is |
64 | fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary | 64 | fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary |
65 | mode,·which·means·that·no·newline·translation·is·performed. | 65 | mode,·which·means·that·no·newline·translation·is·performed. |
66 | It·should·be·closed·with·al_fclose.·After·the·file·is·closed,·you·are | 66 | It·should·be·closed·with·al_fclose.·After·the·file·is·closed,·you·are |
67 | responsible·for·freeing·the·memory·(if·needed). | 67 | responsible·for·freeing·the·memory·(if·needed). |
68 | Examples: | ||
69 | ····*·ex_memfile.c | ||
68 | ******·al_get_allegro_memfile_version·****** | 70 | ******·al_get_allegro_memfile_version·****** |
69 | uint32_t·al_get_allegro_memfile_version(void) | 71 | uint32_t·al_get_allegro_memfile_version(void) |
70 | Source_Code | 72 | Source_Code |
71 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 73 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
72 | al_get_allegro_version. | 74 | al_get_allegro_version. |
73 | Allegro·version·5.2.8·-·Last·updated:·202 | 75 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:59·UTC |
Offset 216, 17 lines modified | Offset 216, 17 lines modified | ||
216 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a | 216 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a |
217 | href="memory.html#al_free_with_context">al_free_with_context</a></p> | 217 | href="memory.html#al_free_with_context">al_free_with_context</a></p> |
218 | <p>Examples:</p> | 218 | <p>Examples:</p> |
219 | <ul> | 219 | <ul> |
220 | <li><a | 220 | <li><a |
221 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clipboard.c#L67">ex_clipboard.c</a></li> | 221 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clipboard.c#L67">ex_clipboard.c</a></li> |
222 | <li><a | 222 | <li><a |
223 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L214">ex_vertex_buffer.c</a></li> | ||
224 | <li><a | ||
225 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L254">ex_record_name.c</a></li> | 223 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L254">ex_record_name.c</a></li> |
224 | <li><a | ||
225 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L214">ex_vertex_buffer.c</a></li> | ||
226 | </ul> | 226 | </ul> |
227 | <h1·id="al_realloc">al_realloc</h1> | 227 | <h1·id="al_realloc">al_realloc</h1> |
228 | <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(p,·n)·\</span></span> | 228 | <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(p,·n)·\</span></span> |
229 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__))</span></span></code></pre></div> | 229 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__))</span></span></code></pre></div> |
230 | <p><a | 230 | <p><a |
231 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source | 231 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source |
232 | Code</a></p> | 232 | Code</a></p> |
Offset 323, 12 lines modified | Offset 323, 12 lines modified | ||
323 | The·context·arguments·may·be·used·for·debugging.·The·new·functions | 323 | The·context·arguments·may·be·used·for·debugging.·The·new·functions |
324 | should·be·thread·safe.</p> | 324 | should·be·thread·safe.</p> |
325 | <p>If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored.</p> | 325 | <p>If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored.</p> |
326 | <p>See·also:·<a | 326 | <p>See·also:·<a |
327 | href="memory.html#allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</a></p> | 327 | href="memory.html#allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</a></p> |
328 | <p·class="timestamp"> | 328 | <p·class="timestamp"> |
329 | Allegro·version·5.2.8 | 329 | Allegro·version·5.2.8 |
330 | ·-·Last·updated:·202 | 330 | ·-·Last·updated:·2024-01-08·05:22:36·UTC |
331 | </p> | 331 | </p> |
332 | </div> | 332 | </div> |
333 | </body> | 333 | </body> |
334 | </html> | 334 | </html> |
Offset 80, 16 lines modified | Offset 80, 16 lines modified | ||
80 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed | 80 | 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 | 81 | from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a |
82 | pointer·that·must·be·freed,·you·must·use·al_free·for·portability·to·Windows. | 82 | pointer·that·must·be·freed,·you·must·use·al_free·for·portability·to·Windows. |
83 | This·is·a·macro. | 83 | This·is·a·macro. |
84 | See·also:·al_malloc,·al_free_with_context | 84 | See·also:·al_malloc,·al_free_with_context |
85 | Examples: | 85 | Examples: |
86 | ····*·ex_clipboard.c | 86 | ····*·ex_clipboard.c |
87 | ····*·ex_vertex_buffer.c | ||
88 | ····*·ex_record_name.c | 87 | ····*·ex_record_name.c |
88 | ····*·ex_vertex_buffer.c | ||
89 | ******·al_realloc·****** | 89 | ******·al_realloc·****** |
90 | #define·al_realloc(p,·n)·\ | 90 | #define·al_realloc(p,·n)·\ |
91 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | 91 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) |
92 | Source_Code | 92 | Source_Code |
93 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be | 93 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be |
94 | overridden. | 94 | overridden. |
95 | This·is·a·macro. | 95 | This·is·a·macro. |
Offset 148, 8 lines modified | Offset 148, 8 lines modified | ||
148 | Source_Code | 148 | Source_Code |
149 | Override·the·memory·management·functions·with·implementations·of | 149 | Override·the·memory·management·functions·with·implementations·of |
150 | al_malloc_with_context,·al_free_with_context,·al_realloc_with_context·and | 150 | al_malloc_with_context,·al_free_with_context,·al_realloc_with_context·and |
151 | al_calloc_with_context.·The·context·arguments·may·be·used·for·debugging.·The | 151 | al_calloc_with_context.·The·context·arguments·may·be·used·for·debugging.·The |
152 | new·functions·should·be·thread·safe. | 152 | new·functions·should·be·thread·safe. |
153 | If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored. | 153 | If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored. |
154 | See·also:·ALLEGRO_MEMORY_INTERFACE | 154 | See·also:·ALLEGRO_MEMORY_INTERFACE |
155 | Allegro·version·5.2.8·-·Last·updated:·202 | 155 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:36·UTC |
Offset 198, 12 lines modified | Offset 198, 12 lines modified | ||
198 | other·system·(like·OSX)·don’t·allow·calling·<a | 198 | other·system·(like·OSX)·don’t·allow·calling·<a |
199 | href="system.html#al_install_system">al_install_system</a>·in·the·main | 199 | href="system.html#al_install_system">al_install_system</a>·in·the·main |
200 | thread.·al_run_main·will·know·what·to·do·in·that·case.</p> | 200 | thread.·al_run_main·will·know·what·to·do·in·that·case.</p> |
201 | <p>The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and | 201 | <p>The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and |
202 | the·return·value·of·user_main·will·be·returned.</p> | 202 | the·return·value·of·user_main·will·be·returned.</p> |
203 | <p·class="timestamp"> | 203 | <p·class="timestamp"> |
204 | Allegro·version·5.2.8 | 204 | Allegro·version·5.2.8 |
205 | ·-·Last·updated:·202 | 205 | ·-·Last·updated:·2024-01-08·05:22:36·UTC |
206 | </p> | 206 | </p> |
207 | </div> | 207 | </div> |
208 | </body> | 208 | </body> |
209 | </html> | 209 | </html> |
Offset 66, 8 lines modified | Offset 66, 8 lines modified | ||
66 | This·function·is·useful·in·cases·where·you·donât·have·a·main()·function·but | 66 | This·function·is·useful·in·cases·where·you·donât·have·a·main()·function·but |
67 | want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and | 67 | want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and |
68 | Linux·this·is·no·problem·because·you·simply·can·call·al_install_system.·But | 68 | Linux·this·is·no·problem·because·you·simply·can·call·al_install_system.·But |
69 | some·other·system·(like·OSX)·donât·allow·calling·al_install_system·in·the | 69 | some·other·system·(like·OSX)·donât·allow·calling·al_install_system·in·the |
70 | main·thread.·al_run_main·will·know·what·to·do·in·that·case. | 70 | main·thread.·al_run_main·will·know·what·to·do·in·that·case. |
71 | The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and·the·return | 71 | The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and·the·return |
72 | value·of·user_main·will·be·returned. | 72 | value·of·user_main·will·be·returned. |
73 | Allegro·version·5.2.8·-·Last·updated:·202 | 73 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:36·UTC |
Offset 320, 12 lines modified | Offset 320, 12 lines modified | ||
320 | API</a>:</em>·This·is·an·experimental·feature·and·currently·only·works | 320 | API</a>:</em>·This·is·an·experimental·feature·and·currently·only·works |
321 | on·Windows.</p> | 321 | on·Windows.</p> |
322 | </blockquote> | 322 | </blockquote> |
323 | <p>See·also:·<a | 323 | <p>See·also:·<a |
324 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> | 324 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> |
325 | <p·class="timestamp"> | 325 | <p·class="timestamp"> |
326 | Allegro·version·5.2.8 | 326 | Allegro·version·5.2.8 |
327 | ·-·Last·updated:·202 | 327 | ·-·Last·updated:·2024-01-08·05:22:38·UTC |
328 | </p> | 328 | </p> |
329 | </div> | 329 | </div> |
330 | </body> | 330 | </body> |
331 | </html> | 331 | </html> |
Offset 133, 8 lines modified | Offset 133, 8 lines modified | ||
133 | int·al_get_monitor_refresh_rate(int·adapter) | 133 | int·al_get_monitor_refresh_rate(int·adapter) |
134 | Source_Code | 134 | Source_Code |
135 | Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display·adapter. | 135 | Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display·adapter. |
136 | Since:·5.2.6 | 136 | Since:·5.2.6 |
137 | ·····Unstable_API:·This·is·an·experimental·feature·and·currently·only | 137 | ·····Unstable_API:·This·is·an·experimental·feature·and·currently·only |
138 | ·····works·on·Windows. | 138 | ·····works·on·Windows. |
139 | See·also:·al_get_monitor_info | 139 | See·also:·al_get_monitor_info |
140 | Allegro·version·5.2.8·-·Last·updated:·202 | 140 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:38·UTC |
Offset 241, 17 lines modified | Offset 241, 17 lines modified | ||
241 | <p>Returns·true·if·successful.·If·a·driver·was·already·installed, | 241 | <p>Returns·true·if·successful.·If·a·driver·was·already·installed, |
242 | nothing·happens·and·true·is·returned.</p> | 242 | nothing·happens·and·true·is·returned.</p> |
243 | <p>Examples:</p> | 243 | <p>Examples:</p> |
244 | <ul> | 244 | <ul> |
245 | <li><a | 245 | <li><a |
246 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L41">ex_mouse_focus.c</a></li> | 246 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L41">ex_mouse_focus.c</a></li> |
247 | <li><a | 247 | <li><a |
248 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L101">ex_font_justify.cpp</a></li> | ||
249 | <li><a | ||
250 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L46">ex_mouse.c</a></li> | 248 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L46">ex_mouse.c</a></li> |
249 | <li><a | ||
250 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L101">ex_font_justify.cpp</a></li> | ||
251 | </ul> | 251 | </ul> |
252 | <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1> | 252 | <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1> |
253 | <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_mouse_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 253 | <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_mouse_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
254 | <p><a | 254 | <p><a |
255 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L40">Source | 255 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L40">Source |
256 | Code</a></p> | 256 | Code</a></p> |
257 | <p>Returns·true·if·<a | 257 | <p>Returns·true·if·<a |
Offset 412, 15 lines modified | Offset 412, 15 lines modified | ||
412 | <p>Examples:</p> | 412 | <p>Examples:</p> |
413 | <ul> | 413 | <ul> |
414 | <li><a | 414 | <li><a |
415 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L58">ex_display_events.c</a></li> | 415 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L58">ex_display_events.c</a></li> |
416 | <li><a | 416 | <li><a |
417 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L46">ex_mouse_warp.c</a></li> | 417 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L46">ex_mouse_warp.c</a></li> |
418 | <li><a | 418 | <li><a |
419 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 419 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_noframe.c#L44">ex_noframe.c</a></li> |
420 | </ul> | 420 | </ul> |
421 | <h1·id="al_set_mouse_wheel_precision">al_set_mouse_wheel_precision</h1> | 421 | <h1·id="al_set_mouse_wheel_precision">al_set_mouse_wheel_precision</h1> |
422 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_mouse_wheel_precision<span·class="op">(</span><span·class="dt">int</span>·precision<span·class="op">)</span></span></code></pre></div> | 422 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_mouse_wheel_precision<span·class="op">(</span><span·class="dt">int</span>·precision<span·class="op">)</span></span></code></pre></div> |
423 | <p><a | 423 | <p><a |
424 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L316">Source | 424 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L316">Source |
425 | Code</a></p> | 425 | Code</a></p> |
426 | <p>Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This | 426 | <p>Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This |
Offset 634, 12 lines modified | Offset 634, 12 lines modified | ||
634 | program.</p> | 634 | program.</p> |
635 | <blockquote> | 635 | <blockquote> |
636 | <p><em>Note:</em>·not·yet·implemented·on·Mac·OS·X.</p> | 636 | <p><em>Note:</em>·not·yet·implemented·on·Mac·OS·X.</p> |
637 | </blockquote> | 637 | </blockquote> |
638 | <p>See·also:·<a·href="mouse.html#al_grab_mouse">al_grab_mouse</a></p> | 638 | <p>See·also:·<a·href="mouse.html#al_grab_mouse">al_grab_mouse</a></p> |
639 | <p·class="timestamp"> | 639 | <p·class="timestamp"> |
640 | Allegro·version·5.2.8 | 640 | Allegro·version·5.2.8 |
641 | ·-·Last·updated:·202 | 641 | ·-·Last·updated:·2024-01-08·05:22:38·UTC |
642 | </p> | 642 | </p> |
643 | </div> | 643 | </div> |
644 | </body> | 644 | </body> |
645 | </html> | 645 | </html> |
Offset 95, 16 lines modified | Offset 95, 16 lines modified | ||
95 | bool·al_install_mouse(void) | 95 | bool·al_install_mouse(void) |
96 | Source_Code | 96 | Source_Code |
97 | Install·a·mouse·driver. | 97 | Install·a·mouse·driver. |
98 | Returns·true·if·successful.·If·a·driver·was·already·installed,·nothing·happens | 98 | Returns·true·if·successful.·If·a·driver·was·already·installed,·nothing·happens |
99 | and·true·is·returned. | 99 | and·true·is·returned. |
100 | Examples: | 100 | Examples: |
101 | ····*·ex_mouse_focus.c | 101 | ····*·ex_mouse_focus.c |
102 | ····*·ex_font_justify.cpp | ||
103 | ····*·ex_mouse.c | 102 | ····*·ex_mouse.c |
103 | ····*·ex_font_justify.cpp | ||
104 | ******·al_is_mouse_installed·****** | 104 | ******·al_is_mouse_installed·****** |
105 | bool·al_is_mouse_installed(void) | 105 | bool·al_is_mouse_installed(void) |
106 | Source_Code | 106 | Source_Code |
107 | Returns·true·if·al_install_mouse·was·called·successfully. | 107 | Returns·true·if·al_install_mouse·was·called·successfully. |
108 | ******·al_uninstall_mouse·****** | 108 | ******·al_uninstall_mouse·****** |
109 | void·al_uninstall_mouse(void) | 109 | void·al_uninstall_mouse(void) |
110 | Source_Code | 110 | Source_Code |
Offset 199, 15 lines modified | Offset 199, 15 lines modified | ||
199 | Source_Code | 199 | Source_Code |
200 | Retrieve·the·mouse·event·source.·All·mouse_events·are·generated·by·this·event | 200 | Retrieve·the·mouse·event·source.·All·mouse_events·are·generated·by·this·event |
201 | source. | 201 | source. |
202 | Returns·NULL·if·the·mouse·subsystem·was·not·installed. | 202 | Returns·NULL·if·the·mouse·subsystem·was·not·installed. |
203 | Examples: | 203 | Examples: |
204 | ····*·ex_display_events.c | 204 | ····*·ex_display_events.c |
205 | ····*·ex_mouse_warp.c | 205 | ····*·ex_mouse_warp.c |
206 | ····*·ex_ | 206 | ····*·ex_noframe.c |
207 | ******·al_set_mouse_wheel_precision·****** | 207 | ******·al_set_mouse_wheel_precision·****** |
208 | void·al_set_mouse_wheel_precision(int·precision) | 208 | void·al_set_mouse_wheel_precision(int·precision) |
209 | Source_Code | 209 | Source_Code |
210 | Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This·precision | 210 | Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This·precision |
211 | manifests·itself·as·a·multiplier·on·the·dz·and·dw·fields·in·mouse·events.·It | 211 | manifests·itself·as·a·multiplier·on·the·dz·and·dw·fields·in·mouse·events.·It |
212 | also·affects·the·z·and·w·fields·of·events·and·ALLEGRO_MOUSE_STATE,·but·not·in·a | 212 | also·affects·the·z·and·w·fields·of·events·and·ALLEGRO_MOUSE_STATE,·but·not·in·a |
213 | simple·way·if·you·alter·the·precision·often,·so·it·is·suggested·to·reset·those | 213 | simple·way·if·you·alter·the·precision·often,·so·it·is·suggested·to·reset·those |
Offset 344, 8 lines modified | Offset 344, 8 lines modified | ||
344 | See·also:·al_ungrab_mouse | 344 | See·also:·al_ungrab_mouse |
345 | *****·al_ungrab_mouse·***** | 345 | *****·al_ungrab_mouse·***** |
346 | bool·al_ungrab_mouse(void) | 346 | bool·al_ungrab_mouse(void) |
347 | Source_Code | 347 | Source_Code |
348 | Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the·program. | 348 | Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the·program. |
349 | ·····Note:·not·yet·implemented·on·Mac·OS·X. | 349 | ·····Note:·not·yet·implemented·on·Mac·OS·X. |
350 | See·also:·al_grab_mouse | 350 | See·also:·al_grab_mouse |
351 | Allegro·version·5.2.8·-·Last·updated:·202 | 351 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:38·UTC |
Offset 236, 20 lines modified | Offset 236, 32 lines modified | ||
236 | <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> | 236 | <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> |
237 | <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1> | 237 | <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1> |
238 | <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> | 238 | <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> |
239 | <p><a | 239 | <p><a |
240 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source | 240 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source |
241 | Code</a></p> | 241 | Code</a></p> |
242 | <p>Opaque·handle·to·a·native·file·dialog.</p> | 242 | <p>Opaque·handle·to·a·native·file·dialog.</p> |
243 | <p>Examples:</p> | ||
244 | <ul> | ||
245 | <li><a | ||
246 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L27">ex_native_filechooser.c</a></li> | ||
247 | </ul> | ||
243 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> | 248 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> |
244 | <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> | 249 | <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> |
245 | <p><a | 250 | <p><a |
246 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source | 251 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source |
247 | Code</a></p> | 252 | Code</a></p> |
248 | <p>Opaque·handle·to·a·text·log·window.</p> | 253 | <p>Opaque·handle·to·a·text·log·window.</p> |
254 | <p>Examples:</p> | ||
255 | <ul> | ||
256 | <li><a | ||
257 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L27">common.c</a></li> | ||
258 | <li><a | ||
259 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L32">ex_native_filechooser.c</a></li> | ||
260 | </ul> | ||
249 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> | 261 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> |
250 | <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> | 262 | <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> |
251 | <p><a | 263 | <p><a |
252 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L15">Source | 264 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L15">Source |
253 | Code</a></p> | 265 | Code</a></p> |
254 | <p>Initialise·the·native·dialog·addon.</p> | 266 | <p>Initialise·the·native·dialog·addon.</p> |
255 | <p>Returns·true·on·success,·false·on·error.</p> | 267 | <p>Returns·true·on·success,·false·on·error.</p> |
Offset 261, 14 lines modified | Offset 273, 23 lines modified | ||
261 | is·<a | 273 | is·<a |
262 | href="native_dialog.html#al_show_native_message_box">al_show_native_message_box</a>, | 274 | href="native_dialog.html#al_show_native_message_box">al_show_native_message_box</a>, |
263 | which·may·be·useful·to·show·an·error·message·if·Allegro·fails·to | 275 | which·may·be·useful·to·show·an·error·message·if·Allegro·fails·to |
264 | initialise.</p> | 276 | initialise.</p> |
265 | </blockquote> | 277 | </blockquote> |
266 | <p>See·also:·<a | 278 | <p>See·also:·<a |
267 | href="native_dialog.html#al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</a></p> | 279 | href="native_dialog.html#al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</a></p> |
280 | <p>Examples:</p> | ||
281 | <ul> | ||
282 | <li><a | ||
283 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L39">common.c</a></li> | ||
284 | <li><a | ||
285 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L58">ex_window_maximized.c</a></li> | ||
286 | <li><a | ||
287 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_menu.c#L81">ex_menu.c</a></li> | ||
288 | </ul> | ||
268 | <h1 | 289 | <h1 |
269 | id="al_is_native_dialog_addon_initialized">al_is_native_dialog_addon_initialized</h1> | 290 | id="al_is_native_dialog_addon_initialized">al_is_native_dialog_addon_initialized</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="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> | 291 | <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> |
271 | <p><a | 292 | <p><a |
272 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L32">Source | 293 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L32">Source |
273 | Code</a></p> | 294 | Code</a></p> |
274 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise | 295 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise |
Offset 348, 53 lines modified | Offset 369, 78 lines modified | ||
348 | and·<a | 369 | and·<a |
349 | href="native_dialog.html#al_get_native_file_dialog_path">al_get_native_file_dialog_path</a>. | 370 | href="native_dialog.html#al_get_native_file_dialog_path">al_get_native_file_dialog_path</a>. |
350 | When·you·are·done,·call·<a | 371 | When·you·are·done,·call·<a |
351 | href="native_dialog.html#al_destroy_native_file_dialog">al_destroy_native_file_dialog</a> | 372 | href="native_dialog.html#al_destroy_native_file_dialog">al_destroy_native_file_dialog</a> |
352 | on·it.</p> | 373 | on·it.</p> |
353 | <p>If·a·dialog·window·could·not·be·created·then·this·function·returns | 374 | <p>If·a·dialog·window·could·not·be·created·then·this·function·returns |
354 | NULL.</p> | 375 | NULL.</p> |
376 | <p>Examples:</p> | ||
377 | <ul> | ||
378 | <li><a | ||
379 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L101">ex_native_filechooser.c</a></li> | ||
380 | </ul> | ||
355 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> | 381 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> |
356 | <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> | 382 | <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> |
357 | <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> | 383 | <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> |
358 | <p><a | 384 | <p><a |
359 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L74">Source | 385 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L74">Source |
360 | Code</a></p> | 386 | Code</a></p> |
361 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given | 387 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given |
362 | display·is·treated·as·the·parent·if·possible.</p> | 388 | display·is·treated·as·the·parent·if·possible.</p> |
363 | <p>This·function·blocks·the·calling·thread·until·it·returns,·so·you·may | 389 | <p>This·function·blocks·the·calling·thread·until·it·returns,·so·you·may |
364 | want·to·spawn·a·thread·with·<a | 390 | want·to·spawn·a·thread·with·<a |
365 | href="threads.html#al_create_thread">al_create_thread</a>·and·call·it | 391 | href="threads.html#al_create_thread">al_create_thread</a>·and·call·it |
366 | from·inside·that·thread.</p> | 392 | from·inside·that·thread.</p> |
367 | <p>Returns·true·on·success,·false·on·failure.</p> | 393 | <p>Returns·true·on·success,·false·on·failure.</p> |
394 | <p>Examples:</p> | ||
395 | <ul> | ||
396 | <li><a | ||
397 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L55">ex_native_filechooser.c</a></li> | ||
398 | </ul> | ||
368 | <h1 | 399 | <h1 |
369 | id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> | 400 | id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> |
370 | <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> | 401 | <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> |
371 | <p><a | 402 | <p><a |
372 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L83">Source | 403 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L83">Source |
373 | Code</a></p> | 404 | Code</a></p> |
374 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was | 405 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was |
375 | cancelled.</p> | 406 | cancelled.</p> |
407 | <p>Examples:</p> | ||
408 | <ul> | ||
409 | <li><a | ||
410 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L144">ex_native_filechooser.c</a></li> | ||
411 | </ul> | ||
376 | <h1 | 412 | <h1 |
377 | id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> | 413 | id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> |
378 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_native_file_dialog_path<span·class="op">(</span></span> | 414 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_native_file_dialog_path<span·class="op">(</span></span> |
379 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">,</span>·<span·class="dt">size_t</span>·i<span·class="op">)</span></span></code></pre></div> | 415 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">,</span>·<span·class="dt">size_t</span>·i<span·class="op">)</span></span></code></pre></div> |
380 | <p><a | 416 | <p><a |
381 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L91">Source | 417 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L91">Source |
382 | Code</a></p> | 418 | Code</a></p> |
383 | <p>Returns·one·of·the·selected·paths·with·index·<code>i</code>.·The | 419 | <p>Returns·one·of·the·selected·paths·with·index·<code>i</code>.·The |
384 | index·should·range·from·<code>0</code>·to·the·return·value·of·<a | 420 | index·should·range·from·<code>0</code>·to·the·return·value·of·<a |
385 | href="native_dialog.html#al_get_native_file_dialog_count">al_get_native_file_dialog_count</a> | 421 | href="native_dialog.html#al_get_native_file_dialog_count">al_get_native_file_dialog_count</a> |
386 | <code>-1</code>.</p> | 422 | <code>-1</code>.</p> |
423 | <p>Examples:</p> | ||
424 | <ul> | ||
425 | <li><a | ||
426 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L151">ex_native_filechooser.c</a></li> | ||
427 | </ul> | ||
387 | <h1 | 428 | <h1 |
388 | id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1> | 429 | id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1> |
389 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_native_file_dialog<span·class="op">(</span>ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div> | 430 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_native_file_dialog<span·class="op">(</span>ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div> |
390 | <p><a | 431 | <p><a |
391 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L102">Source | 432 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L102">Source |
392 | Code</a></p> | 433 | Code</a></p> |
393 | <p>Frees·up·all·resources·used·by·the·file·dialog.</p> | 434 | <p>Frees·up·all·resources·used·by·the·file·dialog.</p> |
435 | <p>Examples:</p> | ||
436 | <ul> | ||
437 | <li><a | ||
438 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L133">ex_native_filechooser.c</a></li> | ||
Max diff block lines reached; 29333/37670 bytes (77.87%) of diff not shown. |
Offset 94, 30 lines modified | Offset 94, 39 lines modified | ||
94 | These·functions·are·declared·in·the·following·header·file.·Link·with | 94 | These·functions·are·declared·in·the·following·header·file.·Link·with |
95 | allegro_dialog. | 95 | allegro_dialog. |
96 | ·#include·<allegro5/allegro_native_dialog.h> | 96 | ·#include·<allegro5/allegro_native_dialog.h> |
97 | ******·ALLEGRO_FILECHOOSER·****** | 97 | ******·ALLEGRO_FILECHOOSER·****** |
98 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; | 98 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; |
99 | Source_Code | 99 | Source_Code |
100 | Opaque·handle·to·a·native·file·dialog. | 100 | Opaque·handle·to·a·native·file·dialog. |
101 | Examples: | ||
102 | ····*·ex_native_filechooser.c | ||
101 | ******·ALLEGRO_TEXTLOG·****** | 103 | ******·ALLEGRO_TEXTLOG·****** |
102 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | 104 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; |
103 | Source_Code | 105 | Source_Code |
104 | Opaque·handle·to·a·text·log·window. | 106 | Opaque·handle·to·a·text·log·window. |
107 | Examples: | ||
108 | ····*·common.c | ||
109 | ····*·ex_native_filechooser.c | ||
105 | ******·al_init_native_dialog_addon·****** | 110 | ******·al_init_native_dialog_addon·****** |
106 | bool·al_init_native_dialog_addon(void) | 111 | bool·al_init_native_dialog_addon(void) |
107 | Source_Code | 112 | Source_Code |
108 | Initialise·the·native·dialog·addon. | 113 | Initialise·the·native·dialog·addon. |
109 | Returns·true·on·success,·false·on·error. | 114 | Returns·true·on·success,·false·on·error. |
110 | Since:·5.0.9,·5.1.0 | 115 | Since:·5.0.9,·5.1.0 |
111 | ·····Note:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called | 116 | ·····Note:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called |
112 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future | 117 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future |
113 | ·····functionality·may·require·explicit·initialisation.·An·exception·is | 118 | ·····functionality·may·require·explicit·initialisation.·An·exception·is |
114 | ·····al_show_native_message_box,·which·may·be·useful·to·show·an·error | 119 | ·····al_show_native_message_box,·which·may·be·useful·to·show·an·error |
115 | ·····message·if·Allegro·fails·to·initialise. | 120 | ·····message·if·Allegro·fails·to·initialise. |
116 | See·also:·al_shutdown_native_dialog_addon | 121 | See·also:·al_shutdown_native_dialog_addon |
122 | Examples: | ||
123 | ····*·common.c | ||
124 | ····*·ex_window_maximized.c | ||
125 | ····*·ex_menu.c | ||
117 | ******·al_is_native_dialog_addon_initialized·****** | 126 | ******·al_is_native_dialog_addon_initialized·****** |
118 | bool·al_is_native_dialog_addon_initialized(void) | 127 | bool·al_is_native_dialog_addon_initialized(void) |
119 | Source_Code | 128 | Source_Code |
120 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns | 129 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns |
121 | false. | 130 | false. |
122 | Since:·5.2.6 | 131 | Since:·5.2.6 |
123 | ******·al_shutdown_native_dialog_addon·****** | 132 | ******·al_shutdown_native_dialog_addon·****** |
Offset 165, 37 lines modified | Offset 174, 47 lines modified | ||
165 | ······If·supported,·allow·selecting·multiple·files. | 174 | ······If·supported,·allow·selecting·multiple·files. |
166 | Returns: | 175 | Returns: |
167 | A·handle·to·the·dialog·which·you·can·pass·to·al_show_native_file_dialog·to | 176 | A·handle·to·the·dialog·which·you·can·pass·to·al_show_native_file_dialog·to |
168 | display·it,·and·from·which·you·then·can·query·the·results·using | 177 | display·it,·and·from·which·you·then·can·query·the·results·using |
169 | al_get_native_file_dialog_count·and·al_get_native_file_dialog_path.·When·you | 178 | al_get_native_file_dialog_count·and·al_get_native_file_dialog_path.·When·you |
170 | are·done,·call·al_destroy_native_file_dialog·on·it. | 179 | are·done,·call·al_destroy_native_file_dialog·on·it. |
171 | If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL. | 180 | If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL. |
181 | Examples: | ||
182 | ····*·ex_native_filechooser.c | ||
172 | ******·al_show_native_file_dialog·****** | 183 | ******·al_show_native_file_dialog·****** |
173 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | 184 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, |
174 | ···ALLEGRO_FILECHOOSER·*dialog) | 185 | ···ALLEGRO_FILECHOOSER·*dialog) |
175 | Source_Code | 186 | Source_Code |
176 | Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is | 187 | Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is |
177 | treated·as·the·parent·if·possible. | 188 | treated·as·the·parent·if·possible. |
178 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to | 189 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to |
179 | spawn·a·thread·with·al_create_thread·and·call·it·from·inside·that·thread. | 190 | spawn·a·thread·with·al_create_thread·and·call·it·from·inside·that·thread. |
180 | Returns·true·on·success,·false·on·failure. | 191 | Returns·true·on·success,·false·on·failure. |
192 | Examples: | ||
193 | ····*·ex_native_filechooser.c | ||
181 | ******·al_get_native_file_dialog_count·****** | 194 | ******·al_get_native_file_dialog_count·****** |
182 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | 195 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) |
183 | Source_Code | 196 | Source_Code |
184 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. | 197 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. |
198 | Examples: | ||
199 | ····*·ex_native_filechooser.c | ||
185 | ******·al_get_native_file_dialog_path·****** | 200 | ******·al_get_native_file_dialog_path·****** |
186 | const·char·*al_get_native_file_dialog_path( | 201 | const·char·*al_get_native_file_dialog_path( |
187 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | 202 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) |
188 | Source_Code | 203 | Source_Code |
189 | Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0 | 204 | Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0 |
190 | to·the·return·value·of·al_get_native_file_dialog_count·-1. | 205 | to·the·return·value·of·al_get_native_file_dialog_count·-1. |
206 | Examples: | ||
207 | ····*·ex_native_filechooser.c | ||
191 | ******·al_destroy_native_file_dialog·****** | 208 | ******·al_destroy_native_file_dialog·****** |
192 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | 209 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) |
193 | Source_Code | 210 | Source_Code |
194 | Frees·up·all·resources·used·by·the·file·dialog. | 211 | Frees·up·all·resources·used·by·the·file·dialog. |
212 | Examples: | ||
213 | ····*·ex_native_filechooser.c | ||
195 | ******·al_show_native_message_box·****** | 214 | ******·al_show_native_message_box·****** |
196 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | 215 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, |
197 | ···char·const·*title,·char·const·*heading,·char·const·*text, | 216 | ···char·const·*title,·char·const·*heading,·char·const·*text, |
198 | ···char·const·*buttons,·int·flags) | 217 | ···char·const·*buttons,·int·flags) |
199 | Source_Code | 218 | Source_Code |
200 | Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error | 219 | Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error |
201 | message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL, | 220 | message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL, |
Offset 238, 14 lines modified | Offset 257, 18 lines modified | ||
238 | ··"If·you·click·yes·then·you·are·confirming·that·\"Yes\"·" | 257 | ··"If·you·click·yes·then·you·are·confirming·that·\"Yes\"·" |
239 | ··"is·your·response·to·the·query·which·you·have·" | 258 | ··"is·your·response·to·the·query·which·you·have·" |
240 | ··"generated·by·the·action·you·took·to·open·this·" | 259 | ··"generated·by·the·action·you·took·to·open·this·" |
241 | ··"message·box.", | 260 | ··"message·box.", |
242 | ··NULL, | 261 | ··NULL, |
243 | ··ALLEGRO_MESSAGEBOX_YES_NO | 262 | ··ALLEGRO_MESSAGEBOX_YES_NO |
244 | ); | 263 | ); |
264 | Examples: | ||
265 | ····*·ex_nodisplay.c | ||
266 | ····*·common.c | ||
267 | ····*·ex_menu.c | ||
245 | ******·al_open_native_text_log·****** | 268 | ******·al_open_native_text_log·****** |
246 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) | 269 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) |
247 | Source_Code | 270 | Source_Code |
248 | Opens·a·window·to·which·you·can·append·log·messages·with | 271 | Opens·a·window·to·which·you·can·append·log·messages·with |
249 | al_append_native_text_log.·This·can·be·useful·for·debugging·if·you·donât·want | 272 | al_append_native_text_log.·This·can·be·useful·for·debugging·if·you·donât·want |
250 | to·depend·on·a·console·being·available. | 273 | to·depend·on·a·console·being·available. |
251 | Use·al_close_native_text_log·to·close·the·window·again. | 274 | Use·al_close_native_text_log·to·close·the·window·again. |
Offset 255, 40 lines modified | Offset 278, 53 lines modified | ||
255 | ······button·is·pressed,·an·event·is·generated;·see | 278 | ······button·is·pressed,·an·event·is·generated;·see |
256 | ······al_get_native_text_log_event_source. | 279 | ······al_get_native_text_log_event_source. |
257 | ··ALLEGRO_TEXTLOG_MONOSPACE | 280 | ··ALLEGRO_TEXTLOG_MONOSPACE |
258 | ······Use·a·monospace·font·to·display·the·text. | 281 | ······Use·a·monospace·font·to·display·the·text. |
259 | Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows | 282 | Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows |
260 | are·not·implemented·on·the·platform. | 283 | are·not·implemented·on·the·platform. |
261 | See·also:·al_append_native_text_log,·al_close_native_text_log | 284 | See·also:·al_append_native_text_log,·al_close_native_text_log |
285 | Examples: | ||
286 | ····*·common.c | ||
287 | ····*·ex_native_filechooser.c | ||
262 | ******·al_close_native_text_log·****** | 288 | ******·al_close_native_text_log·****** |
263 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) | 289 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) |
264 | Source_Code | 290 | Source_Code |
265 | Closes·a·message·log·window·opened·with·al_open_native_text_log·earlier. | 291 | Closes·a·message·log·window·opened·with·al_open_native_text_log·earlier. |
266 | Does·nothing·if·passed·NULL. | 292 | Does·nothing·if·passed·NULL. |
267 | See·also:·al_open_native_text_log | 293 | See·also:·al_open_native_text_log |
294 | Examples: | ||
295 | ····*·common.c | ||
296 | ····*·ex_native_filechooser.c | ||
268 | ******·al_append_native_text_log·****** | 297 | ******·al_append_native_text_log·****** |
Max diff block lines reached; 10626/15717 bytes (67.61%) of diff not shown. |
Offset 417, 12 lines modified | Offset 417, 12 lines modified | ||
417 | <span·id="cb18-2"><a·href="#cb18-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">GL_ARB_texture_non_power_of_two</span><span·class="ot">=</span><span·class="dv">0</span></span> | 417 | <span·id="cb18-2"><a·href="#cb18-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">GL_ARB_texture_non_power_of_two</span><span·class="ot">=</span><span·class="dv">0</span></span> |
418 | <span·id="cb18-3"><a·href="#cb18-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">GL_EXT_framebuffer_object</span><span·class="ot">=</span><span·class="dv">0</span></span></code></pre></div> | 418 | <span·id="cb18-3"><a·href="#cb18-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">GL_EXT_framebuffer_object</span><span·class="ot">=</span><span·class="dv">0</span></span></code></pre></div> |
419 | <p>Any·extension·which·appears·in·the·section·is·treated·as·not | 419 | <p>Any·extension·which·appears·in·the·section·is·treated·as·not |
420 | available·(it·does·not·matter·if·you·set·it·to·0·or·any·other | 420 | available·(it·does·not·matter·if·you·set·it·to·0·or·any·other |
421 | value).</p> | 421 | value).</p> |
422 | <p·class="timestamp"> | 422 | <p·class="timestamp"> |
423 | Allegro·version·5.2.8 | 423 | Allegro·version·5.2.8 |
424 | ·-·Last·updated:·202 | 424 | ·-·Last·updated:·2024-01-08·05:22:49·UTC |
425 | </p> | 425 | </p> |
426 | </div> | 426 | </div> |
427 | </body> | 427 | </body> |
428 | </html> | 428 | </html> |
Offset 214, 8 lines modified | Offset 214, 8 lines modified | ||
214 | You·can·disable·the·detection·of·any·OpenGL·extension·by·Allegro·with·a·section | 214 | You·can·disable·the·detection·of·any·OpenGL·extension·by·Allegro·with·a·section |
215 | like·this·in·allegro5.cfg: | 215 | like·this·in·allegro5.cfg: |
216 | [opengl_disabled_extensions] | 216 | [opengl_disabled_extensions] |
217 | GL_ARB_texture_non_power_of_two=0 | 217 | GL_ARB_texture_non_power_of_two=0 |
218 | GL_EXT_framebuffer_object=0 | 218 | GL_EXT_framebuffer_object=0 |
219 | Any·extension·which·appears·in·the·section·is·treated·as·not·available·(it·does | 219 | Any·extension·which·appears·in·the·section·is·treated·as·not·available·(it·does |
220 | not·matter·if·you·set·it·to·0·or·any·other·value). | 220 | not·matter·if·you·set·it·to·0·or·any·other·value). |
221 | Allegro·version·5.2.8·-·Last·updated:·202 | 221 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:49·UTC |
Offset 625, 12 lines modified | Offset 625, 12 lines modified | ||
625 | <li><a | 625 | <li><a |
626 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L69">ex_path.c</a></li> | 626 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L69">ex_path.c</a></li> |
627 | <li><a | 627 | <li><a |
628 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L522">ex_path_test.c</a></li> | 628 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L522">ex_path_test.c</a></li> |
629 | </ul> | 629 | </ul> |
630 | <p·class="timestamp"> | 630 | <p·class="timestamp"> |
631 | Allegro·version·5.2.8 | 631 | Allegro·version·5.2.8 |
632 | ·-·Last·updated:·202 | 632 | ·-·Last·updated:·2024-01-08·05:22:39·UTC |
633 | </p> | 633 | </p> |
634 | </div> | 634 | </div> |
635 | </body> | 635 | </body> |
636 | </html> | 636 | </html> |
Offset 323, 8 lines modified | Offset 323, 8 lines modified | ||
323 | Note·that·this·does·not·collapse·âx/../yâ·sections·into·âyâ.·This·is·by | 323 | Note·that·this·does·not·collapse·âx/../yâ·sections·into·âyâ.·This·is·by |
324 | design.·If·â/fooâ·on·your·system·is·a·symlink·to·â/bar/bazâ,·then·â/ | 324 | design.·If·â/fooâ·on·your·system·is·a·symlink·to·â/bar/bazâ,·then·â/ |
325 | foo/../quuxâ·is·actually·â/bar/quuxâ,·not·â/quuxâ·as·a·naive·removal | 325 | foo/../quuxâ·is·actually·â/bar/quuxâ,·not·â/quuxâ·as·a·naive·removal |
326 | of·â..â·components·would·give·you. | 326 | of·â..â·components·would·give·you. |
327 | Examples: | 327 | Examples: |
328 | ····*·ex_path.c | 328 | ····*·ex_path.c |
329 | ····*·ex_path_test.c | 329 | ····*·ex_path_test.c |
330 | Allegro·version·5.2.8·-·Last·updated:·202 | 330 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:39·UTC |
Offset 215, 22 lines modified | Offset 215, 27 lines modified | ||
215 | <blockquote> | 215 | <blockquote> |
216 | <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and | 216 | <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and |
217 | writing,·which·means·that·Windows-style·newlines·will·not·be | 217 | writing,·which·means·that·Windows-style·newlines·will·not·be |
218 | preserved.</p> | 218 | preserved.</p> |
219 | </blockquote> | 219 | </blockquote> |
220 | <p>See·also:·<a | 220 | <p>See·also:·<a |
221 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> | 221 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> |
222 | <p>Examples:</p> | ||
223 | <ul> | ||
224 | <li><a | ||
225 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L149">ex_physfs.c</a></li> | ||
226 | </ul> | ||
222 | <h1 | 227 | <h1 |
223 | id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> | 228 | id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> |
224 | <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> | 229 | <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> |
225 | <p><a | 230 | <p><a |
226 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source | 231 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source |
227 | Code</a></p> | 232 | Code</a></p> |
228 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 233 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
229 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 234 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
230 | <p·class="timestamp"> | 235 | <p·class="timestamp"> |
231 | Allegro·version·5.2.8 | 236 | Allegro·version·5.2.8 |
232 | ·-·Last·updated:·202 | 237 | ·-·Last·updated:·2024-01-08·05:23:01·UTC |
233 | </p> | 238 | </p> |
234 | </div> | 239 | </div> |
235 | </body> | 240 | </body> |
236 | </html> | 241 | </html> |
Offset 74, 13 lines modified | Offset 74, 15 lines modified | ||
74 | al_restore_state. | 74 | al_restore_state. |
75 | ·····Note:·due·to·an·oversight,·this·function·differs·from | 75 | ·····Note:·due·to·an·oversight,·this·function·differs·from |
76 | ·····al_set_new_file_interface·and·al_set_standard_file_interface·which | 76 | ·····al_set_new_file_interface·and·al_set_standard_file_interface·which |
77 | ·····only·alter·the·current·ALLEGRO_FILE_INTERFACE. | 77 | ·····only·alter·the·current·ALLEGRO_FILE_INTERFACE. |
78 | ·····Note:·PhysFS·does·not·support·the·text-mode·reading·and·writing, | 78 | ·····Note:·PhysFS·does·not·support·the·text-mode·reading·and·writing, |
79 | ·····which·means·that·Windows-style·newlines·will·not·be·preserved. | 79 | ·····which·means·that·Windows-style·newlines·will·not·be·preserved. |
80 | See·also:·al_set_new_file_interface. | 80 | See·also:·al_set_new_file_interface. |
81 | Examples: | ||
82 | ····*·ex_physfs.c | ||
81 | ******·al_get_allegro_physfs_version·****** | 83 | ******·al_get_allegro_physfs_version·****** |
82 | uint32_t·al_get_allegro_physfs_version(void) | 84 | uint32_t·al_get_allegro_physfs_version(void) |
83 | Source_Code | 85 | Source_Code |
84 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 86 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
85 | al_get_allegro_version. | 87 | al_get_allegro_version. |
86 | Allegro·version·5.2.8·-·Last·updated:·202 | 88 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:23:01·UTC |
Offset 412, 12 lines modified | Offset 412, 12 lines modified | ||
412 | <p>Examples:</p> | 412 | <p>Examples:</p> |
413 | <ul> | 413 | <ul> |
414 | <li><a | 414 | <li><a |
415 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_icon2.c#L45">ex_icon2.c</a></li> | 415 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_icon2.c#L45">ex_icon2.c</a></li> |
416 | </ul> | 416 | </ul> |
417 | <p·class="timestamp"> | 417 | <p·class="timestamp"> |
418 | Allegro·version·5.2.8 | 418 | Allegro·version·5.2.8 |
419 | ·-·Last·updated:·202 | 419 | ·-·Last·updated:·2024-01-08·05:22:47·UTC |
420 | </p> | 420 | </p> |
421 | </div> | 421 | </div> |
422 | </body> | 422 | </body> |
423 | </html> | 423 | </html> |
Offset 203, 8 lines modified | Offset 203, 8 lines modified | ||
203 | doesnât·work·and·you·need·to·use·a·.desktop·file.·But·with·this·function·you | 203 | doesnât·work·and·you·need·to·use·a·.desktop·file.·But·with·this·function·you |
204 | can·set·an·icon·before·calling·al_create_display.·This·works·by·setting·the | 204 | can·set·an·icon·before·calling·al_create_display.·This·works·by·setting·the |
205 | icon·before·XMapWindow. | 205 | icon·before·XMapWindow. |
206 | Since:·5.2.3 | 206 | Since:·5.2.3 |
207 | ·····Unstable_API:·New·API. | 207 | ·····Unstable_API:·New·API. |
208 | Examples: | 208 | Examples: |
209 | ····*·ex_icon2.c | 209 | ····*·ex_icon2.c |
210 | Allegro·version·5.2.8·-·Last·updated:·202 | 210 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:47·UTC |
Offset 283, 14 lines modified | Offset 283, 23 lines modified | ||
283 | <p><a | 283 | <p><a |
284 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L48">Source | 284 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L48">Source |
285 | Code</a></p> | 285 | Code</a></p> |
286 | <p>Initializes·the·primitives·addon.</p> | 286 | <p>Initializes·the·primitives·addon.</p> |
287 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> | 287 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> |
288 | <p>See·also:·<a | 288 | <p>See·also:·<a |
289 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> | 289 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> |
290 | <p>Examples:</p> | ||
291 | <ul> | ||
292 | <li><a | ||
293 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L55">ex_touch_input.c</a></li> | ||
294 | <li><a | ||
295 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L154">ex_blend_bench.c</a></li> | ||
296 | <li><a | ||
297 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_client.c#L157">ex_enet_client.c</a></li> | ||
298 | </ul> | ||
290 | <h2 | 299 | <h2 |
291 | id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2> | 300 | id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2> |
292 | <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> | 301 | <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> |
293 | <p><a | 302 | <p><a |
294 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source | 303 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source |
295 | Code</a></p> | 304 | Code</a></p> |
296 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise | 305 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise |
Offset 414, 14 lines modified | Offset 423, 23 lines modified | ||
414 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> | 423 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> |
415 | <li>color·-·Color·of·the·line</li> | 424 | <li>color·-·Color·of·the·line</li> |
416 | <li>thickness·-·Thickness·of·the·line,·pass·<code><=·0</code>·to·draw | 425 | <li>thickness·-·Thickness·of·the·line,·pass·<code><=·0</code>·to·draw |
417 | hairline·lines</li> | 426 | hairline·lines</li> |
418 | </ul> | 427 | </ul> |
419 | <p>See·also:·<a | 428 | <p>See·also:·<a |
420 | href="primitives.html#al_draw_soft_line">al_draw_soft_line</a></p> | 429 | href="primitives.html#al_draw_soft_line">al_draw_soft_line</a></p> |
430 | <p>Examples:</p> | ||
431 | <ul> | ||
432 | <li><a | ||
433 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L85">ex_font_justify.cpp</a></li> | ||
434 | <li><a | ||
435 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L17">ex_resize.c</a></li> | ||
436 | <li><a | ||
437 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L59">ex_mouse_warp.c</a></li> | ||
438 | </ul> | ||
421 | <h2·id="al_draw_triangle">al_draw_triangle</h2> | 439 | <h2·id="al_draw_triangle">al_draw_triangle</h2> |
422 | <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> | 440 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">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> |
423 | <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> | 441 | <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> |
424 | <p><a | 442 | <p><a |
425 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L126">Source | 443 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L126">Source |
426 | Code</a></p> | 444 | Code</a></p> |
427 | <p>Draws·an·outlined·triangle.</p> | 445 | <p>Draws·an·outlined·triangle.</p> |
Offset 432, 28 lines modified | Offset 450, 38 lines modified | ||
432 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to | 450 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to |
433 | draw·hairline·lines</li> | 451 | draw·hairline·lines</li> |
434 | </ul> | 452 | </ul> |
435 | <p>See·also:·<a | 453 | <p>See·also:·<a |
436 | href="primitives.html#al_draw_filled_triangle">al_draw_filled_triangle</a>, | 454 | href="primitives.html#al_draw_filled_triangle">al_draw_filled_triangle</a>, |
437 | <a | 455 | <a |
438 | href="primitives.html#al_draw_soft_triangle">al_draw_soft_triangle</a></p> | 456 | href="primitives.html#al_draw_soft_triangle">al_draw_soft_triangle</a></p> |
457 | <p>Examples:</p> | ||
458 | <ul> | ||
459 | <li><a | ||
460 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L321">ex_prim.c</a></li> | ||
461 | </ul> | ||
439 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> | 462 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> |
440 | <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> | 463 | <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> |
441 | <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> | 464 | <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> |
442 | <p><a | 465 | <p><a |
443 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L339">Source | 466 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L339">Source |
444 | Code</a></p> | 467 | Code</a></p> |
445 | <p>Draws·a·filled·triangle.</p> | 468 | <p>Draws·a·filled·triangle.</p> |
446 | <p><em>Parameters:</em></p> | 469 | <p><em>Parameters:</em></p> |
447 | <ul> | 470 | <ul> |
448 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> | 471 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> |
449 | <li>color·-·Color·of·the·triangle</li> | 472 | <li>color·-·Color·of·the·triangle</li> |
450 | </ul> | 473 | </ul> |
451 | <p>See·also:·<a | 474 | <p>See·also:·<a |
452 | href="primitives.html#al_draw_triangle">al_draw_triangle</a></p> | 475 | href="primitives.html#al_draw_triangle">al_draw_triangle</a></p> |
476 | <p>Examples:</p> | ||
477 | <ul> | ||
478 | <li><a | ||
479 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L350">ex_prim.c</a></li> | ||
480 | </ul> | ||
453 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> | 481 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> |
454 | <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> | 482 | <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> |
455 | <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> | 483 | <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> |
456 | <p><a | 484 | <p><a |
457 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L361">Source | 485 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L361">Source |
458 | Code</a></p> | 486 | Code</a></p> |
459 | <p>Draws·an·outlined·rectangle.</p> | 487 | <p>Draws·an·outlined·rectangle.</p> |
Offset 465, 14 lines modified | Offset 493, 23 lines modified | ||
465 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to | 493 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to |
466 | draw·hairline·lines</li> | 494 | draw·hairline·lines</li> |
467 | </ul> | 495 | </ul> |
468 | <p>See·also:·<a | 496 | <p>See·also:·<a |
469 | href="primitives.html#al_draw_filled_rectangle">al_draw_filled_rectangle</a>, | 497 | href="primitives.html#al_draw_filled_rectangle">al_draw_filled_rectangle</a>, |
470 | <a | 498 | <a |
471 | href="primitives.html#al_draw_rounded_rectangle">al_draw_rounded_rectangle</a></p> | 499 | href="primitives.html#al_draw_rounded_rectangle">al_draw_rounded_rectangle</a></p> |
500 | <p>Examples:</p> | ||
501 | <ul> | ||
502 | <li><a | ||
503 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L24">ex_mouse.c</a></li> | ||
504 | <li><a | ||
505 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L83">ex_font_justify.cpp</a></li> | ||
506 | <li><a | ||
507 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_subbitmap.c#L206">ex_subbitmap.c</a></li> | ||
508 | </ul> | ||
472 | <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2> | 509 | <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2> |
473 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_filled_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> | 510 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_filled_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> |
474 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">)</span></span></code></pre></div> | 511 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">)</span></span></code></pre></div> |
475 | <p><a | 512 | <p><a |
476 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L406">Source | 513 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L406">Source |
477 | Code</a></p> | 514 | Code</a></p> |
478 | <p>Draws·a·filled·rectangle.</p> | 515 | <p>Draws·a·filled·rectangle.</p> |
Offset 481, 14 lines modified | Offset 518, 23 lines modified | ||
481 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the | 518 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the |
482 | rectangle</li> | 519 | rectangle</li> |
483 | <li>color·-·Color·of·the·rectangle</li> | 520 | <li>color·-·Color·of·the·rectangle</li> |
484 | </ul> | 521 | </ul> |
485 | <p>See·also:·<a | 522 | <p>See·also:·<a |
486 | href="primitives.html#al_draw_rectangle">al_draw_rectangle</a>,·<a | 523 | href="primitives.html#al_draw_rectangle">al_draw_rectangle</a>,·<a |
487 | href="primitives.html#al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</a></p> | 524 | href="primitives.html#al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</a></p> |
525 | <p>Examples:</p> | ||
526 | <ul> | ||
527 | <li><a | ||
528 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L23">ex_mouse.c</a></li> | ||
529 | <li><a | ||
530 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer.c#L91">ex_timer.c</a></li> | ||
531 | <li><a | ||
532 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L103">ex_window_maximized.c</a></li> | ||
533 | </ul> | ||
Max diff block lines reached; 53284/61316 bytes (86.90%) of diff not shown. |
Offset 127, 14 lines modified | Offset 127, 18 lines modified | ||
127 | al_get_allegro_version. | 127 | al_get_allegro_version. |
128 | *****·al_init_primitives_addon·***** | 128 | *****·al_init_primitives_addon·***** |
129 | bool·al_init_primitives_addon(void) | 129 | bool·al_init_primitives_addon(void) |
130 | Source_Code | 130 | Source_Code |
131 | Initializes·the·primitives·addon. | 131 | Initializes·the·primitives·addon. |
132 | Returns:·True·on·success,·false·on·failure. | 132 | Returns:·True·on·success,·false·on·failure. |
133 | See·also:·al_shutdown_primitives_addon | 133 | See·also:·al_shutdown_primitives_addon |
134 | Examples: | ||
135 | ····*·ex_touch_input.c | ||
136 | ····*·ex_blend_bench.c | ||
137 | ····*·ex_enet_client.c | ||
134 | *****·al_is_primitives_addon_initialized·***** | 138 | *****·al_is_primitives_addon_initialized·***** |
135 | bool·al_is_primitives_addon_initialized(void) | 139 | bool·al_is_primitives_addon_initialized(void) |
136 | Source_Code | 140 | Source_Code |
137 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. | 141 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. |
138 | Since:·5.2.6 | 142 | Since:·5.2.6 |
139 | See·also:·al_init_primitives_addon,·al_shutdown_primitives_addon | 143 | See·also:·al_init_primitives_addon,·al_shutdown_primitives_addon |
140 | *****·al_shutdown_primitives_addon·***** | 144 | *****·al_shutdown_primitives_addon·***** |
Offset 229, 73 lines modified | Offset 233, 97 lines modified | ||
229 | Source_Code | 233 | Source_Code |
230 | Draws·a·line·segment·between·two·points. | 234 | Draws·a·line·segment·between·two·points. |
231 | Parameters: | 235 | Parameters: |
232 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line | 236 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line |
233 | ····*·color·-·Color·of·the·line | 237 | ····*·color·-·Color·of·the·line |
234 | ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines | 238 | ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines |
235 | See·also:·al_draw_soft_line | 239 | See·also:·al_draw_soft_line |
240 | Examples: | ||
241 | ····*·ex_font_justify.cpp | ||
242 | ····*·ex_resize.c | ||
243 | ····*·ex_mouse_warp.c | ||
236 | *****·al_draw_triangle·***** | 244 | *****·al_draw_triangle·***** |
237 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 245 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
238 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | 246 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) |
239 | Source_Code | 247 | Source_Code |
240 | Draws·an·outlined·triangle. | 248 | Draws·an·outlined·triangle. |
241 | Parameters: | 249 | Parameters: |
242 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 250 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
243 | ····*·color·-·Color·of·the·triangle | 251 | ····*·color·-·Color·of·the·triangle |
244 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 252 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
245 | See·also:·al_draw_filled_triangle,·al_draw_soft_triangle | 253 | See·also:·al_draw_filled_triangle,·al_draw_soft_triangle |
254 | Examples: | ||
255 | ····*·ex_prim.c | ||
246 | *****·al_draw_filled_triangle·***** | 256 | *****·al_draw_filled_triangle·***** |
247 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 257 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
248 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | 258 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) |
249 | Source_Code | 259 | Source_Code |
250 | Draws·a·filled·triangle. | 260 | Draws·a·filled·triangle. |
251 | Parameters: | 261 | Parameters: |
252 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 262 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
253 | ····*·color·-·Color·of·the·triangle | 263 | ····*·color·-·Color·of·the·triangle |
254 | See·also:·al_draw_triangle | 264 | See·also:·al_draw_triangle |
265 | Examples: | ||
266 | ····*·ex_prim.c | ||
255 | *****·al_draw_rectangle·***** | 267 | *****·al_draw_rectangle·***** |
256 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 268 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
257 | ···ALLEGRO_COLOR·color,·float·thickness) | 269 | ···ALLEGRO_COLOR·color,·float·thickness) |
258 | Source_Code | 270 | Source_Code |
259 | Draws·an·outlined·rectangle. | 271 | Draws·an·outlined·rectangle. |
260 | Parameters: | 272 | Parameters: |
261 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 273 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
262 | ····*·color·-·Color·of·the·rectangle | 274 | ····*·color·-·Color·of·the·rectangle |
263 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 275 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
264 | See·also:·al_draw_filled_rectangle,·al_draw_rounded_rectangle | 276 | See·also:·al_draw_filled_rectangle,·al_draw_rounded_rectangle |
277 | Examples: | ||
278 | ····*·ex_mouse.c | ||
279 | ····*·ex_font_justify.cpp | ||
280 | ····*·ex_subbitmap.c | ||
265 | *****·al_draw_filled_rectangle·***** | 281 | *****·al_draw_filled_rectangle·***** |
266 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 282 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
267 | ···ALLEGRO_COLOR·color) | 283 | ···ALLEGRO_COLOR·color) |
268 | Source_Code | 284 | Source_Code |
269 | Draws·a·filled·rectangle. | 285 | Draws·a·filled·rectangle. |
270 | Parameters: | 286 | Parameters: |
271 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 287 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
272 | ····*·color·-·Color·of·the·rectangle | 288 | ····*·color·-·Color·of·the·rectangle |
273 | See·also:·al_draw_rectangle,·al_draw_filled_rounded_rectangle | 289 | See·also:·al_draw_rectangle,·al_draw_filled_rounded_rectangle |
290 | Examples: | ||
291 | ····*·ex_mouse.c | ||
292 | ····*·ex_timer.c | ||
293 | ····*·ex_window_maximized.c | ||
274 | *****·al_draw_rounded_rectangle·***** | 294 | *****·al_draw_rounded_rectangle·***** |
275 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 295 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
276 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | 296 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) |
277 | Source_Code | 297 | Source_Code |
278 | Draws·an·outlined·rounded·rectangle. | 298 | Draws·an·outlined·rounded·rectangle. |
279 | Parameters: | 299 | Parameters: |
280 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 300 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
281 | ····*·color·-·Color·of·the·rectangle | 301 | ····*·color·-·Color·of·the·rectangle |
282 | ····*·rx,·ry·-·The·radii·of·the·round | 302 | ····*·rx,·ry·-·The·radii·of·the·round |
283 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 303 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
284 | See·also:·al_draw_filled_rounded_rectangle,·al_draw_rectangle | 304 | See·also:·al_draw_filled_rounded_rectangle,·al_draw_rectangle |
305 | Examples: | ||
306 | ····*·ex_threads.c | ||
307 | ····*·ex_prim.c | ||
308 | ····*·ex_audio_chain.cpp | ||
285 | *****·al_draw_filled_rounded_rectangle·***** | 309 | *****·al_draw_filled_rounded_rectangle·***** |
286 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 310 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
287 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) | 311 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) |
288 | Source_Code | 312 | Source_Code |
289 | Draws·an·filled·rounded·rectangle. | 313 | Draws·an·filled·rounded·rectangle. |
290 | Parameters: | 314 | Parameters: |
291 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 315 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
292 | ····*·color·-·Color·of·the·rectangle | 316 | ····*·color·-·Color·of·the·rectangle |
293 | ····*·rx,·ry·-·The·radii·of·the·round | 317 | ····*·rx,·ry·-·The·radii·of·the·round |
294 | See·also:·al_draw_rounded_rectangle,·al_draw_filled_rectangle | 318 | See·also:·al_draw_rounded_rectangle,·al_draw_filled_rectangle |
319 | Examples: | ||
320 | ····*·ex_threads.c | ||
321 | ····*·ex_video.c | ||
322 | ····*·ex_prim.c | ||
295 | *****·al_calculate_arc·***** | 323 | *****·al_calculate_arc·***** |
296 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, | 324 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, |
297 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, | 325 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, |
298 | ···int·num_points) | 326 | ···int·num_points) |
299 | Source_Code | 327 | Source_Code |
300 | When·thickness·<=·0·this·function·computes·positions·of·num_points·regularly | 328 | When·thickness·<=·0·this·function·computes·positions·of·num_points·regularly |
301 | spaced·points·on·an·elliptical·arc.·When·thickness·>·0·this·function·computes | 329 | spaced·points·on·an·elliptical·arc.·When·thickness·>·0·this·function·computes |
Offset 347, 14 lines modified | Offset 375, 16 lines modified | ||
347 | ····*·start_theta·-·The·initial·angle·from·which·the·arc·is·calculated·in | 375 | ····*·start_theta·-·The·initial·angle·from·which·the·arc·is·calculated·in |
348 | ······radians | 376 | ······radians |
349 | ····*·delta_theta·-·Angular·span·of·the·arc·in·radians·(pass·a·negative·number | 377 | ····*·delta_theta·-·Angular·span·of·the·arc·in·radians·(pass·a·negative·number |
350 | ······to·switch·direction) | 378 | ······to·switch·direction) |
351 | ····*·thickness·-·Thickness·of·the·arc | 379 | ····*·thickness·-·Thickness·of·the·arc |
352 | ····*·num_points·-·The·number·of·points·to·calculate | 380 | ····*·num_points·-·The·number·of·points·to·calculate |
353 | See·also:·al_draw_arc,·al_calculate_spline,·al_calculate_ribbon | 381 | See·also:·al_draw_arc,·al_calculate_spline,·al_calculate_ribbon |
382 | Examples: | ||
383 | ····*·ex_vertex_buffer.c | ||
354 | *****·al_draw_pieslice·***** | 384 | *****·al_draw_pieslice·***** |
Max diff block lines reached; 20984/25784 bytes (81.38%) of diff not shown. |
Offset 782, 12 lines modified | Offset 782, 12 lines modified | ||
782 | <li><a | 782 | <li><a |
783 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L112">ex_palette.c</a></li> | 783 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L112">ex_palette.c</a></li> |
784 | <li><a | 784 | <li><a |
785 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L188">ex_prim_wrap.c</a></li> | 785 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L188">ex_prim_wrap.c</a></li> |
786 | </ul> | 786 | </ul> |
787 | <p·class="timestamp"> | 787 | <p·class="timestamp"> |
788 | Allegro·version·5.2.8 | 788 | Allegro·version·5.2.8 |
789 | ·-·Last·updated:·202 | 789 | ·-·Last·updated:·2024-01-08·05:23:04·UTC |
790 | </p> | 790 | </p> |
791 | </div> | 791 | </div> |
792 | </body> | 792 | </body> |
793 | </html> | 793 | </html> |
Offset 427, 8 lines modified | Offset 427, 8 lines modified | ||
427 | the·selected·platform. | 427 | the·selected·platform. |
428 | Since:·5.1.6 | 428 | Since:·5.1.6 |
429 | See·also:·al_attach_shader_source | 429 | See·also:·al_attach_shader_source |
430 | Examples: | 430 | Examples: |
431 | ····*·ex_shader_multitex.c | 431 | ····*·ex_shader_multitex.c |
432 | ····*·ex_palette.c | 432 | ····*·ex_palette.c |
433 | ····*·ex_prim_wrap.c | 433 | ····*·ex_prim_wrap.c |
434 | Allegro·version·5.2.8·-·Last·updated:·202 | 434 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:23:04·UTC |
Offset 307, 12 lines modified | Offset 307, 12 lines modified | ||
307 | <li><a | 307 | <li><a |
308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L250">ex_curl.c</a></li> | 308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L250">ex_curl.c</a></li> |
309 | <li><a | 309 | <li><a |
310 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L475">ex_utf8.c</a></li> | 310 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L475">ex_utf8.c</a></li> |
311 | </ul> | 311 | </ul> |
312 | <p·class="timestamp"> | 312 | <p·class="timestamp"> |
313 | Allegro·version·5.2.8 | 313 | Allegro·version·5.2.8 |
314 | ·-·Last·updated:·202 | 314 | ·-·Last·updated:·2024-01-08·05:22:40·UTC |
315 | </p> | 315 | </p> |
316 | </div> | 316 | </div> |
317 | </body> | 317 | </body> |
318 | </html> | 318 | </html> |
Offset 138, 8 lines modified | Offset 138, 8 lines modified | ||
138 | void·al_set_errno(int·errnum) | 138 | void·al_set_errno(int·errnum) |
139 | SETTER(allegro_errno,·errnum) | 139 | SETTER(allegro_errno,·errnum) |
140 | Source_Code | 140 | Source_Code |
141 | Set·the·error·number·for·the·calling·thread. | 141 | Set·the·error·number·for·the·calling·thread. |
142 | Examples: | 142 | Examples: |
143 | ····*·ex_curl.c | 143 | ····*·ex_curl.c |
144 | ····*·ex_utf8.c | 144 | ····*·ex_utf8.c |
145 | Allegro·version·5.2.8·-·Last·updated:·202 | 145 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:40·UTC |
Offset 812, 12 lines modified | Offset 812, 12 lines modified | ||
812 | <li>ALLEGRO_SYSTEM_ID_SDL·-·SDL</li> | 812 | <li>ALLEGRO_SYSTEM_ID_SDL·-·SDL</li> |
813 | </ul> | 813 | </ul> |
814 | <p>Since:·5.2.5</p> | 814 | <p>Since:·5.2.5</p> |
815 | <p>See·also:·<a | 815 | <p>See·also:·<a |
816 | href="system.html#al_get_system_id">al_get_system_id</a></p> | 816 | href="system.html#al_get_system_id">al_get_system_id</a></p> |
817 | <p·class="timestamp"> | 817 | <p·class="timestamp"> |
818 | Allegro·version·5.2.8 | 818 | Allegro·version·5.2.8 |
819 | ·-·Last·updated:·202 | 819 | ·-·Last·updated:·2024-01-08·05:22:40·UTC |
820 | </p> | 820 | </p> |
821 | </div> | 821 | </div> |
822 | </body> | 822 | </body> |
823 | </html> | 823 | </html> |
Offset 567, 8 lines modified | Offset 567, 8 lines modified | ||
567 | ····*·ALLEGRO_SYSTEM_ID_ANDROID·-·Android | 567 | ····*·ALLEGRO_SYSTEM_ID_ANDROID·-·Android |
568 | ····*·ALLEGRO_SYSTEM_ID_IPHONE·-·iOS | 568 | ····*·ALLEGRO_SYSTEM_ID_IPHONE·-·iOS |
569 | ····*·ALLEGRO_SYSTEM_ID_GP2XWIZ·-·GP2XWIZ | 569 | ····*·ALLEGRO_SYSTEM_ID_GP2XWIZ·-·GP2XWIZ |
570 | ····*·ALLEGRO_SYSTEM_ID_RASPBERRYPI·-·Raspberry·Pi | 570 | ····*·ALLEGRO_SYSTEM_ID_RASPBERRYPI·-·Raspberry·Pi |
571 | ····*·ALLEGRO_SYSTEM_ID_SDL·-·SDL | 571 | ····*·ALLEGRO_SYSTEM_ID_SDL·-·SDL |
572 | Since:·5.2.5 | 572 | Since:·5.2.5 |
573 | See·also:·al_get_system_id | 573 | See·also:·al_get_system_id |
574 | Allegro·version·5.2.8·-·Last·updated:·202 | 574 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:40·UTC |
Offset 208, 17 lines modified | Offset 208, 17 lines modified | ||
208 | Code</a></p> | 208 | Code</a></p> |
209 | <p>An·opaque·structure·representing·a·thread.</p> | 209 | <p>An·opaque·structure·representing·a·thread.</p> |
210 | <p>Examples:</p> | 210 | <p>Examples:</p> |
211 | <ul> | 211 | <ul> |
212 | <li><a | 212 | <li><a |
213 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L97">ex_threads.c</a></li> | 213 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L97">ex_threads.c</a></li> |
214 | <li><a | 214 | <li><a |
215 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L29">ex_native_filechooser.c</a></li> | ||
216 | <li><a | ||
217 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L150">ex_threads2.c</a></li> | 215 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L150">ex_threads2.c</a></li> |
216 | <li><a | ||
217 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L16">ex_loading_thread.c</a></li> | ||
218 | </ul> | 218 | </ul> |
219 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> | 219 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX<span·class="op">;</span></span></code></pre></div> | 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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX<span·class="op">;</span></span></code></pre></div> |
221 | <p><a | 221 | <p><a |
222 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source | 222 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source |
223 | Code</a></p> | 223 | Code</a></p> |
224 | <p>An·opaque·structure·representing·a·mutex.</p> | 224 | <p>An·opaque·structure·representing·a·mutex.</p> |
Offset 254, 17 lines modified | Offset 254, 17 lines modified | ||
254 | <p>See·also:·<a·href="threads.html#al_start_thread">al_start_thread</a>, | 254 | <p>See·also:·<a·href="threads.html#al_start_thread">al_start_thread</a>, |
255 | <a·href="threads.html#al_join_thread">al_join_thread</a>.</p> | 255 | <a·href="threads.html#al_join_thread">al_join_thread</a>.</p> |
256 | <p>Examples:</p> | 256 | <p>Examples:</p> |
257 | <ul> | 257 | <ul> |
258 | <li><a | 258 | <li><a |
259 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L233">ex_threads.c</a></li> | 259 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L233">ex_threads.c</a></li> |
260 | <li><a | 260 | <li><a |
261 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L106">ex_native_filechooser.c</a></li> | ||
262 | <li><a | ||
263 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L313">ex_threads2.c</a></li> | 261 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L313">ex_threads2.c</a></li> |
262 | <li><a | ||
263 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L158">ex_loading_thread.c</a></li> | ||
264 | </ul> | 264 | </ul> |
265 | <h1 | 265 | <h1 |
266 | id="al_create_thread_with_stacksize">al_create_thread_with_stacksize</h1> | 266 | id="al_create_thread_with_stacksize">al_create_thread_with_stacksize</h1> |
267 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread_with_stacksize<span·class="op">(</span></span> | 267 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread_with_stacksize<span·class="op">(</span></span> |
268 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">,</span>·<span·class="dt">size_t</span>·stacksize<span·class="op">)</span></span></code></pre></div> | 268 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">,</span>·<span·class="dt">size_t</span>·stacksize<span·class="op">)</span></span></code></pre></div> |
269 | <p><a | 269 | <p><a |
270 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source | 270 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source |
Offset 294, 17 lines modified | Offset 294, 17 lines modified | ||
294 | <p>See·also:·<a | 294 | <p>See·also:·<a |
295 | href="threads.html#al_create_thread">al_create_thread</a>.</p> | 295 | href="threads.html#al_create_thread">al_create_thread</a>.</p> |
296 | <p>Examples:</p> | 296 | <p>Examples:</p> |
297 | <ul> | 297 | <ul> |
298 | <li><a | 298 | <li><a |
299 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L237">ex_threads.c</a></li> | 299 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L237">ex_threads.c</a></li> |
300 | <li><a | 300 | <li><a |
301 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L108">ex_native_filechooser.c</a></li> | ||
302 | <li><a | ||
303 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L329">ex_threads2.c</a></li> | 301 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L329">ex_threads2.c</a></li> |
302 | <li><a | ||
303 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L159">ex_loading_thread.c</a></li> | ||
304 | </ul> | 304 | </ul> |
305 | <h1·id="al_join_thread">al_join_thread</h1> | 305 | <h1·id="al_join_thread">al_join_thread</h1> |
306 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_join_thread<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">**</span>ret_value<span·class="op">)</span></span></code></pre></div> | 306 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_join_thread<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">**</span>ret_value<span·class="op">)</span></span></code></pre></div> |
307 | <p><a | 307 | <p><a |
308 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L194">Source | 308 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L194">Source |
309 | Code</a></p> | 309 | Code</a></p> |
310 | <p>Wait·for·the·thread·to·finish·executing.·This·implicitly·calls·<a | 310 | <p>Wait·for·the·thread·to·finish·executing.·This·implicitly·calls·<a |
Offset 379, 17 lines modified | Offset 379, 17 lines modified | ||
379 | <p>See·also:·<a | 379 | <p>See·also:·<a |
380 | href="threads.html#al_join_thread">al_join_thread</a>.</p> | 380 | href="threads.html#al_join_thread">al_join_thread</a>.</p> |
381 | <p>Examples:</p> | 381 | <p>Examples:</p> |
382 | <ul> | 382 | <ul> |
383 | <li><a | 383 | <li><a |
384 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L241">ex_threads.c</a></li> | 384 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L241">ex_threads.c</a></li> |
385 | <li><a | 385 | <li><a |
386 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L130">ex_native_filechooser.c</a></li> | ||
387 | <li><a | ||
388 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L380">ex_threads2.c</a></li> | 386 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L380">ex_threads2.c</a></li> |
387 | <li><a | ||
388 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L130">ex_native_filechooser.c</a></li> | ||
389 | </ul> | 389 | </ul> |
390 | <h1·id="al_run_detached_thread">al_run_detached_thread</h1> | 390 | <h1·id="al_run_detached_thread">al_run_detached_thread</h1> |
391 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_run_detached_thread<span·class="op">(</span><span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">)</span></span></code></pre></div> | 391 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_run_detached_thread<span·class="op">(</span><span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">)</span></span></code></pre></div> |
392 | <p><a | 392 | <p><a |
393 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L147">Source | 393 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L147">Source |
394 | Code</a></p> | 394 | Code</a></p> |
395 | <p>Runs·the·passed·function·in·its·own·thread,·with·<code>arg</code> | 395 | <p>Runs·the·passed·function·in·its·own·thread,·with·<code>arg</code> |
Offset 582, 12 lines modified | Offset 582, 12 lines modified | ||
582 | href="threads.html#al_broadcast_cond">al_broadcast_cond</a>·but·<a | 582 | href="threads.html#al_broadcast_cond">al_broadcast_cond</a>·but·<a |
583 | href="threads.html#al_signal_cond">al_signal_cond</a>·may·be·more | 583 | href="threads.html#al_signal_cond">al_signal_cond</a>·may·be·more |
584 | efficient·when·it’s·applicable.</p> | 584 | efficient·when·it’s·applicable.</p> |
585 | <p>See·also:·<a | 585 | <p>See·also:·<a |
586 | href="threads.html#al_broadcast_cond">al_broadcast_cond</a>.</p> | 586 | href="threads.html#al_broadcast_cond">al_broadcast_cond</a>.</p> |
587 | <p·class="timestamp"> | 587 | <p·class="timestamp"> |
588 | Allegro·version·5.2.8 | 588 | Allegro·version·5.2.8 |
589 | ·-·Last·updated:·202 | 589 | ·-·Last·updated:·2024-01-08·05:22:40·UTC |
590 | </p> | 590 | </p> |
591 | </div> | 591 | </div> |
592 | </body> | 592 | </body> |
593 | </html> | 593 | </html> |
Offset 80, 16 lines modified | Offset 80, 16 lines modified | ||
80 | ·#include·<allegro5/allegro.h> | 80 | ·#include·<allegro5/allegro.h> |
81 | ******·ALLEGRO_THREAD·****** | 81 | ******·ALLEGRO_THREAD·****** |
82 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | 82 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; |
83 | Source_Code | 83 | Source_Code |
84 | An·opaque·structure·representing·a·thread. | 84 | An·opaque·structure·representing·a·thread. |
85 | Examples: | 85 | Examples: |
86 | ····*·ex_threads.c | 86 | ····*·ex_threads.c |
87 | ····*·ex_native_filechooser.c | ||
88 | ····*·ex_threads2.c | 87 | ····*·ex_threads2.c |
88 | ····*·ex_loading_thread.c | ||
89 | ******·ALLEGRO_MUTEX·****** | 89 | ******·ALLEGRO_MUTEX·****** |
90 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | 90 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; |
91 | Source_Code | 91 | Source_Code |
92 | An·opaque·structure·representing·a·mutex. | 92 | An·opaque·structure·representing·a·mutex. |
93 | Examples: | 93 | Examples: |
94 | ····*·ex_threads2.c | 94 | ····*·ex_threads2.c |
95 | ····*·ex_loading_thread.c | 95 | ····*·ex_loading_thread.c |
Offset 106, 16 lines modified | Offset 106, 16 lines modified | ||
106 | Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its | 106 | Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its |
107 | own·thread·handle·and·the·value·arg. | 107 | own·thread·handle·and·the·value·arg. |
108 | Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL·if·there | 108 | Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL·if·there |
109 | was·an·error. | 109 | was·an·error. |
110 | See·also:·al_start_thread,·al_join_thread. | 110 | See·also:·al_start_thread,·al_join_thread. |
111 | Examples: | 111 | Examples: |
112 | ····*·ex_threads.c | 112 | ····*·ex_threads.c |
113 | ····*·ex_native_filechooser.c | ||
114 | ····*·ex_threads2.c | 113 | ····*·ex_threads2.c |
114 | ····*·ex_loading_thread.c | ||
115 | ******·al_create_thread_with_stacksize·****** | 115 | ******·al_create_thread_with_stacksize·****** |
116 | ALLEGRO_THREAD·*al_create_thread_with_stacksize( | 116 | ALLEGRO_THREAD·*al_create_thread_with_stacksize( |
117 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t | 117 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t |
118 | stacksize) | 118 | stacksize) |
119 | Source_Code | 119 | Source_Code |
120 | Spawn·a·new·thread·with·the·give·stacksize·in·bytes·which·begins·executing | 120 | Spawn·a·new·thread·with·the·give·stacksize·in·bytes·which·begins·executing |
121 | proc.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·arg. | 121 | proc.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·arg. |
Offset 130, 16 lines modified | Offset 130, 16 lines modified | ||
130 | Source_Code | 130 | Source_Code |
131 | When·a·thread·is·created,·it·is·initially·in·a·suspended·state.·Calling | 131 | When·a·thread·is·created,·it·is·initially·in·a·suspended·state.·Calling |
132 | al_start_thread·will·start·its·actual·execution. | 132 | al_start_thread·will·start·its·actual·execution. |
133 | Starting·a·thread·which·has·already·been·started·does·nothing. | 133 | Starting·a·thread·which·has·already·been·started·does·nothing. |
134 | See·also:·al_create_thread. | 134 | See·also:·al_create_thread. |
135 | Examples: | 135 | Examples: |
136 | ····*·ex_threads.c | 136 | ····*·ex_threads.c |
137 | ····*·ex_native_filechooser.c | ||
138 | ····*·ex_threads2.c | 137 | ····*·ex_threads2.c |
138 | ····*·ex_loading_thread.c | ||
139 | ******·al_join_thread·****** | 139 | ******·al_join_thread·****** |
140 | void·al_join_thread(ALLEGRO_THREAD·*thread,·void·**ret_value) | 140 | void·al_join_thread(ALLEGRO_THREAD·*thread,·void·**ret_value) |
141 | Source_Code | 141 | Source_Code |
142 | Wait·for·the·thread·to·finish·executing.·This·implicitly·calls | 142 | Wait·for·the·thread·to·finish·executing.·This·implicitly·calls |
143 | al_set_thread_should_stop·first. | 143 | al_set_thread_should_stop·first. |
144 | If·ret_value·is·non-NULL,·the·value·returned·by·the·thread·function·will·be | 144 | If·ret_value·is·non-NULL,·the·value·returned·by·the·thread·function·will·be |
145 | stored·at·the·location·pointed·to·by·ret_value. | 145 | stored·at·the·location·pointed·to·by·ret_value. |
Offset 173, 16 lines modified | Offset 173, 16 lines modified | ||
173 | Source_Code | 173 | Source_Code |
174 | Free·the·resources·used·by·a·thread.·Implicitly·performs·al_join_thread·on·the | 174 | Free·the·resources·used·by·a·thread.·Implicitly·performs·al_join_thread·on·the |
175 | thread·if·it·hasnât·been·done·already. | 175 | thread·if·it·hasnât·been·done·already. |
176 | Does·nothing·if·thread·is·NULL. | 176 | Does·nothing·if·thread·is·NULL. |
177 | See·also:·al_join_thread. | 177 | See·also:·al_join_thread. |
178 | Examples: | 178 | Examples: |
179 | ····*·ex_threads.c | 179 | ····*·ex_threads.c |
180 | ····*·ex_native_filechooser.c | ||
181 | ····*·ex_threads2.c | 180 | ····*·ex_threads2.c |
181 | ····*·ex_native_filechooser.c | ||
182 | ******·al_run_detached_thread·****** | 182 | ******·al_run_detached_thread·****** |
183 | void·al_run_detached_thread(void·*(*proc)(void·*arg),·void·*arg) | 183 | void·al_run_detached_thread(void·*(*proc)(void·*arg),·void·*arg) |
184 | Source_Code | 184 | Source_Code |
185 | Runs·the·passed·function·in·its·own·thread,·with·arg·passed·to·it·as·only | 185 | Runs·the·passed·function·in·its·own·thread,·with·arg·passed·to·it·as·only |
186 | parameter.·This·is·similar·to·calling·al_create_thread,·al_start_thread·and | 186 | parameter.·This·is·similar·to·calling·al_create_thread,·al_start_thread·and |
187 | (after·the·thread·has·finished)·al_destroy_thread·-·but·you·donât·have·the | 187 | (after·the·thread·has·finished)·al_destroy_thread·-·but·you·donât·have·the |
188 | possibility·of·ever·calling·al_join_thread·on·the·thread. | 188 | possibility·of·ever·calling·al_join_thread·on·the·thread. |
Offset 298, 8 lines modified | Offset 298, 8 lines modified | ||
298 | ******·al_signal_cond·****** | 298 | ******·al_signal_cond·****** |
299 | void·al_signal_cond(ALLEGRO_COND·*cond) | 299 | void·al_signal_cond(ALLEGRO_COND·*cond) |
300 | Source_Code | 300 | Source_Code |
301 | Unblock·at·least·one·thread·waiting·on·a·condition·variable. | 301 | Unblock·at·least·one·thread·waiting·on·a·condition·variable. |
302 | Generally·you·should·use·al_broadcast_cond·but·al_signal_cond·may·be·more | 302 | Generally·you·should·use·al_broadcast_cond·but·al_signal_cond·may·be·more |
303 | efficient·when·itâs·applicable. | 303 | efficient·when·itâs·applicable. |
304 | See·also:·al_broadcast_cond. | 304 | See·also:·al_broadcast_cond. |
305 | Allegro·version·5.2.8·-·Last·updated:·202 | 305 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:40·UTC |
Offset 239, 12 lines modified | Offset 239, 12 lines modified | ||
239 | <li><a | 239 | <li><a |
240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L45">ex_timer_pause.c</a></li> | 240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L45">ex_timer_pause.c</a></li> |
241 | <li><a | 241 | <li><a |
242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L92">ex_mouse_focus.c</a></li> | 242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L92">ex_mouse_focus.c</a></li> |
243 | </ul> | 243 | </ul> |
244 | <p·class="timestamp"> | 244 | <p·class="timestamp"> |
245 | Allegro·version·5.2.8 | 245 | Allegro·version·5.2.8 |
246 | ·-·Last·updated:·202 | 246 | ·-·Last·updated:·2024-01-08·05:22:40·UTC |
247 | </p> | 247 | </p> |
248 | </div> | 248 | </div> |
249 | </body> | 249 | </body> |
250 | </html> | 250 | </html> |
Offset 89, 8 lines modified | Offset 89, 8 lines modified | ||
89 | al_rest(0.000001) | 89 | al_rest(0.000001) |
90 | might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for | 90 | might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for |
91 | easier·ways·to·time·your·program·without·using·up·all·CPU. | 91 | easier·ways·to·time·your·program·without·using·up·all·CPU. |
92 | Examples: | 92 | Examples: |
93 | ····*·ex_keyboard_focus.c | 93 | ····*·ex_keyboard_focus.c |
94 | ····*·ex_timer_pause.c | 94 | ····*·ex_timer_pause.c |
95 | ····*·ex_mouse_focus.c | 95 | ····*·ex_mouse_focus.c |
96 | Allegro·version·5.2.8·-·Last·updated:·202 | 96 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:40·UTC |
Offset 423, 12 lines modified | Offset 423, 12 lines modified | ||
423 | <li><a | 423 | <li><a |
424 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L39">ex_timer_pause.c</a></li> | 424 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L39">ex_timer_pause.c</a></li> |
425 | <li><a | 425 | <li><a |
426 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L70">ex_user_events.c</a></li> | 426 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L70">ex_user_events.c</a></li> |
427 | </ul> | 427 | </ul> |
428 | <p·class="timestamp"> | 428 | <p·class="timestamp"> |
429 | Allegro·version·5.2.8 | 429 | Allegro·version·5.2.8 |
430 | ·-·Last·updated:·202 | 430 | ·-·Last·updated:·2024-01-08·05:22:42·UTC |
431 | </p> | 431 | </p> |
432 | </div> | 432 | </div> |
433 | </body> | 433 | </body> |
434 | </html> | 434 | </html> |
Offset 199, 8 lines modified | Offset 199, 8 lines modified | ||
199 | Source_Code | 199 | Source_Code |
200 | Retrieve·the·associated·event·source.·Timers·will·generate·events·of·type | 200 | Retrieve·the·associated·event·source.·Timers·will·generate·events·of·type |
201 | ALLEGRO_EVENT_TIMER. | 201 | ALLEGRO_EVENT_TIMER. |
202 | Examples: | 202 | Examples: |
203 | ····*·ex_enet_server.c | 203 | ····*·ex_enet_server.c |
204 | ····*·ex_timer_pause.c | 204 | ····*·ex_timer_pause.c |
205 | ····*·ex_user_events.c | 205 | ····*·ex_user_events.c |
206 | Allegro·version·5.2.8·-·Last·updated:·202 | 206 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:42·UTC |
Offset 316, 17 lines modified | Offset 316, 17 lines modified | ||
316 | called·successfully.</p> | 316 | called·successfully.</p> |
317 | <p>Since:·5.1.0</p> | 317 | <p>Since:·5.1.0</p> |
318 | <p>Examples:</p> | 318 | <p>Examples:</p> |
319 | <ul> | 319 | <ul> |
320 | <li><a | 320 | <li><a |
321 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L178">ex_lockbitmap.c</a></li> | 321 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L178">ex_lockbitmap.c</a></li> |
322 | <li><a | 322 | <li><a |
323 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 323 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L973">ex_haiku.c</a></li> |
324 | <li><a | 324 | <li><a |
325 | href="https://github.com/liballeg/allegro5/blob/master/examples/ | 325 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L154">ex_prim_shader.c</a></li> |
326 | </ul> | 326 | </ul> |
327 | <h1·id="al_get_touch_input_state">al_get_touch_input_state</h1> | 327 | <h1·id="al_get_touch_input_state">al_get_touch_input_state</h1> |
328 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_get_touch_input_state<span·class="op">(</span>ALLEGRO_TOUCH_INPUT_STATE·<span·class="op">*</span>ret_state<span·class="op">)</span></span></code></pre></div> | 328 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_get_touch_input_state<span·class="op">(</span>ALLEGRO_TOUCH_INPUT_STATE·<span·class="op">*</span>ret_state<span·class="op">)</span></span></code></pre></div> |
329 | <p><a | 329 | <p><a |
330 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L93">Source | 330 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L93">Source |
331 | Code</a></p> | 331 | Code</a></p> |
332 | <p>Gets·the·current·touch·input·state.·The·touch·information·is·copied | 332 | <p>Gets·the·current·touch·input·state.·The·touch·information·is·copied |
Offset 387, 17 lines modified | Offset 387, 17 lines modified | ||
387 | href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a | 387 | href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a |
388 | href="events.html#al_register_event_source">al_register_event_source</a></p> | 388 | href="events.html#al_register_event_source">al_register_event_source</a></p> |
389 | <p>Examples:</p> | 389 | <p>Examples:</p> |
390 | <ul> | 390 | <ul> |
391 | <li><a | 391 | <li><a |
392 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L66">ex_touch_input.c</a></li> | 392 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L66">ex_touch_input.c</a></li> |
393 | <li><a | 393 | <li><a |
394 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L387">ex_polygon.c</a></li> | ||
395 | <li><a | ||
396 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L129">ex_android.c</a></li> | 394 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L129">ex_android.c</a></li> |
395 | <li><a | ||
396 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L387">ex_polygon.c</a></li> | ||
397 | </ul> | 397 | </ul> |
398 | <h1 | 398 | <h1 |
399 | id="al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</h1> | 399 | id="al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</h1> |
400 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>al_get_touch_input_mouse_emulation_event_source<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 400 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>al_get_touch_input_mouse_emulation_event_source<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
401 | <p><a | 401 | <p><a |
402 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L140">Source | 402 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L140">Source |
403 | Code</a></p> | 403 | Code</a></p> |
Offset 415, 18 lines modified | Offset 415, 18 lines modified | ||
415 | different·semantics·compared·to·mouse·input.</p> | 415 | different·semantics·compared·to·mouse·input.</p> |
416 | </blockquote> | 416 | </blockquote> |
417 | <p>Examples:</p> | 417 | <p>Examples:</p> |
418 | <ul> | 418 | <ul> |
419 | <li><a | 419 | <li><a |
420 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L180">ex_lockbitmap.c</a></li> | 420 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L180">ex_lockbitmap.c</a></li> |
421 | <li><a | 421 | <li><a |
422 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 422 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L975">ex_haiku.c</a></li> |
423 | <li><a | 423 | <li><a |
424 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_p | 424 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L156">ex_prim_shader.c</a></li> |
425 | </ul> | 425 | </ul> |
426 | <p·class="timestamp"> | 426 | <p·class="timestamp"> |
427 | Allegro·version·5.2.8 | 427 | Allegro·version·5.2.8 |
428 | ·-·Last·updated:·202 | 428 | ·-·Last·updated:·2024-01-08·05:22:42·UTC |
429 | </p> | 429 | </p> |
430 | </div> | 430 | </div> |
431 | </body> | 431 | </body> |
432 | </html> | 432 | </html> |
Offset 133, 16 lines modified | Offset 133, 16 lines modified | ||
133 | ******·al_is_touch_input_installed·****** | 133 | ******·al_is_touch_input_installed·****** |
134 | bool·al_is_touch_input_installed(void) | 134 | bool·al_is_touch_input_installed(void) |
135 | Source_Code | 135 | Source_Code |
136 | Returns·true·if·al_install_touch_input·was·called·successfully. | 136 | Returns·true·if·al_install_touch_input·was·called·successfully. |
137 | Since:·5.1.0 | 137 | Since:·5.1.0 |
138 | Examples: | 138 | Examples: |
139 | ····*·ex_lockbitmap.c | 139 | ····*·ex_lockbitmap.c |
140 | ····*·ex_haiku.c | ||
140 | ····*·ex_prim_shader.c | 141 | ····*·ex_prim_shader.c |
141 | ····*·nihgui.cpp | ||
142 | ******·al_get_touch_input_state·****** | 142 | ******·al_get_touch_input_state·****** |
143 | void·al_get_touch_input_state(ALLEGRO_TOUCH_INPUT_STATE·*ret_state) | 143 | void·al_get_touch_input_state(ALLEGRO_TOUCH_INPUT_STATE·*ret_state) |
144 | Source_Code | 144 | Source_Code |
145 | Gets·the·current·touch·input·state.·The·touch·information·is·copied·into·the | 145 | Gets·the·current·touch·input·state.·The·touch·information·is·copied·into·the |
146 | ALLEGRO_TOUCH_INPUT_STATE·you·provide·to·this·function. | 146 | ALLEGRO_TOUCH_INPUT_STATE·you·provide·to·this·function. |
147 | Since:·5.1.0 | 147 | Since:·5.1.0 |
148 | ******·al_set_mouse_emulation_mode·****** | 148 | ******·al_set_mouse_emulation_mode·****** |
Offset 169, 23 lines modified | Offset 169, 23 lines modified | ||
169 | Source_Code | 169 | Source_Code |
170 | Returns·the·global·touch·input·event·source.·This·event·source·generates·touch | 170 | Returns·the·global·touch·input·event·source.·This·event·source·generates·touch |
171 | input_events. | 171 | input_events. |
172 | Since:·5.1.0 | 172 | Since:·5.1.0 |
173 | See·also:·ALLEGRO_EVENT_SOURCE,·al_register_event_source | 173 | See·also:·ALLEGRO_EVENT_SOURCE,·al_register_event_source |
174 | Examples: | 174 | Examples: |
175 | ····*·ex_touch_input.c | 175 | ····*·ex_touch_input.c |
176 | ····*·ex_polygon.c | ||
177 | ····*·ex_android.c | 176 | ····*·ex_android.c |
177 | ····*·ex_polygon.c | ||
178 | ******·al_get_touch_input_mouse_emulation_event_source·****** | 178 | ******·al_get_touch_input_mouse_emulation_event_source·****** |
179 | ALLEGRO_EVENT_SOURCE·*al_get_touch_input_mouse_emulation_event_source(void) | 179 | ALLEGRO_EVENT_SOURCE·*al_get_touch_input_mouse_emulation_event_source(void) |
180 | Source_Code | 180 | Source_Code |
181 | Returns·the·global·touch·input·event·source·for·emulated·mouse·events.·This | 181 | Returns·the·global·touch·input·event·source·for·emulated·mouse·events.·This |
182 | event·source·generates·emulated_mouse_events·that·are·based·on·touch·events. | 182 | event·source·generates·emulated_mouse_events·that·are·based·on·touch·events. |
183 | See·also:·ALLEGRO_EVENT_SOURCE,·al_register_event_source | 183 | See·also:·ALLEGRO_EVENT_SOURCE,·al_register_event_source |
184 | Since:·5.1.0 | 184 | Since:·5.1.0 |
185 | ·····Unstable_API:·Seems·of·limited·value,·as·touch·input·tends·to·have | 185 | ·····Unstable_API:·Seems·of·limited·value,·as·touch·input·tends·to·have |
186 | ·····different·semantics·compared·to·mouse·input. | 186 | ·····different·semantics·compared·to·mouse·input. |
187 | Examples: | 187 | Examples: |
188 | ····*·ex_lockbitmap.c | 188 | ····*·ex_lockbitmap.c |
189 | ····*·ex_haiku.c | ||
189 | ····*·ex_prim_shader.c | 190 | ····*·ex_prim_shader.c |
190 | ····*·ex_polygon.c | ||
191 | Allegro·version·5.2.8·-·Last·updated:·202 | 191 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:42·UTC |
Offset 296, 15 lines modified | Offset 296, 15 lines modified | ||
296 | <p>Examples:</p> | 296 | <p>Examples:</p> |
297 | <ul> | 297 | <ul> |
298 | <li><a | 298 | <li><a |
299 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L137">ex_shader.cpp</a></li> | 299 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L137">ex_shader.cpp</a></li> |
300 | <li><a | 300 | <li><a |
301 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L61">ex_shader_target.c</a></li> | 301 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L61">ex_shader_target.c</a></li> |
302 | <li><a | 302 | <li><a |
303 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 303 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L74">ex_audio_timer.c</a></li> |
304 | </ul> | 304 | </ul> |
305 | <h1·id="al_copy_transform">al_copy_transform</h1> | 305 | <h1·id="al_copy_transform">al_copy_transform</h1> |
306 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_copy_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>dest<span·class="op">,</span>·<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>src<span·class="op">)</span></span></code></pre></div> | 306 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_copy_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>dest<span·class="op">,</span>·<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>src<span·class="op">)</span></span></code></pre></div> |
307 | <p><a | 307 | <p><a |
308 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L30">Source | 308 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L30">Source |
309 | Code</a></p> | 309 | Code</a></p> |
310 | <p>Makes·a·copy·of·a·transformation.</p> | 310 | <p>Makes·a·copy·of·a·transformation.</p> |
Offset 349, 15 lines modified | Offset 349, 15 lines modified | ||
349 | <p>Examples:</p> | 349 | <p>Examples:</p> |
350 | <ul> | 350 | <ul> |
351 | <li><a | 351 | <li><a |
352 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L142">ex_shader.cpp</a></li> | 352 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L142">ex_shader.cpp</a></li> |
353 | <li><a | 353 | <li><a |
354 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L120">ex_shader_target.c</a></li> | 354 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L120">ex_shader_target.c</a></li> |
355 | <li><a | 355 | <li><a |
356 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 356 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L124">ex_audio_timer.c</a></li> |
357 | </ul> | 357 | </ul> |
358 | <h1·id="al_get_current_transform">al_get_current_transform</h1> | 358 | <h1·id="al_get_current_transform">al_get_current_transform</h1> |
359 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 359 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
360 | <p><a | 360 | <p><a |
361 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L104">Source | 361 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L104">Source |
362 | Code</a></p> | 362 | Code</a></p> |
363 | <p>Returns·the·transformation·of·the·current·target·bitmap,·as·set·by·<a | 363 | <p>Returns·the·transformation·of·the·current·target·bitmap,·as·set·by·<a |
Offset 548, 15 lines modified | Offset 548, 15 lines modified | ||
548 | <p>Examples:</p> | 548 | <p>Examples:</p> |
549 | <ul> | 549 | <ul> |
550 | <li><a | 550 | <li><a |
551 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L139">ex_shader.cpp</a></li> | 551 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L139">ex_shader.cpp</a></li> |
552 | <li><a | 552 | <li><a |
553 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L117">ex_shader_target.c</a></li> | 553 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L117">ex_shader_target.c</a></li> |
554 | <li><a | 554 | <li><a |
555 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 555 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L122">ex_audio_timer.c</a></li> |
556 | </ul> | 556 | </ul> |
557 | <h1·id="al_build_transform">al_build_transform</h1> | 557 | <h1·id="al_build_transform">al_build_transform</h1> |
558 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·x<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span></span> | 558 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·x<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span></span> |
559 | <span·id="cb21-2"><a·href="#cb21-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·sx<span·class="op">,</span>·<span·class="dt">float</span>·sy<span·class="op">,</span>·<span·class="dt">float</span>·theta<span·class="op">)</span></span></code></pre></div> | 559 | <span·id="cb21-2"><a·href="#cb21-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·sx<span·class="op">,</span>·<span·class="dt">float</span>·sy<span·class="op">,</span>·<span·class="dt">float</span>·theta<span·class="op">)</span></span></code></pre></div> |
560 | <p><a | 560 | <p><a |
561 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L172">Source | 561 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L172">Source |
562 | Code</a></p> | 562 | Code</a></p> |
Offset 585, 17 lines modified | Offset 585, 17 lines modified | ||
585 | <a | 585 | <a |
586 | href="transformations.html#al_compose_transform">al_compose_transform</a></p> | 586 | href="transformations.html#al_compose_transform">al_compose_transform</a></p> |
587 | <p>Examples:</p> | 587 | <p>Examples:</p> |
588 | <ul> | 588 | <ul> |
589 | <li><a | 589 | <li><a |
590 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L82">ex_threads.c</a></li> | 590 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L82">ex_threads.c</a></li> |
591 | <li><a | 591 | <li><a |
592 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L91">ex_prim.c</a></li> | ||
593 | <li><a | ||
594 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L173">ex_color_gradient.c</a></li> | 592 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L173">ex_color_gradient.c</a></li> |
593 | <li><a | ||
594 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L91">ex_prim.c</a></li> | ||
595 | </ul> | 595 | </ul> |
596 | <h1·id="al_build_camera_transform">al_build_camera_transform</h1> | 596 | <h1·id="al_build_camera_transform">al_build_camera_transform</h1> |
597 | <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_camera_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span></span> | 597 | <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_camera_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span></span> |
598 | <span·id="cb22-2"><a·href="#cb22-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·position_x<span·class="op">,</span>·<span·class="dt">float</span>·position_y<span·class="op">,</span>·<span·class="dt">float</span>·position_z<span·class="op">,</span></span> | 598 | <span·id="cb22-2"><a·href="#cb22-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·position_x<span·class="op">,</span>·<span·class="dt">float</span>·position_y<span·class="op">,</span>·<span·class="dt">float</span>·position_z<span·class="op">,</span></span> |
599 | <span·id="cb22-3"><a·href="#cb22-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·look_x<span·class="op">,</span>·<span·class="dt">float</span>·look_y<span·class="op">,</span>·<span·class="dt">float</span>·look_z<span·class="op">,</span></span> | 599 | <span·id="cb22-3"><a·href="#cb22-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·look_x<span·class="op">,</span>·<span·class="dt">float</span>·look_y<span·class="op">,</span>·<span·class="dt">float</span>·look_z<span·class="op">,</span></span> |
600 | <span·id="cb22-4"><a·href="#cb22-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·up_x<span·class="op">,</span>·<span·class="dt">float</span>·up_y<span·class="op">,</span>·<span·class="dt">float</span>·up_z<span·class="op">)</span></span></code></pre></div> | 600 | <span·id="cb22-4"><a·href="#cb22-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·up_x<span·class="op">,</span>·<span·class="dt">float</span>·up_y<span·class="op">,</span>·<span·class="dt">float</span>·up_z<span·class="op">)</span></span></code></pre></div> |
601 | <p><a | 601 | <p><a |
Offset 716, 17 lines modified | Offset 716, 17 lines modified | ||
716 | <a | 716 | <a |
717 | href="transformations.html#al_build_transform">al_build_transform</a></p> | 717 | href="transformations.html#al_build_transform">al_build_transform</a></p> |
718 | <p>Examples:</p> | 718 | <p>Examples:</p> |
719 | <ul> | 719 | <ul> |
720 | <li><a | 720 | <li><a |
721 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L118">ex_shader_target.c</a></li> | 721 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L118">ex_shader_target.c</a></li> |
722 | <li><a | 722 | <li><a |
723 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L233">ex_polygon.c</a></li> | ||
724 | <li><a | ||
725 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L123">ex_audio_timer.c</a></li> | 723 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L123">ex_audio_timer.c</a></li> |
724 | <li><a | ||
725 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L233">ex_polygon.c</a></li> | ||
726 | </ul> | 726 | </ul> |
727 | <h1·id="al_transform_coordinates">al_transform_coordinates</h1> | 727 | <h1·id="al_transform_coordinates">al_transform_coordinates</h1> |
728 | <div·class="sourceCode"·id="cb29"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb29-1"><a·href="#cb29-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_transform_coordinates<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>x<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>y<span·class="op">)</span></span></code></pre></div> | 728 | <div·class="sourceCode"·id="cb29"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb29-1"><a·href="#cb29-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_transform_coordinates<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>x<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>y<span·class="op">)</span></span></code></pre></div> |
729 | <p><a | 729 | <p><a |
730 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L416">Source | 730 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L416">Source |
731 | Code</a></p> | 731 | Code</a></p> |
732 | <p>Transform·a·pair·of·coordinates.</p> | 732 | <p>Transform·a·pair·of·coordinates.</p> |
Offset 1059, 12 lines modified | Offset 1059, 12 lines modified | ||
1059 | <li>theta·-·Rotation·angle·in·radians</li> | 1059 | <li>theta·-·Rotation·angle·in·radians</li> |
1060 | </ul> | 1060 | </ul> |
1061 | <p>Since:·5.1.7</p> | 1061 | <p>Since:·5.1.7</p> |
1062 | <p>See·also:·<a | 1062 | <p>See·also:·<a |
1063 | href="transformations.html#al_horizontal_shear_transform">al_horizontal_shear_transform</a></p> | 1063 | href="transformations.html#al_horizontal_shear_transform">al_horizontal_shear_transform</a></p> |
1064 | <p·class="timestamp"> | 1064 | <p·class="timestamp"> |
1065 | Allegro·version·5.2.8 | 1065 | Allegro·version·5.2.8 |
1066 | ·-·Last·updated:·202 | 1066 | ·-·Last·updated:·2024-01-08·05:22:47·UTC |
1067 | </p> | 1067 | </p> |
1068 | </div> | 1068 | </div> |
1069 | </body> | 1069 | </body> |
1070 | </html> | 1070 | </html> |
Offset 143, 15 lines modified | Offset 143, 15 lines modified | ||
143 | small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right | 143 | small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right |
144 | most·2x1·matrix,·for·a·total·of·6·values. | 144 | most·2x1·matrix,·for·a·total·of·6·values. |
145 | Fields: | 145 | Fields: |
146 | ····*·m·-·A·4x4·float·matrix | 146 | ····*·m·-·A·4x4·float·matrix |
147 | Examples: | 147 | Examples: |
148 | ····*·ex_shader.cpp | 148 | ····*·ex_shader.cpp |
149 | ····*·ex_shader_target.c | 149 | ····*·ex_shader_target.c |
150 | ····*·ex_ | 150 | ····*·ex_audio_timer.c |
151 | ******·al_copy_transform·****** | 151 | ******·al_copy_transform·****** |
152 | void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src) | 152 | void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src) |
153 | Source_Code | 153 | Source_Code |
154 | Makes·a·copy·of·a·transformation. | 154 | Makes·a·copy·of·a·transformation. |
155 | Parameters: | 155 | Parameters: |
156 | ····*·dest·-·Source·transformation | 156 | ····*·dest·-·Source·transformation |
157 | ····*·src·-·Destination·transformation | 157 | ····*·src·-·Destination·transformation |
Offset 176, 15 lines modified | Offset 176, 15 lines modified | ||
176 | } | 176 | } |
177 | Parameters: | 177 | Parameters: |
178 | ····*·trans·-·Transformation·to·use | 178 | ····*·trans·-·Transformation·to·use |
179 | See·also:·al_get_current_transform,·al_transform_coordinates | 179 | See·also:·al_get_current_transform,·al_transform_coordinates |
180 | Examples: | 180 | Examples: |
181 | ····*·ex_shader.cpp | 181 | ····*·ex_shader.cpp |
182 | ····*·ex_shader_target.c | 182 | ····*·ex_shader_target.c |
183 | ····*·ex_ | 183 | ····*·ex_audio_timer.c |
184 | ******·al_get_current_transform·****** | 184 | ******·al_get_current_transform·****** |
185 | const·ALLEGRO_TRANSFORM·*al_get_current_transform(void) | 185 | const·ALLEGRO_TRANSFORM·*al_get_current_transform(void) |
186 | Source_Code | 186 | Source_Code |
187 | Returns·the·transformation·of·the·current·target·bitmap,·as·set·by | 187 | Returns·the·transformation·of·the·current·target·bitmap,·as·set·by |
188 | al_use_transform.·If·there·is·no·target·bitmap,·this·function·returns·NULL. | 188 | al_use_transform.·If·there·is·no·target·bitmap,·this·function·returns·NULL. |
189 | Returns:·A·pointer·to·the·current·transformation. | 189 | Returns:·A·pointer·to·the·current·transformation. |
190 | See·also:·al_get_current_projection_transform | 190 | See·also:·al_get_current_projection_transform |
Offset 306, 15 lines modified | Offset 306, 15 lines modified | ||
306 | al_use_transform(&t); | 306 | al_use_transform(&t); |
307 | Parameters: | 307 | Parameters: |
308 | ····*·trans·-·Transformation·to·alter | 308 | ····*·trans·-·Transformation·to·alter |
309 | See·also:·al_translate_transform,·al_rotate_transform,·al_scale_transform | 309 | See·also:·al_translate_transform,·al_rotate_transform,·al_scale_transform |
310 | Examples: | 310 | Examples: |
311 | ····*·ex_shader.cpp | 311 | ····*·ex_shader.cpp |
312 | ····*·ex_shader_target.c | 312 | ····*·ex_shader_target.c |
313 | ····*·ex_ | 313 | ····*·ex_audio_timer.c |
314 | ******·al_build_transform·****** | 314 | ******·al_build_transform·****** |
315 | void·al_build_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y, | 315 | void·al_build_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y, |
316 | ···float·sx,·float·sy,·float·theta) | 316 | ···float·sx,·float·sy,·float·theta) |
317 | Source_Code | 317 | Source_Code |
318 | Builds·a·transformation·given·some·parameters.·This·call·is·equivalent·to | 318 | Builds·a·transformation·given·some·parameters.·This·call·is·equivalent·to |
319 | calling·the·transformations·in·this·order:·make·identity,·rotate,·scale, | 319 | calling·the·transformations·in·this·order:·make·identity,·rotate,·scale, |
320 | translate.·This·method·is·faster,·however,·than·actually·calling·those | 320 | translate.·This·method·is·faster,·however,·than·actually·calling·those |
Offset 327, 16 lines modified | Offset 327, 16 lines modified | ||
327 | ·····Note:·this·function·was·previously·documented·to·be·equivalent·to·a | 327 | ·····Note:·this·function·was·previously·documented·to·be·equivalent·to·a |
328 | ·····different·(and·more·useful)·order·of·operations:·identity,·scale, | 328 | ·····different·(and·more·useful)·order·of·operations:·identity,·scale, |
329 | ·····rotate,·translate. | 329 | ·····rotate,·translate. |
330 | See·also:·al_translate_transform,·al_rotate_transform,·al_scale_transform, | 330 | See·also:·al_translate_transform,·al_rotate_transform,·al_scale_transform, |
331 | al_compose_transform | 331 | al_compose_transform |
332 | Examples: | 332 | Examples: |
333 | ····*·ex_threads.c | 333 | ····*·ex_threads.c |
334 | ····*·ex_prim.c | ||
335 | ····*·ex_color_gradient.c | 334 | ····*·ex_color_gradient.c |
335 | ····*·ex_prim.c | ||
336 | ******·al_build_camera_transform·****** | 336 | ******·al_build_camera_transform·****** |
337 | void·al_build_camera_transform(ALLEGRO_TRANSFORM·*trans, | 337 | void·al_build_camera_transform(ALLEGRO_TRANSFORM·*trans, |
338 | ···float·position_x,·float·position_y,·float·position_z, | 338 | ···float·position_x,·float·position_y,·float·position_z, |
339 | ···float·look_x,·float·look_y,·float·look_z, | 339 | ···float·look_x,·float·look_y,·float·look_z, |
340 | ···float·up_x,·float·up_y,·float·up_z) | 340 | ···float·up_x,·float·up_y,·float·up_z) |
341 | Source_Code | 341 | Source_Code |
342 | Builds·a·transformation·which·can·be·used·to·transform·3D·coordinates·in·world | 342 | Builds·a·transformation·which·can·be·used·to·transform·3D·coordinates·in·world |
Offset 401, 16 lines modified | Offset 401, 16 lines modified | ||
401 | Apply·a·scale·to·a·transformation. | 401 | Apply·a·scale·to·a·transformation. |
402 | Parameters: | 402 | Parameters: |
403 | ····*·trans·-·Transformation·to·alter | 403 | ····*·trans·-·Transformation·to·alter |
404 | ····*·sx,·sy·-·Scale | 404 | ····*·sx,·sy·-·Scale |
405 | See·also:·al_translate_transform,·al_rotate_transform,·al_build_transform | 405 | See·also:·al_translate_transform,·al_rotate_transform,·al_build_transform |
406 | Examples: | 406 | Examples: |
407 | ····*·ex_shader_target.c | 407 | ····*·ex_shader_target.c |
408 | ····*·ex_polygon.c | ||
409 | ····*·ex_audio_timer.c | 408 | ····*·ex_audio_timer.c |
409 | ····*·ex_polygon.c | ||
410 | ******·al_transform_coordinates·****** | 410 | ******·al_transform_coordinates·****** |
411 | void·al_transform_coordinates(const·ALLEGRO_TRANSFORM·*trans,·float·*x,·float | 411 | void·al_transform_coordinates(const·ALLEGRO_TRANSFORM·*trans,·float·*x,·float |
412 | *y) | 412 | *y) |
413 | Source_Code | 413 | Source_Code |
414 | Transform·a·pair·of·coordinates. | 414 | Transform·a·pair·of·coordinates. |
415 | Parameters: | 415 | Parameters: |
416 | ····*·trans·-·Transformation·to·use | 416 | ····*·trans·-·Transformation·to·use |
Offset 637, 8 lines modified | Offset 637, 8 lines modified | ||
637 | Source_Code | 637 | Source_Code |
638 | Apply·a·vertical·shear·to·the·transform | 638 | Apply·a·vertical·shear·to·the·transform |
639 | Parameters: | 639 | Parameters: |
640 | ····*·trans·-·Transformation·to·alter | 640 | ····*·trans·-·Transformation·to·alter |
641 | ····*·theta·-·Rotation·angle·in·radians | 641 | ····*·theta·-·Rotation·angle·in·radians |
642 | Since:·5.1.7 | 642 | Since:·5.1.7 |
643 | See·also:·al_horizontal_shear_transform | 643 | See·also:·al_horizontal_shear_transform |
644 | Allegro·version·5.2.8·-·Last·updated:·202 | 644 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:47·UTC |
Offset 1611, 12 lines modified | Offset 1611, 12 lines modified | ||
1611 | points·above·0x10FFFF.</p> | 1611 | points·above·0x10FFFF.</p> |
1612 | <p>Returns·the·number·of·bytes·written,·which·is·the·same·as·that | 1612 | <p>Returns·the·number·of·bytes·written,·which·is·the·same·as·that |
1613 | returned·by·<a·href="utf8.html#al_utf16_width">al_utf16_width</a>.</p> | 1613 | returned·by·<a·href="utf8.html#al_utf16_width">al_utf16_width</a>.</p> |
1614 | <p>See·also:·<a·href="utf8.html#al_utf8_encode">al_utf8_encode</a>,·<a | 1614 | <p>See·also:·<a·href="utf8.html#al_utf8_encode">al_utf8_encode</a>,·<a |
1615 | href="utf8.html#al_ustr_encode_utf16">al_ustr_encode_utf16</a></p> | 1615 | href="utf8.html#al_ustr_encode_utf16">al_ustr_encode_utf16</a></p> |
1616 | <p·class="timestamp"> | 1616 | <p·class="timestamp"> |
1617 | Allegro·version·5.2.8 | 1617 | Allegro·version·5.2.8 |
1618 | ·-·Last·updated:·202 | 1618 | ·-·Last·updated:·2024-01-08·05:22:47·UTC |
1619 | </p> | 1619 | </p> |
1620 | </div> | 1620 | </div> |
1621 | </body> | 1621 | </body> |
1622 | </html> | 1622 | </html> |
Offset 915, 8 lines modified | Offset 915, 8 lines modified | ||
915 | Source_Code | 915 | Source_Code |
916 | Encode·the·specified·code·point·to·UTF-16·into·the·buffer·s.·The·buffer·must | 916 | Encode·the·specified·code·point·to·UTF-16·into·the·buffer·s.·The·buffer·must |
917 | have·enough·space·to·hold·the·encoding,·which·takes·either·2·or·4·bytes.·This | 917 | have·enough·space·to·hold·the·encoding,·which·takes·either·2·or·4·bytes.·This |
918 | routine·will·refuse·to·encode·code·points·above·0x10FFFF. | 918 | routine·will·refuse·to·encode·code·points·above·0x10FFFF. |
919 | Returns·the·number·of·bytes·written,·which·is·the·same·as·that·returned·by | 919 | Returns·the·number·of·bytes·written,·which·is·the·same·as·that·returned·by |
920 | al_utf16_width. | 920 | al_utf16_width. |
921 | See·also:·al_utf8_encode,·al_ustr_encode_utf16 | 921 | See·also:·al_utf8_encode,·al_ustr_encode_utf16 |
922 | Allegro·version·5.2.8·-·Last·updated:·202 | 922 | Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:47·UTC |
Offset 266, 14 lines modified | Offset 266, 19 lines modified | ||
266 | <h1·id="al_init_video_addon">al_init_video_addon</h1> | 266 | <h1·id="al_init_video_addon">al_init_video_addon</h1> |
267 | <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> | 267 | <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> |
268 | <p><a | 268 | <p><a |
269 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L268">Source | 269 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L268">Source |
270 | Code</a></p> | 270 | Code</a></p> |
271 | <p>Initializes·the·video·addon.</p> | 271 | <p>Initializes·the·video·addon.</p> |
272 | <p>Since:·5.1.12</p> | 272 | <p>Since:·5.1.12</p> |
273 | <p>Examples:</p> | ||
274 | <ul> | ||
275 | <li><a | ||
276 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L114">ex_video.c</a></li> | ||
277 | </ul> | ||
273 | <h1 | 278 | <h1 |
274 | id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1> | 279 | id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1> |
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="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> | 280 | <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> |
276 | <p><a | 281 | <p><a |
277 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L290">Source | 282 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L290">Source |
278 | Code</a></p> | 283 | Code</a></p> |
279 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns | 284 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns |
Offset 299, 14 lines modified | Offset 304, 19 lines modified | ||
299 | <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> | 304 | <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> |
300 | <p><a | 305 | <p><a |
301 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L98">Source | 306 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L98">Source |
302 | Code</a></p> | 307 | Code</a></p> |
303 | <p>Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the | 308 | <p>Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the |
304 | meta·info·so·you·can·query·e.g. the·size·or·audio·rate.</p> | 309 | meta·info·so·you·can·query·e.g. the·size·or·audio·rate.</p> |
305 | <p>Since:·5.1.0</p> | 310 | <p>Since:·5.1.0</p> |
311 | <p>Examples:</p> | ||
312 | <ul> | ||
313 | <li><a | ||
314 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L141">ex_video.c</a></li> | ||
315 | </ul> | ||
306 | <h1·id="al_identify_video">al_identify_video</h1> | 316 | <h1·id="al_identify_video">al_identify_video</h1> |
307 | <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> | 317 | <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> |
308 | <p><a | 318 | <p><a |
309 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L327">Source | 319 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L327">Source |
310 | Code</a></p> | 320 | Code</a></p> |
311 | <p>This·works·exactly·as·<a | 321 | <p>This·works·exactly·as·<a |
312 | href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you | 322 | href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you |
Offset 338, 21 lines modified | Offset 348, 31 lines modified | ||
338 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_close_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> | 348 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_close_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> |
339 | <p><a | 349 | <p><a |
340 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L139">Source | 350 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L139">Source |
341 | Code</a></p> | 351 | Code</a></p> |
342 | <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer | 352 | <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer |
343 | is·invalid·after·the·function·returns.</p> | 353 | is·invalid·after·the·function·returns.</p> |
344 | <p>Since:·5.1.0</p> | 354 | <p>Since:·5.1.0</p> |
355 | <p>Examples:</p> | ||
356 | <ul> | ||
357 | <li><a | ||
358 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L180">ex_video.c</a></li> | ||
359 | </ul> | ||
345 | <h1·id="al_start_video">al_start_video</h1> | 360 | <h1·id="al_start_video">al_start_video</h1> |
346 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_MIXER·<span·class="op">*</span>mixer<span·class="op">)</span></span></code></pre></div> | 361 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_MIXER·<span·class="op">*</span>mixer<span·class="op">)</span></span></code></pre></div> |
347 | <p><a | 362 | <p><a |
348 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L161">Source | 363 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L161">Source |
349 | Code</a></p> | 364 | Code</a></p> |
350 | <p>Starts·streaming·the·video·from·the·beginning.</p> | 365 | <p>Starts·streaming·the·video·from·the·beginning.</p> |
351 | <p>Since:·5.1.0</p> | 366 | <p>Since:·5.1.0</p> |
367 | <p>Examples:</p> | ||
368 | <ul> | ||
369 | <li><a | ||
370 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L162">ex_video.c</a></li> | ||
371 | </ul> | ||
352 | <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1> | 372 | <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1> |
353 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_video_with_voice<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_VOICE·<span·class="op">*</span>voice<span·class="op">)</span></span></code></pre></div> | 373 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_video_with_voice<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_VOICE·<span·class="op">*</span>voice<span·class="op">)</span></span></code></pre></div> |
354 | <p><a | 374 | <p><a |
355 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L172">Source | 375 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L172">Source |
356 | Code</a></p> | 376 | Code</a></p> |
357 | <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio | 377 | <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio |
358 | is·routed·to·the·provided·voice.</p> | 378 | is·routed·to·the·provided·voice.</p> |
Offset 362, 65 lines modified | Offset 382, 100 lines modified | ||
362 | <p><a | 382 | <p><a |
363 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L153">Source | 383 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L153">Source |
364 | Code</a></p> | 384 | Code</a></p> |
365 | <p>Get·an·event·source·for·the·video.·The·possible·events·are·described | 385 | <p>Get·an·event·source·for·the·video.·The·possible·events·are·described |
366 | under·<a | 386 | under·<a |
367 | href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> | 387 | href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> |
368 | <p>Since:·5.1.0</p> | 388 | <p>Since:·5.1.0</p> |
389 | <p>Examples:</p> | ||
390 | <ul> | ||
391 | <li><a | ||
392 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L157">ex_video.c</a></li> | ||
393 | </ul> | ||
369 | <h1·id="al_set_video_playing">al_set_video_playing</h1> | 394 | <h1·id="al_set_video_playing">al_set_video_playing</h1> |
370 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·<span·class="dt">bool</span>·play<span·class="op">)</span></span></code></pre></div> | 395 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·<span·class="dt">bool</span>·play<span·class="op">)</span></span></code></pre></div> |
371 | <p><a | 396 | <p><a |
372 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L183">Source | 397 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L183">Source |
373 | Code</a></p> | 398 | Code</a></p> |
374 | <p>Paused·or·resumes·playback.</p> | 399 | <p>Paused·or·resumes·playback.</p> |
375 | <p>Since:·5.1.12</p> | 400 | <p>Since:·5.1.12</p> |
401 | <p>Examples:</p> | ||
402 | <ul> | ||
403 | <li><a | ||
404 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L177">ex_video.c</a></li> | ||
405 | </ul> | ||
376 | <h1·id="al_is_video_playing">al_is_video_playing</h1> | 406 | <h1·id="al_is_video_playing">al_is_video_playing</h1> |
377 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> | 407 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> |
378 | <p><a | 408 | <p><a |
379 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L195">Source | 409 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L195">Source |
380 | Code</a></p> | 410 | Code</a></p> |
381 | <p>Returns·true·if·the·video·is·currently·playing.</p> | 411 | <p>Returns·true·if·the·video·is·currently·playing.</p> |
382 | <p>Since:·5.1.12</p> | 412 | <p>Since:·5.1.12</p> |
413 | <p>Examples:</p> | ||
414 | <ul> | ||
415 | <li><a | ||
416 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L74">ex_video.c</a></li> | ||
417 | </ul> | ||
383 | <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1> | 418 | <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1> |
384 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_video_audio_rate<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> | 419 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_video_audio_rate<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> |
385 | <p><a | 420 | <p><a |
386 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L236">Source | 421 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L236">Source |
387 | Code</a></p> | 422 | Code</a></p> |
388 | <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p> | 423 | <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p> |
389 | <p>Since:·5.1.0</p> | 424 | <p>Since:·5.1.0</p> |
425 | <p>Examples:</p> | ||
426 | <ul> | ||
427 | <li><a | ||
428 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L72">ex_video.c</a></li> | ||
429 | </ul> | ||
390 | <h1·id="al_get_video_fps">al_get_video_fps</h1> | 430 | <h1·id="al_get_video_fps">al_get_video_fps</h1> |
391 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_video_fps<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> | 431 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_video_fps<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> |
392 | <p><a | 432 | <p><a |
393 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L244">Source | 433 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L244">Source |
394 | Code</a></p> | 434 | Code</a></p> |
395 | <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will | 435 | <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will |
396 | not·be·an·integer·value.</p> | 436 | not·be·an·integer·value.</p> |
Max diff block lines reached; 5771/14010 bytes (41.19%) of diff not shown. |
Offset 113, 14 lines modified | Offset 113, 16 lines modified | ||
113 | ······in·sync. | 113 | ······in·sync. |
114 | Since:·5.1.11 | 114 | Since:·5.1.11 |
115 | ******·al_init_video_addon·****** | 115 | ******·al_init_video_addon·****** |
116 | bool·al_init_video_addon(void) | 116 | bool·al_init_video_addon(void) |
117 | Source_Code | 117 | Source_Code |
118 | Initializes·the·video·addon. | 118 | Initializes·the·video·addon. |
119 | Since:·5.1.12 | 119 | Since:·5.1.12 |
120 | Examples: | ||
121 | ····*·ex_video.c | ||
120 | ******·al_is_video_addon_initialized·****** | 122 | ******·al_is_video_addon_initialized·****** |
121 | bool·al_is_video_addon_initialized(void) | 123 | bool·al_is_video_addon_initialized(void) |
122 | Source_Code | 124 | Source_Code |
123 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. | 125 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. |
124 | Since:·5.2.6 | 126 | Since:·5.2.6 |
125 | ******·al_shutdown_video_addon·****** | 127 | ******·al_shutdown_video_addon·****** |
126 | void·al_shutdown_video_addon(void) | 128 | void·al_shutdown_video_addon(void) |
Offset 136, 14 lines modified | Offset 138, 16 lines modified | ||
136 | Since:·5.1.12 | 138 | Since:·5.1.12 |
137 | ******·al_open_video·****** | 139 | ******·al_open_video·****** |
138 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | 140 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) |
139 | Source_Code | 141 | Source_Code |
140 | Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the·meta·info | 142 | Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the·meta·info |
141 | so·you·can·query·e.g. the·size·or·audio·rate. | 143 | so·you·can·query·e.g. the·size·or·audio·rate. |
142 | Since:·5.1.0 | 144 | Since:·5.1.0 |
145 | Examples: | ||
146 | ····*·ex_video.c | ||
143 | ******·al_identify_video·****** | 147 | ******·al_identify_video·****** |
144 | char·const·*al_identify_video(char·const·*filename) | 148 | char·const·*al_identify_video(char·const·*filename) |
145 | Source_Code | 149 | Source_Code |
146 | This·works·exactly·as·al_identify_video_f·but·you·specify·the·filename·of·the | 150 | This·works·exactly·as·al_identify_video_f·but·you·specify·the·filename·of·the |
147 | file·for·which·to·detect·the·type·and·not·a·file·handle.·The·extension,·if·any, | 151 | file·for·which·to·detect·the·type·and·not·a·file·handle.·The·extension,·if·any, |
148 | of·the·passed·filename·is·not·taken·into·account·-·only·the·file·contents. | 152 | of·the·passed·filename·is·not·taken·into·account·-·only·the·file·contents. |
149 | Since:·5.2.8 | 153 | Since:·5.2.8 |
Offset 161, 67 lines modified | Offset 165, 85 lines modified | ||
161 | See·also:·al_init_video_addon,·al_identify_video | 165 | See·also:·al_init_video_addon,·al_identify_video |
162 | ******·al_close_video·****** | 166 | ******·al_close_video·****** |
163 | void·al_close_video(ALLEGRO_VIDEO·*video) | 167 | void·al_close_video(ALLEGRO_VIDEO·*video) |
164 | Source_Code | 168 | Source_Code |
165 | Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is | 169 | Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is |
166 | invalid·after·the·function·returns. | 170 | invalid·after·the·function·returns. |
167 | Since:·5.1.0 | 171 | Since:·5.1.0 |
172 | Examples: | ||
173 | ····*·ex_video.c | ||
168 | ******·al_start_video·****** | 174 | ******·al_start_video·****** |
169 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | 175 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) |
170 | Source_Code | 176 | Source_Code |
171 | Starts·streaming·the·video·from·the·beginning. | 177 | Starts·streaming·the·video·from·the·beginning. |
172 | Since:·5.1.0 | 178 | Since:·5.1.0 |
179 | Examples: | ||
180 | ····*·ex_video.c | ||
173 | ******·al_start_video_with_voice·****** | 181 | ******·al_start_video_with_voice·****** |
174 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | 182 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) |
175 | Source_Code | 183 | Source_Code |
176 | Like·al_start_video·but·audio·is·routed·to·the·provided·voice. | 184 | Like·al_start_video·but·audio·is·routed·to·the·provided·voice. |
177 | Since:·5.1.0 | 185 | Since:·5.1.0 |
178 | ******·al_get_video_event_source·****** | 186 | ******·al_get_video_event_source·****** |
179 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | 187 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) |
180 | Source_Code | 188 | Source_Code |
181 | Get·an·event·source·for·the·video.·The·possible·events·are·described·under | 189 | Get·an·event·source·for·the·video.·The·possible·events·are·described·under |
182 | ALLEGRO_VIDEO_EVENT_TYPE. | 190 | ALLEGRO_VIDEO_EVENT_TYPE. |
183 | Since:·5.1.0 | 191 | Since:·5.1.0 |
192 | Examples: | ||
193 | ····*·ex_video.c | ||
184 | ******·al_set_video_playing·****** | 194 | ******·al_set_video_playing·****** |
185 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) | 195 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) |
186 | Source_Code | 196 | Source_Code |
187 | Paused·or·resumes·playback. | 197 | Paused·or·resumes·playback. |
188 | Since:·5.1.12 | 198 | Since:·5.1.12 |
199 | Examples: | ||
200 | ····*·ex_video.c | ||
189 | ******·al_is_video_playing·****** | 201 | ******·al_is_video_playing·****** |
190 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) | 202 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) |
191 | Source_Code | 203 | Source_Code |
192 | Returns·true·if·the·video·is·currently·playing. | 204 | Returns·true·if·the·video·is·currently·playing. |
193 | Since:·5.1.12 | 205 | Since:·5.1.12 |
206 | Examples: | ||
207 | ····*·ex_video.c | ||
194 | ******·al_get_video_audio_rate·****** | 208 | ******·al_get_video_audio_rate·****** |
195 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) | 209 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) |
196 | Source_Code | 210 | Source_Code |
197 | Returns·the·audio·rate·of·the·video,·in·Hz. | 211 | Returns·the·audio·rate·of·the·video,·in·Hz. |
198 | Since:·5.1.0 | 212 | Since:·5.1.0 |
213 | Examples: | ||
214 | ····*·ex_video.c | ||
199 | ******·al_get_video_fps·****** | 215 | ******·al_get_video_fps·****** |
200 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) | 216 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) |
201 | Source_Code | 217 | Source_Code |
202 | Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an | 218 | Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an |
203 | integer·value. | 219 | integer·value. |
204 | Since:·5.1.0 | 220 | Since:·5.1.0 |
221 | Examples: | ||
222 | ····*·ex_video.c | ||
205 | ******·al_get_video_scaled_width·****** | 223 | ******·al_get_video_scaled_width·****** |
206 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) | 224 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) |
207 | Source_Code | 225 | Source_Code |
208 | Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do | 226 | Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do |
209 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of | 227 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of |
210 | the·frame·bitmap. | 228 | the·frame·bitmap. |
211 | Since:·5.1.12 | 229 | Since:·5.1.12 |
212 | See·also:·al_get_video_frame | 230 | See·also:·al_get_video_frame |
231 | Examples: | ||
232 | ····*·ex_video.c | ||
213 | ******·al_get_video_scaled_height·****** | 233 | ******·al_get_video_scaled_height·****** |
214 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) | 234 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) |
215 | Source_Code | 235 | Source_Code |
216 | Returns·the·height·with·which·the·video·frame·should·be·drawn.·Videos·often·do | 236 | Returns·the·height·with·which·the·video·frame·should·be·drawn.·Videos·often·do |
217 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·height | 237 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·height |
218 | of·the·frame·bitmap. | 238 | of·the·frame·bitmap. |
219 | See·also:·al_get_video_frame | 239 | See·also:·al_get_video_frame |
220 | Since:·5.1.12 | 240 | Since:·5.1.12 |
241 | Examples: | ||
242 | ····*·ex_video.c | ||
221 | ******·al_get_video_frame·****** | 243 | ******·al_get_video_frame·****** |
222 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) | 244 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) |
223 | Source_Code | 245 | Source_Code |
224 | Returns·the·current·video·frame.·The·bitmap·is·owned·by·the·video·so·do·not | 246 | Returns·the·current·video·frame.·The·bitmap·is·owned·by·the·video·so·do·not |
225 | attempt·to·free·it.·The·bitmap·will·stay·valid·until·the·next·call·to | 247 | attempt·to·free·it.·The·bitmap·will·stay·valid·until·the·next·call·to |
226 | al_get_video_frame. | 248 | al_get_video_frame. |
227 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a·video | 249 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a·video |
Offset 231, 21 lines modified | Offset 253, 27 lines modified | ||
231 | float·sw·=·al_get_bitmap_width(frame); | 253 | float·sw·=·al_get_bitmap_width(frame); |
232 | float·sh·=·al_get_bitmap_height(frame); | 254 | float·sh·=·al_get_bitmap_height(frame); |
233 | float·dw·=·scale·*·al_get_video_scaled_width(video); | 255 | float·dw·=·scale·*·al_get_video_scaled_width(video); |
234 | float·dh·=·scale·*·al_get_video_scaled_height(video); | 256 | float·dh·=·scale·*·al_get_video_scaled_height(video); |
235 | al_draw_scaled_bitmap(frame,·0,·0,·sw,·sh,·0,·0,·dw,·dh,·0); | 257 | al_draw_scaled_bitmap(frame,·0,·0,·sw,·sh,·0,·0,·dw,·dh,·0); |
236 | Since:·5.1.0 | 258 | Since:·5.1.0 |
237 | See·also:·al_get_video_scaled_width,·al_get_video_scaled_height | 259 | See·also:·al_get_video_scaled_width,·al_get_video_scaled_height |
Max diff block lines reached; 682/5087 bytes (13.41%) of diff not shown. |