339 KB
/srv/reproducible-results/rbuild-debian/r-b-build.s8hz9oFE/b1/allegro5_5.2.8.0+dfsg-1_amd64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.s8hz9oFE/b2/allegro5_5.2.8.0+dfsg-1_amd64.changes
951 B
Files
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
  
1 ·5190ef15884a1ca4a0de1c67035212e1·1503520·doc·optional·allegro5-doc_5.2.8.0+dfsg-1_all.deb1 ·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.deb2 ·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.deb3 ·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.deb4 ·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.deb5 ·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.deb6 ·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.deb7 ·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.deb8 ·1eb91b927fedee6cc797539e8af51d80·18028·libdevel·optional·liballegro-dialog5-dev_5.2.8.0+dfsg-1_amd64.deb
338 KB
allegro5-doc_5.2.8.0+dfsg-1_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2022-12-06·16:59:12.000000·debian-binary1 -rw-r--r--···0········0········0········4·2022-12-06·16:59:12.000000·debian-binary
2 -rw-r--r--···0········0········0····31420·2022-12-06·16:59:12.000000·control.tar.xz2 -rw-r--r--···0········0········0····31416·2022-12-06·16:59:12.000000·control.tar.xz
3 -rw-r--r--···0········0········0··1471908·2022-12-06·16:59:12.000000·data.tar.xz3 -rw-r--r--···0········0········0··1472900·2022-12-06·16:59:12.000000·data.tar.xz
578 B
control.tar.xz
550 B
control.tar
480 B
./control
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 Package:·allegro5-doc1 Package:·allegro5-doc
2 Source:·allegro52 Source:·allegro5
3 Version:·2:5.2.8.0+dfsg-13 Version:·2:5.2.8.0+dfsg-1
4 Architecture:·all4 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:·55096 Installed-Size:·5528
7 Depends:·fonts-dejavu-core7 Depends:·fonts-dejavu-core
8 Section:·doc8 Section:·doc
9 Priority:·optional9 Priority:·optional
10 Multi-Arch:·foreign10 Multi-Arch:·foreign
11 Homepage:·https://liballeg.org/11 Homepage:·https://liballeg.org/
12 Description:·documentation·for·the·Allegro·5·library12 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,
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
337 KB
data.tar.xz
337 KB
data.tar
10.9 KB
file list
    
Offset 197, 65 lines modifiedOffset 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.c197 -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.c198 -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.c199 -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.c200 -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.cpp201 -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.hpp202 -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)····11276·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/acodec.html204 -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)···222882·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/audio.html205 -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.js206 -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)····65603·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/color.html207 -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.html208 -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.html209 -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)····81262·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/display.html210 -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)····76550·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/events.html211 -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)····61011·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/file.html212 -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.html213 -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)····91587·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/font.html214 -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.html215 -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.html216 -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.html217 -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)···219032·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/graphics.html218 -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.html219 -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)····11587·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/image.html220 -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.png222 -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.png223 -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.png224 -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.png225 -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.png226 -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.html227 -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.html228 -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.html229 -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.html230 -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.html231 -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)····10009·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/memfile.html232 -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.html233 -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.html234 -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.html235 -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)····39567·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/mouse.html236 -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)····70997·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html237 -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.html238 -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.css239 -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.html240 -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)····11331·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/physfs.html241 -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.html242 -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)···133765·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/primitives.html243 -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.js244 -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.html245 -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.html246 -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.html247 -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)····34570·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/threads.html248 -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.html249 -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.html250 -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)····21454·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/touch.html251 -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)····81138·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/transformations.html252 -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.html253 -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)····28934·2022-12-06·16:59:12.000000·./usr/share/doc/allegro5-doc/refman/video.html254 -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.allegro5256 -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.gz259 -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.gz260 -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.gz261 -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
1.26 KB
./usr/share/doc/allegro5-doc/refman/acodec.html
    
Offset 225, 11 lines modifiedOffset 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><a227 <p><a
228 href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L13">Source228 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·<a230 <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>
391 B
html2text {}
    
Offset 82, 7 lines modifiedOffset 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.683 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_Code86 Source_Code
87 Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as87 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
19.5 KB
./usr/share/doc/allegro5-doc/refman/audio.html
    
Offset 551, 17 lines modifiedOffset 551, 17 lines modified
551 href="audio.html#al_set_default_mixer">al_set_default_mixer</a>,·<a551 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><a555 <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><a557 <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><a565 <p><a
566 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L342">Source566 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 modifiedOffset 1636, 15 lines modified
1636 <p>Examples:</p>1636 <p>Examples:</p>
1637 <ul>1637 <ul>
1638 <li><a1638 <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><a1640 <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><a1642 <li><a
1643 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L51">ex_synth.cpp</a></li>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><a1649 <p><a
1650 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L49">Source1650 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L49">Source
Offset 1699, 17 lines modifiedOffset 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><a1703 <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><a1705 <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><a1713 <p><a
1714 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio_io.c#L357">Source1714 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 modifiedOffset 1790, 15 lines modified
1790 <p>Examples:</p>1790 <p>Examples:</p>
1791 <ul>1791 <ul>
1792 <li><a1792 <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><a1794 <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><a1796 <li><a
1797 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L509">ex_synth.cpp</a></li>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 <h21799 <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><a1803 <p><a
1804 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L911">Source1804 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L911">Source
Offset 1812, 15 lines modifiedOffset 1812, 15 lines modified
1812 <p>Examples:</p>1812 <p>Examples:</p>
1813 <ul>1813 <ul>
1814 <li><a1814 <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><a1816 <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><a1818 <li><a
1819 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L361">ex_synth.cpp</a></li>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><a1823 <p><a
1824 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L165">Source1824 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·no1826 <p>You·should·call·this·to·finalise·an·audio·stream·that·you·will·no
Offset 2110, 17 lines modifiedOffset 2110, 17 lines modified
2110 <a2110 <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><a2114 <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><a2116 <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><a2123 <p><a
2124 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L588">Source2124 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·<a2126 <p>This·function·needs·to·be·called·for·every·successful·call·of·<a
Offset 2130, 17 lines modifiedOffset 2130, 17 lines modified
2130 <p>See·also:·<a2130 <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><a2134 <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><a2136 <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 <h22141 <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><a2144 <p><a
2145 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_stream.c#L204">Source2145 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.
6.94 KB
html2text {}
    
Offset 285, 16 lines modifiedOffset 285, 16 lines modified
285 ····································\········.285 ····································\········.
286 ······································sample·instance·N286 ······································sample·instance·N
287 Returns·true·on·success,·false·on·error.·al_install_audio·must·have·been·called287 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_sample289 See·also:·al_set_default_mixer,·al_play_sample
290 Examples:290 Examples:
291 ····*·ex_saw.c291 ····*·ex_saw.c
292 ····*·ex_synth.cpp 
293 ····*·ex_audio_props.cpp292 ····*·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_Code297 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·the299 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 modifiedOffset 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·then925 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·it926 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.c929 ····*·ex_saw.c
930 ····*·ex_stream_file.c930 ····*·ex_stream_file.c
931 ····*·ex_synth.cpp931 ····*·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_Code936 Source_Code
937 Creates·an·ALLEGRO_AUDIO_STREAM.·The·stream·will·be·set·to·play·by·default.·It937 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 modifiedOffset 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_count968 ·····buffer_size·=·bytes_per_fragment·*·fragment_count
969 ·····Note:·Unlike·many·Allegro·objects,·audio·streams·are·not·implicitly969 ·····Note:·Unlike·many·Allegro·objects,·audio·streams·are·not·implicitly
970 ·····destroyed·when·Allegro·is·shut·down.·You·must·destroy·them·manually970 ·····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.c973 ····*·ex_saw.c
974 ····*·ex_synth.cpp 
975 ····*·ex_resample_test.c974 ····*·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_Code979 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·by981 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 modifiedOffset 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.c1028 ····*·ex_saw.c
1029 ····*·ex_stream_file.c1029 ····*·ex_stream_file.c
1030 ····*·ex_synth.cpp1030 ····*·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_Code1034 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·the1036 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.c1039 ····*·ex_saw.c
1040 ····*·ex_stream_file.c1040 ····*·ex_stream_file.c
1041 ····*·ex_synth.cpp1041 ····*·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_Code1044 Source_Code
1045 You·should·call·this·to·finalise·an·audio·stream·that·you·will·no·longer·be1045 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’s1046 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_stream1048 See·also:·al_destroy_audio_stream
Offset 1201, 27 lines modifiedOffset 1201, 27 lines modified
1201 ·····that·al_get_audio_stream_fragment·will·not·return·NULL,·so·you·still1201 ·····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_length1205 al_get_audio_stream_depth,·al_get_audio_stream_length
1206 Examples:1206 Examples:
1207 ····*·ex_saw.c1207 ····*·ex_saw.c
1208 ····*·ex_synth.cpp 
1209 ····*·ex_resample_test.c1208 ····*·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_Code1212 Source_Code
1213 This·function·needs·to·be·called·for·every·successful·call·of1213 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)·is1214 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_fragment1216 See·also:·al_get_audio_stream_fragment
1217 Examples:1217 Examples:
1218 ····*·ex_saw.c1218 ····*·ex_saw.c
1219 ····*·ex_synth.cpp 
1220 ····*·ex_resample_test.c1219 ····*·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_Code1223 Source_Code
1224 Returns·the·number·of·fragments·this·stream·uses.·This·is·the·same·value·as1224 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_fragments1226 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 modifiedOffset 1739, 16 lines modified
1739 configurations·of·mixers·and·voices·can·be·used,·in·most·cases·a·single·mixer1739 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·by1740 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_mixer1743 al_restore_default_mixer
1744 Examples:1744 Examples:
1745 ····*·ex_saw.c1745 ····*·ex_saw.c
1746 ····*·ex_synth.cpp 
1747 ····*·ex_audio_props.cpp1746 ····*·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_Code1750 Source_Code
1751 Sets·the·default·mixer.·All·samples·started·with·al_play_sample·will·be·stopped1751 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.·If1752 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 modifiedOffset 1810, 15 lines modified
Max diff block lines reached; 1728/7079 bytes (24.41%) of diff not shown.
2.85 KB
./usr/share/doc/allegro5-doc/refman/color.html
    
Offset 428, 15 lines modifiedOffset 428, 15 lines modified
428 <p>Examples:</p>428 <p>Examples:</p>
429 <ul>429 <ul>
430 <li><a430 <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><a432 <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><a434 <li><a
435 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L190">ex_native_filechooser.c</a></li>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><a439 <p><a
440 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L210">Source440 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 modifiedOffset 942, 12 lines modified
942 <p>Convert·linear·sRGB·color·values·to·gamma·corrected·(i.e. normal)·RGB942 <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],·<a945 <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.8948 Allegro·version·5.2.8
949 ·-·Last·updated:·2025-02-09·11:25:26·UTC949 ·-·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>
1.05 KB
html2text {}
    
Offset 217, 15 lines modifiedOffset 217, 15 lines modified
217 Source_Code217 Source_Code
218 Return·an·ALLEGRO_COLOR·with·the·given·name.·If·the·color·is·not·found·then218 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.c222 ····*·ex_multisample_target.c
223 ····*·ex_clip.c223 ····*·ex_clip.c
224 ····*·ex_native_filechooser.c224 ····*·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_Code227 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,·the230 ····*·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 modifiedOffset 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_Code548 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.8550 Since:·5.2.8
551 See·also:·[al_color_linera],·al_color_rgb_to_linear551 See·also:·[al_color_linera],·al_color_rgb_to_linear
552 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:26·UTC552 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:52·UTC
1.02 KB
./usr/share/doc/allegro5-doc/refman/config.html
    
Offset 564, 12 lines modifiedOffset 564, 12 lines modified
564 <p>Merge·one·configuration·structure·into·another.·Values·in564 <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:·<a567 <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.8570 Allegro·version·5.2.8
571 ·-·Last·updated:·2025-02-09·11:25:05·UTC571 ·-·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>
509 B
html2text {}
    
Offset 297, 8 lines modifiedOffset 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_Code299 Source_Code
300 Merge·one·configuration·structure·into·another.·Values·in·configuration300 Merge·one·configuration·structure·into·another.·Values·in·configuration
301 ‘add’·override·those·in·â€˜master’.·â€˜master’·is·modified.·Comments301 ‘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_config303 See·also:·al_merge_config
304 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:05·UTC304 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:21:53·UTC
1010 B
./usr/share/doc/allegro5-doc/refman/direct3d.html
    
Offset 297, 12 lines modifiedOffset 297, 12 lines modified
297 is·restored.·In·the·callback·you·should·restore·any·d3d·resources·you297 is·restored.·In·the·callback·you·should·restore·any·d3d·resources·you
298 have·created·yourself.·The·callback·receives·the·affected·display·as·a298 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.8303 Allegro·version·5.2.8
304 ·-·Last·updated:·2025-02-09·11:25:24·UTC304 ·-·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>
506 B
html2text {}
    
Offset 132, 8 lines modifiedOffset 132, 8 lines modified
132 ···void·(*callback)(ALLEGRO_DISPLAY·*display))132 ···void·(*callback)(ALLEGRO_DISPLAY·*display))
133 Source_Code133 Source_Code
134 The·callback·will·be·called·whenever·a·D3D·device·that·has·been·reset·is134 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·created135 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.0138 Since:·5.1.0
139 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:24·UTC139 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:47·UTC
11.9 KB
./usr/share/doc/allegro5-doc/refman/display.html
    
Offset 303, 17 lines modifiedOffset 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><a307 <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><a309 <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><a316 <p><a
317 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source317 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.·The319 <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The
Offset 521, 15 lines modifiedOffset 521, 15 lines modified
521 <p>Examples:</p>521 <p>Examples:</p>
522 <ul>522 <ul>
523 <li><a523 <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><a525 <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><a527 <li><a
528 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L108">ex_font_justify.cpp</a></li>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><a532 <p><a
533 href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L64">Source533 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·<a535 <p>Retrieve·an·extra·display·setting·which·was·previously·set·with·<a
Offset 815, 17 lines modifiedOffset 815, 17 lines modified
815 href="events.html#allegro_event_display_expose">documentation·on815 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><a819 <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><a821 <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><a828 <p><a
829 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L177">Source829 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·the831 <p>Return·a·special·bitmap·representing·the·back-buffer·of·the
Offset 942, 35 lines modifiedOffset 942, 35 lines modified
942 <p>See·also:·<a942 <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><a946 <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><a948 <li><a
949 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L100">ex_window_maximized.c</a></li>949 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_bitmap.c#L135">ex_bitmap.c</a></li>
950 <li><a950 <li><a
951 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_fs_resize.c#L102">ex_fs_resize.c</a></li>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><a955 <p><a
956 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L280">Source956 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·Allegro958 <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:·<a960 <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><a964 <li><a
965 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L101">ex_window_maximized.c</a></li>965 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ogre3d.cpp#L108">ex_ogre3d.cpp</a></li>
966 <li><a966 <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><a968 <li><a
969 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ogre3d.cpp#L108">ex_ogre3d.cpp</a></li>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><a973 <p><a
974 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L235">Source974 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.·This976 <p>Resize·the·display.·Returns·true·on·success,·or·false·on·error.·This
Offset 1398, 17 lines modifiedOffset 1398, 17 lines modified
1398 <p>See·also:·<a1398 <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><a1402 <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><a1404 <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 <h21409 <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><a1412 <p><a
1413 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L586">Source1413 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 modifiedOffset 1500, 12 lines modified
1500 <p>Examples:</p>1500 <p>Examples:</p>
1501 <ul>1501 <ul>
1502 <li><a1502 <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.81506 Allegro·version·5.2.8
1507 ·-·Last·updated:·2025-02-09·11:25:08·UTC1507 ·-·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>
4.15 KB
html2text {}
    
Offset 130, 16 lines modifiedOffset 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_Code133 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.c136 ····*·ex_monitorinfo.c
137 ····*·common.c 
138 ····*·ex_d3d.cpp137 ····*·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_Code141 Source_Code
142 Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of142 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_*.·Default143 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·will144 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 modifiedOffset 263, 15 lines modified
263 ······incompatible·with·ALLEGRO_FULLSCREEN.·Since:·5.1.5263 ······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_option266 al_set_display_option
267 Examples:267 Examples:
268 ····*·ex_d3d.cpp268 ····*·ex_d3d.cpp
269 ····*·ex_opengl.c269 ····*·ex_opengl.c
270 ····*·ex_font_justify.cpp270 ····*·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_Code273 Source_Code
274 Retrieve·an·extra·display·setting·which·was·previously·set·with274 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 modifiedOffset 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_Code438 Source_Code
439 Retrieve·the·associated·event·source.·See·the·documentation_on_events·for·a439 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.c442 ····*·ex_keyboard_events.c
443 ····*·ex_touch_input.c 
444 ····*·ex_opengl.c443 ····*·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_Code447 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)·as449 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).·Only450 the·source·bitmap·(e.g·as·the·bitmap·argument·to·al_draw_bitmap).·Only
451 untransformed·operations·are·hardware·accelerated.·These·consist·of451 untransformed·operations·are·hardware·accelerated.·These·consist·of
Offset 512, 25 lines modifiedOffset 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_Code514 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_height516 See·also:·al_get_display_height
517 Examples:517 Examples:
518 ····*·ex_font_justify.cpp518 ····*·ex_font_justify.cpp
519 ····*·ex_window_maximized.c 
520 ····*·ex_fs_resize.c519 ····*·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_Code523 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_width525 See·also:·al_get_display_width
526 Examples:526 Examples:
527 ····*·ex_window_maximized.c 
528 ····*·ex_fs_resize.c 
529 ····*·ex_ogre3d.cpp527 ····*·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_Code532 Source_Code
533 Resize·the·display.·Returns·true·on·success,·or·false·on·error.·This·works·on533 Resize·the·display.·Returns·true·on·success,·or·false·on·error.·This·works·on
534 both·fullscreen·and·windowed·displays,·regardless·of·the·ALLEGRO_RESIZABLE534 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 modifiedOffset 773, 16 lines modified
773 display·while·it·is·not·being·shown.·If·you·do·not·call·this·function·to·let773 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·to774 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.0776 Since:·5.1.0
777 See·also:·ALLEGRO_EVENT_DISPLAY_HALT_DRAWING777 See·also:·ALLEGRO_EVENT_DISPLAY_HALT_DRAWING
778 Examples:778 Examples:
779 ····*·ex_touch_input.c779 ····*·ex_touch_input.c
780 ····*·ex_vertex_buffer.c 
781 ····*·ex_android.c780 ····*·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_Code784 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.1786 Since:·5.1.1
787 See·also:·ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING787 See·also:·ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING
788 Examples:788 Examples:
Offset 829, 8 lines modifiedOffset 829, 8 lines modified
829 bool·al_clipboard_has_text(ALLEGRO_DISPLAY·*display)829 bool·al_clipboard_has_text(ALLEGRO_DISPLAY·*display)
830 Source_Code830 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.12832 Since:·5.1.12
833 See·also:·al_set_clipboard_text,·al_get_clipboard_text833 See·also:·al_set_clipboard_text,·al_get_clipboard_text
834 Examples:834 Examples:
835 ····*·ex_clipboard.c835 ····*·ex_clipboard.c
836 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:08·UTC836 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:13·UTC
14.9 KB
./usr/share/doc/allegro5-doc/refman/events.html
    
Offset 313, 19 lines modifiedOffset 313, 19 lines modified
313 The·time·is·referenced·to·the·same·starting·point·as·<a313 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·fields315 <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><a319 <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><a321 <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·the331 The·joystick·which·generated·the·event.·This·is·not·the·same·as·the
Offset 988, 19 lines modifiedOffset 988, 19 lines modified
988 order.</p>988 order.</p>
989 <p>See·also:·<a989 <p>See·also:·<a
990 href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a990 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><a994 <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><a996 <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><a1003 <p><a
1004 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L72">Source1004 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 modifiedOffset 1083, 19 lines modified
1083 <p>See·also:·<a1083 <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><a1089 <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><a1091 <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><a1098 <p><a
1099 href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L120">Source1099 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·currently1101 <p>Destroy·the·event·queue·specified.·All·event·sources·currently
Offset 1103, 19 lines modifiedOffset 1103, 19 lines modified
1103 queue·is·destroyed.</p>1103 queue·is·destroyed.</p>
1104 <p>See·also:·<a1104 <p>See·also:·<a
1105 href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a1105 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><a1109 <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><a1111 <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><a1119 <p><a
1120 href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L161">Source1120 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 modifiedOffset 1125, 19 lines modified
1125 more·than·once·does·nothing.</p>1125 more·than·once·does·nothing.</p>
1126 <p>See·also:·<a1126 <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><a1131 <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><a1133 <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><a1141 <p><a
1142 href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L181">Source1142 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 modifiedOffset 1197, 17 lines modified
1197 href="events.html#al_get_next_event">al_get_next_event</a>,·<a1197 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><a1201 <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><a1203 <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><a1210 <p><a
1211 href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L299">Source1211 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.
5.46 KB
html2text {}
    
Offset 137, 17 lines modifiedOffset 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.·The138 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·is140 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.c144 ····*·ex_inject_events.c
146 ····*·ex_enet_server.c145 ····*·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·event150 ······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·into153 ······The·stick·number,·counting·from·zero.·Axes·on·a·joystick·are·grouped·into
Offset 509, 17 lines modifiedOffset 509, 17 lines modified
509 typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE;509 typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE;
510 Source_Code510 Source_Code
511 An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are511 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_queue514 See·also:·al_create_event_queue,·al_destroy_event_queue
515 Examples:515 Examples:
516 ····*·common.c 
517 ····*·ex_inject_events.c516 ····*·ex_inject_events.c
518 ····*·ex_enet_server.c517 ····*·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_Code521 Source_Code
522 An·event·source·is·any·object·which·can·generate·events.·For·example,·an522 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_SOURCE523 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 modifiedOffset 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_Code573 Source_Code
574 Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created574 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_QUEUE576 See·also:·al_register_event_source,·al_destroy_event_queue,·ALLEGRO_EVENT_QUEUE
577 Examples:577 Examples:
578 ····*·common.c 
579 ····*·ex_inject_events.c578 ····*·ex_inject_events.c
580 ····*·ex_enet_server.c579 ····*·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_Code583 Source_Code
584 Destroy·the·event·queue·specified.·All·event·sources·currently·registered·with584 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_QUEUE586 See·also:·al_create_event_queue,·ALLEGRO_EVENT_QUEUE
587 Examples:587 Examples:
588 ····*·common.c 
589 ····*·ex_inject_events.c588 ····*·ex_inject_events.c
590 ····*·ex_timer_pause.c589 ····*·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_Code594 Source_Code
595 Register·the·event·source·with·the·event·queue·specified.·An·event·source·may595 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.·Trying596 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·does597 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_SOURCE599 See·also:·al_unregister_event_source,·ALLEGRO_EVENT_SOURCE
600 Examples:600 Examples:
601 ····*·common.c 
602 ····*·ex_inject_events.c601 ····*·ex_inject_events.c
603 ····*·ex_enet_server.c602 ····*·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_Code607 Source_Code
608 Unregister·an·event·source·with·an·event·queue.·If·the·event·source·is·not608 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,·they610 If·the·queue·had·any·events·in·it·which·originated·from·the·event·source,·they
Offset 639, 16 lines modifiedOffset 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_Code641 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_event643 See·also:·al_get_next_event,·al_peek_next_event
644 Examples:644 Examples:
645 ····*·ex_inject_events.c645 ····*·ex_inject_events.c
646 ····*·ex_touch_input.c 
647 ····*·ex_opengl.c646 ····*·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_Code650 Source_Code
651 Take·the·next·event·out·of·the·event·queue·specified,·and·copy·the·contents651 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·the652 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_event653 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 modifiedOffset 683, 17 lines modified
683 Source_Code683 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·the685 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_event688 al_get_next_event
689 Examples:689 Examples:
690 ····*·common.c 
691 ····*·ex_inject_events.c690 ····*·ex_inject_events.c
692 ····*·ex_enet_server.c691 ····*·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_Code696 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·the698 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 modifiedOffset 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_Code824 Source_Code
825 Assign·the·abstract·user·data·to·the·event·source.·Allegro·does·not·use·the825 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·to826 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_data828 See·also:·al_get_event_source_data
829 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:09·UTC829 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.
4.46 KB
./usr/share/doc/allegro5-doc/refman/file.html
    
Offset 226, 17 lines modifiedOffset 226, 17 lines modified
226 <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file226 <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><a230 <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><a232 <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><a239 <p><a
240 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source240 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 modifiedOffset 324, 15 lines modified
324 <p>Examples:</p>324 <p>Examples:</p>
325 <ul>325 <ul>
326 <li><a326 <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><a328 <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><a330 <li><a
331 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L146">ex_physfs.c</a></li>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><a336 <p><a
337 href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L32">Source337 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 modifiedOffset 954, 12 lines modified
954 <p>Examples:</p>954 <p>Examples:</p>
955 <ul>955 <ul>
956 <li><a956 <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.8960 Allegro·version·5.2.8
961 ·-·Last·updated:·2025-02-09·11:25:12·UTC961 ·-·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>
1.66 KB
html2text {}
    
Offset 94, 16 lines modifiedOffset 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_Code96 Source_Code
97 An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk97 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.c100 ····*·ex_file.c
101 ····*·ex_memfile.c 
102 ····*·ex_dir.c101 ····*·ex_dir.c
 102 ····*·ex_memfile.c
103 ******·ALLEGRO_FILE_INTERFACE·******103 ******·ALLEGRO_FILE_INTERFACE·******
104 typedef·struct·ALLEGRO_FILE_INTERFACE104 typedef·struct·ALLEGRO_FILE_INTERFACE
105 Source_Code105 Source_Code
106 A·structure·containing·function·pointers·to·handle·a·type·of·â€œfile”,·real106 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 modifiedOffset 160, 15 lines modified
160 files.·To·avoid·this·behaviour·you·need·to·open·file·streams·in·binary·mode·by160 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.c165 ····*·ex_file.c
166 ····*·ex_file_slice.c166 ····*·ex_file_slice.c
167 ····*·ex_physfs.c167 ····*·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_Code171 Source_Code
172 Opens·a·file·using·the·specified·interface,·instead·of·the·interface·set·with172 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_fopen174 See·also:·al_fopen
Offset 550, 8 lines modifiedOffset 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_Code552 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.c556 ····*·ex_curl.c
557 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:12·UTC557 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:14·UTC
1.01 KB
./usr/share/doc/allegro5-doc/refman/fixed.html
    
Offset 655, 12 lines modifiedOffset 655, 12 lines modified
655 href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source655 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·of657 <p>Fixed·point·hypotenuse·(returns·the·square·root·of
658 <code>x*x·+·y*y</code>).·This·should·be·better·than·calculating·the658 <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.8661 Allegro·version·5.2.8
662 ·-·Last·updated:·2025-02-09·11:25:13·UTC662 ·-·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>
476 B
html2text {}
    
Offset 439, 8 lines modifiedOffset 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_Code442 Source_Code
443 Fixed·point·hypotenuse·(returns·the·square·root·of·x*x·+·y*y).·This·should·be443 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·much444 better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much
445 smaller.445 smaller.
446 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:13·UTC446 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:23·UTC
29.8 KB
./usr/share/doc/allegro5-doc/refman/font.html
    
Offset 251, 18 lines modifiedOffset 251, 18 lines modified
251 If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded251 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·a252 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·<a253 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><a257 <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><a259 <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><a266 <p><a
267 href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source267 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 modifiedOffset 318, 18 lines modified
318 <p>See·also:·<a318 <p>See·also:·<a
319 href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a319 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>,·<a320 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><a324 <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><a326 <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><a333 <p><a
334 href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L393">Source334 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 modifiedOffset 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·if383 <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><a388 <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><a390 <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_timer.c#L47">ex_timer.c</a></li>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><a398 <p><a
399 href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L426">Source399 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 modifiedOffset 480, 18 lines modified
480 <p>See·also:·<a480 <p>See·also:·<a
481 href="font.html#al_get_ustr_width">al_get_ustr_width</a>,·<a481 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>,·<a482 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><a486 <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><a488 <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><a495 <p><a
496 href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L269">Source496 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 modifiedOffset 625, 15 lines modified
625 <p>Examples:</p>625 <p>Examples:</p>
626 <ul>626 <ul>
627 <li><a627 <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><a629 <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><a631 <li><a
632 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L67">ex_mouse_warp.c</a></li>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><a638 <p><a
639 href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L246">Source639 href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L246">Source
Offset 728, 14 lines modifiedOffset 728, 19 lines modified
728 be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the728 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:·<a731 <p>See·also:·<a
732 href="font.html#al_get_fallback_font">al_get_fallback_font</a>,·<a732 href="font.html#al_get_fallback_font">al_get_fallback_font</a>,·<a
733 href="font.html#al_draw_glyph">al_draw_glyph</a>,·<a733 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><a742 <p><a
738 href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L702">Source743 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 modifiedOffset 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>,·<a935 <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>,·<a936 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.
9.33 KB
html2text {}
    
Offset 108, 16 lines modifiedOffset 108, 16 lines modified
108 Source_Code108 Source_Code
109 A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with109 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·by110 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,·it111 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·format112 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.c115 ····*·ex_disable_screensaver.c
 116 ····*·ex_font_justify.cpp
117 ····*·ex_display_events.c117 ····*·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_Code120 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·on123 ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on
Offset 155, 16 lines modifiedOffset 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·has156 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·code157 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·never158 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_addon160 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.c162 ····*·ex_disable_screensaver.c
 163 ····*·ex_font_justify.cpp
164 ····*·ex_display_events.c164 ····*·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_Code167 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.6169 Since:·5.2.6
170 See·also:·al_init_font_addon,·al_shutdown_font_addon170 See·also:·al_init_font_addon,·al_shutdown_font_addon
Offset 190, 17 lines modifiedOffset 190, 17 lines modified
190 ····*·ex_window_title.c190 ····*·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_Code193 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_font195 See·also:·al_load_font
196 Examples:196 Examples:
197 ····*·ex_font_justify.cpp 
198 ····*·ex_disable_screensaver.c197 ····*·ex_disable_screensaver.c
199 ····*·ex_timer.c198 ····*·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_Code203 Source_Code
204 Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this204 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·be206 The·extension·should·include·the·leading·dot·(‘.’)·character.·It·will·be
Offset 250, 16 lines modifiedOffset 250, 16 lines modified
250 ····*·ex_ttf.c250 ····*·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_Code253 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_dimensions255 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.c257 ····*·ex_display_options.c
 258 ····*·ex_record_name.c
259 ····*·ex_color_gradient.c259 ····*·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_Code262 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_dimensions264 See·also:·al_get_text_width,·al_get_ustr_dimensions
265 Examples:265 Examples:
Offset 328, 15 lines modifiedOffset 328, 15 lines modified
328 Source_Code328 Source_Code
329 Formatted·text·output,·using·a·printf()·style·format·string.·All·parameters329 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_ustr331 See·also:·al_draw_text,·al_draw_ustr
332 Examples:332 Examples:
333 ····*·ex_disable_screensaver.c333 ····*·ex_disable_screensaver.c
334 ····*·ex_display_events.c334 ····*·ex_display_events.c
335 ····*·ex_mouse_warp.c335 ····*·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_Code340 Source_Code
341 Formatted·text·output,·using·a·printf()·style·format·string.·All·parameters341 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 modifiedOffset 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_Code391 Source_Code
392 Sets·a·font·which·is·used·instead·if·a·character·is·not·present.·Can·be392 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.12395 Since:·5.1.12
396 See·also:·al_get_fallback_font,·al_draw_glyph,·al_draw_text396 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_Code401 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.12403 Since:·5.1.12
402 See·also:·al_set_fallback_font404 See·also:·al_set_fallback_font
403 ******·Per·glyph·text·handling·******405 ******·Per·glyph·text·handling·******
Offset 542, 14 lines modifiedOffset 544, 17 lines modified
542 ·······/··\·····|544 ·······/··\·····|
543 ······/____\····|545 ······/____\····|
544 ·····/······\···|546 ·····/······\···|
545 ····/········\···\_547 ····/········\···\_
546 ····---------------548 ····---------------
547 Since:·5.1.12549 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_Code559 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 modifiedOffset 582, 17 lines modified
577 The·flags·ALLEGRO_ALIGN_LEFT,·ALLEGRO_ALIGN_CENTRE,·ALLEGRO_ALIGN_RIGHT·and582 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·without584 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.
990 B
./usr/share/doc/allegro5-doc/refman/fshook.html
    
Offset 705, 12 lines modifiedOffset 705, 12 lines modified
705 <p>Return·a·pointer·to·the·<a705 <p>Return·a·pointer·to·the·<a
706 href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·table706 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>,·<a708 <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.8711 Allegro·version·5.2.8
712 ·-·Last·updated:·2025-02-09·11:25:14·UTC712 ·-·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>
435 B
html2text {}
    
Offset 378, 8 lines modifiedOffset 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_Code381 Source_Code
382 Return·a·pointer·to·the·ALLEGRO_FS_INTERFACE·table·in·effect·for·the·calling382 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:·2025-02-09·11:25:14·UTC385 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:24·UTC
1020 B
./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html
    
Offset 242, 12 lines modifiedOffset 242, 12 lines modified
242 <li><a242 <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><a244 <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.8248 Allegro·version·5.2.8
249 ·-·Last·updated:·2025-02-09·11:25:16·UTC249 ·-·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>
465 B
html2text {}
    
Offset 90, 8 lines modifiedOffset 90, 8 lines modified
90 al_set_new_display_refresh_rate,·and·al_set_new_display_flags·to·find·the90 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·will91 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_mode93 See·also:·al_get_display_mode
94 Examples:94 Examples:
95 ····*·ex_monitorinfo.c95 ····*·ex_monitorinfo.c
96 ····*·ex_display_options.c96 ····*·ex_display_options.c
97 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:16·UTC97 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:25·UTC
999 B
./usr/share/doc/allegro5-doc/refman/getting_started.html
    
Offset 327, 12 lines modifiedOffset 327, 12 lines modified
327 href="system.html#al_init">al_init</a>·becomes·more·scrict.·See327 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.8333 Allegro·version·5.2.8
334 ·-·Last·updated:·2025-02-09·11:25:02·UTC334 ·-·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>
470 B
html2text {}
    
Offset 195, 8 lines modifiedOffset 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·by196 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·those197 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:·2025-02-09·11:25:02·UTC202 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:21:37·UTC
23.9 KB
./usr/share/doc/allegro5-doc/refman/graphics.html
    
Offset 405, 15 lines modifiedOffset 405, 15 lines modified
405 <p>Examples:</p>405 <p>Examples:</p>
406 <ul>406 <ul>
407 <li><a407 <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><a409 <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><a411 <li><a
412 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L80">ex_font_justify.cpp</a></li>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><a417 <p><a
418 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L553">Source418 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 modifiedOffset 625, 15 lines modified
625 <p>Examples:</p>625 <p>Examples:</p>
626 <ul>626 <ul>
627 <li><a627 <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><a629 <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><a631 <li><a
632 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color2.c#L38">ex_color2.c</a></li>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><a636 <p><a
637 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source637 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·bit639 <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit
Offset 751, 15 lines modifiedOffset 751, 15 lines modified
751 <p>Examples:</p>751 <p>Examples:</p>
752 <ul>752 <ul>
753 <li><a753 <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><a755 <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><a757 <li><a
758 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_pixelformat.cpp#L23">ex_pixelformat.cpp</a></li>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><a762 <p><a
763 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L398">Source763 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 modifiedOffset 1001, 15 lines modified
1001 <p>Examples:</p>1001 <p>Examples:</p>
1002 <ul>1002 <ul>
1003 <li><a1003 <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><a1005 <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><a1007 <li><a
1008 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L37">ex_blend_bench.c</a></li>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><a1012 <p><a
1013 href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L188">Source1013 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·the1015 <p>Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the
Offset 1137, 15 lines modifiedOffset 1137, 15 lines modified
1137 <p>Examples:</p>1137 <p>Examples:</p>
1138 <ul>1138 <ul>
1139 <li><a1139 <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><a1141 <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><a1143 <li><a
1144 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L365">ex_blend2.cpp</a></li>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><a1148 <p><a
1149 href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_type.c#L154">Source1149 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.·The1151 <p>Converts·the·bitmap·to·the·current·bitmap·flags·and·format.·The
Offset 1494, 17 lines modifiedOffset 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:·<a1496 <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><a1500 <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·<a1507 <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 modifiedOffset 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·mirrored1532 <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><a1537 <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><a1545 <p><a
1546 href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L330">Source1546 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 modifiedOffset 1641, 17 lines modified
1641 href="graphics.html#al_put_pixel">al_put_pixel</a>,·<a1641 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><a1645 <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><a1647 <li><a
Max diff block lines reached; 7611/15689 bytes (48.51%) of diff not shown.
8.52 KB
html2text {}
    
Offset 204, 15 lines modifiedOffset 204, 15 lines modified
204 Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·ALLEGRO_COLOR,·using·1.0f·for204 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_f207 See·also:·al_map_rgba,·al_map_rgb,·al_map_rgba_f
208 Examples:208 Examples:
209 ····*·ex_enet_server.c209 ····*·ex_enet_server.c
210 ····*·ex_keyboard_events.c210 ····*·ex_keyboard_events.c
211 ····*·ex_font_justify.cpp211 ····*·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_Code215 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_f218 See·also:·al_map_rgb,·al_premul_rgba,·al_map_rgb_f
Offset 339, 15 lines modifiedOffset 339, 15 lines modified
339 ······size·of·a·single·pixel,·but·for·blocked·pixel·formats·this·value·is339 ······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_FORMAT342 ALLEGRO_PIXEL_FORMAT
343 Examples:343 Examples:
344 ····*·ex_lockbitmap.c344 ····*·ex_lockbitmap.c
345 ····*·ex_premulalpha.c345 ····*·ex_premulalpha.c
346 ····*·ex_color2.c346 ····*·ex_multisample.c
347 *****·ALLEGRO_PIXEL_FORMAT·*****347 *****·ALLEGRO_PIXEL_FORMAT·*****
348 typedef·enum·ALLEGRO_PIXEL_FORMAT348 typedef·enum·ALLEGRO_PIXEL_FORMAT
349 Source_Code349 Source_Code
350 Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a350 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·for351 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 modifiedOffset 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·alpha447 ······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_format449 See·also:·al_set_new_bitmap_format,·al_get_bitmap_format
450 Examples:450 Examples:
451 ····*·ex_convert.c451 ····*·ex_convert.c
452 ····*·ex_drawpixels.c452 ····*·ex_drawpixels.c
453 ····*·ex_pixelformat.cpp453 ····*·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_Code456 Source_Code
457 Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies.·For457 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_bits459 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 modifiedOffset 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_Code591 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.c594 ····*·ex_convert.c
595 ····*·ex_nodisplay.c595 ····*·ex_nodisplay.c
596 ····*·ex_blend_bench.c596 ····*·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_Code599 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·memory601 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·the603 Unless·you·set·the·ALLEGRO_MEMORY_BITMAP·flag,·the·bitmap·is·created·for·the
Offset 678, 15 lines modifiedOffset 678, 15 lines modified
678 the·new·bitmap·is·a·memory·bitmap,·its·projection·bitmap·is·reset·to·be678 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_bitmap681 al_convert_bitmap
682 Examples:682 Examples:
683 ····*·ex_subbitmap.c683 ····*·ex_subbitmap.c
684 ····*·ex_font.c684 ····*·ex_font.c
685 ····*·ex_blend2.cpp685 ····*·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_Code688 Source_Code
689 Converts·the·bitmap·to·the·current·bitmap·flags·and·format.·The·bitmap·will·be689 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·of690 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·is691 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 modifiedOffset 898, 16 lines modified
898 ·····addon·which·(for·backwards·compatibility)·alters·the·wrapping898 ·····addon·which·(for·backwards·compatibility)·alters·the·wrapping
899 ·····setting.·To·minimize·this·issue,·use·a·wrapping·setting·that’s·not899 ·····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.8901 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_WRAP903 See·also:·ALLEGRO_BITMAP_WRAP
904 Examples:904 Examples:
905 ····*·ex_prim.c 
906 ····*·ex_prim_wrap.c905 ····*·ex_prim_wrap.c
 906 ····*·ex_prim.c
907 *****·al_get_new_bitmap_wrap·*****907 *****·al_get_new_bitmap_wrap·*****
908 Source·Code908 Source·Code
909 Returns·the·value·currently·set·with·al_set_new_bitmap_wrap·on·the·current909 Returns·the·value·currently·set·with·al_set_new_bitmap_wrap·on·the·current
910 thread.910 thread.
911 Since:·5.2.8911 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_WRAP913 See·also:·ALLEGRO_BITMAP_WRAP
Offset 922, 16 lines modifiedOffset 922, 16 lines modified
922 ····*·ALLEGRO_BITMAP_WRAP_REPEAT·-·The·texture·coordinates·get·shifted·to·the922 ····*·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·the924 ····*·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·across926 ····*·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.c929 ····*·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_Code934 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_flags936 See·also:·al_set_new_bitmap_flags
937 Examples:937 Examples:
Offset 982, 16 lines modifiedOffset 982, 16 lines modified
982 Source_Code982 Source_Code
983 Get·a·pixel’s·color·value·from·the·specified·bitmap.·This·operation·is·slow983 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·this984 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_bitmap986 See·also:·ALLEGRO_COLOR,·al_put_pixel,·al_lock_bitmap
987 Examples:987 Examples:
988 ····*·ex_blend_test.c988 ····*·ex_blend_test.c
989 ····*·ex_vertex_buffer.c 
990 ····*·ex_compressed.c989 ····*·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.
1.08 KB
./usr/share/doc/allegro5-doc/refman/haptic.html
    
Offset 1241, 12 lines modifiedOffset 1241, 12 lines modified
1241 <p><em><a·href="getting_started.html#unstable-api">Unstable1241 <p><em><a·href="getting_started.html#unstable-api">Unstable
1242 API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all1242 API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all
1243 the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from1243 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.81247 Allegro·version·5.2.8
1248 ·-·Last·updated:·2025-02-09·11:25:17·UTC1248 ·-·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>
588 B
html2text {}
    
Offset 726, 8 lines modifiedOffset 726, 8 lines modified
726 again·manually·in·this·case.·However,·if·true·is·returned,·it·is·necessary·to726 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,·to727 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.8729 Since:·5.1.8
730 ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for730 ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for
731 ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting731 ·····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:·2025-02-09·11:25:17·UTC733 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:29·UTC
3.17 KB
./usr/share/doc/allegro5-doc/refman/image.html
    
Offset 196, 14 lines modifiedOffset 196, 23 lines modified
196 installed·libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to196 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·DDS198 <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·a200 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·the201 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 <h1212 <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><a215 <p><a
207 href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source216 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·returns218 <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns
Offset 221, 12 lines modifiedOffset 230, 12 lines modified
221 <p><a230 <p><a
222 href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L185">Source231 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·<a233 <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.8236 Allegro·version·5.2.8
228 ·-·Last·updated:·2025-02-09·11:25:26·UTC237 ·-·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>
1.29 KB
html2text {}
    
Offset 68, 14 lines modifiedOffset 68, 18 lines modified
68 Other·formats·may·be·available·depending·on·the·operating·system·and·installed68 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·universally69 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·file71 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·when72 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·will73 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_Code81 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.683 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 modifiedOffset 87, 8 lines modified
83 Shut·down·the·image·addon.·This·is·done·automatically·at·program·exit,·but·can87 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_Code91 Source_Code
88 Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as92 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:·2025-02-09·11:25:26·UTC94 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:54·UTC
847 B
./usr/share/doc/allegro5-doc/refman/index.html
    
Offset 154, 12 lines modifiedOffset 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.8160 Allegro·version·5.2.8
161 ·-·Last·updated:·2025-02-09·11:25:30·UTC161 ·-·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>
334 B
html2text {}
    
Offset 88, 8 lines modifiedOffset 88, 8 lines modified
88 ····*·Image_I/O_addon88 ····*·Image_I/O_addon
89 ····*·Main_addon89 ····*·Main_addon
90 ····*·Memfile_addon90 ····*·Memfile_addon
91 ····*·Native_dialogs_addon91 ····*·Native_dialogs_addon
92 ····*·PhysicsFS_addon92 ····*·PhysicsFS_addon
93 ····*·Primitives_addon93 ····*·Primitives_addon
94 ····*·Video_streaming_addon94 ····*·Video_streaming_addon
95 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:30·UTC95 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:23:05·UTC
820 B
./usr/share/doc/allegro5-doc/refman/index_all.html
    
Offset 2879, 12 lines modifiedOffset 2879, 12 lines modified
2879 <li><a2879 <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.82885 Allegro·version·5.2.8
2886 ·-·Last·updated:·2025-02-09·11:25:30·UTC2886 ·-·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>
373 B
html2text {}
    
Offset 1252, 8 lines modifiedOffset 1252, 8 lines modified
1252 ····*·al_wait_for_event_timed1252 ····*·al_wait_for_event_timed
1253 ····*·al_wait_for_event_until1253 ····*·al_wait_for_event_until
1254 ····*·al_wait_for_vsync1254 ····*·al_wait_for_vsync
1255 ····*·al_win_add_window_callback1255 ····*·al_win_add_window_callback
1256 ····*·al_win_remove_window_callback1256 ····*·al_win_remove_window_callback
1257 ····*·al_x_set_initial_icon1257 ····*·al_x_set_initial_icon
1258 ····*·iPhone1258 ····*·iPhone
1259 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:30·UTC1259 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:23:07·UTC
914 B
./usr/share/doc/allegro5-doc/refman/joystick.html
    
Offset 587, 12 lines modifiedOffset 587, 12 lines modified
587 <li><a587 <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><a589 <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.8593 Allegro·version·5.2.8
594 ·-·Last·updated:·2025-02-09·11:25:18·UTC594 ·-·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>
377 B
html2text {}
    
Offset 284, 8 lines modifiedOffset 284, 8 lines modified
284 Source_Code284 Source_Code
285 Returns·the·global·joystick·event·source.·All·joystick_events·are·generated·by285 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.c288 ····*·ex_joystick_hotplugging.c
289 ····*·ex_joystick_events.c289 ····*·ex_joystick_events.c
290 ····*·ex_haptic2.cpp290 ····*·ex_haptic2.cpp
291 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:18·UTC291 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:31·UTC
921 B
./usr/share/doc/allegro5-doc/refman/keyboard.html
    
Offset 471, 12 lines modifiedOffset 471, 12 lines modified
471 <li><a471 <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><a473 <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.8477 Allegro·version·5.2.8
478 ·-·Last·updated:·2025-02-09·11:25:18·UTC478 ·-·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>
403 B
html2text {}
    
Offset 268, 8 lines modifiedOffset 268, 8 lines modified
268 Retrieve·the·keyboard·event·source.·All·keyboard_events·are·generated·by·this268 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.c272 ····*·ex_keyboard_events.c
273 ····*·ex_opengl.c273 ····*·ex_opengl.c
274 ····*·ex_timedwait.c274 ····*·ex_timedwait.c
275 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:18·UTC275 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:35·UTC
1.34 KB
./usr/share/doc/allegro5-doc/refman/main.html
    
Offset 178, 12 lines modifiedOffset 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·its179 <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·port180 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.8184 Allegro·version·5.2.8
185 ·-·Last·updated:·2025-02-09·11:25:27·UTC185 ·-·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>
508 B
html2text {}
    
Offset 56, 8 lines modifiedOffset 56, 8 lines modified
56 If·the·user·main·function·is·defined·in·C++,·then·it·must·have·the·following56 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·do60 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:·2025-02-09·11:25:27·UTC63 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:56·UTC
2.32 KB
./usr/share/doc/allegro5-doc/refman/memfile.html
    
Offset 186, 22 lines modifiedOffset 186, 27 lines modified
186 Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file186 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·read187 size·is·fixed·and·cannot·be·expanded.·The·file·is·always·read
188 from/written·to·in·binary·mode,·which·means·that·no·newline·translation188 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·(if191 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 <h1198 <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><a201 <p><a
197 href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source202 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·<a204 <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.8207 Allegro·version·5.2.8
203 ·-·Last·updated:·2025-02-09·11:25:27·UTC208 ·-·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>
900 B
html2text {}
    
Offset 61, 13 lines modifiedOffset 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·is63 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·binary64 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·are66 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_Code72 Source_Code
71 Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as73 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:·2025-02-09·11:25:27·UTC75 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:59·UTC
2.91 KB
./usr/share/doc/allegro5-doc/refman/memory.html
    
Offset 216, 17 lines modifiedOffset 216, 17 lines modified
216 <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a216 <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><a220 <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><a222 <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><a230 <p><a
231 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source231 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 modifiedOffset 323, 12 lines modified
323 The·context·arguments·may·be·used·for·debugging.·The·new·functions323 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:·<a326 <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.8329 Allegro·version·5.2.8
330 ·-·Last·updated:·2025-02-09·11:25:19·UTC330 ·-·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>
1.17 KB
html2text {}
    
Offset 80, 16 lines modifiedOffset 80, 16 lines modified
80 Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed80 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·a81 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_context84 See·also:·al_malloc,·al_free_with_context
85 Examples:85 Examples:
86 ····*·ex_clipboard.c86 ····*·ex_clipboard.c
87 ····*·ex_vertex_buffer.c 
88 ····*·ex_record_name.c87 ····*·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_Code92 Source_Code
93 Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be93 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 modifiedOffset 148, 8 lines modified
148 Source_Code148 Source_Code
149 Override·the·memory·management·functions·with·implementations·of149 Override·the·memory·management·functions·with·implementations·of
150 al_malloc_with_context,·al_free_with_context,·al_realloc_with_context·and150 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.·The151 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_INTERFACE154 See·also:·ALLEGRO_MEMORY_INTERFACE
155 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:19·UTC155 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:36·UTC
1.21 KB
./usr/share/doc/allegro5-doc/refman/misc.html
    
Offset 198, 12 lines modifiedOffset 198, 12 lines modified
198 other·system·(like·OSX)·don’t·allow·calling·<a198 other·system·(like·OSX)·don’t·allow·calling·<a
199 href="system.html#al_install_system">al_install_system</a>·in·the·main199 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·and201 <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.8204 Allegro·version·5.2.8
205 ·-·Last·updated:·2025-02-09·11:25:19·UTC205 ·-·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>
656 B
html2text {}
    
Offset 66, 8 lines modifiedOffset 66, 8 lines modified
66 This·function·is·useful·in·cases·where·you·don’t·have·a·main()·function·but66 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·and67 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.·But68 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·the69 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·return71 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:·2025-02-09·11:25:19·UTC73 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:36·UTC
919 B
./usr/share/doc/allegro5-doc/refman/monitor.html
    
Offset 320, 12 lines modifiedOffset 320, 12 lines modified
320 API</a>:</em>·This·is·an·experimental·feature·and·currently·only·works320 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:·<a323 <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.8326 Allegro·version·5.2.8
327 ·-·Last·updated:·2025-02-09·11:25:19·UTC327 ·-·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>
449 B
html2text {}
    
Offset 133, 8 lines modifiedOffset 133, 8 lines modified
133 int·al_get_monitor_refresh_rate(int·adapter)133 int·al_get_monitor_refresh_rate(int·adapter)
134 Source_Code134 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.6136 Since:·5.2.6
137 ·····Unstable_API:·This·is·an·experimental·feature·and·currently·only137 ·····Unstable_API:·This·is·an·experimental·feature·and·currently·only
138 ·····works·on·Windows.138 ·····works·on·Windows.
139 See·also:·al_get_monitor_info139 See·also:·al_get_monitor_info
140 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:19·UTC140 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:38·UTC
4.22 KB
./usr/share/doc/allegro5-doc/refman/mouse.html
    
Offset 241, 17 lines modifiedOffset 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><a245 <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><a247 <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><a254 <p><a
255 href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L40">Source255 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·<a257 <p>Returns·true·if·<a
Offset 412, 15 lines modifiedOffset 412, 15 lines modified
412 <p>Examples:</p>412 <p>Examples:</p>
413 <ul>413 <ul>
414 <li><a414 <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><a416 <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><a418 <li><a
419 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer.c#L191">ex_timer.c</a></li>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><a423 <p><a
424 href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L316">Source424 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).·This426 <p>Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This
Offset 634, 12 lines modifiedOffset 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.8640 Allegro·version·5.2.8
641 ·-·Last·updated:·2025-02-09·11:25:19·UTC641 ·-·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>
1.6 KB
html2text {}
    
Offset 95, 16 lines modifiedOffset 95, 16 lines modified
95 bool·al_install_mouse(void)95 bool·al_install_mouse(void)
96 Source_Code96 Source_Code
97 Install·a·mouse·driver.97 Install·a·mouse·driver.
98 Returns·true·if·successful.·If·a·driver·was·already·installed,·nothing·happens98 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.c101 ····*·ex_mouse_focus.c
102 ····*·ex_font_justify.cpp 
103 ····*·ex_mouse.c102 ····*·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_Code106 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_Code110 Source_Code
Offset 199, 15 lines modifiedOffset 199, 15 lines modified
199 Source_Code199 Source_Code
200 Retrieve·the·mouse·event·source.·All·mouse_events·are·generated·by·this·event200 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.c204 ····*·ex_display_events.c
205 ····*·ex_mouse_warp.c205 ····*·ex_mouse_warp.c
206 ····*·ex_timer.c206 ····*·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_Code209 Source_Code
210 Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This·precision210 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.·It211 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·a212 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·those213 simple·way·if·you·alter·the·precision·often,·so·it·is·suggested·to·reset·those
Offset 344, 8 lines modifiedOffset 344, 8 lines modified
344 See·also:·al_ungrab_mouse344 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_Code347 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_mouse350 See·also:·al_grab_mouse
351 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:19·UTC351 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:38·UTC
52.3 KB
./usr/share/doc/allegro5-doc/refman/native_dialog.html
    
Offset 236, 20 lines modifiedOffset 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">&lt;allegro5/allegro_native_dialog.h&gt;</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">&lt;allegro5/allegro_native_dialog.h&gt;</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><a239 <p><a
240 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source240 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><a250 <p><a
246 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source251 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><a263 <p><a
252 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L15">Source264 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 modifiedOffset 273, 23 lines modified
261 is·<a273 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·to275 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:·<a278 <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 <h1289 <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><a292 <p><a
272 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L32">Source293 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,·otherwise295 <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise
Offset 348, 53 lines modifiedOffset 369, 78 lines modified
348 and·<a369 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·<a371 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·returns374 <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><a384 <p><a
359 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L74">Source385 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·given387 <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·may389 <p>This·function·blocks·the·calling·thread·until·it·returns,·so·you·may
364 want·to·spawn·a·thread·with·<a390 want·to·spawn·a·thread·with·<a
365 href="threads.html#al_create_thread">al_create_thread</a>·and·call·it391 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 <h1399 <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><a402 <p><a
372 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L83">Source403 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·was405 <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 <h1412 <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><a416 <p><a
381 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L91">Source417 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>.·The419 <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·<a420 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 <h1428 <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><a431 <p><a
391 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L102">Source432 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.
15.4 KB
html2text {}
    
Offset 94, 30 lines modifiedOffset 94, 39 lines modified
94 These·functions·are·declared·in·the·following·header·file.·Link·with94 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_Code99 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_Code105 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_Code112 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.0115 Since:·5.0.9,·5.1.0
111 ·····Note:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called116 ·····Note:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called
112 ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future117 ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future
113 ·····functionality·may·require·explicit·initialisation.·An·exception·is118 ·····functionality·may·require·explicit·initialisation.·An·exception·is
114 ·····al_show_native_message_box,·which·may·be·useful·to·show·an·error119 ·····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_addon121 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_Code128 Source_Code
120 Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns129 Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns
121 false.130 false.
122 Since:·5.2.6131 Since:·5.2.6
123 ******·al_shutdown_native_dialog_addon·******132 ******·al_shutdown_native_dialog_addon·******
Offset 165, 37 lines modifiedOffset 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·to176 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·using177 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·you178 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_Code186 Source_Code
176 Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is187 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·to189 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_Code196 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_Code203 Source_Code
189 Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0204 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_Code210 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_Code218 Source_Code
200 Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error219 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 modifiedOffset 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_NO262 ··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_Code270 Source_Code
248 Opens·a·window·to·which·you·can·append·log·messages·with271 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·want272 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 modifiedOffset 278, 53 lines modified
255 ······button·is·pressed,·an·event·is·generated;·see278 ······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_MONOSPACE280 ··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·windows282 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_log284 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_Code290 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_log293 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.
1.28 KB
./usr/share/doc/allegro5-doc/refman/opengl.html
    
Offset 417, 12 lines modifiedOffset 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·not419 <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·other420 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.8423 Allegro·version·5.2.8
424 ·-·Last·updated:·2025-02-09·11:25:25·UTC424 ·-·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>
506 B
html2text {}
    
Offset 214, 8 lines modifiedOffset 214, 8 lines modified
214 You·can·disable·the·detection·of·any·OpenGL·extension·by·Allegro·with·a·section214 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=0217 GL_ARB_texture_non_power_of_two=0
218 GL_EXT_framebuffer_object=0218 GL_EXT_framebuffer_object=0
219 Any·extension·which·appears·in·the·section·is·treated·as·not·available·(it·does219 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:·2025-02-09·11:25:25·UTC221 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:49·UTC
1010 B
./usr/share/doc/allegro5-doc/refman/path.html
    
Offset 625, 12 lines modifiedOffset 625, 12 lines modified
625 <li><a625 <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><a627 <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.8631 Allegro·version·5.2.8
632 ·-·Last·updated:·2025-02-09·11:25:19·UTC632 ·-·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>
501 B
html2text {}
    
Offset 323, 8 lines modifiedOffset 323, 8 lines modified
323 Note·that·this·does·not·collapse·â€œx/../y”·sections·into·â€œy”.·This·is·by323 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·removal325 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.c328 ····*·ex_path.c
329 ····*·ex_path_test.c329 ····*·ex_path_test.c
330 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:19·UTC330 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:39·UTC
2.09 KB
./usr/share/doc/allegro5-doc/refman/physfs.html
    
Offset 215, 22 lines modifiedOffset 215, 27 lines modified
215 <blockquote>215 <blockquote>
216 <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and216 <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and
217 writing,·which·means·that·Windows-style·newlines·will·not·be217 writing,·which·means·that·Windows-style·newlines·will·not·be
218 preserved.</p>218 preserved.</p>
219 </blockquote>219 </blockquote>
220 <p>See·also:·<a220 <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 <h1227 <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><a230 <p><a
226 href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source231 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·<a233 <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.8236 Allegro·version·5.2.8
232 ·-·Last·updated:·2025-02-09·11:25:28·UTC237 ·-·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>
780 B
html2text {}
    
Offset 74, 13 lines modifiedOffset 74, 15 lines modified
74 al_restore_state.74 al_restore_state.
75 ·····Note:·due·to·an·oversight,·this·function·differs·from75 ·····Note:·due·to·an·oversight,·this·function·differs·from
76 ·····al_set_new_file_interface·and·al_set_standard_file_interface·which76 ·····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_Code85 Source_Code
84 Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as86 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:·2025-02-09·11:25:28·UTC88 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:23:01·UTC
846 B
./usr/share/doc/allegro5-doc/refman/platform.html
    
Offset 412, 12 lines modifiedOffset 412, 12 lines modified
412 <p>Examples:</p>412 <p>Examples:</p>
413 <ul>413 <ul>
414 <li><a414 <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.8418 Allegro·version·5.2.8
419 ·-·Last·updated:·2025-02-09·11:25:23·UTC419 ·-·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>
424 B
html2text {}
    
Offset 203, 8 lines modifiedOffset 203, 8 lines modified
203 doesn’t·work·and·you·need·to·use·a·.desktop·file.·But·with·this·function·you203 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·the204 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.3206 Since:·5.2.3
207 ·····Unstable_API:·New·API.207 ·····Unstable_API:·New·API.
208 Examples:208 Examples:
209 ····*·ex_icon2.c209 ····*·ex_icon2.c
210 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:23·UTC210 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:47·UTC
85.2 KB
./usr/share/doc/allegro5-doc/refman/primitives.html
    
Offset 283, 14 lines modifiedOffset 283, 23 lines modified
283 <p><a283 <p><a
284 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L48">Source284 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:·<a288 <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 <h2299 <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><a302 <p><a
294 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source303 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,·otherwise305 <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise
Offset 414, 14 lines modifiedOffset 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>&lt;=·0</code>·to·draw425 <li>thickness·-·Thickness·of·the·line,·pass·<code>&lt;=·0</code>·to·draw
417 hairline·lines</li>426 hairline·lines</li>
418 </ul>427 </ul>
419 <p>See·also:·<a428 <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><a442 <p><a
425 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L126">Source443 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 modifiedOffset 450, 38 lines modified
432 <li>thickness·-·Thickness·of·the·lines,·pass·<code>&lt;=·0</code>·to450 <li>thickness·-·Thickness·of·the·lines,·pass·<code>&lt;=·0</code>·to
433 draw·hairline·lines</li>451 draw·hairline·lines</li>
434 </ul>452 </ul>
435 <p>See·also:·<a453 <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 <a455 <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><a465 <p><a
443 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L339">Source466 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:·<a474 <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><a484 <p><a
457 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L361">Source485 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 modifiedOffset 493, 23 lines modified
465 <li>thickness·-·Thickness·of·the·lines,·pass·<code>&lt;=·0</code>·to493 <li>thickness·-·Thickness·of·the·lines,·pass·<code>&lt;=·0</code>·to
466 draw·hairline·lines</li>494 draw·hairline·lines</li>
467 </ul>495 </ul>
468 <p>See·also:·<a496 <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 <a498 <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><a512 <p><a
476 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L406">Source513 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 modifiedOffset 518, 23 lines modified
481 <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the518 <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:·<a522 <p>See·also:·<a
486 href="primitives.html#al_draw_rectangle">al_draw_rectangle</a>,·<a523 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.
25.2 KB
html2text {}
    
Offset 127, 14 lines modifiedOffset 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_Code130 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_addon133 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_Code140 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.6142 Since:·5.2.6
139 See·also:·al_init_primitives_addon,·al_shutdown_primitives_addon143 See·also:·al_init_primitives_addon,·al_shutdown_primitives_addon
140 *****·al_shutdown_primitives_addon·*****144 *****·al_shutdown_primitives_addon·*****
Offset 229, 73 lines modifiedOffset 233, 97 lines modified
229 Source_Code233 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·line236 ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line
233 ····*·color·-·Color·of·the·line237 ····*·color·-·Color·of·the·line
234 ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines238 ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines
235 See·also:·al_draw_soft_line239 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_Code247 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·triangle250 ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle
243 ····*·color·-·Color·of·the·triangle251 ····*·color·-·Color·of·the·triangle
244 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines252 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines
245 See·also:·al_draw_filled_triangle,·al_draw_soft_triangle253 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_Code259 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·triangle262 ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle
253 ····*·color·-·Color·of·the·triangle263 ····*·color·-·Color·of·the·triangle
254 See·also:·al_draw_triangle264 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_Code270 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·rectangle273 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle
262 ····*·color·-·Color·of·the·rectangle274 ····*·color·-·Color·of·the·rectangle
263 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines275 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines
264 See·also:·al_draw_filled_rectangle,·al_draw_rounded_rectangle276 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_Code284 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·rectangle287 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle
272 ····*·color·-·Color·of·the·rectangle288 ····*·color·-·Color·of·the·rectangle
273 See·also:·al_draw_rectangle,·al_draw_filled_rounded_rectangle289 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_Code297 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·rectangle300 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle
281 ····*·color·-·Color·of·the·rectangle301 ····*·color·-·Color·of·the·rectangle
282 ····*·rx,·ry·-·The·radii·of·the·round302 ····*·rx,·ry·-·The·radii·of·the·round
283 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines303 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines
284 See·also:·al_draw_filled_rounded_rectangle,·al_draw_rectangle304 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_Code312 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·rectangle315 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle
292 ····*·color·-·Color·of·the·rectangle316 ····*·color·-·Color·of·the·rectangle
293 ····*·rx,·ry·-·The·radii·of·the·round317 ····*·rx,·ry·-·The·radii·of·the·round
294 See·also:·al_draw_rounded_rectangle,·al_draw_filled_rectangle318 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_Code327 Source_Code
300 When·thickness·<=·0·this·function·computes·positions·of·num_points·regularly328 When·thickness·<=·0·this·function·computes·positions·of·num_points·regularly
301 spaced·points·on·an·elliptical·arc.·When·thickness·>·0·this·function·computes329 spaced·points·on·an·elliptical·arc.·When·thickness·>·0·this·function·computes
Offset 347, 14 lines modifiedOffset 375, 16 lines modified
347 ····*·start_theta·-·The·initial·angle·from·which·the·arc·is·calculated·in375 ····*·start_theta·-·The·initial·angle·from·which·the·arc·is·calculated·in
348 ······radians376 ······radians
349 ····*·delta_theta·-·Angular·span·of·the·arc·in·radians·(pass·a·negative·number377 ····*·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·arc379 ····*·thickness·-·Thickness·of·the·arc
352 ····*·num_points·-·The·number·of·points·to·calculate380 ····*·num_points·-·The·number·of·points·to·calculate
353 See·also:·al_draw_arc,·al_calculate_spline,·al_calculate_ribbon381 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.
841 B
./usr/share/doc/allegro5-doc/refman/shader.html
    
Offset 782, 12 lines modifiedOffset 782, 12 lines modified
782 <li><a782 <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><a784 <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.8788 Allegro·version·5.2.8
789 ·-·Last·updated:·2025-02-09·11:25:29·UTC789 ·-·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>
324 B
html2text {}
    
Offset 427, 8 lines modifiedOffset 427, 8 lines modified
427 the·selected·platform.427 the·selected·platform.
428 Since:·5.1.6428 Since:·5.1.6
429 See·also:·al_attach_shader_source429 See·also:·al_attach_shader_source
430 Examples:430 Examples:
431 ····*·ex_shader_multitex.c431 ····*·ex_shader_multitex.c
432 ····*·ex_palette.c432 ····*·ex_palette.c
433 ····*·ex_prim_wrap.c433 ····*·ex_prim_wrap.c
434 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:29·UTC434 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:23:04·UTC
835 B
./usr/share/doc/allegro5-doc/refman/state.html
    
Offset 307, 12 lines modifiedOffset 307, 12 lines modified
307 <li><a307 <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><a309 <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.8313 Allegro·version·5.2.8
314 ·-·Last·updated:·2025-02-09·11:25:20·UTC314 ·-·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>
336 B
html2text {}
    
Offset 138, 8 lines modifiedOffset 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_Code140 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.c143 ····*·ex_curl.c
144 ····*·ex_utf8.c144 ····*·ex_utf8.c
145 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:20·UTC145 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:40·UTC
846 B
./usr/share/doc/allegro5-doc/refman/system.html
    
Offset 812, 12 lines modifiedOffset 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:·<a815 <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.8818 Allegro·version·5.2.8
819 ·-·Last·updated:·2025-02-09·11:25:21·UTC819 ·-·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>
423 B
html2text {}
    
Offset 567, 8 lines modifiedOffset 567, 8 lines modified
567 ····*·ALLEGRO_SYSTEM_ID_ANDROID·-·Android567 ····*·ALLEGRO_SYSTEM_ID_ANDROID·-·Android
568 ····*·ALLEGRO_SYSTEM_ID_IPHONE·-·iOS568 ····*·ALLEGRO_SYSTEM_ID_IPHONE·-·iOS
569 ····*·ALLEGRO_SYSTEM_ID_GP2XWIZ·-·GP2XWIZ569 ····*·ALLEGRO_SYSTEM_ID_GP2XWIZ·-·GP2XWIZ
570 ····*·ALLEGRO_SYSTEM_ID_RASPBERRYPI·-·Raspberry·Pi570 ····*·ALLEGRO_SYSTEM_ID_RASPBERRYPI·-·Raspberry·Pi
571 ····*·ALLEGRO_SYSTEM_ID_SDL·-·SDL571 ····*·ALLEGRO_SYSTEM_ID_SDL·-·SDL
572 Since:·5.2.5572 Since:·5.2.5
573 See·also:·al_get_system_id573 See·also:·al_get_system_id
574 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:21·UTC574 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:40·UTC
8.79 KB
./usr/share/doc/allegro5-doc/refman/threads.html
    
Offset 208, 17 lines modifiedOffset 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><a212 <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><a214 <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><a221 <p><a
222 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source222 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 modifiedOffset 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><a258 <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><a260 <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 <h1265 <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><a269 <p><a
270 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source270 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source
Offset 294, 17 lines modifiedOffset 294, 17 lines modified
294 <p>See·also:·<a294 <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><a298 <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><a300 <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><a307 <p><a
308 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L194">Source308 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·<a310 <p>Wait·for·the·thread·to·finish·executing.·This·implicitly·calls·<a
Offset 379, 17 lines modifiedOffset 379, 17 lines modified
379 <p>See·also:·<a379 <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><a383 <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><a385 <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><a392 <p><a
393 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L147">Source393 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 modifiedOffset 582, 12 lines modified
582 href="threads.html#al_broadcast_cond">al_broadcast_cond</a>·but·<a582 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·more583 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:·<a585 <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.8588 Allegro·version·5.2.8
589 ·-·Last·updated:·2025-02-09·11:25:22·UTC589 ·-·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>
3.02 KB
html2text {}
    
Offset 80, 16 lines modifiedOffset 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_Code83 Source_Code
84 An·opaque·structure·representing·a·thread.84 An·opaque·structure·representing·a·thread.
85 Examples:85 Examples:
86 ····*·ex_threads.c86 ····*·ex_threads.c
87 ····*·ex_native_filechooser.c 
88 ····*·ex_threads2.c87 ····*·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_Code91 Source_Code
92 An·opaque·structure·representing·a·mutex.92 An·opaque·structure·representing·a·mutex.
93 Examples:93 Examples:
94 ····*·ex_threads2.c94 ····*·ex_threads2.c
95 ····*·ex_loading_thread.c95 ····*·ex_loading_thread.c
Offset 106, 16 lines modifiedOffset 106, 16 lines modified
106 Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its106 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·there108 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.c112 ····*·ex_threads.c
113 ····*·ex_native_filechooser.c 
114 ····*·ex_threads2.c113 ····*·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_t117 ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t
118 stacksize)118 stacksize)
119 Source_Code119 Source_Code
120 Spawn·a·new·thread·with·the·give·stacksize·in·bytes·which·begins·executing120 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 modifiedOffset 130, 16 lines modified
130 Source_Code130 Source_Code
131 When·a·thread·is·created,·it·is·initially·in·a·suspended·state.·Calling131 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.c136 ····*·ex_threads.c
137 ····*·ex_native_filechooser.c 
138 ····*·ex_threads2.c137 ····*·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_Code141 Source_Code
142 Wait·for·the·thread·to·finish·executing.·This·implicitly·calls142 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·be144 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 modifiedOffset 173, 16 lines modified
173 Source_Code173 Source_Code
174 Free·the·resources·used·by·a·thread.·Implicitly·performs·al_join_thread·on·the174 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.c179 ····*·ex_threads.c
180 ····*·ex_native_filechooser.c 
181 ····*·ex_threads2.c180 ····*·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_Code184 Source_Code
185 Runs·the·passed·function·in·its·own·thread,·with·arg·passed·to·it·as·only185 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·and186 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·the187 (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 modifiedOffset 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_Code300 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·more302 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:·2025-02-09·11:25:22·UTC305 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:40·UTC
937 B
./usr/share/doc/allegro5-doc/refman/time.html
    
Offset 239, 12 lines modifiedOffset 239, 12 lines modified
239 <li><a239 <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><a241 <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.8245 Allegro·version·5.2.8
246 ·-·Last·updated:·2025-02-09·11:25:22·UTC246 ·-·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>
414 B
html2text {}
    
Offset 89, 8 lines modifiedOffset 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·for90 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.c93 ····*·ex_keyboard_focus.c
94 ····*·ex_timer_pause.c94 ····*·ex_timer_pause.c
95 ····*·ex_mouse_focus.c95 ····*·ex_mouse_focus.c
96 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:22·UTC96 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:40·UTC
888 B
./usr/share/doc/allegro5-doc/refman/timer.html
    
Offset 423, 12 lines modifiedOffset 423, 12 lines modified
423 <li><a423 <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><a425 <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.8429 Allegro·version·5.2.8
430 ·-·Last·updated:·2025-02-09·11:25:23·UTC430 ·-·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>
363 B
html2text {}
    
Offset 199, 8 lines modifiedOffset 199, 8 lines modified
199 Source_Code199 Source_Code
200 Retrieve·the·associated·event·source.·Timers·will·generate·events·of·type200 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.c203 ····*·ex_enet_server.c
204 ····*·ex_timer_pause.c204 ····*·ex_timer_pause.c
205 ····*·ex_user_events.c205 ····*·ex_user_events.c
206 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:23·UTC206 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:42·UTC
4.98 KB
./usr/share/doc/allegro5-doc/refman/touch.html
    
Offset 316, 17 lines modifiedOffset 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><a320 <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><a322 <li><a
323 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L154">ex_prim_shader.c</a></li>323 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L973">ex_haiku.c</a></li>
324 <li><a324 <li><a
325 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L121">nihgui.cpp</a></li>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><a329 <p><a
330 href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L93">Source330 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·copied332 <p>Gets·the·current·touch·input·state.·The·touch·information·is·copied
Offset 387, 17 lines modifiedOffset 387, 17 lines modified
387 href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a387 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><a391 <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><a393 <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 <h1398 <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><a401 <p><a
402 href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L140">Source402 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 modifiedOffset 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><a419 <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><a421 <li><a
422 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L156">ex_prim_shader.c</a></li>422 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L975">ex_haiku.c</a></li>
423 <li><a423 <li><a
424 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L388">ex_polygon.c</a></li>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.8427 Allegro·version·5.2.8
428 ·-·Last·updated:·2025-02-09·11:25:23·UTC428 ·-·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>
1.61 KB
html2text {}
    
Offset 133, 16 lines modifiedOffset 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_Code135 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.0137 Since:·5.1.0
138 Examples:138 Examples:
139 ····*·ex_lockbitmap.c139 ····*·ex_lockbitmap.c
 140 ····*·ex_haiku.c
140 ····*·ex_prim_shader.c141 ····*·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_Code144 Source_Code
145 Gets·the·current·touch·input·state.·The·touch·information·is·copied·into·the145 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.0147 Since:·5.1.0
148 ******·al_set_mouse_emulation_mode·******148 ******·al_set_mouse_emulation_mode·******
Offset 169, 23 lines modifiedOffset 169, 23 lines modified
169 Source_Code169 Source_Code
170 Returns·the·global·touch·input·event·source.·This·event·source·generates·touch170 Returns·the·global·touch·input·event·source.·This·event·source·generates·touch
171 input_events.171 input_events.
172 Since:·5.1.0172 Since:·5.1.0
173 See·also:·ALLEGRO_EVENT_SOURCE,·al_register_event_source173 See·also:·ALLEGRO_EVENT_SOURCE,·al_register_event_source
174 Examples:174 Examples:
175 ····*·ex_touch_input.c175 ····*·ex_touch_input.c
176 ····*·ex_polygon.c 
177 ····*·ex_android.c176 ····*·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_Code180 Source_Code
181 Returns·the·global·touch·input·event·source·for·emulated·mouse·events.·This181 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_source183 See·also:·ALLEGRO_EVENT_SOURCE,·al_register_event_source
184 Since:·5.1.0184 Since:·5.1.0
185 ·····Unstable_API:·Seems·of·limited·value,·as·touch·input·tends·to·have185 ·····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.c188 ····*·ex_lockbitmap.c
 189 ····*·ex_haiku.c
189 ····*·ex_prim_shader.c190 ····*·ex_prim_shader.c
190 ····*·ex_polygon.c 
191 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:23·UTC191 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:42·UTC
10.5 KB
./usr/share/doc/allegro5-doc/refman/transformations.html
    
Offset 296, 15 lines modifiedOffset 296, 15 lines modified
296 <p>Examples:</p>296 <p>Examples:</p>
297 <ul>297 <ul>
298 <li><a298 <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><a300 <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><a302 <li><a
303 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L226">ex_polygon.c</a></li>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><a307 <p><a
308 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L30">Source308 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 modifiedOffset 349, 15 lines modified
349 <p>Examples:</p>349 <p>Examples:</p>
350 <ul>350 <ul>
351 <li><a351 <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><a353 <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><a355 <li><a
356 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L234">ex_polygon.c</a></li>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><a360 <p><a
361 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L104">Source361 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·<a363 <p>Returns·the·transformation·of·the·current·target·bitmap,·as·set·by·<a
Offset 548, 15 lines modifiedOffset 548, 15 lines modified
548 <p>Examples:</p>548 <p>Examples:</p>
549 <ul>549 <ul>
550 <li><a550 <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><a552 <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><a554 <li><a
555 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L231">ex_polygon.c</a></li>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><a560 <p><a
561 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L172">Source561 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 modifiedOffset 585, 17 lines modified
585 <a585 <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><a589 <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><a591 <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><a601 <p><a
Offset 716, 17 lines modifiedOffset 716, 17 lines modified
716 <a716 <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><a720 <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><a722 <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><a729 <p><a
730 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L416">Source730 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 modifiedOffset 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:·<a1062 <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.81065 Allegro·version·5.2.8
1066 ·-·Last·updated:·2025-02-09·11:25:23·UTC1066 ·-·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>
3.32 KB
html2text {}
    
Offset 143, 15 lines modifiedOffset 143, 15 lines modified
143 small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right143 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·matrix146 ····*·m·-·A·4x4·float·matrix
147 Examples:147 Examples:
148 ····*·ex_shader.cpp148 ····*·ex_shader.cpp
149 ····*·ex_shader_target.c149 ····*·ex_shader_target.c
150 ····*·ex_polygon.c150 ····*·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_Code153 Source_Code
154 Makes·a·copy·of·a·transformation.154 Makes·a·copy·of·a·transformation.
155 Parameters:155 Parameters:
156 ····*·dest·-·Source·transformation156 ····*·dest·-·Source·transformation
157 ····*·src·-·Destination·transformation157 ····*·src·-·Destination·transformation
Offset 176, 15 lines modifiedOffset 176, 15 lines modified
176 }176 }
177 Parameters:177 Parameters:
178 ····*·trans·-·Transformation·to·use178 ····*·trans·-·Transformation·to·use
179 See·also:·al_get_current_transform,·al_transform_coordinates179 See·also:·al_get_current_transform,·al_transform_coordinates
180 Examples:180 Examples:
181 ····*·ex_shader.cpp181 ····*·ex_shader.cpp
182 ····*·ex_shader_target.c182 ····*·ex_shader_target.c
183 ····*·ex_polygon.c183 ····*·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_Code186 Source_Code
187 Returns·the·transformation·of·the·current·target·bitmap,·as·set·by187 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_transform190 See·also:·al_get_current_projection_transform
Offset 306, 15 lines modifiedOffset 306, 15 lines modified
306 al_use_transform(&t);306 al_use_transform(&t);
307 Parameters:307 Parameters:
308 ····*·trans·-·Transformation·to·alter308 ····*·trans·-·Transformation·to·alter
309 See·also:·al_translate_transform,·al_rotate_transform,·al_scale_transform309 See·also:·al_translate_transform,·al_rotate_transform,·al_scale_transform
310 Examples:310 Examples:
311 ····*·ex_shader.cpp311 ····*·ex_shader.cpp
312 ····*·ex_shader_target.c312 ····*·ex_shader_target.c
313 ····*·ex_polygon.c313 ····*·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_Code317 Source_Code
318 Builds·a·transformation·given·some·parameters.·This·call·is·equivalent·to318 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·those320 translate.·This·method·is·faster,·however,·than·actually·calling·those
Offset 327, 16 lines modifiedOffset 327, 16 lines modified
327 ·····Note:·this·function·was·previously·documented·to·be·equivalent·to·a327 ·····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_transform331 al_compose_transform
332 Examples:332 Examples:
333 ····*·ex_threads.c333 ····*·ex_threads.c
334 ····*·ex_prim.c 
335 ····*·ex_color_gradient.c334 ····*·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_Code341 Source_Code
342 Builds·a·transformation·which·can·be·used·to·transform·3D·coordinates·in·world342 Builds·a·transformation·which·can·be·used·to·transform·3D·coordinates·in·world
Offset 401, 16 lines modifiedOffset 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·alter403 ····*·trans·-·Transformation·to·alter
404 ····*·sx,·sy·-·Scale404 ····*·sx,·sy·-·Scale
405 See·also:·al_translate_transform,·al_rotate_transform,·al_build_transform405 See·also:·al_translate_transform,·al_rotate_transform,·al_build_transform
406 Examples:406 Examples:
407 ····*·ex_shader_target.c407 ····*·ex_shader_target.c
408 ····*·ex_polygon.c 
409 ····*·ex_audio_timer.c408 ····*·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,·float411 void·al_transform_coordinates(const·ALLEGRO_TRANSFORM·*trans,·float·*x,·float
412 *y)412 *y)
413 Source_Code413 Source_Code
414 Transform·a·pair·of·coordinates.414 Transform·a·pair·of·coordinates.
415 Parameters:415 Parameters:
416 ····*·trans·-·Transformation·to·use416 ····*·trans·-·Transformation·to·use
Offset 637, 8 lines modifiedOffset 637, 8 lines modified
637 Source_Code637 Source_Code
638 Apply·a·vertical·shear·to·the·transform638 Apply·a·vertical·shear·to·the·transform
639 Parameters:639 Parameters:
640 ····*·trans·-·Transformation·to·alter640 ····*·trans·-·Transformation·to·alter
641 ····*·theta·-·Rotation·angle·in·radians641 ····*·theta·-·Rotation·angle·in·radians
642 Since:·5.1.7642 Since:·5.1.7
643 See·also:·al_horizontal_shear_transform643 See·also:·al_horizontal_shear_transform
644 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:23·UTC644 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:47·UTC
1.1 KB
./usr/share/doc/allegro5-doc/refman/utf8.html
    
Offset 1611, 12 lines modifiedOffset 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·that1612 <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>,·<a1614 <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.81617 Allegro·version·5.2.8
1618 ·-·Last·updated:·2025-02-09·11:25:23·UTC1618 ·-·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>
540 B
html2text {}
    
Offset 915, 8 lines modifiedOffset 915, 8 lines modified
915 Source_Code915 Source_Code
916 Encode·the·specified·code·point·to·UTF-16·into·the·buffer·s.·The·buffer·must916 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.·This917 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·by919 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_utf16921 See·also:·al_utf8_encode,·al_ustr_encode_utf16
922 Allegro·version·5.2.8·-·Last·updated:·2025-02-09·11:25:23·UTC922 Allegro·version·5.2.8·-·Last·updated:·2024-01-08·05:22:47·UTC
18.8 KB
./usr/share/doc/allegro5-doc/refman/video.html
    
Offset 266, 14 lines modifiedOffset 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><a268 <p><a
269 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L268">Source269 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 <h1278 <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><a281 <p><a
277 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L290">Source282 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·returns284 <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns
Offset 299, 14 lines modifiedOffset 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><a305 <p><a
301 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L98">Source306 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·the308 <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><a318 <p><a
309 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L327">Source319 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·<a321 <p>This·works·exactly·as·<a
312 href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you322 href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you
Offset 338, 21 lines modifiedOffset 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><a349 <p><a
340 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L139">Source350 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·pointer352 <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><a362 <p><a
348 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L161">Source363 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><a374 <p><a
355 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L172">Source375 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·audio377 <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 modifiedOffset 382, 100 lines modified
362 <p><a382 <p><a
363 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L153">Source383 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·described385 <p>Get·an·event·source·for·the·video.·The·possible·events·are·described
366 under·<a386 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><a396 <p><a
372 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L183">Source397 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><a408 <p><a
379 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L195">Source409 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><a420 <p><a
386 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L236">Source421 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><a432 <p><a
393 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L244">Source433 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·will435 <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.
4.99 KB
html2text {}
    
Offset 113, 14 lines modifiedOffset 113, 16 lines modified
113 ······in·sync.113 ······in·sync.
114 Since:·5.1.11114 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_Code117 Source_Code
118 Initializes·the·video·addon.118 Initializes·the·video·addon.
119 Since:·5.1.12119 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_Code124 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.6126 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 modifiedOffset 138, 16 lines modified
136 Since:·5.1.12138 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_Code141 Source_Code
140 Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the·meta·info142 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.0144 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_Code149 Source_Code
146 This·works·exactly·as·al_identify_video_f·but·you·specify·the·filename·of·the150 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.8153 Since:·5.2.8
Offset 161, 67 lines modifiedOffset 165, 85 lines modified
161 See·also:·al_init_video_addon,·al_identify_video165 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_Code168 Source_Code
165 Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is169 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.0171 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_Code176 Source_Code
171 Starts·streaming·the·video·from·the·beginning.177 Starts·streaming·the·video·from·the·beginning.
172 Since:·5.1.0178 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_Code183 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.0185 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_Code188 Source_Code
181 Get·an·event·source·for·the·video.·The·possible·events·are·described·under189 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.0191 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_Code196 Source_Code
187 Paused·or·resumes·playback.197 Paused·or·resumes·playback.
188 Since:·5.1.12198 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_Code203 Source_Code
192 Returns·true·if·the·video·is·currently·playing.204 Returns·true·if·the·video·is·currently·playing.
193 Since:·5.1.12205 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_Code210 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.0212 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_Code217 Source_Code
202 Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an218 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.0220 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_Code225 Source_Code
208 Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do226 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·of227 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.12229 Since:·5.1.12
212 See·also:·al_get_video_frame230 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_Code235 Source_Code
216 Returns·the·height·with·which·the·video·frame·should·be·drawn.·Videos·often·do236 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·height237 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_frame239 See·also:·al_get_video_frame
220 Since:·5.1.12240 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_Code245 Source_Code
224 Returns·the·current·video·frame.·The·bitmap·is·owned·by·the·video·so·do·not246 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·to247 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·video249 Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a·video
Offset 231, 21 lines modifiedOffset 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.0258 Since:·5.1.0
237 See·also:·al_get_video_scaled_width,·al_get_video_scaled_height259 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.