863 KB
/srv/reproducible-results/rbuild-debian/r-b-build.Du1sispy/b1/allegro5_5.2.10.0+dfsg-1_i386.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.Du1sispy/b2/allegro5_5.2.10.0+dfsg-1_i386.changes
964 B
Files
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
  
1 ·22e6761676f049fa7f1429096e3add42·1400424·doc·optional·allegro5-doc_5.2.10.0+dfsg-1_all.deb1 ·f38e5af785bbaf810ee6f735da9ff9cb·1396956·doc·optional·allegro5-doc_5.2.10.0+dfsg-1_all.deb
2 ·68abadb6cf3f2fb3a6fbb81ef696a2cd·19288·libdevel·optional·liballegro-acodec5-dev_5.2.10.0+dfsg-1_i386.deb2 ·68abadb6cf3f2fb3a6fbb81ef696a2cd·19288·libdevel·optional·liballegro-acodec5-dev_5.2.10.0+dfsg-1_i386.deb
3 ·61562e0ed9e1869512d8cb09f982bb93·53732·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.10.0+dfsg-1_i386.deb3 ·61562e0ed9e1869512d8cb09f982bb93·53732·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.10.0+dfsg-1_i386.deb
4 ·2212329537b3afe7a78af859cb8f55f7·40588·libs·optional·liballegro-acodec5.2t64_5.2.10.0+dfsg-1_i386.deb4 ·2212329537b3afe7a78af859cb8f55f7·40588·libs·optional·liballegro-acodec5.2t64_5.2.10.0+dfsg-1_i386.deb
5 ·33bb396df0fdbbf315d4d95cdf9144b9·22064·libdevel·optional·liballegro-audio5-dev_5.2.10.0+dfsg-1_i386.deb5 ·33bb396df0fdbbf315d4d95cdf9144b9·22064·libdevel·optional·liballegro-audio5-dev_5.2.10.0+dfsg-1_i386.deb
6 ·678844d579ca6037644430acff9e4263·91672·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.10.0+dfsg-1_i386.deb6 ·678844d579ca6037644430acff9e4263·91672·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.10.0+dfsg-1_i386.deb
7 ·298b5dffce4037aa6be72532024c0cd8·64324·libs·optional·liballegro-audio5.2t64_5.2.10.0+dfsg-1_i386.deb7 ·298b5dffce4037aa6be72532024c0cd8·64324·libs·optional·liballegro-audio5.2t64_5.2.10.0+dfsg-1_i386.deb
8 ·7ca434e5e17adf58e2380d8feffd3af1·20340·libdevel·optional·liballegro-dialog5-dev_5.2.10.0+dfsg-1_i386.deb8 ·7ca434e5e17adf58e2380d8feffd3af1·20340·libdevel·optional·liballegro-dialog5-dev_5.2.10.0+dfsg-1_i386.deb
862 KB
allegro5-doc_5.2.10.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·2024-11-29·14:21:22.000000·debian-binary1 -rw-r--r--···0········0········0········4·2024-11-29·14:21:22.000000·debian-binary
2 -rw-r--r--···0········0········0····31648·2024-11-29·14:21:22.000000·control.tar.xz2 -rw-r--r--···0········0········0····31668·2024-11-29·14:21:22.000000·control.tar.xz
3 -rw-r--r--···0········0········0··1368584·2024-11-29·14:21:22.000000·data.tar.xz3 -rw-r--r--···0········0········0··1365096·2024-11-29·14:21:22.000000·data.tar.xz
579 B
control.tar.xz
551 B
control.tar
481 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.10.0+dfsg-13 Version:·2:5.2.10.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:·56296 Installed-Size:·5558
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
861 KB
data.tar.xz
861 KB
data.tar
15.7 KB
file list
    
Offset 198, 65 lines modifiedOffset 198, 65 lines modified
198 -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c198 -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c
199 -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c199 -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c
200 -rw-r--r--···0·root·········(0)·root·········(0)·····6511·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c200 -rw-r--r--···0·root·········(0)·root·········(0)·····6511·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c
201 -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c201 -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c
202 -rw-r--r--···0·root·········(0)·root·········(0)····19521·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp202 -rw-r--r--···0·root·········(0)·root·········(0)····19521·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp
203 -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp203 -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2024-11-28·03:18:53.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp
204 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/204 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/
205 -rw-r--r--···0·root·········(0)·root·········(0)····11782·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/acodec.html205 -rw-r--r--···0·root·········(0)·root·········(0)····11397·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/acodec.html
206 -rw-r--r--···0·root·········(0)·root·········(0)···234053·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/audio.html206 -rw-r--r--···0·root·········(0)·root·········(0)···206673·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/audio.html
207 -rw-r--r--···0·root·········(0)·root·········(0)····36350·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js207 -rw-r--r--···0·root·········(0)·root·········(0)····36350·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js
208 -rw-r--r--···0·root·········(0)·root·········(0)····66987·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/color.html208 -rw-r--r--···0·root·········(0)·root·········(0)····62104·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/color.html
209 -rw-r--r--···0·root·········(0)·root·········(0)····37788·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/config.html209 -rw-r--r--···0·root·········(0)·root·········(0)····37150·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/config.html
210 -rw-r--r--···0·root·········(0)·root·········(0)····17712·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html210 -rw-r--r--···0·root·········(0)·root·········(0)····17712·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html
211 -rw-r--r--···0·root·········(0)·root·········(0)····89023·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/display.html211 -rw-r--r--···0·root·········(0)·root·········(0)····88734·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/display.html
212 -rw-r--r--···0·root·········(0)·root·········(0)····82072·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/events.html212 -rw-r--r--···0·root·········(0)·root·········(0)····79709·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/events.html
213 -rw-r--r--···0·root·········(0)·root·········(0)····62308·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/file.html213 -rw-r--r--···0·root·········(0)·root·········(0)····61455·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/file.html
214 -rw-r--r--···0·root·········(0)·root·········(0)····56556·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fixed.html214 -rw-r--r--···0·root·········(0)·root·········(0)····56556·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fixed.html
215 -rw-r--r--···0·root·········(0)·root·········(0)····95359·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/font.html215 -rw-r--r--···0·root·········(0)·root·········(0)····87416·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/font.html
216 -rw-r--r--···0·root·········(0)·root·········(0)····42369·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fshook.html216 -rw-r--r--···0·root·········(0)·root·········(0)····42130·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fshook.html
217 -rw-r--r--···0·root·········(0)·root·········(0)····13488·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html217 -rw-r--r--···0·root·········(0)·root·········(0)····13213·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html
218 -rw-r--r--···0·root·········(0)·root·········(0)····17055·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html218 -rw-r--r--···0·root·········(0)·root·········(0)····17055·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html
219 -rw-r--r--···0·root·········(0)·root·········(0)···224378·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/graphics.html219 -rw-r--r--···0·root·········(0)·root·········(0)···222509·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/graphics.html
220 -rw-r--r--···0·root·········(0)·root·········(0)····69780·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/haptic.html220 -rw-r--r--···0·root·········(0)·root·········(0)····69024·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/haptic.html
221 -rw-r--r--···0·root·········(0)·root·········(0)····12423·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/image.html221 -rw-r--r--···0·root·········(0)·root·········(0)····12034·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/image.html
222 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/222 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/
223 -rw-r--r--···0·root·········(0)·root·········(0)····21480·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png223 -rw-r--r--···0·root·········(0)·root·········(0)····21480·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png
224 -rw-r--r--···0·root·········(0)·root·········(0)····15893·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png224 -rw-r--r--···0·root·········(0)·root·········(0)····15893·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png
225 -rw-r--r--···0·root·········(0)·root·········(0)····65065·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png225 -rw-r--r--···0·root·········(0)·root·········(0)····65065·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png
226 -rw-r--r--···0·root·········(0)·root·········(0)····16058·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png226 -rw-r--r--···0·root·········(0)·root·········(0)····16058·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png
227 -rw-r--r--···0·root·········(0)·root·········(0)····25805·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png227 -rw-r--r--···0·root·········(0)·root·········(0)····25805·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png
228 -rw-r--r--···0·root·········(0)·root·········(0)·····6773·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/index.html228 -rw-r--r--···0·root·········(0)·root·········(0)·····6773·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/index.html
229 -rw-r--r--···0·root·········(0)·root·········(0)···110785·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/index_all.html229 -rw-r--r--···0·root·········(0)·root·········(0)···110785·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/index_all.html
230 -rw-r--r--···0·root·········(0)·root·········(0)····35289·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/joystick.html230 -rw-r--r--···0·root·········(0)·root·········(0)····34597·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/joystick.html
231 -rw-r--r--···0·root·········(0)·root·········(0)····24132·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html231 -rw-r--r--···0·root·········(0)·root·········(0)····23783·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html
232 -rw-r--r--···0·root·········(0)·root·········(0)·····9013·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/main.html232 -rw-r--r--···0·root·········(0)·root·········(0)·····9013·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/main.html
233 -rw-r--r--···0·root·········(0)·root·········(0)····10521·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/memfile.html233 -rw-r--r--···0·root·········(0)·root·········(0)····10382·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/memfile.html
234 -rw-r--r--···0·root·········(0)·root·········(0)····24142·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/memory.html234 -rw-r--r--···0·root·········(0)·root·········(0)····23336·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/memory.html
235 -rw-r--r--···0·root·········(0)·root·········(0)····10394·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/misc.html235 -rw-r--r--···0·root·········(0)·root·········(0)····10027·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/misc.html
236 -rw-r--r--···0·root·········(0)·root·········(0)····15363·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/monitor.html236 -rw-r--r--···0·root·········(0)·root·········(0)····14983·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/monitor.html
237 -rw-r--r--···0·root·········(0)·root·········(0)····43913·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/mouse.html237 -rw-r--r--···0·root·········(0)·root·········(0)····43559·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/mouse.html
238 -rw-r--r--···0·root·········(0)·root·········(0)····80347·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html238 -rw-r--r--···0·root·········(0)·root·········(0)····74835·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html
239 -rw-r--r--···0·root·········(0)·root·········(0)····27233·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/opengl.html239 -rw-r--r--···0·root·········(0)·root·········(0)····27233·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/opengl.html
240 -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css240 -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css
241 -rw-r--r--···0·root·········(0)·root·········(0)····38119·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/path.html241 -rw-r--r--···0·root·········(0)·root·········(0)····38128·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/path.html
242 -rw-r--r--···0·root·········(0)·root·········(0)····11854·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/physfs.html242 -rw-r--r--···0·root·········(0)·root·········(0)····11716·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/physfs.html
243 -rw-r--r--···0·root·········(0)·root·········(0)····31625·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/platform.html243 -rw-r--r--···0·root·········(0)·root·········(0)····31625·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/platform.html
244 -rw-r--r--···0·root·········(0)·root·········(0)···145966·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/primitives.html244 -rw-r--r--···0·root·········(0)·root·········(0)···136387·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/primitives.html
245 -rw-r--r--···0·root·········(0)·root·········(0)····72292·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/search_index.js245 -rw-r--r--···0·root·········(0)·root·········(0)····72292·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/search_index.js
246 -rw-r--r--···0·root·········(0)·root·········(0)····45920·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/shader.html246 -rw-r--r--···0·root·········(0)·root·········(0)····45273·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/shader.html
247 -rw-r--r--···0·root·········(0)·root·········(0)····15871·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/state.html247 -rw-r--r--···0·root·········(0)·root·········(0)····15503·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/state.html
248 -rw-r--r--···0·root·········(0)·root·········(0)····72351·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/system.html248 -rw-r--r--···0·root·········(0)·root·········(0)····71981·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/system.html
249 -rw-r--r--···0·root·········(0)·root·········(0)····35452·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/threads.html249 -rw-r--r--···0·root·········(0)·root·········(0)····34683·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/threads.html
250 -rw-r--r--···0·root·········(0)·root·········(0)····12633·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/time.html250 -rw-r--r--···0·root·········(0)·root·········(0)····12476·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/time.html
251 -rw-r--r--···0·root·········(0)·root·········(0)····26749·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/timer.html251 -rw-r--r--···0·root·········(0)·root·········(0)····26262·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/timer.html
252 -rw-r--r--···0·root·········(0)·root·········(0)····22267·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/touch.html252 -rw-r--r--···0·root·········(0)·root·········(0)····22247·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/touch.html
253 -rw-r--r--···0·root·········(0)·root·········(0)····82433·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/transformations.html253 -rw-r--r--···0·root·········(0)·root·········(0)····81997·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/transformations.html
254 -rw-r--r--···0·root·········(0)·root·········(0)···104512·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/utf8.html254 -rw-r--r--···0·root·········(0)·root·········(0)···103766·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/utf8.html
255 -rw-r--r--···0·root·········(0)·root·········(0)····31892·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/video.html255 -rw-r--r--···0·root·········(0)·root·········(0)····29995·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/video.html
256 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc-base/256 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc-base/
257 -rw-r--r--···0·root·········(0)·root·········(0)······300·2024-11-29·14:18:22.000000·./usr/share/doc-base/allegro5-doc.allegro5257 -rw-r--r--···0·root·········(0)·root·········(0)······300·2024-11-29·14:18:22.000000·./usr/share/doc-base/allegro5-doc.allegro5
258 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/man/258 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/man/
259 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/man/man3/259 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/man/man3/
260 -rw-r--r--···0·root·········(0)·root·········(0)······405·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz260 -rw-r--r--···0·root·········(0)·root·········(0)······405·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz
261 -rw-r--r--···0·root·········(0)·root·········(0)······254·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz261 -rw-r--r--···0·root·········(0)·root·········(0)······254·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz
262 -rw-r--r--···0·root·········(0)·root·········(0)······554·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz262 -rw-r--r--···0·root·········(0)·root·········(0)······554·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz
Offset 267, 17 lines modifiedOffset 267, 17 lines modified
267 -rw-r--r--···0·root·········(0)·root·········(0)······247·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_BITMAP.3alleg5.gz267 -rw-r--r--···0·root·········(0)·root·········(0)······247·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_BITMAP.3alleg5.gz
268 -rw-r--r--···0·root·········(0)·root·········(0)······459·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_BITMAP_WRAP.3alleg5.gz268 -rw-r--r--···0·root·········(0)·root·········(0)······459·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_BITMAP_WRAP.3alleg5.gz
269 -rw-r--r--···0·root·········(0)·root·········(0)······250·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_BPM_TO_SECS.3alleg5.gz269 -rw-r--r--···0·root·········(0)·root·········(0)······250·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_BPM_TO_SECS.3alleg5.gz
270 -rw-r--r--···0·root·········(0)·root·········(0)······245·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_BPS_TO_SECS.3alleg5.gz270 -rw-r--r--···0·root·········(0)·root·········(0)······245·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_BPS_TO_SECS.3alleg5.gz
271 -rw-r--r--···0·root·········(0)·root·········(0)······281·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_CHANNEL_CONF.3alleg5.gz271 -rw-r--r--···0·root·········(0)·root·········(0)······281·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_CHANNEL_CONF.3alleg5.gz
272 -rw-r--r--···0·root·········(0)·root·········(0)······313·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_COLOR.3alleg5.gz272 -rw-r--r--···0·root·········(0)·root·········(0)······313·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_COLOR.3alleg5.gz
273 -rw-r--r--···0·root·········(0)·root·········(0)······244·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_COND.3alleg5.gz273 -rw-r--r--···0·root·········(0)·root·········(0)······244·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_COND.3alleg5.gz
274 -rw-r--r--···0·root·········(0)·root·········(0)······220·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_CONFIG.3alleg5.gz274 -rw-r--r--···0·root·········(0)·root·········(0)······235·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_CONFIG.3alleg5.gz
275 -rw-r--r--···0·root·········(0)·root·········(0)······288·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_CONFIG_ENTRY.3alleg5.gz275 -rw-r--r--···0·root·········(0)·root·········(0)······303·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_CONFIG_ENTRY.3alleg5.gz
276 -rw-r--r--···0·root·········(0)·root·········(0)······286·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_CONFIG_SECTION.3alleg5.gz276 -rw-r--r--···0·root·········(0)·root·········(0)······300·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_CONFIG_SECTION.3alleg5.gz
277 -rw-r--r--···0·root·········(0)·root·········(0)······247·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_DISPLAY.3alleg5.gz277 -rw-r--r--···0·root·········(0)·root·········(0)······247·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_DISPLAY.3alleg5.gz
278 -rw-r--r--···0·root·········(0)·root·········(0)······458·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_DISPLAY_MODE.3alleg5.gz278 -rw-r--r--···0·root·········(0)·root·········(0)······458·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_DISPLAY_MODE.3alleg5.gz
279 -rw-r--r--···0·root·········(0)·root·········(0)·····5117·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT.3alleg5.gz279 -rw-r--r--···0·root·········(0)·root·········(0)·····5117·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT.3alleg5.gz
280 -rw-r--r--···0·root·········(0)·root·········(0)······364·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT_QUEUE.3alleg5.gz280 -rw-r--r--···0·root·········(0)·root·········(0)······364·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT_QUEUE.3alleg5.gz
281 -rw-r--r--···0·root·········(0)·root·········(0)······398·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT_SOURCE.3alleg5.gz281 -rw-r--r--···0·root·········(0)·root·········(0)······398·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT_SOURCE.3alleg5.gz
282 -rw-r--r--···0·root·········(0)·root·········(0)······295·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE.3alleg5.gz282 -rw-r--r--···0·root·········(0)·root·········(0)······295·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE.3alleg5.gz
283 -rw-r--r--···0·root·········(0)·root·········(0)······307·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE_IS_USER.3alleg5.gz283 -rw-r--r--···0·root·········(0)·root·········(0)······307·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE_IS_USER.3alleg5.gz
2.6 KB
./usr/share/doc/allegro5-doc/refman/acodec.html
    
Offset 209, 23 lines modifiedOffset 209, 14 lines modified
209 href="audio.html#al_load_sample_f">al_load_sample_f</a>·and·must·be209 href="audio.html#al_load_sample_f">al_load_sample_f</a>·and·must·be
210 streamed·with·<a210 streamed·with·<a
211 href="audio.html#al_load_audio_stream">al_load_audio_stream</a>·or·<a211 href="audio.html#al_load_audio_stream">al_load_audio_stream</a>·or·<a
212 href="audio.html#al_load_audio_stream_f">al_load_audio_stream_f</a>.</p></li>212 href="audio.html#al_load_audio_stream_f">al_load_audio_stream_f</a>.</p></li>
213 <li><p>.voc·file·streaming·is·unimplemented.</p></li>213 <li><p>.voc·file·streaming·is·unimplemented.</p></li>
214 </ul>214 </ul>
215 <p>Return·true·on·success.</p>215 <p>Return·true·on·success.</p>
216 <p>Examples:</p> 
217 <ul> 
218 <li><a 
219 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L51">ex_stream_file.c</a></li> 
220 <li><a 
221 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L39">ex_acodec_multi.c</a></li> 
222 <li><a 
223 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L30">ex_kcm_direct.c</a></li> 
224 </ul> 
225 <h1216 <h1
226 id="al_is_acodec_addon_initialized">al_is_acodec_addon_initialized</h1>217 id="al_is_acodec_addon_initialized">al_is_acodec_addon_initialized</h1>
227 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_acodec_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>218 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_acodec_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
228 <p><a219 <p><a
229 href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L99">Source220 href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L99">Source
230 Code</a></p>221 Code</a></p>
231 <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns222 <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns
1.21 KB
html2text {}
    
Offset 64, 18 lines modifiedOffset 64, 14 lines modified
64 ····*·Module·files·(.it,·.mod,·.s3m,·.xm)·are·often·composed·with·streaming·in64 ····*·Module·files·(.it,·.mod,·.s3m,·.xm)·are·often·composed·with·streaming·in
65 ······mind,·and·sometimes·cannot·be·easily·rendered·into·a·finite·length65 ······mind,·and·sometimes·cannot·be·easily·rendered·into·a·finite·length
66 ······sample.·Therefore·they·cannot·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e/66 ······sample.·Therefore·they·cannot·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e/
67 ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8f·and·must·be·streamed·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m·or67 ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8f·and·must·be·streamed·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m·or
68 ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f.68 ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f.
69 ····*·.voc·file·streaming·is·unimplemented.69 ····*·.voc·file·streaming·is·unimplemented.
70 Return·true·on·success.70 Return·true·on·success.
71 Examples: 
72 ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c 
73 ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c 
74 ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c 
75 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*71 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
76 bool·al_is_acodec_addon_initialized(void)72 bool·al_is_acodec_addon_initialized(void)
77 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e73 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
78 Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false.74 Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false.
79 Since:·5.2.675 Since:·5.2.6
80 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*76 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
81 uint32_t·al_get_allegro_acodec_version(void)77 uint32_t·al_get_allegro_acodec_version(void)
203 KB
./usr/share/doc/allegro5-doc/refman/audio.html
    
Offset 564, 19 lines modifiedOffset 564, 14 lines modified
564 Code</a></p>564 Code</a></p>
565 <p>An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·<a565 <p>An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·<a
566 href="audio.html#al_play_sample">al_play_sample</a>.·It·can·be·used·to566 href="audio.html#al_play_sample">al_play_sample</a>.·It·can·be·used·to
567 later·stop·the·sample·with·<a567 later·stop·the·sample·with·<a
568 href="audio.html#al_stop_sample">al_stop_sample</a>.·The·underlying568 href="audio.html#al_stop_sample">al_stop_sample</a>.·The·underlying
569 ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·<a569 ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·<a
570 href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p>570 href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p>
571 <p>Examples:</p> 
572 <ul> 
573 <li><a 
574 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_simple.c#L33">ex_audio_simple.c</a></li> 
575 </ul> 
576 <h2·id="al_install_audio">al_install_audio</h2>571 <h2·id="al_install_audio">al_install_audio</h2>
577 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>572 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
578 <p><a573 <p><a
579 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L422">Source574 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L422">Source
580 Code</a></p>575 Code</a></p>
581 <p>Install·the·audio·subsystem.</p>576 <p>Install·the·audio·subsystem.</p>
582 <p>Returns·true·on·success,·false·on·failure.</p>577 <p>Returns·true·on·success,·false·on·failure.</p>
Offset 587, 40 lines modifiedOffset 582, 22 lines modified
587 this.</p>582 this.</p>
588 </blockquote>583 </blockquote>
589 <p>See·also:·<a584 <p>See·also:·<a
590 href="audio.html#al_reserve_samples">al_reserve_samples</a>,·<a585 href="audio.html#al_reserve_samples">al_reserve_samples</a>,·<a
591 href="audio.html#al_uninstall_audio">al_uninstall_audio</a>,·<a586 href="audio.html#al_uninstall_audio">al_uninstall_audio</a>,·<a
592 href="audio.html#al_is_audio_installed">al_is_audio_installed</a>,·<a587 href="audio.html#al_is_audio_installed">al_is_audio_installed</a>,·<a
593 href="acodec.html#al_init_acodec_addon">al_init_acodec_addon</a></p>588 href="acodec.html#al_init_acodec_addon">al_init_acodec_addon</a></p>
594 <p>Examples:</p> 
595 <ul> 
596 <li><a 
597 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_devices.c#L20">ex_audio_devices.c</a></li> 
598 <li><a 
599 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L95">ex_saw.c</a></li> 
600 <li><a 
601 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L53">ex_stream_file.c</a></li> 
602 </ul> 
603 <h2·id="al_uninstall_audio">al_uninstall_audio</h2>589 <h2·id="al_uninstall_audio">al_uninstall_audio</h2>
604 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>590 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
605 <p><a591 <p><a
606 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L441">Source592 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L441">Source
607 Code</a></p>593 Code</a></p>
608 <p>Uninstalls·the·audio·subsystem.</p>594 <p>Uninstalls·the·audio·subsystem.</p>
609 <p>See·also:·<a595 <p>See·also:·<a
610 href="audio.html#al_install_audio">al_install_audio</a></p>596 href="audio.html#al_install_audio">al_install_audio</a></p>
611 <p>Examples:</p> 
612 <ul> 
613 <li><a 
614 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L123">ex_saw.c</a></li> 
615 <li><a 
616 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L133">ex_stream_file.c</a></li> 
617 <li><a 
618 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L134">ex_acodec_multi.c</a></li> 
619 </ul> 
620 <h2·id="al_is_audio_installed">al_is_audio_installed</h2>597 <h2·id="al_is_audio_installed">al_is_audio_installed</h2>
621 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_audio_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>598 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_audio_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
622 <p><a599 <p><a
623 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L456">Source600 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L456">Source
624 Code</a></p>601 Code</a></p>
625 <p>Returns·true·if·<a602 <p>Returns·true·if·<a
626 href="audio.html#al_install_audio">al_install_audio</a>·was·called603 href="audio.html#al_install_audio">al_install_audio</a>·was·called
Offset 647, 23 lines modifiedOffset 624, 14 lines modified
647 ······································sample·instance·N</code></pre>624 ······································sample·instance·N</code></pre>
648 <p>Returns·true·on·success,·false·on·error.·<a625 <p>Returns·true·on·success,·false·on·error.·<a
649 href="audio.html#al_install_audio">al_install_audio</a>·must·have·been626 href="audio.html#al_install_audio">al_install_audio</a>·must·have·been
650 called·first.</p>627 called·first.</p>
651 <p>See·also:·<a628 <p>See·also:·<a
652 href="audio.html#al_set_default_mixer">al_set_default_mixer</a>,·<a629 href="audio.html#al_set_default_mixer">al_set_default_mixer</a>,·<a
653 href="audio.html#al_play_sample">al_play_sample</a></p>630 href="audio.html#al_play_sample">al_play_sample</a></p>
654 <p>Examples:</p> 
655 <ul> 
656 <li><a 
657 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L98">ex_saw.c</a></li> 
658 <li><a 
659 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L167">ex_audio_props.cpp</a></li> 
660 <li><a 
661 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L182">ex_resample_test.c</a></li> 
662 </ul> 
663 <h2·id="al_play_sample">al_play_sample</h2>631 <h2·id="al_play_sample">al_play_sample</h2>
664 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_play_sample<span·class="op">(</span>ALLEGRO_SAMPLE·<span·class="op">*</span>spl<span·class="op">,</span>·<span·class="dt">float</span>·gain<span·class="op">,</span>·<span·class="dt">float</span>·pan<span·class="op">,</span>·<span·class="dt">float</span>·speed<span·class="op">,</span></span>632 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_play_sample<span·class="op">(</span>ALLEGRO_SAMPLE·<span·class="op">*</span>spl<span·class="op">,</span>·<span·class="dt">float</span>·gain<span·class="op">,</span>·<span·class="dt">float</span>·pan<span·class="op">,</span>·<span·class="dt">float</span>·speed<span·class="op">,</span></span>
665 <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_PLAYMODE·loop<span·class="op">,</span>·ALLEGRO_SAMPLE_ID·<span·class="op">*</span>ret_id<span·class="op">)</span></span></code></pre></div>633 <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_PLAYMODE·loop<span·class="op">,</span>·ALLEGRO_SAMPLE_ID·<span·class="op">*</span>ret_id<span·class="op">)</span></span></code></pre></div>
666 <p><a634 <p><a
667 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L342">Source635 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L342">Source
668 Code</a></p>636 Code</a></p>
669 <p>Plays·a·sample·on·one·of·the·sample·instances·created·by·<a637 <p>Plays·a·sample·on·one·of·the·sample·instances·created·by·<a
Offset 689, 54 lines modifiedOffset 657, 31 lines modified
689 <p>See·also:·<a·href="audio.html#al_load_sample">al_load_sample</a>,·<a657 <p>See·also:·<a·href="audio.html#al_load_sample">al_load_sample</a>,·<a
690 href="audio.html#allegro_playmode">ALLEGRO_PLAYMODE</a>,·<a658 href="audio.html#allegro_playmode">ALLEGRO_PLAYMODE</a>,·<a
691 href="audio.html#allegro_audio_pan_none">ALLEGRO_AUDIO_PAN_NONE</a>,·<a659 href="audio.html#allegro_audio_pan_none">ALLEGRO_AUDIO_PAN_NONE</a>,·<a
692 href="audio.html#allegro_sample_id">ALLEGRO_SAMPLE_ID</a>,·<a660 href="audio.html#allegro_sample_id">ALLEGRO_SAMPLE_ID</a>,·<a
693 href="audio.html#al_stop_sample">al_stop_sample</a>,·<a661 href="audio.html#al_stop_sample">al_stop_sample</a>,·<a
694 href="audio.html#al_stop_samples">al_stop_samples</a>,·<a662 href="audio.html#al_stop_samples">al_stop_samples</a>,·<a
695 href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p>663 href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p>
696 <p>Examples:</p> 
697 <ul> 
698 <li><a 
699 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L107">ex_acodec_multi.c</a></li> 
700 <li><a 
701 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L80">ex_kcm_direct.c</a></li> 
702 <li><a 
703 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L90">ex_mixer_chain.c</a></li> 
704 </ul> 
705 <h2·id="al_stop_sample">al_stop_sample</h2>664 <h2·id="al_stop_sample">al_stop_sample</h2>
706 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_sample<span·class="op">(</span>ALLEGRO_SAMPLE_ID·<span·class="op">*</span>spl_id<span·class="op">)</span></span></code></pre></div>665 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_sample<span·class="op">(</span>ALLEGRO_SAMPLE_ID·<span·class="op">*</span>spl_id<span·class="op">)</span></span></code></pre></div>
707 <p><a666 <p><a
708 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L401">Source667 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L401">Source
709 Code</a></p>668 Code</a></p>
710 <p>Stop·the·sample·started·by·<a669 <p>Stop·the·sample·started·by·<a
711 href="audio.html#al_play_sample">al_play_sample</a>.</p>670 href="audio.html#al_play_sample">al_play_sample</a>.</p>
712 <p>See·also:·<a671 <p>See·also:·<a
713 href="audio.html#al_stop_samples">al_stop_samples</a></p>672 href="audio.html#al_stop_samples">al_stop_samples</a></p>
714 <p>Examples:</p> 
715 <ul> 
716 <li><a 
717 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L123">ex_acodec_multi.c</a></li> 
718 <li><a 
719 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L88">ex_kcm_direct.c</a></li> 
720 <li><a 
721 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L108">ex_mixer_chain.c</a></li> 
722 </ul> 
723 <h2·id="al_stop_samples">al_stop_samples</h2>673 <h2·id="al_stop_samples">al_stop_samples</h2>
724 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_samples<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>674 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_samples<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
725 <p><a675 <p><a
726 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L451">Source676 href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L451">Source
727 Code</a></p>677 Code</a></p>
728 <p>Stop·all·samples·started·by·<a678 <p>Stop·all·samples·started·by·<a
729 href="audio.html#al_play_sample">al_play_sample</a>.</p>679 href="audio.html#al_play_sample">al_play_sample</a>.</p>
730 <p>See·also:·<a·href="audio.html#al_stop_sample">al_stop_sample</a></p>680 <p>See·also:·<a·href="audio.html#al_stop_sample">al_stop_sample</a></p>
Max diff block lines reached; 115523/123344 bytes (93.66%) of diff not shown.
82.0 KB
html2text {}
    
Offset 232, 38 lines modifiedOffset 232, 28 lines modified
232 the·basic·API·only·supports·one·such·audio·stream·playing·at·once.232 the·basic·API·only·supports·one·such·audio·stream·playing·at·once.
233 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SA\x8AM\x8MP\x8PL\x8LE\x8E_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8*233 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SA\x8AM\x8MP\x8PL\x8LE\x8E_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8*
234 typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID;234 typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID;
235 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e235 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
236 An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·It236 An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·It
237 can·be·used·to·later·stop·the·sample·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·The·underlying237 can·be·used·to·later·stop·the·sample·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·The·underlying
238 ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d.238 ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d.
239 Examples: 
240 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c 
241 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8*239 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8*
242 bool·al_install_audio(void)240 bool·al_install_audio(void)
243 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e241 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
244 Install·the·audio·subsystem.242 Install·the·audio·subsystem.
245 Returns·true·on·success,·false·on·failure.243 Returns·true·on·success,·false·on·failure.
246 ·····Note:·most·users·will·call·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s·and244 ·····Note:·most·users·will·call·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s·and
247 ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n·after·this.245 ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n·after·this.
248 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d,246 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d,
249 _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n247 _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n
250 Examples: 
251 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8d_\x8e_\x8v_\x8i_\x8c_\x8e_\x8s_\x8._\x8c 
252 ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c 
253 ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c 
254 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8*248 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8*
255 void·al_uninstall_audio(void)249 void·al_uninstall_audio(void)
256 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e250 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
257 Uninstalls·the·audio·subsystem.251 Uninstalls·the·audio·subsystem.
258 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o252 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o
259 Examples: 
260 ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c 
261 ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c 
262 ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c 
263 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8*253 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8*
264 bool·al_is_audio_installed(void)254 bool·al_is_audio_installed(void)
265 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e255 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
266 Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o·was·called·previously·and·returned256 Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o·was·called·previously·and·returned
267 successfully.257 successfully.
268 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8er\x8rv\x8ve\x8e_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8*258 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8er\x8rv\x8ve\x8e_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8*
269 bool·al_reserve_samples(int·reserve_samples)259 bool·al_reserve_samples(int·reserve_samples)
Offset 280, 18 lines modifiedOffset 270, 14 lines modified
280 ····································/·sample·instance·2270 ····································/·sample·instance·2
281 default·voice·<--·default·mixer·<---·········.271 default·voice·<--·default·mixer·<---·········.
282 ····································\········.272 ····································\········.
283 ······································sample·instance·N273 ······································sample·instance·N
284 Returns·true·on·success,·false·on·error.·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o·must·have·been·called274 Returns·true·on·success,·false·on·error.·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o·must·have·been·called
285 first.275 first.
286 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8m_\x8i_\x8x_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e276 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8m_\x8i_\x8x_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e
287 Examples: 
288 ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c 
289 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p 
290 ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c 
291 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pl\x8la\x8ay\x8y_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*277 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pl\x8la\x8ay\x8y_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*
292 bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed,278 bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed,
293 ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id)279 ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id)
294 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e280 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
295 Plays·a·sample·on·one·of·the·sample·instances·created·by·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s.281 Plays·a·sample·on·one·of·the·sample·instances·created·by·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s.
296 Returns·true·on·success,·false·on·failure.·Playback·may·fail·because·all·the282 Returns·true·on·success,·false·on·failure.·Playback·may·fail·because·all·the
297 reserved·sample·instances·are·currently·used.283 reserved·sample·instances·are·currently·used.
Offset 304, 34 lines modifiedOffset 290, 24 lines modified
304 ······ALLEGRO_PLAYMODE_BIDIR290 ······ALLEGRO_PLAYMODE_BIDIR
305 ····*·ret_id·-·if·non-NULL·the·variable·which·this·points·to·will·be·assigned291 ····*·ret_id·-·if·non-NULL·the·variable·which·this·points·to·will·be·assigned
306 ······an·id·representing·the·sample·being·played.·If·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e·returns292 ······an·id·representing·the·sample·being·played.·If·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e·returns
307 ······false,·then·the·contents·of·ret_id·are·invalid·and·must·not·be·used·as293 ······false,·then·the·contents·of·ret_id·are·invalid·and·must·not·be·used·as
308 ······argument·to·other·functions.294 ······argument·to·other·functions.
309 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8L_\x8A_\x8Y_\x8M_\x8O_\x8D_\x8E,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8A_\x8U_\x8D_\x8I_\x8O_\x8__\x8P_\x8A_\x8N_\x8__\x8N_\x8O_\x8N_\x8E,295 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8L_\x8A_\x8Y_\x8M_\x8O_\x8D_\x8E,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8A_\x8U_\x8D_\x8I_\x8O_\x8__\x8P_\x8A_\x8N_\x8__\x8N_\x8O_\x8N_\x8E,
310 _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d.296 _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d.
311 Examples: 
312 ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c 
313 ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c 
314 ····*·_\x8e_\x8x_\x8__\x8m_\x8i_\x8x_\x8e_\x8r_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c 
315 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*297 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*
316 void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id)298 void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id)
317 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e299 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
318 Stop·the·sample·started·by·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.300 Stop·the·sample·started·by·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.
319 See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s301 See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s
320 Examples: 
321 ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c 
322 ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c 
323 ····*·_\x8e_\x8x_\x8__\x8m_\x8i_\x8x_\x8e_\x8r_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c 
324 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8*302 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8*
325 void·al_stop_samples(void)303 void·al_stop_samples(void)
326 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e304 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
327 Stop·all·samples·started·by·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.305 Stop·all·samples·started·by·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.
328 See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e306 See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e
329 Examples: 
330 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c 
331 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oc\x8ck\x8k_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8*307 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oc\x8ck\x8k_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8*
332 ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id)308 ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id)
333 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e309 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
334 Locks·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·returning·the·underlying·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8N_\x8S_\x8T_\x8A_\x8N_\x8C_\x8E.310 Locks·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·returning·the·underlying·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8N_\x8S_\x8T_\x8A_\x8N_\x8C_\x8E.
335 This·allows·you·to·adjust·the·various·properties·of·the·instance·(such·as311 This·allows·you·to·adjust·the·various·properties·of·the·instance·(such·as
336 volume,·pan,·etc)·while·the·sound·is·playing.312 volume,·pan,·etc)·while·the·sound·is·playing.
337 This·function·will·return·NULL·if·the·sound·corresponding·to·the·id·is·no313 This·function·will·return·NULL·if·the·sound·corresponding·to·the·id·is·no
Offset 339, 28 lines modifiedOffset 315, 24 lines modified
339 While·locked,·ALLEGRO_SAMPLE_ID·will·be·unavailable·to·additional·calls·to315 While·locked,·ALLEGRO_SAMPLE_ID·will·be·unavailable·to·additional·calls·to
340 _\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·even·if·the·sound·stops·while·locked.·To·put·the316 _\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·even·if·the·sound·stops·while·locked.·To·put·the
341 ALLEGRO_SAMPLE_ID·back·into·the·pool·for·reuse,·make·sure·to·call317 ALLEGRO_SAMPLE_ID·back·into·the·pool·for·reuse,·make·sure·to·call
342 al_unlock_sample_id·when·you’re·done·with·the·instance.318 al_unlock_sample_id·when·you’re·done·with·the·instance.
343 See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d319 See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d
344 Since:·5.2.3320 Since:·5.2.3
345 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API.321 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API.
346 Examples: 
347 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c 
348 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nl\x8lo\x8oc\x8ck\x8k_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8*322 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nl\x8lo\x8oc\x8ck\x8k_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8*
349 void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id)323 void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id)
350 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e324 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
351 Unlocks·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·allowing·future·calls·to·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e·to·reuse325 Unlocks·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·allowing·future·calls·to·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e·to·reuse
352 it·if·possible.·Note·that·after·the·id·is·unlocked,·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8N_\x8S_\x8T_\x8A_\x8N_\x8C_\x8E326 it·if·possible.·Note·that·after·the·id·is·unlocked,·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8N_\x8S_\x8T_\x8A_\x8N_\x8C_\x8E
353 that·was·previously·returned·by·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d·will·possibly·be·playing·a327 that·was·previously·returned·by·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d·will·possibly·be·playing·a
354 different·sound,·so·you·should·only·use·it·after·locking·the·id·again.328 different·sound,·so·you·should·only·use·it·after·locking·the·id·again.
355 See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d329 See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d
356 Since:·5.2.3330 Since:·5.2.3
357 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API.331 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API.
358 Examples: 
359 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c 
360 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pl\x8la\x8ay\x8y_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_s\x8st\x8tr\x8re\x8ea\x8am\x8m·*\x8**\x8**\x8**\x8**\x8*332 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pl\x8la\x8ay\x8y_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_s\x8st\x8tr\x8re\x8ea\x8am\x8m·*\x8**\x8**\x8**\x8**\x8*
361 ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename)333 ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename)
362 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e334 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
363 Loads·and·plays·an·audio·file,·streaming·from·disk·as·it·is·needed.·This·API335 Loads·and·plays·an·audio·file,·streaming·from·disk·as·it·is·needed.·This·API
364 can·only·play·one·audio·stream·at·a·time.·This·requires·a·default·mixer·to·be336 can·only·play·one·audio·stream·at·a·time.·This·requires·a·default·mixer·to·be
365 set,·which·is·typically·done·via·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·but·can·also·be·done·via337 set,·which·is·typically·done·via·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·but·can·also·be·done·via
366 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8m_\x8i_\x8x_\x8e_\x8r.338 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8m_\x8i_\x8x_\x8e_\x8r.
Offset 369, 16 lines modifiedOffset 341, 14 lines modified
369 down.341 down.
370 ·····N\x8No\x8ot\x8te\x8e:\x8:·the·allegro_audio·library·does·not·support·any·audio·file342 ·····N\x8No\x8ot\x8te\x8e:\x8:·the·allegro_audio·library·does·not·support·any·audio·file
371 ·····formats·by·default.·You·must·use·the·allegro_acodec·addon,·or343 ·····formats·by·default.·You·must·use·the·allegro_acodec·addon,·or
372 ·····register·your·own·format·handler.344 ·····register·your·own·format·handler.
373 See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m345 See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m
Max diff block lines reached; 75900/83925 bytes (90.44%) of diff not shown.
52.8 KB
./usr/share/doc/allegro5-doc/refman/color.html
    
Offset 272, 33 lines modifiedOffset 272, 23 lines modified
272 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source272 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source
273 Code</a></p>273 Code</a></p>
274 <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>274 <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>
275 structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p>275 structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p>
276 <p>See·also:·<a276 <p>See·also:·<a
277 href="color.html#al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</a>,·<a277 href="color.html#al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</a>,·<a
278 href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p>278 href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p>
279 <p>Examples:</p> 
280 <ul> 
281 <li><a 
282 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> 
283 </ul> 
284 <h1·id="al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</h1>279 <h1·id="al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</h1>
285 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_cmyk_to_rgb<span·class="op">(</span><span·class="dt">float</span>·cyan<span·class="op">,</span>·<span·class="dt">float</span>·magenta<span·class="op">,</span>·<span·class="dt">float</span>·yellow<span·class="op">,</span></span>280 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_cmyk_to_rgb<span·class="op">(</span><span·class="dt">float</span>·cyan<span·class="op">,</span>·<span·class="dt">float</span>·magenta<span·class="op">,</span>·<span·class="dt">float</span>·yellow<span·class="op">,</span></span>
286 <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>····<span·class="dt">float</span>·key<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div>281 <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>····<span·class="dt">float</span>·key<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div>
287 <p><a282 <p><a
288 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source283 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source
289 Code</a></p>284 Code</a></p>
290 <p>Convert·CMYK·values·to·RGB·values.</p>285 <p>Convert·CMYK·values·to·RGB·values.</p>
291 <p>See·also:·<a·href="color.html#al_color_cmyk">al_color_cmyk</a>,·<a286 <p>See·also:·<a·href="color.html#al_color_cmyk">al_color_cmyk</a>,·<a
292 href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p>287 href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p>
293 <p>Examples:</p> 
294 <ul> 
295 <li><a 
296 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> 
297 </ul> 
298 <h1·id="al_color_hsl">al_color_hsl</h1>288 <h1·id="al_color_hsl">al_color_hsl</h1>
299 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsl<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·l<span·class="op">)</span></span></code></pre></div>289 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsl<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·l<span·class="op">)</span></span></code></pre></div>
300 <p><a290 <p><a
301 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source291 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source
302 Code</a></p>292 Code</a></p>
303 <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>293 <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>
304 structure·from·HSL·(hue,·saturation,·lightness)·values.</p>294 structure·from·HSL·(hue,·saturation,·lightness)·values.</p>
Offset 307, 23 lines modifiedOffset 297, 14 lines modified
307 <li>hue·-·Color·hue·angle·in·the·range·0..360</li>297 <li>hue·-·Color·hue·angle·in·the·range·0..360</li>
308 <li>saturation·-·Color·saturation·in·the·range·0..1</li>298 <li>saturation·-·Color·saturation·in·the·range·0..1</li>
309 <li>lightness·-·Color·lightness·in·the·range·0..1</li>299 <li>lightness·-·Color·lightness·in·the·range·0..1</li>
310 </ul>300 </ul>
311 <p>See·also:·<a301 <p>See·also:·<a
312 href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a>,·<a302 href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a>,·<a
313 href="color.html#al_color_hsv">al_color_hsv</a></p>303 href="color.html#al_color_hsv">al_color_hsv</a></p>
314 <p>Examples:</p> 
315 <ul> 
316 <li><a 
317 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L101">ex_color.cpp</a></li> 
318 <li><a 
319 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clip.c#L50">ex_clip.c</a></li> 
320 <li><a 
321 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> 
322 </ul> 
323 <h1·id="al_color_hsl_to_rgb">al_color_hsl_to_rgb</h1>304 <h1·id="al_color_hsl_to_rgb">al_color_hsl_to_rgb</h1>
324 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_hsl_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·lightness<span·class="op">,</span></span>305 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_hsl_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·lightness<span·class="op">,</span></span>
325 <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div>306 <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div>
326 <p><a307 <p><a
327 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L367">Source308 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L367">Source
328 Code</a></p>309 Code</a></p>
329 <p>Convert·values·in·HSL·color·model·to·RGB·color·model.</p>310 <p>Convert·values·in·HSL·color·model·to·RGB·color·model.</p>
Offset 334, 21 lines modifiedOffset 315, 14 lines modified
334 <li>lightness·-·Color·lightness·in·the·range·0..1</li>315 <li>lightness·-·Color·lightness·in·the·range·0..1</li>
335 <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li>316 <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li>
336 </ul>317 </ul>
337 <p>See·also:·<a318 <p>See·also:·<a
338 href="color.html#al_color_rgb_to_hsl">al_color_rgb_to_hsl</a>,·<a319 href="color.html#al_color_rgb_to_hsl">al_color_rgb_to_hsl</a>,·<a
339 href="color.html#al_color_hsl">al_color_hsl</a>,·<a320 href="color.html#al_color_hsl">al_color_hsl</a>,·<a
340 href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a></p>321 href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a></p>
341 <p>Examples:</p> 
342 <ul> 
343 <li><a 
344 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L101">ex_color.cpp</a></li> 
345 <li><a 
346 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> 
347 </ul> 
348 <h1·id="al_color_hsv">al_color_hsv</h1>322 <h1·id="al_color_hsv">al_color_hsv</h1>
349 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsv<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·v<span·class="op">)</span></span></code></pre></div>323 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsv<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·v<span·class="op">)</span></span></code></pre></div>
350 <p><a324 <p><a
351 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L339">Source325 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L339">Source
352 Code</a></p>326 Code</a></p>
353 <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>327 <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>
354 structure·from·HSV·(hue,·saturation,·value)·values.</p>328 structure·from·HSV·(hue,·saturation,·value)·values.</p>
Offset 357, 23 lines modifiedOffset 331, 14 lines modified
357 <li>hue·-·Color·hue·angle·in·the·range·0..360</li>331 <li>hue·-·Color·hue·angle·in·the·range·0..360</li>
358 <li>saturation·-·Color·saturation·in·the·range·0..1</li>332 <li>saturation·-·Color·saturation·in·the·range·0..1</li>
359 <li>value·-·Color·value·in·the·range·0..1</li>333 <li>value·-·Color·value·in·the·range·0..1</li>
360 </ul>334 </ul>
361 <p>See·also:·<a335 <p>See·also:·<a
362 href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a>,·<a336 href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a>,·<a
363 href="color.html#al_color_hsl">al_color_hsl</a></p>337 href="color.html#al_color_hsl">al_color_hsl</a></p>
364 <p>Examples:</p> 
365 <ul> 
366 <li><a 
367 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L250">ex_font_multiline.cpp</a></li> 
368 <li><a 
369 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> 
370 <li><a 
371 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L95">ex_multisample.c</a></li> 
372 </ul> 
373 <h1·id="al_color_hsv_to_rgb">al_color_hsv_to_rgb</h1>338 <h1·id="al_color_hsv_to_rgb">al_color_hsv_to_rgb</h1>
374 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_hsv_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·value<span·class="op">,</span></span>339 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_hsv_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·value<span·class="op">,</span></span>
375 <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div>340 <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div>
376 <p><a341 <p><a
377 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L266">Source342 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L266">Source
378 Code</a></p>343 Code</a></p>
379 <p>Convert·values·in·HSV·color·model·to·RGB·color·model.</p>344 <p>Convert·values·in·HSV·color·model·to·RGB·color·model.</p>
Offset 384, 19 lines modifiedOffset 349, 14 lines modified
384 <li>value·-·Color·value·in·the·range·0..1</li>349 <li>value·-·Color·value·in·the·range·0..1</li>
385 <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li>350 <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li>
386 </ul>351 </ul>
387 <p>See·also:·<a352 <p>See·also:·<a
388 href="color.html#al_color_rgb_to_hsv">al_color_rgb_to_hsv</a>,·<a353 href="color.html#al_color_rgb_to_hsv">al_color_rgb_to_hsv</a>,·<a
389 href="color.html#al_color_hsv">al_color_hsv</a>,·<a354 href="color.html#al_color_hsv">al_color_hsv</a>,·<a
390 href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a></p>355 href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a></p>
391 <p>Examples:</p> 
392 <ul> 
393 <li><a 
394 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> 
395 </ul> 
396 <h1·id="al_color_html">al_color_html</h1>356 <h1·id="al_color_html">al_color_html</h1>
397 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_html<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>string<span·class="op">)</span></span></code></pre></div>357 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_html<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>string<span·class="op">)</span></span></code></pre></div>
398 <p><a358 <p><a
399 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L568">Source359 href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L568">Source
400 Code</a></p>360 Code</a></p>
401 <p>Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The361 <p>Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The
402 accepted·format·is·the·same·as·<a362 accepted·format·is·the·same·as·<a
Offset 444, 39 lines modifiedOffset 404, 25 lines modified
444 </ul>404 </ul>
445 <p>Example:</p>405 <p>Example:</p>
446 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·html<span·class="op">[</span><span·class="dv">8</span><span·class="op">];</span></span>406 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·html<span·class="op">[</span><span·class="dv">8</span><span·class="op">];</span></span>
Max diff block lines reached; 26602/35681 bytes (74.56%) of diff not shown.
17.8 KB
html2text {}
    
Offset 103, 77 lines modifiedOffset 103, 60 lines modified
103 output·of·the·monitor·will·be·less·than·half).103 output·of·the·monitor·will·be·less·than·half).
104 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k·*\x8**\x8**\x8**\x8**\x8**\x8*104 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k·*\x8**\x8**\x8**\x8**\x8**\x8*
105 ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k)105 ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k)
106 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e106 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
107 Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·CMYK·values·(cyan,·magenta,·yellow,107 Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·CMYK·values·(cyan,·magenta,·yellow,
108 black).108 black).
109 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k109 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k
110 Examples: 
111 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p 
112 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8*110 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8*
113 void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow,111 void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow,
114 ····float·key,·float·*red,·float·*green,·float·*blue)112 ····float·key,·float·*red,·float·*green,·float·*blue)
115 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e113 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
116 Convert·CMYK·values·to·RGB·values.114 Convert·CMYK·values·to·RGB·values.
117 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k115 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k
118 Examples: 
119 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p 
120 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*116 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*
121 ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l)117 ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l)
122 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e118 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
123 Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSL·(hue,·saturation,·lightness)·values.119 Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSL·(hue,·saturation,·lightness)·values.
124 Parameters:120 Parameters:
125 ····*·hue·-·Color·hue·angle·in·the·range·0..360121 ····*·hue·-·Color·hue·angle·in·the·range·0..360
126 ····*·saturation·-·Color·saturation·in·the·range·0..1122 ····*·saturation·-·Color·saturation·in·the·range·0..1
127 ····*·lightness·-·Color·lightness·in·the·range·0..1123 ····*·lightness·-·Color·lightness·in·the·range·0..1
128 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v124 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v
129 Examples: 
130 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p 
131 ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8._\x8c 
132 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c 
133 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8*125 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8*
134 void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness,126 void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness,
135 ···float·*red,·float·*green,·float·*blue)127 ···float·*red,·float·*green,·float·*blue)
136 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e128 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
137 Convert·values·in·HSL·color·model·to·RGB·color·model.129 Convert·values·in·HSL·color·model·to·RGB·color·model.
138 Parameters:130 Parameters:
139 ····*·hue·-·Color·hue·angle·in·the·range·0..360131 ····*·hue·-·Color·hue·angle·in·the·range·0..360
140 ····*·saturation·-·Color·saturation·in·the·range·0..1132 ····*·saturation·-·Color·saturation·in·the·range·0..1
141 ····*·lightness·-·Color·lightness·in·the·range·0..1133 ····*·lightness·-·Color·lightness·in·the·range·0..1
142 ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1134 ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1
143 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b135 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b
144 Examples: 
145 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p 
146 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c 
147 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v·*\x8**\x8**\x8**\x8**\x8**\x8*136 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v·*\x8**\x8**\x8**\x8**\x8**\x8*
148 ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v)137 ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v)
149 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e138 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
150 Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSV·(hue,·saturation,·value)·values.139 Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSV·(hue,·saturation,·value)·values.
151 Parameters:140 Parameters:
152 ····*·hue·-·Color·hue·angle·in·the·range·0..360141 ····*·hue·-·Color·hue·angle·in·the·range·0..360
153 ····*·saturation·-·Color·saturation·in·the·range·0..1142 ····*·saturation·-·Color·saturation·in·the·range·0..1
154 ····*·value·-·Color·value·in·the·range·0..1143 ····*·value·-·Color·value·in·the·range·0..1
155 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l144 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l
156 Examples: 
157 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p 
158 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p 
159 ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c 
160 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8*145 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8*
161 void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value,146 void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value,
162 ···float·*red,·float·*green,·float·*blue)147 ···float·*red,·float·*green,·float·*blue)
163 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e148 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
164 Convert·values·in·HSV·color·model·to·RGB·color·model.149 Convert·values·in·HSV·color·model·to·RGB·color·model.
165 Parameters:150 Parameters:
166 ····*·hue·-·Color·hue·angle·in·the·range·0..360151 ····*·hue·-·Color·hue·angle·in·the·range·0..360
167 ····*·saturation·-·Color·saturation·in·the·range·0..1152 ····*·saturation·-·Color·saturation·in·the·range·0..1
168 ····*·value·-·Color·value·in·the·range·0..1153 ····*·value·-·Color·value·in·the·range·0..1
169 ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1154 ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1
170 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b155 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b
171 Examples: 
172 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p 
173 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8ht\x8tm\x8ml\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*156 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8ht\x8tm\x8ml\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*
174 ALLEGRO_COLOR·al_color_html(char·const·*string)157 ALLEGRO_COLOR·al_color_html(char·const·*string)
175 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e158 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
176 Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·accepted159 Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·accepted
177 format·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b.160 format·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b.
178 Returns·the·interpreted·color,·or·al_map_rgba(0,·0,·0,·0)·if·the·string·could161 Returns·the·interpreted·color,·or·al_map_rgba(0,·0,·0,·0)·if·the·string·could
179 not·be·parsed.162 not·be·parsed.
Offset 202, 26 lines modifiedOffset 185, 20 lines modified
202 ····*·string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result185 ····*·string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result
203 ······will·be·written·(including·the·NUL·terminator).186 ······will·be·written·(including·the·NUL·terminator).
204 Example:187 Example:
205 char·html[8];188 char·html[8];
206 al_color_rgb_to_html(1,·0,·0,·html);189 al_color_rgb_to_html(1,·0,·0,·html);
207 Now·html·will·contain·“#ff0000”.190 Now·html·will·contain·“#ff0000”.
208 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b191 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b
209 Examples: 
210 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p 
211 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*192 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
212 ALLEGRO_COLOR·al_color_name(char·const·*name)193 ALLEGRO_COLOR·al_color_name(char·const·*name)
213 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e194 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
214 Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·with·the·given·name.·If·the·color·is·not·found·then195 Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·with·the·given·name.·If·the·color·is·not·found·then
215 black·is·returned.196 black·is·returned.
216 See·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8n_\x8a_\x8m_\x8e_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b·for·the·list·of·names.197 See·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8n_\x8a_\x8m_\x8e_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b·for·the·list·of·names.
217 Examples: 
218 ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c 
219 ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c 
220 ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8._\x8c 
221 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_n\x8na\x8am\x8me\x8e_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8*198 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_n\x8na\x8am\x8me\x8e_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8*
222 bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b)199 bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b)
223 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e200 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
224 Parameters:201 Parameters:
225 ····*·name·-·The·(lowercase)·name·of·the·color.202 ····*·name·-·The·(lowercase)·name·of·the·color.
226 ····*·r,·g,·b·-·If·one·of·the·recognized·color·names·below·is·passed,·the203 ····*·r,·g,·b·-·If·one·of·the·recognized·color·names·below·is·passed,·the
227 ······corresponding·RGB·values·in·the·range·0..1·are·written.204 ······corresponding·RGB·values·in·the·range·0..1·are·written.
Offset 266, 44 lines modifiedOffset 243, 34 lines modified
266 C·=·1·-·R243 C·=·1·-·R
267 M·=·1·-·G244 M·=·1·-·G
268 Y·=·1·-·B245 Y·=·1·-·B
269 K·=·0246 K·=·0
270 This·function·will·instead·find·the·representation·with·the·maximal·value·for·K247 This·function·will·instead·find·the·representation·with·the·maximal·value·for·K
271 and·minimal·color·components.248 and·minimal·color·components.
272 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b249 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b
273 Examples: 
274 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p 
275 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_r\x8rg\x8gb\x8b_\x8_t\x8to\x8o_\x8_h\x8hs\x8sl\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*250 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_r\x8rg\x8gb\x8b_\x8_t\x8to\x8o_\x8_h\x8hs\x8sl\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*
276 void·al_color_rgb_to_hsl(float·red,·float·green,·float·blue,251 void·al_color_rgb_to_hsl(float·red,·float·green,·float·blue,
277 ···float·*hue,·float·*saturation,·float·*lightness)252 ···float·*hue,·float·*saturation,·float·*lightness)
278 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e253 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
279 Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue·in254 Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue·in
280 degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1.255 degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1.
281 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l256 See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l
282 Examples: 
283 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p 
284 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c 
285 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_r\x8rg\x8gb\x8b_\x8_t\x8to\x8o_\x8_h\x8hs\x8sv\x8v·*\x8**\x8**\x8**\x8**\x8**\x8*257 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_r\x8rg\x8gb\x8b_\x8_t\x8to\x8o_\x8_h\x8hs\x8sv\x8v·*\x8**\x8**\x8**\x8**\x8**\x8*
286 void·al_color_rgb_to_hsv(float·red,·float·green,·float·blue,258 void·al_color_rgb_to_hsv(float·red,·float·green,·float·blue,
287 ···float·*hue,·float·*saturation,·float·*value)259 ···float·*hue,·float·*saturation,·float·*value)
Max diff block lines reached; 11297/18251 bytes (61.90%) of diff not shown.
11.8 KB
./usr/share/doc/allegro5-doc/refman/config.html
    
Offset 258, 55 lines modifiedOffset 258, 36 lines modified
258 <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>al_destroy_config<span·class="op">(</span>cfg<span·class="op">);</span></span></code></pre></div>258 <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>al_destroy_config<span·class="op">(</span>cfg<span·class="op">);</span></span></code></pre></div>
259 <h1·id="allegro_config">ALLEGRO_CONFIG</h1>259 <h1·id="allegro_config">ALLEGRO_CONFIG</h1>
260 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG<span·class="op">;</span></span></code></pre></div>260 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG<span·class="op">;</span></span></code></pre></div>
261 <p><a261 <p><a
262 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source262 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source
263 Code</a></p>263 Code</a></p>
264 <p>An·abstract·configuration·structure.</p>264 <p>An·abstract·configuration·structure.</p>
265 <p>Examples:</p> 
266 <ul> 
267 <li><a 
268 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L26">ex_config.c</a></li> 
269 <li><a 
270 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L14">ex_vsync.c</a></li> 
271 <li><a 
272 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L239">ex_stream_seek.c</a></li> 
273 </ul> 
274 <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</h1>265 <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION<span·class="op">;</span></span></code></pre></div>266 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION<span·class="op">;</span></span></code></pre></div>
276 <p><a267 <p><a
277 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source268 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source
278 Code</a></p>269 Code</a></p>
279 <p>An·opaque·structure·used·for·iterating·across·sections·in·a270 <p>An·opaque·structure·used·for·iterating·across·sections·in·a
280 configuration·structure.</p>271 configuration·structure.</p>
281 <p>See·also:·<a272 <p>See·also:·<a
282 href="config.html#al_get_first_config_section">al_get_first_config_section</a>,273 href="config.html#al_get_first_config_section">al_get_first_config_section</a>,
283 <a274 <a
284 href="config.html#al_get_next_config_section">al_get_next_config_section</a></p>275 href="config.html#al_get_next_config_section">al_get_next_config_section</a></p>
285 <p>Examples:</p> 
286 <ul> 
287 <li><a 
288 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L28">ex_config.c</a></li> 
289 </ul> 
290 <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1>276 <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1>
291 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY<span·class="op">;</span></span></code></pre></div>277 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY<span·class="op">;</span></span></code></pre></div>
292 <p><a278 <p><a
293 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source279 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source
294 Code</a></p>280 Code</a></p>
295 <p>An·opaque·structure·used·for·iterating·across·entries·in·a281 <p>An·opaque·structure·used·for·iterating·across·entries·in·a
296 configuration·section.</p>282 configuration·section.</p>
297 <p>See·also:·<a283 <p>See·also:·<a
298 href="config.html#al_get_first_config_entry">al_get_first_config_entry</a>,284 href="config.html#al_get_first_config_entry">al_get_first_config_entry</a>,
299 <a285 <a
300 href="config.html#al_get_next_config_entry">al_get_next_config_entry</a></p>286 href="config.html#al_get_next_config_entry">al_get_next_config_entry</a></p>
301 <p>Examples:</p> 
302 <ul> 
303 <li><a 
304 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L29">ex_config.c</a></li> 
305 </ul> 
306 <h1·id="al_create_config">al_create_config</h1>287 <h1·id="al_create_config">al_create_config</h1>
307 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_create_config<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>288 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_create_config<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
308 <p><a289 <p><a
309 href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L37">Source290 href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L37">Source
310 Code</a></p>291 Code</a></p>
311 <p>Create·an·empty·configuration·structure.</p>292 <p>Create·an·empty·configuration·structure.</p>
312 <p>See·also:·<a293 <p>See·also:·<a
Offset 332, 17 lines modifiedOffset 313, 17 lines modified
332 href="config.html#al_create_config">al_create_config</a>,·<a313 href="config.html#al_create_config">al_create_config</a>,·<a
333 href="config.html#al_load_config_file">al_load_config_file</a></p>314 href="config.html#al_load_config_file">al_load_config_file</a></p>
334 <p>Examples:</p>315 <p>Examples:</p>
335 <ul>316 <ul>
336 <li><a317 <li><a
337 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L112">ex_config.c</a></li>318 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L112">ex_config.c</a></li>
338 <li><a319 <li><a
339 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L122">ex_vsync.c</a></li> 
340 <li><a 
341 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L273">ex_stream_seek.c</a></li>320 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L273">ex_stream_seek.c</a></li>
 321 <li><a
 322 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L122">ex_vsync.c</a></li>
342 </ul>323 </ul>
343 <h1·id="al_load_config_file">al_load_config_file</h1>324 <h1·id="al_load_config_file">al_load_config_file</h1>
344 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div>325 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div>
345 <p><a326 <p><a
346 href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L311">Source327 href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L311">Source
347 Code</a></p>328 Code</a></p>
348 <p>Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The329 <p>Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The
Offset 352, 17 lines modifiedOffset 333, 17 lines modified
352 href="config.html#al_load_config_file_f">al_load_config_file_f</a>,·<a333 href="config.html#al_load_config_file_f">al_load_config_file_f</a>,·<a
353 href="config.html#al_save_config_file">al_save_config_file</a></p>334 href="config.html#al_save_config_file">al_save_config_file</a></p>
354 <p>Examples:</p>335 <p>Examples:</p>
355 <ul>336 <ul>
356 <li><a337 <li><a
357 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L39">ex_config.c</a></li>338 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L39">ex_config.c</a></li>
358 <li><a339 <li><a
359 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L102">ex_vsync.c</a></li> 
360 <li><a 
361 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L254">ex_stream_seek.c</a></li>340 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L254">ex_stream_seek.c</a></li>
 341 <li><a
 342 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L102">ex_vsync.c</a></li>
362 </ul>343 </ul>
363 <h1·id="al_load_config_file_f">al_load_config_file_f</h1>344 <h1·id="al_load_config_file_f">al_load_config_file_f</h1>
364 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>file<span·class="op">)</span></span></code></pre></div>345 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>file<span·class="op">)</span></span></code></pre></div>
365 <p><a346 <p><a
366 href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L328">Source347 href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L328">Source
367 Code</a></p>348 Code</a></p>
368 <p>Read·a·configuration·file·from·an·already·open·file.</p>349 <p>Read·a·configuration·file·from·an·already·open·file.</p>
Offset 448, 17 lines modifiedOffset 429, 17 lines modified
448 <p>See·also:·<a429 <p>See·also:·<a
449 href="config.html#al_set_config_value">al_set_config_value</a></p>430 href="config.html#al_set_config_value">al_set_config_value</a></p>
450 <p>Examples:</p>431 <p>Examples:</p>
451 <ul>432 <ul>
452 <li><a433 <li><a
453 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L44">ex_config.c</a></li>434 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L44">ex_config.c</a></li>
454 <li><a435 <li><a
455 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L18">ex_vsync.c</a></li> 
456 <li><a 
457 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L256">ex_stream_seek.c</a></li>436 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L256">ex_stream_seek.c</a></li>
 437 <li><a
 438 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L18">ex_vsync.c</a></li>
458 </ul>439 </ul>
459 <h1·id="al_set_config_value">al_set_config_value</h1>440 <h1·id="al_set_config_value">al_set_config_value</h1>
460 <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_config_value<span·class="op">(</span>ALLEGRO_CONFIG·<span·class="op">*</span>config<span·class="op">,</span></span>441 <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_config_value<span·class="op">(</span>ALLEGRO_CONFIG·<span·class="op">*</span>config<span·class="op">,</span></span>
461 <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>section<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>key<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>value<span·class="op">)</span></span></code></pre></div>442 <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>section<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>key<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>value<span·class="op">)</span></span></code></pre></div>
462 <p><a443 <p><a
463 href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L164">Source444 href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L164">Source
464 Code</a></p>445 Code</a></p>
4.45 KB
html2text {}
    
Offset 103, 34 lines modifiedOffset 103, 26 lines modified
103 printf("%s\n",·al_get_config_value(cfg,·"weapon·1",·"damage"));·/*·Prints:·503103 printf("%s\n",·al_get_config_value(cfg,·"weapon·1",·"damage"));·/*·Prints:·503
104 */104 */
105 al_destroy_config(cfg);105 al_destroy_config(cfg);
106 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8*106 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8*
107 typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG;107 typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG;
108 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e108 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
109 An·abstract·configuration·structure.109 An·abstract·configuration·structure.
110 Examples: 
111 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c 
112 ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c 
113 ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c 
114 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_S\x8SE\x8EC\x8CT\x8TI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8**\x8*110 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_S\x8SE\x8EC\x8CT\x8TI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8**\x8*
115 typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION;111 typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION;
116 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e112 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
117 An·opaque·structure·used·for·iterating·across·sections·in·a·configuration113 An·opaque·structure·used·for·iterating·across·sections·in·a·configuration
118 structure.114 structure.
119 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n115 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n
120 Examples: 
121 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c 
122 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8*116 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8*
123 typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY;117 typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY;
124 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e118 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
125 An·opaque·structure·used·for·iterating·across·entries·in·a·configuration119 An·opaque·structure·used·for·iterating·across·entries·in·a·configuration
126 section.120 section.
127 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y121 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y
128 Examples: 
129 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c 
130 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*122 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*
131 ALLEGRO_CONFIG·*al_create_config(void)123 ALLEGRO_CONFIG·*al_create_config(void)
132 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e124 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
133 Create·an·empty·configuration·structure.125 Create·an·empty·configuration·structure.
134 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g126 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g
135 Examples:127 Examples:
136 ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c128 ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c
Offset 140, 26 lines modifiedOffset 132, 26 lines modified
140 void·al_destroy_config(ALLEGRO_CONFIG·*config)132 void·al_destroy_config(ALLEGRO_CONFIG·*config)
141 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e133 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
142 Free·the·resources·used·by·a·configuration·structure.·Does·nothing·if·passed134 Free·the·resources·used·by·a·configuration·structure.·Does·nothing·if·passed
143 NULL.135 NULL.
144 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e136 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e
145 Examples:137 Examples:
146 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c138 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c
147 ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c 
148 ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c139 ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c
 140 ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c
149 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*141 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
150 ALLEGRO_CONFIG·*al_load_config_file(const·char·*filename)142 ALLEGRO_CONFIG·*al_load_config_file(const·char·*filename)
151 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e143 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
152 Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The·configuration144 Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The·configuration
153 structure·should·be·destroyed·with·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g.145 structure·should·be·destroyed·with·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g.
154 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8f,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e146 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8f,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e
155 Examples:147 Examples:
156 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c148 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c
157 ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c 
158 ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c149 ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c
 150 ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c
159 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8**\x8*151 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8**\x8*
160 ALLEGRO_CONFIG·*al_load_config_file_f(ALLEGRO_FILE·*file)152 ALLEGRO_CONFIG·*al_load_config_file_f(ALLEGRO_FILE·*file)
161 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e153 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
162 Read·a·configuration·file·from·an·already·open·file.154 Read·a·configuration·file·from·an·already·open·file.
163 Returns·NULL·on·error.·The·configuration·structure·should·be·destroyed·with155 Returns·NULL·on·error.·The·configuration·structure·should·be·destroyed·with
164 _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g.·The·file·remains·open·afterwards.156 _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g.·The·file·remains·open·afterwards.
165 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e157 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e
Offset 209, 16 lines modifiedOffset 201, 16 lines modified
209 Gets·a·pointer·to·an·internal·character·buffer·that·will·only·remain·valid·as201 Gets·a·pointer·to·an·internal·character·buffer·that·will·only·remain·valid·as
210 long·as·the·ALLEGRO_CONFIG·structure·is·not·destroyed.·Copy·the·value·if·you202 long·as·the·ALLEGRO_CONFIG·structure·is·not·destroyed.·Copy·the·value·if·you
211 need·a·copy.·The·section·can·be·NULL·or·“”·for·the·global·section.·Returns·NULL203 need·a·copy.·The·section·can·be·NULL·or·“”·for·the·global·section.·Returns·NULL
212 if·the·section·or·key·do·not·exist.204 if·the·section·or·key·do·not·exist.
213 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e205 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e
214 Examples:206 Examples:
215 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c207 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c
216 ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c 
217 ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c208 ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c
 209 ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c
218 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_v\x8va\x8al\x8lu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*210 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_v\x8va\x8al\x8lu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
219 void·al_set_config_value(ALLEGRO_CONFIG·*config,211 void·al_set_config_value(ALLEGRO_CONFIG·*config,
220 ···const·char·*section,·const·char·*key,·const·char·*value)212 ···const·char·*section,·const·char·*key,·const·char·*value)
221 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e213 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
222 Set·a·value·in·a·section·of·a·configuration.·If·the·section·doesn’t·yet·exist,214 Set·a·value·in·a·section·of·a·configuration.·If·the·section·doesn’t·yet·exist,
223 it·will·be·created.·If·a·value·already·existed·for·the·given·key,·it·will·be215 it·will·be·created.·If·a·value·already·existed·for·the·given·key,·it·will·be
224 overwritten.·The·section·can·be·NULL·or·“”·for·the·global·section.216 overwritten.·The·section·can·be·NULL·or·“”·for·the·global·section.
37.8 KB
./usr/share/doc/allegro5-doc/refman/display.html
    
Offset 345, 23 lines modifiedOffset 345, 14 lines modified
345 <h1·id="display-creation">Display·creation</h1>345 <h1·id="display-creation">Display·creation</h1>
346 <h2·id="allegro_display">ALLEGRO_DISPLAY</h2>346 <h2·id="allegro_display">ALLEGRO_DISPLAY</h2>
347 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY<span·class="op">;</span></span></code></pre></div>347 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY<span·class="op">;</span></span></code></pre></div>
348 <p><a348 <p><a
349 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source349 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source
350 Code</a></p>350 Code</a></p>
351 <p>An·opaque·type·representing·an·open·display·or·window.</p>351 <p>An·opaque·type·representing·an·open·display·or·window.</p>
352 <p>Examples:</p> 
353 <ul> 
354 <li><a 
355 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L33">ex_monitorinfo.c</a></li> 
356 <li><a 
357 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L24">ex_d3d.cpp</a></li> 
358 <li><a 
359 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L12">ex_keyboard_focus.c</a></li> 
360 </ul> 
361 <h2·id="al_create_display">al_create_display</h2>352 <h2·id="al_create_display">al_create_display</h2>
362 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY·<span·class="op">*</span>al_create_display<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div>353 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY·<span·class="op">*</span>al_create_display<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div>
363 <p><a354 <p><a
364 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source355 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source
365 Code</a></p>356 Code</a></p>
366 <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The357 <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The
367 parameters·of·the·display·are·determined·by·the·last·calls·to358 parameters·of·the·display·are·determined·by·the·last·calls·to
Offset 384, 19 lines modifiedOffset 375, 19 lines modified
384 <a375 <a
385 href="display.html#al_set_new_window_title">al_set_new_window_title</a>376 href="display.html#al_set_new_window_title">al_set_new_window_title</a>
386 <a377 <a
387 href="display.html#al_set_window_position">al_set_window_position</a></p>378 href="display.html#al_set_window_position">al_set_window_position</a></p>
388 <p>Examples:</p>379 <p>Examples:</p>
389 <ul>380 <ul>
390 <li><a381 <li><a
391 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L37">ex_d3d.cpp</a></li>382 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L177">ex_audio_props.cpp</a></li>
392 <li><a383 <li><a
393 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L43">ex_keyboard_focus.c</a></li>384 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L43">ex_keyboard_focus.c</a></li>
394 <li><a385 <li><a
395 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L48">ex_mouse_focus.c</a></li>386 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L37">ex_d3d.cpp</a></li>
396 </ul>387 </ul>
397 <h2·id="al_destroy_display">al_destroy_display</h2>388 <h2·id="al_destroy_display">al_destroy_display</h2>
398 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_display<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div>389 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_display<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div>
399 <p><a390 <p><a
400 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L142">Source391 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L142">Source
401 Code</a></p>392 Code</a></p>
402 <p>Destroy·a·display.</p>393 <p>Destroy·a·display.</p>
Offset 576, 19 lines modifiedOffset 567, 19 lines modified
576 href="display.html#al_set_new_display_option">al_set_new_display_option</a>,567 href="display.html#al_set_new_display_option">al_set_new_display_option</a>,
577 <a·href="display.html#al_get_display_option">al_get_display_option</a>,568 <a·href="display.html#al_get_display_option">al_get_display_option</a>,
578 <a569 <a
579 href="display.html#al_set_display_option">al_set_display_option</a></p>570 href="display.html#al_set_display_option">al_set_display_option</a></p>
580 <p>Examples:</p>571 <p>Examples:</p>
581 <ul>572 <ul>
582 <li><a573 <li><a
583 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L35">ex_d3d.cpp</a></li>574 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L176">ex_audio_props.cpp</a></li>
584 <li><a575 <li><a
585 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L138">ex_opengl.c</a></li>576 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L35">ex_d3d.cpp</a></li>
586 <li><a577 <li><a
587 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L55">ex_opengl_pixel_shader.c</a></li>578 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L201">ex_color.cpp</a></li>
588 </ul>579 </ul>
589 <h2·id="al_get_new_display_option">al_get_new_display_option</h2>580 <h2·id="al_get_new_display_option">al_get_new_display_option</h2>
590 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_option<span·class="op">(</span><span·class="dt">int</span>·option<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>importance<span·class="op">)</span></span></code></pre></div>581 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_option<span·class="op">(</span><span·class="dt">int</span>·option<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>importance<span·class="op">)</span></span></code></pre></div>
591 <p><a582 <p><a
592 href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L64">Source583 href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L64">Source
593 Code</a></p>584 Code</a></p>
594 <p>Retrieve·an·extra·display·setting·which·was·previously·set·with·<a585 <p>Retrieve·an·extra·display·setting·which·was·previously·set·with·<a
Offset 793, 15 lines modifiedOffset 784, 15 lines modified
793 <p>Examples:</p>784 <p>Examples:</p>
794 <ul>785 <ul>
795 <li><a786 <li><a
796 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L36">ex_d3d.cpp</a></li>787 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L36">ex_d3d.cpp</a></li>
797 <li><a788 <li><a
798 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_glext.c#L216">ex_glext.c</a></li>789 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_glext.c#L216">ex_glext.c</a></li>
799 <li><a790 <li><a
800 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_expose.c#L29">ex_expose.c</a></li>791 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font.c#L70">ex_font.c</a></li>
801 </ul>792 </ul>
802 <h2·id="al_reset_new_display_options">al_reset_new_display_options</h2>793 <h2·id="al_reset_new_display_options">al_reset_new_display_options</h2>
803 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_reset_new_display_options<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>794 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_reset_new_display_options<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
804 <p><a795 <p><a
805 href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L104">Source796 href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L104">Source
806 Code</a></p>797 Code</a></p>
807 <p>This·undoes·any·previous·call·to·<a798 <p>This·undoes·any·previous·call·to·<a
Offset 892, 35 lines modifiedOffset 883, 35 lines modified
892 href="monitor.html#al_get_num_video_adapters">al_get_num_video_adapters</a>,883 href="monitor.html#al_get_num_video_adapters">al_get_num_video_adapters</a>,
893 <a·href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p>884 <a·href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p>
894 <p>Examples:</p>885 <p>Examples:</p>
895 <ul>886 <ul>
896 <li><a887 <li><a
897 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L30">ex_monitorinfo.c</a></li>888 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L30">ex_monitorinfo.c</a></li>
898 <li><a889 <li><a
899 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_winfull.c#L24">ex_winfull.c</a></li> 
900 <li><a 
901 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dualies.c#L16">ex_dualies.c</a></li>890 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dualies.c#L16">ex_dualies.c</a></li>
 891 <li><a
 892 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_winfull.c#L24">ex_winfull.c</a></li>
902 </ul>893 </ul>
903 <h1·id="display-operations">Display·operations</h1>894 <h1·id="display-operations">Display·operations</h1>
904 <h2·id="al_get_display_event_source">al_get_display_event_source</h2>895 <h2·id="al_get_display_event_source">al_get_display_event_source</h2>
905 <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>al_get_display_event_source<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div>896 <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>al_get_display_event_source<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div>
906 <p><a897 <p><a
907 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L502">Source898 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L502">Source
908 Code</a></p>899 Code</a></p>
909 <p>Retrieve·the·associated·event·source.·See·the·<a900 <p>Retrieve·the·associated·event·source.·See·the·<a
910 href="events.html#allegro_event_display_expose">documentation·on901 href="events.html#allegro_event_display_expose">documentation·on
911 events</a>·for·a·list·of·the·events·displays·will·generate.</p>902 events</a>·for·a·list·of·the·events·displays·will·generate.</p>
912 <p>Examples:</p>903 <p>Examples:</p>
913 <ul>904 <ul>
914 <li><a905 <li><a
 906 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L46">ex_disable_screensaver.c</a></li>
 907 <li><a
915 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L141">ex_keyboard_events.c</a></li>908 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L141">ex_keyboard_events.c</a></li>
916 <li><a909 <li><a
917 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L146">ex_opengl.c</a></li>910 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L146">ex_opengl.c</a></li>
918 <li><a 
919 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L67">ex_touch_input.c</a></li> 
920 </ul>911 </ul>
921 <h2·id="al_get_backbuffer">al_get_backbuffer</h2>912 <h2·id="al_get_backbuffer">al_get_backbuffer</h2>
922 <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_BITMAP·<span·class="op">*</span>al_get_backbuffer<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div>913 <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_BITMAP·<span·class="op">*</span>al_get_backbuffer<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div>
923 <p><a914 <p><a
924 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L176">Source915 href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L176">Source
925 Code</a></p>916 Code</a></p>
926 <p>Return·a·special·bitmap·representing·the·back-buffer·of·the917 <p>Return·a·special·bitmap·representing·the·back-buffer·of·the
Offset 982, 19 lines modifiedOffset 973, 19 lines modified
982 <p>See·also:·<a973 <p>See·also:·<a
983 href="display.html#al_set_new_display_flags">al_set_new_display_flags</a>,974 href="display.html#al_set_new_display_flags">al_set_new_display_flags</a>,
984 <a975 <a
985 href="display.html#al_set_new_display_option">al_set_new_display_option</a></p>976 href="display.html#al_set_new_display_option">al_set_new_display_option</a></p>
986 <p>Examples:</p>977 <p>Examples:</p>
987 <ul>978 <ul>
988 <li><a979 <li><a
Max diff block lines reached; 13229/21819 bytes (60.63%) of diff not shown.
16.4 KB
html2text {}
    
Offset 128, 18 lines modifiedOffset 128, 14 lines modified
128 In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that128 In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that
129 displays·will·also·inform·you·about·important·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·via·their·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8s.129 displays·will·also·inform·you·about·important·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·via·their·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8s.
130 *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*130 *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
131 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y·*\x8**\x8**\x8**\x8**\x8*131 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y·*\x8**\x8**\x8**\x8**\x8*
132 typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY;132 typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY;
133 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e133 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
134 An·opaque·type·representing·an·open·display·or·window.134 An·opaque·type·representing·an·open·display·or·window.
135 Examples: 
136 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c 
137 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p 
138 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c 
139 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8*135 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8*
140 ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h)136 ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h)
141 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e137 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
142 Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of138 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_*.·Default139 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·will140 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.141 automatically·make·it·the·active·one,·with·the·backbuffer·selected·for·drawing.
Offset 147, 17 lines modifiedOffset 143, 17 lines modified
147 Each·display·that·uses·OpenGL·as·a·backend·has·a·distinct·OpenGL·rendering143 Each·display·that·uses·OpenGL·as·a·backend·has·a·distinct·OpenGL·rendering
148 context·associated·with·it.·See·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·for·the·discussion·about144 context·associated·with·it.·See·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·for·the·discussion·about
149 rendering·contexts.145 rendering·contexts.
150 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n,146 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n,
151 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r,147 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r,
152 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n148 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n
153 Examples:149 Examples:
154 ····*·_\x8e_\x8x_\x8__\x8d_.3_.d_\x8._\x8c_\x8p_\x8p150 ····*·_\x8e_\x8x_\x8__\x8a_.u_.d_.i_.o_.__.p_.r_.o_.p_.s_\x8._\x8c_\x8p_\x8p
155 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c151 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c
156 ····*·_\x8e_\x8x_\x8__\x8m_.o_.u_.s_.e_.__.f_.o_.c_.u_.s_.._.c152 ····*·_\x8e_\x8x_\x8__\x8d_.3_.d_.._.c_.p_.p
157 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8*153 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8*
158 void·al_destroy_display(ALLEGRO_DISPLAY·*display)154 void·al_destroy_display(ALLEGRO_DISPLAY·*display)
159 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e155 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
160 Destroy·a·display.156 Destroy·a·display.
161 If·the·target·bitmap·of·the·calling·thread·is·tied·to·the·display,·then·it157 If·the·target·bitmap·of·the·calling·thread·is·tied·to·the·display,·then·it
162 implies·a·call·to·“al_set_target_bitmap(NULL);”·before·the·display·is158 implies·a·call·to·“al_set_target_bitmap(NULL);”·before·the·display·is
163 destroyed.159 destroyed.
Offset 268, 17 lines modifiedOffset 264, 17 lines modified
268 ···········_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently264 ···········_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently
269 ···········only·works·for·the·X11·backend.265 ···········only·works·for·the·X11·backend.
270 ······Since:·5.2.9266 ······Since:·5.2.9
271 0·can·be·used·for·default·values.267 0·can·be·used·for·default·values.
272 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n,268 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n,
273 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n269 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n
274 Examples:270 Examples:
 271 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p
275 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p272 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p
 273 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p
276 ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c 
277 ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c 
278 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*274 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*
279 int·al_get_new_display_option(int·option,·int·*importance)275 int·al_get_new_display_option(int·option,·int·*importance)
280 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e276 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
281 Retrieve·an·extra·display·setting·which·was·previously·set·with277 Retrieve·an·extra·display·setting·which·was·previously·set·with
282 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n.278 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n.
283 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*279 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*
284 void·al_set_new_display_option(int·option,·int·value,·int·importance)280 void·al_set_new_display_option(int·option,·int·value,·int·importance)
Offset 396, 15 lines modifiedOffset 392, 15 lines modified
396 ······Specify·the·shader·platform·to·use·for·the·default·shader.·See392 ······Specify·the·shader·platform·to·use·for·the·default·shader.·See
397 ······_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M.·The·default·is·ALLEGRO_SHADER_AUTO.393 ······_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M.·The·default·is·ALLEGRO_SHADER_AUTO.
398 ······Since:·5.2.8394 ······Since:·5.2.8
399 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n395 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n
400 Examples:396 Examples:
401 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p397 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p
402 ····*·_\x8e_\x8x_\x8__\x8g_\x8l_\x8e_\x8x_\x8t_\x8._\x8c398 ····*·_\x8e_\x8x_\x8__\x8g_\x8l_\x8e_\x8x_\x8t_\x8._\x8c
403 ····*·_\x8e_\x8x_\x8__\x8e_.x_.p_.o_.s_.e_\x8._\x8c399 ····*·_\x8e_\x8x_\x8__\x8f_.o_.n_.t_\x8._\x8c
404 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8*400 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8*
405 void·al_reset_new_display_options(void)401 void·al_reset_new_display_options(void)
406 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e402 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
407 This·undoes·any·previous·call·to·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n·on·the·calling403 This·undoes·any·previous·call·to·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n·on·the·calling
408 thread.404 thread.
409 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_p\x8po\x8os\x8si\x8it\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*405 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_p\x8po\x8os\x8si\x8it\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*
410 void·al_get_new_window_position(int·*x,·int·*y)406 void·al_get_new_window_position(int·*x,·int·*y)
Offset 452, 26 lines modifiedOffset 448, 26 lines modified
452 Sets·the·adapter·to·use·for·new·displays·created·by·the·calling·thread.·The448 Sets·the·adapter·to·use·for·new·displays·created·by·the·calling·thread.·The
453 adapter·has·a·monitor·attached·to·it.·Information·about·the·monitor·can·be449 adapter·has·a·monitor·attached·to·it.·Information·about·the·monitor·can·be
454 gotten·using·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o.450 gotten·using·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o.
455 To·return·to·the·default·behaviour,·pass·ALLEGRO_DEFAULT_DISPLAY_ADAPTER.451 To·return·to·the·default·behaviour,·pass·ALLEGRO_DEFAULT_DISPLAY_ADAPTER.
456 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o452 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o
457 Examples:453 Examples:
458 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c454 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c
459 ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c 
460 ····*·_\x8e_\x8x_\x8__\x8d_\x8u_\x8a_\x8l_\x8i_\x8e_\x8s_\x8._\x8c455 ····*·_\x8e_\x8x_\x8__\x8d_\x8u_\x8a_\x8l_\x8i_\x8e_\x8s_\x8._\x8c
 456 ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c
461 *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·o\x8op\x8pe\x8er\x8ra\x8at\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*457 *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·o\x8op\x8pe\x8er\x8ra\x8at\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*
462 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8*458 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8*
463 ALLEGRO_EVENT_SOURCE·*al_get_display_event_source(ALLEGRO_DISPLAY·*display)459 ALLEGRO_EVENT_SOURCE·*al_get_display_event_source(ALLEGRO_DISPLAY·*display)
464 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e460 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
465 Retrieve·the·associated·event·source.·See·the·_\x8d_\x8o_\x8c_\x8u_\x8m_\x8e_\x8n_\x8t_\x8a_\x8t_\x8i_\x8o_\x8n_\x8·_\x8o_\x8n_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·for·a461 Retrieve·the·associated·event·source.·See·the·_\x8d_\x8o_\x8c_\x8u_\x8m_\x8e_\x8n_\x8t_\x8a_\x8t_\x8i_\x8o_\x8n_\x8·_\x8o_\x8n_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·for·a
466 list·of·the·events·displays·will·generate.462 list·of·the·events·displays·will·generate.
467 Examples:463 Examples:
 464 ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c
468 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c465 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c
469 ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c466 ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c
470 ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c 
471 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_b\x8ba\x8ac\x8ck\x8kb\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8*467 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_b\x8ba\x8ac\x8ck\x8kb\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8*
472 ALLEGRO_BITMAP·*al_get_backbuffer(ALLEGRO_DISPLAY·*display)468 ALLEGRO_BITMAP·*al_get_backbuffer(ALLEGRO_DISPLAY·*display)
473 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e469 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
474 Return·a·special·bitmap·representing·the·back-buffer·of·the·display.470 Return·a·special·bitmap·representing·the·back-buffer·of·the·display.
475 Care·should·be·taken·when·using·the·backbuffer·bitmap·(and·its·sub-bitmaps)·as471 Care·should·be·taken·when·using·the·backbuffer·bitmap·(and·its·sub-bitmaps)·as
476 the·source·bitmap·(e.g·as·the·bitmap·argument·to·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p).·Only472 the·source·bitmap·(e.g·as·the·bitmap·argument·to·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p).·Only
477 untransformed·operations·are·hardware·accelerated.·These·consist·of473 untransformed·operations·are·hardware·accelerated.·These·consist·of
Offset 506, 17 lines modifiedOffset 502, 17 lines modified
506 ······ALLEGRO_VSYNC·is·2,·this·function·will·not·wait·for·vsync.·With·many502 ······ALLEGRO_VSYNC·is·2,·this·function·will·not·wait·for·vsync.·With·many
507 ······drivers·the·vsync·behavior·is·controlled·by·the·user·and·not·the503 ······drivers·the·vsync·behavior·is·controlled·by·the·user·and·not·the
508 ······application,·and·ALLEGRO_VSYNC·will·not·be·set;·in·this·case504 ······application,·and·ALLEGRO_VSYNC·will·not·be·set;·in·this·case
509 ······_\x8a_\x8l_\x8__\x8f_\x8l_\x8i_\x8p_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y·will·wait·for·vsync·depending·on·the·settings·set·in·the505 ······_\x8a_\x8l_\x8__\x8f_\x8l_\x8i_\x8p_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y·will·wait·for·vsync·depending·on·the·settings·set·in·the
510 ······system’s·graphics·preferences.506 ······system’s·graphics·preferences.
511 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n507 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n
512 Examples:508 Examples:
513 ····*·_\x8e_\x8x_\x8__\x8d_.3_.d_\x8._\x8c_\x8p_\x8p509 ····*·_\x8e_\x8x_\x8__\x8a_.u_.d_.i_.o_.__.p_.r_.o_.p_.s_\x8._\x8c_\x8p_\x8p
514 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c510 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c
515 ····*·_\x8e_\x8x_\x8__\x8m_.o_.u_.s_.e_.__.f_.o_.c_.u_.s_.._.c511 ····*·_\x8e_\x8x_\x8__\x8d_.3_.d_.._.c_.p_.p
516 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8up\x8pd\x8da\x8at\x8te\x8e_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_r\x8re\x8eg\x8gi\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*512 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8up\x8pd\x8da\x8at\x8te\x8e_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_r\x8re\x8eg\x8gi\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*
517 void·al_update_display_region(int·x,·int·y,·int·width,·int·height)513 void·al_update_display_region(int·x,·int·y,·int·width,·int·height)
518 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e514 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
519 Does·the·same·as·_\x8a_\x8l_\x8__\x8f_\x8l_\x8i_\x8p_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y,·but·tries·to·update·only·the·specified515 Does·the·same·as·_\x8a_\x8l_\x8__\x8f_\x8l_\x8i_\x8p_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y,·but·tries·to·update·only·the·specified
520 region.·With·many·drivers·this·is·not·possible,·but·for·some·it·can·improve516 region.·With·many·drivers·this·is·not·possible,·but·for·some·it·can·improve
521 performance.·If·this·is·not·supported,·this·function·falls·back·to·the·behavior517 performance.·If·this·is·not·supported,·this·function·falls·back·to·the·behavior
522 of·_\x8a_\x8l_\x8__\x8f_\x8l_\x8i_\x8p_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y.·You·can·query·the·support·for·this·function·using518 of·_\x8a_\x8l_\x8__\x8f_\x8l_\x8i_\x8p_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y.·You·can·query·the·support·for·this·function·using
Offset 538, 25 lines modifiedOffset 534, 25 lines modified
538 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8*534 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8*
539 int·al_get_display_width(ALLEGRO_DISPLAY·*display)535 int·al_get_display_width(ALLEGRO_DISPLAY·*display)
540 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e536 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
541 Gets·the·width·of·the·display.·This·is·like·SCREEN_W·in·Allegro·4.x.537 Gets·the·width·of·the·display.·This·is·like·SCREEN_W·in·Allegro·4.x.
542 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t538 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t
543 Examples:539 Examples:
544 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p540 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p
Max diff block lines reached; 7850/16786 bytes (46.77%) of diff not shown.
25.3 KB
./usr/share/doc/allegro5-doc/refman/events.html
    
Offset 344, 23 lines modifiedOffset 344, 14 lines modified
344 type-specific·fields.·The·<code>any.source</code>·field·tells·you·which344 type-specific·fields.·The·<code>any.source</code>·field·tells·you·which
345 event·source·generated·that·particular·event.·The345 event·source·generated·that·particular·event.·The
346 <code>any.timestamp</code>·field·tells·you·when·the·event·was·generated.346 <code>any.timestamp</code>·field·tells·you·when·the·event·was·generated.
347 The·time·is·referenced·to·the·same·starting·point·as·<a347 The·time·is·referenced·to·the·same·starting·point·as·<a
348 href="time.html#al_get_time">al_get_time</a>.</p>348 href="time.html#al_get_time">al_get_time</a>.</p>
349 <p>Each·event·is·of·one·of·the·following·types,·with·the·usable·fields349 <p>Each·event·is·of·one·of·the·following·types,·with·the·usable·fields
350 given.</p>350 given.</p>
351 <p>Examples:</p> 
352 <ul> 
353 <li><a 
354 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> 
355 <li><a 
356 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> 
357 <li><a 
358 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L24">ex_timer_pause.c</a></li> 
359 </ul> 
360 <h2·id="allegro_event_joystick_axis">ALLEGRO_EVENT_JOYSTICK_AXIS</h2>351 <h2·id="allegro_event_joystick_axis">ALLEGRO_EVENT_JOYSTICK_AXIS</h2>
361 <p>A·joystick·axis·value·changed.</p>352 <p>A·joystick·axis·value·changed.</p>
362 <dl>353 <dl>
363 <dt>joystick.id·(ALLEGRO_JOYSTICK·*)</dt>354 <dt>joystick.id·(ALLEGRO_JOYSTICK·*)</dt>
364 <dd>355 <dd>
365 The·joystick·which·generated·the·event.·This·is·not·the·same·as·the356 The·joystick·which·generated·the·event.·This·is·not·the·same·as·the
366 event·source·<code>joystick.source</code>.357 event·source·<code>joystick.source</code>.
Offset 1058, 63 lines modifiedOffset 1049, 40 lines modified
1058 Please·see·the·documentation·for·<a1049 Please·see·the·documentation·for·<a
1059 href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>·for1050 href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>·for
1060 the·rules·you·should·follow·when·assigning·identifiers.</p>1051 the·rules·you·should·follow·when·assigning·identifiers.</p>
1061 <p>See·also:·<a1052 <p>See·also:·<a
1062 href="events.html#al_emit_user_event">al_emit_user_event</a>,·<a1053 href="events.html#al_emit_user_event">al_emit_user_event</a>,·<a
1063 href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a1054 href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a
1064 href="events.html#al_init_user_event_source">al_init_user_event_source</a></p>1055 href="events.html#al_init_user_event_source">al_init_user_event_source</a></p>
1065 <p>Examples:</p> 
1066 <ul> 
1067 <li><a 
1068 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L37">ex_user_events.c</a></li> 
1069 </ul> 
1070 <h1·id="allegro_event_queue">ALLEGRO_EVENT_QUEUE</h1>1056 <h1·id="allegro_event_queue">ALLEGRO_EVENT_QUEUE</h1>
1071 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE<span·class="op">;</span></span></code></pre></div>1057 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE<span·class="op">;</span></span></code></pre></div>
1072 <p><a1058 <p><a
1073 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L258">Source1059 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L258">Source
1074 Code</a></p>1060 Code</a></p>
1075 <p>An·event·queue·holds·events·that·have·been·generated·by·event·sources1061 <p>An·event·queue·holds·events·that·have·been·generated·by·event·sources
1076 that·are·registered·with·the·queue.·Events·are·stored·in·the·order·they1062 that·are·registered·with·the·queue.·Events·are·stored·in·the·order·they
1077 are·generated.·Access·is·in·a·strictly·FIFO·(first-in-first-out)1063 are·generated.·Access·is·in·a·strictly·FIFO·(first-in-first-out)
1078 order.</p>1064 order.</p>
1079 <p>See·also:·<a1065 <p>See·also:·<a
1080 href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a1066 href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a
1081 href="events.html#al_destroy_event_queue">al_destroy_event_queue</a></p>1067 href="events.html#al_destroy_event_queue">al_destroy_event_queue</a></p>
1082 <p>Examples:</p> 
1083 <ul> 
1084 <li><a 
1085 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L18">ex_inject_events.c</a></li> 
1086 <li><a 
1087 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> 
1088 <li><a 
1089 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L24">ex_timer_pause.c</a></li> 
1090 </ul> 
1091 <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1>1068 <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1>
1092 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE<span·class="op">;</span></span></code></pre></div>1069 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE<span·class="op">;</span></span></code></pre></div>
1093 <p><a1070 <p><a
1094 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L74">Source1071 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L74">Source
1095 Code</a></p>1072 Code</a></p>
1096 <p>An·event·source·is·any·object·which·can·generate·events.·For·example,1073 <p>An·event·source·is·any·object·which·can·generate·events.·For·example,
1097 an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the1074 an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the
1098 ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with·<a1075 ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with·<a
1099 href="display.html#al_get_display_event_source">al_get_display_event_source</a>.</p>1076 href="display.html#al_get_display_event_source">al_get_display_event_source</a>.</p>
1100 <p>You·may·create·your·own·“user”·event·sources·that·emit·custom1077 <p>You·may·create·your·own·“user”·event·sources·that·emit·custom
1101 events.</p>1078 events.</p>
1102 <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a1079 <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a
1103 href="events.html#al_init_user_event_source">al_init_user_event_source</a>,1080 href="events.html#al_init_user_event_source">al_init_user_event_source</a>,
1104 <a·href="events.html#al_emit_user_event">al_emit_user_event</a></p>1081 <a·href="events.html#al_emit_user_event">al_emit_user_event</a></p>
1105 <p>Examples:</p> 
1106 <ul> 
1107 <li><a 
1108 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> 
1109 <li><a 
1110 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L47">ex_user_events.c</a></li> 
1111 <li><a 
1112 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L364">nihgui.cpp</a></li> 
1113 </ul> 
1114 <h1·id="allegro_event_type">ALLEGRO_EVENT_TYPE</h1>1082 <h1·id="allegro_event_type">ALLEGRO_EVENT_TYPE</h1>
1115 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·ALLEGRO_EVENT_TYPE<span·class="op">;</span></span></code></pre></div>1083 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·ALLEGRO_EVENT_TYPE<span·class="op">;</span></span></code></pre></div>
1116 <p><a1084 <p><a
1117 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source1085 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source
1118 Code</a></p>1086 Code</a></p>
1119 <p>An·integer·used·to·distinguish·between·different·types·of·events.</p>1087 <p>An·integer·used·to·distinguish·between·different·types·of·events.</p>
1120 <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a1088 <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a
Offset 1124, 20 lines modifiedOffset 1092, 15 lines modified
1124 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_GET_EVENT_TYPE</span><span·class="op">(</span><span·class="pp">a</span><span·class="op">,</span><span·class="pp">·b</span><span·class="op">,</span><span·class="pp">·c</span><span·class="op">,</span><span·class="pp">·d</span><span·class="op">)</span><span·class="pp">···AL_ID</span><span·class="op">(</span><span·class="pp">a</span><span·class="op">,</span><span·class="pp">·b</span><span·class="op">,</span><span·class="pp">·c</span><span·class="op">,</span><span·class="pp">·d</span><span·class="op">)</span></span></code></pre></div>1092 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_GET_EVENT_TYPE</span><span·class="op">(</span><span·class="pp">a</span><span·class="op">,</span><span·class="pp">·b</span><span·class="op">,</span><span·class="pp">·c</span><span·class="op">,</span><span·class="pp">·d</span><span·class="op">)</span><span·class="pp">···AL_ID</span><span·class="op">(</span><span·class="pp">a</span><span·class="op">,</span><span·class="pp">·b</span><span·class="op">,</span><span·class="pp">·c</span><span·class="op">,</span><span·class="pp">·d</span><span·class="op">)</span></span></code></pre></div>
1125 <p><a1093 <p><a
1126 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L69">Source1094 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L69">Source
1127 Code</a></p>1095 Code</a></p>
1128 <p>Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,1096 <p>Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,
1129 but·not·necessarily,·this·will·be·made·from·four·8-bit·character·codes,1097 but·not·necessarily,·this·will·be·made·from·four·8-bit·character·codes,
1130 for·example:</p>1098 for·example:</p>
1131 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>Examples<span·class="op">:</span></span> 
1132 <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a></span> 
1133 <span·id="cb9-3"><a·href="#cb9-3"·aria-hidden="true"·tabindex="-1"></a><span·class="op">*</span>·<span·class="op">[</span>ex_user_events<span·class="op">.</span>c<span·class="op">](</span>https<span·class="op">:</span><span·class="co">//github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L10)</span></span> 
1134 <span·id="cb9-4"><a·href="#cb9-4"·aria-hidden="true"·tabindex="-1"></a><span·class="op">*</span>·<span·class="op">[</span>ex_native_filechooser<span·class="op">.</span>c<span·class="op">](</span>https<span·class="op">:</span><span·class="co">//github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L24)</span></span> 
1135 <span·id="cb9-5"><a·href="#cb9-5"·aria-hidden="true"·tabindex="-1"></a></span> 
1136 <span·id="cb9-6"><a·href="#cb9-6"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#</span><span·class="er">defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE(&#39;M&#39;,&#39;I&#39;,&#39;N&#39;,&#39;E&#39;)</span></span></code></pre></div>1099 <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="pp">#</span><span·class="er">defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE(&#39;M&#39;,&#39;I&#39;,&#39;N&#39;,&#39;E&#39;)</span></span></code></pre></div>
1137 <p>IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Don’t·use1100 <p>IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Don’t·use
1138 anything·lower·than·<code>ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0)</code>.</p>1101 anything·lower·than·<code>ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0)</code>.</p>
1139 <p>You·should·try·to·make·your·IDs·unique·so·they·don’t·clash·with·any1102 <p>You·should·try·to·make·your·IDs·unique·so·they·don’t·clash·with·any
1140 3rd·party·code·you·may·be·using.·Be·creative.·Numbering·from·1024·is·not1103 3rd·party·code·you·may·be·using.·Be·creative.·Numbering·from·1024·is·not
1141 creative.</p>1104 creative.</p>
1142 <p>If·you·need·multiple·identifiers,·you·could·define·them·like1105 <p>If·you·need·multiple·identifiers,·you·could·define·them·like
1143 this:</p>1106 this:</p>
Offset 1173, 19 lines modifiedOffset 1136, 19 lines modified
1173 <p>See·also:·<a1136 <p>See·also:·<a
1174 href="events.html#al_register_event_source">al_register_event_source</a>,1137 href="events.html#al_register_event_source">al_register_event_source</a>,
1175 <a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a>,1138 <a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a>,
1176 <a·href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p>1139 <a·href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p>
1177 <p>Examples:</p>1140 <p>Examples:</p>
1178 <ul>1141 <ul>
1179 <li><a1142 <li><a
1180 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L33">ex_inject_events.c</a></li>1143 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L23">ex_saw.c</a></li>
1181 <li><a1144 <li><a
1182 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L213">ex_enet_server.c</a></li>1145 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L83">ex_stream_file.c</a></li>
1183 <li><a1146 <li><a
1184 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L36">ex_timer_pause.c</a></li>1147 href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L66">common.c</a></li>
1185 </ul>1148 </ul>
1186 <h1·id="al_destroy_event_queue">al_destroy_event_queue</h1>1149 <h1·id="al_destroy_event_queue">al_destroy_event_queue</h1>
1187 <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_event_queue<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">)</span></span></code></pre></div>1150 <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_event_queue<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">)</span></span></code></pre></div>
1188 <p><a1151 <p><a
1189 href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L120">Source1152 href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L120">Source
1190 Code</a></p>1153 Code</a></p>
Max diff block lines reached; 5919/15491 bytes (38.21%) of diff not shown.
10.1 KB
html2text {}
    
Offset 133, 18 lines modifiedOffset 133, 14 lines modified
133 ··any.timestamp·(double)133 ··any.timestamp·(double)
134 ······When·the·event·was·generated.134 ······When·the·event·was·generated.
135 By·examining·the·type·field·you·can·then·access·type-specific·fields.·The135 By·examining·the·type·field·you·can·then·access·type-specific·fields.·The
136 any.source·field·tells·you·which·event·source·generated·that·particular·event.136 any.source·field·tells·you·which·event·source·generated·that·particular·event.
137 The·any.timestamp·field·tells·you·when·the·event·was·generated.·The·time·is137 The·any.timestamp·field·tells·you·when·the·event·was·generated.·The·time·is
138 referenced·to·the·same·starting·point·as·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e.138 referenced·to·the·same·starting·point·as·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e.
139 Each·event·is·of·one·of·the·following·types,·with·the·usable·fields·given.139 Each·event·is·of·one·of·the·following·types,·with·the·usable·fields·given.
140 Examples: 
141 ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c 
142 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c 
143 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c 
144 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_A\x8AX\x8XI\x8IS\x8S·*\x8**\x8**\x8**\x8**\x8*140 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_A\x8AX\x8XI\x8IS\x8S·*\x8**\x8**\x8**\x8**\x8*
145 A·joystick·axis·value·changed.141 A·joystick·axis·value·changed.
146 ··joystick.id·(ALLEGRO_JOYSTICK·*)142 ··joystick.id·(ALLEGRO_JOYSTICK·*)
147 ······The·joystick·which·generated·the·event.·This·is·not·the·same·as·the·event143 ······The·joystick·which·generated·the·event.·This·is·not·the·same·as·the·event
148 ······source·joystick.source.144 ······source·joystick.source.
149 ··joystick.stick·(int)145 ··joystick.stick·(int)
150 ······The·stick·number,·counting·from·zero.·Axes·on·a·joystick·are·grouped·into146 ······The·stick·number,·counting·from·zero.·Axes·on·a·joystick·are·grouped·into
Offset 527, 56 lines modifiedOffset 523, 39 lines modified
527 my_event.user.data2·=·&some_var;523 my_event.user.data2·=·&some_var;
  
528 al_emit_user_event(&my_event_source,·&my_event,·NULL);524 al_emit_user_event(&my_event_source,·&my_event,·NULL);
529 Event·type·identifiers·for·user·events·are·assigned·by·the·user.·Please·see·the525 Event·type·identifiers·for·user·events·are·assigned·by·the·user.·Please·see·the
530 documentation·for·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E·for·the·rules·you·should·follow·when526 documentation·for·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E·for·the·rules·you·should·follow·when
531 assigning·identifiers.527 assigning·identifiers.
532 See·also:·_\x8a_\x8l_\x8__\x8e_\x8m_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e528 See·also:·_\x8a_\x8l_\x8__\x8e_\x8m_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
533 Examples: 
534 ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c 
535 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_Q\x8QU\x8UE\x8EU\x8UE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*529 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_Q\x8QU\x8UE\x8EU\x8UE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*
536 typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE;530 typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE;
537 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e531 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
538 An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are532 An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are
539 registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated.533 registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated.
540 Access·is·in·a·strictly·FIFO·(first-in-first-out)·order.534 Access·is·in·a·strictly·FIFO·(first-in-first-out)·order.
541 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e535 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e
542 Examples: 
543 ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c 
544 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c 
545 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c 
546 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_S\x8SO\x8OU\x8UR\x8RC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*536 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_S\x8SO\x8OU\x8UR\x8RC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*
547 typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE;537 typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE;
548 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e538 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
549 An·event·source·is·any·object·which·can·generate·events.·For·example,·an539 An·event·source·is·any·object·which·can·generate·events.·For·example,·an
550 ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE540 ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE
551 pointer·from·an·ALLEGRO_DISPLAY·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e.541 pointer·from·an·ALLEGRO_DISPLAY·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e.
552 You·may·create·your·own·“user”·event·sources·that·emit·custom·events.542 You·may·create·your·own·“user”·event·sources·that·emit·custom·events.
553 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8e_\x8m_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t543 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8e_\x8m_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t
554 Examples: 
555 ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c 
556 ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c 
557 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p 
558 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*544 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*
559 typedef·unsigned·int·ALLEGRO_EVENT_TYPE;545 typedef·unsigned·int·ALLEGRO_EVENT_TYPE;
560 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e546 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
561 An·integer·used·to·distinguish·between·different·types·of·events.547 An·integer·used·to·distinguish·between·different·types·of·events.
562 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E_\x8__\x8I_\x8S_\x8__\x8U_\x8S_\x8E_\x8R548 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E_\x8__\x8I_\x8S_\x8__\x8U_\x8S_\x8E_\x8R
563 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_G\x8GE\x8ET\x8T_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*549 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_G\x8GE\x8ET\x8T_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*
564 #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d)550 #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d)
565 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e551 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
566 Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not552 Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not
567 necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example:553 necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example:
568 Examples: 
  
569 *·[ex_user_events.c](https://github.com/liballeg/allegro5/blob/master/examples/ 
570 ex_user_events.c#L10) 
571 *·[ex_native_filechooser.c](https://github.com/liballeg/allegro5/blob/master/ 
572 examples/ex_native_filechooser.c#L24) 
  
573 #defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')554 #defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')
574 IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Don’t·use·anything555 IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Don’t·use·anything
575 lower·than·ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0).556 lower·than·ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0).
576 You·should·try·to·make·your·IDs·unique·so·they·don’t·clash·with·any·3rd·party557 You·should·try·to·make·your·IDs·unique·so·they·don’t·clash·with·any·3rd·party
577 code·you·may·be·using.·Be·creative.·Numbering·from·1024·is·not·creative.558 code·you·may·be·using.·Be·creative.·Numbering·from·1024·is·not·creative.
578 If·you·need·multiple·identifiers,·you·could·define·them·like·this:559 If·you·need·multiple·identifiers,·you·could·define·them·like·this:
579 #defin··BASE_EVENT···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')560 #defin··BASE_EVENT···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')
Offset 599, 41 lines modifiedOffset 578, 41 lines modified
599 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*578 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
600 ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void)579 ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void)
601 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e580 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
602 Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created581 Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created
603 object·if·successful.·Returns·NULL·on·error.582 object·if·successful.·Returns·NULL·on·error.
604 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8Q_\x8U_\x8E_\x8U_\x8E583 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8Q_\x8U_\x8E_\x8U_\x8E
605 Examples:584 Examples:
 585 ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c
606 ····*·_\x8e_\x8x_\x8__\x8i_.n_.j_.e_.c_.t_.__.e_.v_.e_.n_.t_.s_\x8._\x8c586 ····*·_\x8e_\x8x_\x8__\x8s_.t_.r_.e_.a_.m_.__.f_.i_.l_.e_\x8._\x8c
 587 ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c
607 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c 
608 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c 
609 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*588 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
610 void·al_destroy_event_queue(ALLEGRO_EVENT_QUEUE·*queue)589 void·al_destroy_event_queue(ALLEGRO_EVENT_QUEUE·*queue)
611 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e590 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
612 Destroy·the·event·queue·specified.·All·event·sources·currently·registered·with591 Destroy·the·event·queue·specified.·All·event·sources·currently·registered·with
613 the·queue·will·be·automatically·unregistered·before·the·queue·is·destroyed.592 the·queue·will·be·automatically·unregistered·before·the·queue·is·destroyed.
614 This·function·does·nothing·if·queue·is·NULL.·(since·5.2.9)593 This·function·does·nothing·if·queue·is·NULL.·(since·5.2.9)
615 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8Q_\x8U_\x8E_\x8U_\x8E594 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8Q_\x8U_\x8E_\x8U_\x8E
616 Examples:595 Examples:
 596 ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c
617 ····*·_\x8e_\x8x_\x8__\x8i_.n_.j_.e_.c_.t_.__.e_.v_.e_.n_.t_.s_\x8._\x8c597 ····*·_\x8e_\x8x_\x8__\x8s_.t_.r_.e_.a_.m_.__.f_.i_.l_.e_\x8._\x8c
618 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c 
619 ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c598 ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c
620 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*599 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
621 void·al_register_event_source(ALLEGRO_EVENT_QUEUE·*queue,600 void·al_register_event_source(ALLEGRO_EVENT_QUEUE·*queue,
622 ···ALLEGRO_EVENT_SOURCE·*source)601 ···ALLEGRO_EVENT_SOURCE·*source)
623 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e602 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
624 Register·the·event·source·with·the·event·queue·specified.·An·event·source·may603 Register·the·event·source·with·the·event·queue·specified.·An·event·source·may
625 be·registered·with·any·number·of·event·queues·simultaneously,·or·none.·Trying604 be·registered·with·any·number·of·event·queues·simultaneously,·or·none.·Trying
626 to·register·an·event·source·with·the·same·event·queue·more·than·once·does605 to·register·an·event·source·with·the·same·event·queue·more·than·once·does
627 nothing.606 nothing.
628 See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E607 See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E
629 Examples:608 Examples:
 609 ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c
630 ····*·_\x8e_\x8x_\x8__\x8i_.n_.j_.e_.c_.t_.__.e_.v_.e_.n_.t_.s_\x8._\x8c610 ····*·_\x8e_\x8x_\x8__\x8s_.t_.r_.e_.a_.m_.__.f_.i_.l_.e_\x8._\x8c
 611 ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c
631 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c 
632 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c 
633 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nr\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*612 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nr\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
634 void·al_unregister_event_source(ALLEGRO_EVENT_QUEUE·*queue,613 void·al_unregister_event_source(ALLEGRO_EVENT_QUEUE·*queue,
635 ···ALLEGRO_EVENT_SOURCE·*source)614 ···ALLEGRO_EVENT_SOURCE·*source)
636 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e615 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
637 Unregister·an·event·source·with·an·event·queue.·If·the·event·source·is·not616 Unregister·an·event·source·with·an·event·queue.·If·the·event·source·is·not
638 actually·registered·with·the·event·queue,·nothing·happens.617 actually·registered·with·the·event·queue,·nothing·happens.
639 If·the·queue·had·any·events·in·it·which·originated·from·the·event·source,·they618 If·the·queue·had·any·events·in·it·which·originated·from·the·event·source,·they
Offset 680, 16 lines modifiedOffset 659, 16 lines modified
680 Take·the·next·event·out·of·the·event·queue·specified,·and·copy·the·contents659 Take·the·next·event·out·of·the·event·queue·specified,·and·copy·the·contents
681 into·ret_event,·returning·true.·The·original·event·will·be·removed·from·the660 into·ret_event,·returning·true.·The·original·event·will·be·removed·from·the
682 queue.·If·the·event·queue·is·empty,·return·false·and·the·contents·of·ret_event661 queue.·If·the·event·queue·is·empty,·return·false·and·the·contents·of·ret_event
683 are·unspecified.662 are·unspecified.
Max diff block lines reached; 1999/10289 bytes (19.43%) of diff not shown.
13.2 KB
./usr/share/doc/allegro5-doc/refman/file.html
    
Offset 242, 23 lines modifiedOffset 242, 14 lines modified
242 <h1·id="allegro_file">ALLEGRO_FILE</h1>242 <h1·id="allegro_file">ALLEGRO_FILE</h1>
243 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE<span·class="op">;</span></span></code></pre></div>243 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE<span·class="op">;</span></span></code></pre></div>
244 <p><a244 <p><a
245 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L15">Source245 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L15">Source
246 Code</a></p>246 Code</a></p>
247 <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file247 <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file
248 on·disk·or·a·virtual·file.</p>248 on·disk·or·a·virtual·file.</p>
249 <p>Examples:</p> 
250 <ul> 
251 <li><a 
252 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L23">ex_file.c</a></li> 
253 <li><a 
254 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L18">ex_dir.c</a></li> 
255 <li><a 
256 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L19">ex_memfile.c</a></li> 
257 </ul> 
258 <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1>249 <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1>
259 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div>250 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div>
260 <p><a251 <p><a
261 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source252 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source
262 Code</a></p>253 Code</a></p>
263 <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”,254 <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”,
264 real·or·virtual.·See·the·full·discussion·in·<a255 real·or·virtual.·See·the·full·discussion·in·<a
Offset 285, 39 lines modifiedOffset 276, 25 lines modified
285 file·handle.·If·fi_open·returns·NULL·then·<a276 file·handle.·If·fi_open·returns·NULL·then·<a
286 href="file.html#al_fopen">al_fopen</a>·will·also·return·NULL.</p>277 href="file.html#al_fopen">al_fopen</a>·will·also·return·NULL.</p>
287 <p>The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but278 <p>The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but
288 Allegro·will·free·the·<a·href="file.html#allegro_file">ALLEGRO_FILE</a>279 Allegro·will·free·the·<a·href="file.html#allegro_file">ALLEGRO_FILE</a>
289 handle.</p>280 handle.</p>
290 <p>If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16281 <p>If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16
291 char·long·buffer·will·be·used.</p>282 char·long·buffer·will·be·used.</p>
292 <p>Examples:</p> 
293 <ul> 
294 <li><a 
295 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L65">ex_curl.c</a></li> 
296 </ul> 
297 <h1·id="allegro_seek">ALLEGRO_SEEK</h1>283 <h1·id="allegro_seek">ALLEGRO_SEEK</h1>
298 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</span></code></pre></div>284 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</span></code></pre></div>
299 <p><a285 <p><a
300 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L40">Source286 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L40">Source
301 Code</a></p>287 Code</a></p>
302 <ul>288 <ul>
303 <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li>289 <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li>
304 <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li>290 <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li>
305 <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li>291 <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li>
306 </ul>292 </ul>
307 <p>See·also:·<a·href="file.html#al_fseek">al_fseek</a></p>293 <p>See·also:·<a·href="file.html#al_fseek">al_fseek</a></p>
308 <p>Examples:</p> 
309 <ul> 
310 <li><a 
311 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L60">ex_file.c</a></li> 
312 <li><a 
313 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L50">ex_memfile.c</a></li> 
314 <li><a 
315 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L59">ex_file_slice.c</a></li> 
316 </ul> 
317 <h1·id="al_fopen">al_fopen</h1>294 <h1·id="al_fopen">al_fopen</h1>
318 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_fopen<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>path<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div>295 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_fopen<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>path<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div>
319 <p><a296 <p><a
320 href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L24">Source297 href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L24">Source
321 Code</a></p>298 Code</a></p>
322 <p>Creates·and·opens·a·file·(real·or·virtual)·given·the·path·and·mode.299 <p>Creates·and·opens·a·file·(real·or·virtual)·given·the·path·and·mode.
323 The·current·file·interface·is·used·to·open·the·file.</p>300 The·current·file·interface·is·used·to·open·the·file.</p>
Offset 343, 17 lines modifiedOffset 320, 17 lines modified
343 href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>,320 href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>,
344 <a·href="file.html#al_fclose">al_fclose</a>.</p>321 <a·href="file.html#al_fclose">al_fclose</a>.</p>
345 <p>Examples:</p>322 <p>Examples:</p>
346 <ul>323 <ul>
347 <li><a324 <li><a
348 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L27">ex_file.c</a></li>325 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L27">ex_file.c</a></li>
349 <li><a326 <li><a
350 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L29">ex_file_slice.c</a></li>327 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L313">ex_synth.cpp</a></li>
351 <li><a328 <li><a
352 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_bitmap_file.c#L80">ex_bitmap_file.c</a></li>329 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L29">ex_file_slice.c</a></li>
353 </ul>330 </ul>
354 <h1·id="al_fopen_interface">al_fopen_interface</h1>331 <h1·id="al_fopen_interface">al_fopen_interface</h1>
355 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_fopen_interface<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILE_INTERFACE·<span·class="op">*</span>drv<span·class="op">,</span></span>332 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_fopen_interface<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILE_INTERFACE·<span·class="op">*</span>drv<span·class="op">,</span></span>
356 <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>path<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div>333 <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>path<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div>
357 <p><a334 <p><a
358 href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L32">Source335 href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L32">Source
359 Code</a></p>336 Code</a></p>
Offset 414, 17 lines modifiedOffset 391, 17 lines modified
414 <p>Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate391 <p>Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate
415 the·error.</p>392 the·error.</p>
416 <p>Examples:</p>393 <p>Examples:</p>
417 <ul>394 <ul>
418 <li><a395 <li><a
419 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L130">ex_file.c</a></li>396 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L130">ex_file.c</a></li>
420 <li><a397 <li><a
421 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L104">ex_memfile.c</a></li>398 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L506">ex_synth.cpp</a></li>
422 <li><a399 <li><a
423 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L77">ex_file_slice.c</a></li>400 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L104">ex_memfile.c</a></li>
424 </ul>401 </ul>
425 <h1·id="al_fread">al_fread</h1>402 <h1·id="al_fread">al_fread</h1>
426 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">size_t</span>·al_fread<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>f<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div>403 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">size_t</span>·al_fread<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>f<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div>
427 <p><a404 <p><a
428 href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L101">Source405 href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L101">Source
429 Code</a></p>406 Code</a></p>
430 <p>Read·‘size’·bytes·into·the·buffer·pointed·to·by·‘ptr’,·from·the·given407 <p>Read·‘size’·bytes·into·the·buffer·pointed·to·by·‘ptr’,·from·the·given
Offset 464, 19 lines modifiedOffset 441, 19 lines modified
464 href="file.html#al_fwrite16be">al_fwrite16be</a>,·<a441 href="file.html#al_fwrite16be">al_fwrite16be</a>,·<a
465 href="file.html#al_fwrite16le">al_fwrite16le</a>,·<a442 href="file.html#al_fwrite16le">al_fwrite16le</a>,·<a
466 href="file.html#al_fwrite32be">al_fwrite32be</a>,·<a443 href="file.html#al_fwrite32be">al_fwrite32be</a>,·<a
467 href="file.html#al_fwrite32le">al_fwrite32le</a></p>444 href="file.html#al_fwrite32le">al_fwrite32le</a></p>
468 <p>Examples:</p>445 <p>Examples:</p>
469 <ul>446 <ul>
470 <li><a447 <li><a
 448 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L165">ex_synth.cpp</a></li>
 449 <li><a
471 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L44">ex_memfile.c</a></li>450 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L44">ex_memfile.c</a></li>
472 <li><a451 <li><a
473 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L20">ex_file_slice.c</a></li>452 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L20">ex_file_slice.c</a></li>
474 <li><a 
475 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L165">ex_synth.cpp</a></li> 
476 </ul>453 </ul>
477 <h1·id="al_fflush">al_fflush</h1>454 <h1·id="al_fflush">al_fflush</h1>
478 <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_fflush<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div>455 <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_fflush<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div>
479 <p><a456 <p><a
480 href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L138">Source457 href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L138">Source
481 Code</a></p>458 Code</a></p>
482 <p>Flush·any·pending·writes·to·the·given·file.</p>459 <p>Flush·any·pending·writes·to·the·given·file.</p>
5.25 KB
html2text {}
    
Offset 88, 18 lines modifiedOffset 88, 14 lines modified
88 These·functions·are·declared·in·the·main·Allegro·header·file:88 These·functions·are·declared·in·the·main·Allegro·header·file:
89 ·#include·<allegro5/allegro.h>89 ·#include·<allegro5/allegro.h>
90 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*90 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*
91 typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE;91 typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE;
92 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e92 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
93 An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk93 An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk
94 or·a·virtual·file.94 or·a·virtual·file.
95 Examples: 
96 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c 
97 ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c 
98 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c 
99 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*95 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*
100 typedef·struct·ALLEGRO_FILE_INTERFACE96 typedef·struct·ALLEGRO_FILE_INTERFACE
101 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e97 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
102 A·structure·containing·function·pointers·to·handle·a·type·of·“file”,·real·or98 A·structure·containing·function·pointers·to·handle·a·type·of·“file”,·real·or
103 virtual.·See·the·full·discussion·in·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e.99 virtual.·See·the·full·discussion·in·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e.
104 The·fields·are:100 The·fields·are:
105 void*·········(*fi_fopen)(const·char·*path,·const·char·*mode);101 void*·········(*fi_fopen)(const·char·*path,·const·char·*mode);
Offset 120, 27 lines modifiedOffset 116, 21 lines modified
120 with·the·file.·The·other·functions·can·access·that·data·by·calling116 with·the·file.·The·other·functions·can·access·that·data·by·calling
121 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8u_\x8s_\x8e_\x8r_\x8d_\x8a_\x8t_\x8a·on·the·file·handle.·If·fi_open·returns·NULL·then·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n117 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8u_\x8s_\x8e_\x8r_\x8d_\x8a_\x8t_\x8a·on·the·file·handle.·If·fi_open·returns·NULL·then·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n
122 will·also·return·NULL.118 will·also·return·NULL.
123 The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but·Allegro·will119 The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but·Allegro·will
124 free·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E·handle.120 free·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E·handle.
125 If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16·char·long121 If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16·char·long
126 buffer·will·be·used.122 buffer·will·be·used.
127 Examples: 
128 ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c 
129 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SE\x8EE\x8EK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8*123 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SE\x8EE\x8EK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8*
130 typedef·enum·ALLEGRO_SEEK124 typedef·enum·ALLEGRO_SEEK
131 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e125 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
132 ····*·ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file126 ····*·ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file
133 ····*·ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position127 ····*·ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position
134 ····*·ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file128 ····*·ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file
135 See·also:·_\x8a_\x8l_\x8__\x8f_\x8s_\x8e_\x8e_\x8k129 See·also:·_\x8a_\x8l_\x8__\x8f_\x8s_\x8e_\x8e_\x8k
136 Examples: 
137 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c 
138 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c 
139 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c 
140 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fo\x8op\x8pe\x8en\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*130 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fo\x8op\x8pe\x8en\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
141 ALLEGRO_FILE·*al_fopen(const·char·*path,·const·char·*mode)131 ALLEGRO_FILE·*al_fopen(const·char·*path,·const·char·*mode)
142 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e132 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
143 Creates·and·opens·a·file·(real·or·virtual)·given·the·path·and·mode.·The·current133 Creates·and·opens·a·file·(real·or·virtual)·given·the·path·and·mode.·The·current
144 file·interface·is·used·to·open·the·file.134 file·interface·is·used·to·open·the·file.
145 Parameters:135 Parameters:
146 ····*·path·-·path·to·the·file·to·open136 ····*·path·-·path·to·the·file·to·open
Offset 155, 16 lines modifiedOffset 145, 16 lines modified
155 Newline·translations·can·be·useful·for·text·files·but·is·disastrous·for·binary145 Newline·translations·can·be·useful·for·text·files·but·is·disastrous·for·binary
156 files.·To·avoid·this·behaviour·you·need·to·open·file·streams·in·binary·mode·by146 files.·To·avoid·this·behaviour·you·need·to·open·file·streams·in·binary·mode·by
157 using·a·mode·argument·containing·a·“b”,·e.g. “rb”,·“wb”.147 using·a·mode·argument·containing·a·“b”,·e.g. “rb”,·“wb”.
158 Returns·a·file·handle·on·success,·or·NULL·on·error.148 Returns·a·file·handle·on·success,·or·NULL·on·error.
159 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e.149 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e.
160 Examples:150 Examples:
161 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c151 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c
 152 ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p
162 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c153 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c
163 ····*·_\x8e_\x8x_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c 
164 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fo\x8op\x8pe\x8en\x8n_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*154 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fo\x8op\x8pe\x8en\x8n_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
165 ALLEGRO_FILE·*al_fopen_interface(const·ALLEGRO_FILE_INTERFACE·*drv,155 ALLEGRO_FILE·*al_fopen_interface(const·ALLEGRO_FILE_INTERFACE·*drv,
166 ···const·char·*path,·const·char·*mode)156 ···const·char·*path,·const·char·*mode)
167 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e157 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
168 Opens·a·file·using·the·specified·interface,·instead·of·the·interface·set·with158 Opens·a·file·using·the·specified·interface,·instead·of·the·interface·set·with
169 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e.159 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e.
170 See·also:·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n160 See·also:·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n
Offset 205, 16 lines modifiedOffset 195, 16 lines modified
205 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fc\x8cl\x8lo\x8os\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*195 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fc\x8cl\x8lo\x8os\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
206 bool·al_fclose(ALLEGRO_FILE·*f)196 bool·al_fclose(ALLEGRO_FILE·*f)
207 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e197 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
208 Close·the·given·file,·writing·any·buffered·output·data·(if·any).198 Close·the·given·file,·writing·any·buffered·output·data·(if·any).
209 Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate·the·error.199 Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate·the·error.
210 Examples:200 Examples:
211 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c201 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c
 202 ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p
212 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c203 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c
213 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c 
214 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*204 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
215 size_t·al_fread(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size)205 size_t·al_fread(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size)
216 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e206 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
217 Read·‘size’·bytes·into·the·buffer·pointed·to·by·‘ptr’,·from·the·given·file.207 Read·‘size’·bytes·into·the·buffer·pointed·to·by·‘ptr’,·from·the·given·file.
218 Returns·the·number·of·bytes·actually·read.·If·an·error·occurs,·or·the·end-of-208 Returns·the·number·of·bytes·actually·read.·If·an·error·occurs,·or·the·end-of-
219 file·is·reached,·the·return·value·is·a·short·byte·count·(or·zero).209 file·is·reached,·the·return·value·is·a·short·byte·count·(or·zero).
220 al_fread()·does·not·distinguish·between·EOF·and·other·errors.·Use·_\x8a_\x8l_\x8__\x8f_\x8e_\x8o_\x8f·and210 al_fread()·does·not·distinguish·between·EOF·and·other·errors.·Use·_\x8a_\x8l_\x8__\x8f_\x8e_\x8o_\x8f·and
Offset 229, 17 lines modifiedOffset 219, 17 lines modified
229 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e219 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
230 Write·‘size’·bytes·from·the·buffer·pointed·to·by·‘ptr’·into·the·given·file.220 Write·‘size’·bytes·from·the·buffer·pointed·to·by·‘ptr’·into·the·given·file.
231 Returns·the·number·of·bytes·actually·written.·If·an·error·occurs,·the·return221 Returns·the·number·of·bytes·actually·written.·If·an·error·occurs,·the·return
232 value·is·a·short·byte·count·(or·zero).222 value·is·a·short·byte·count·(or·zero).
233 See·also:·_\x8a_\x8l_\x8__\x8f_\x8p_\x8u_\x8t_\x8c,·_\x8a_\x8l_\x8__\x8f_\x8p_\x8u_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x81_\x86_\x8b_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x81_\x86_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x83_\x82_\x8b_\x8e,223 See·also:·_\x8a_\x8l_\x8__\x8f_\x8p_\x8u_\x8t_\x8c,·_\x8a_\x8l_\x8__\x8f_\x8p_\x8u_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x81_\x86_\x8b_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x81_\x86_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x83_\x82_\x8b_\x8e,
234 _\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x83_\x82_\x8l_\x8e224 _\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x83_\x82_\x8l_\x8e
235 Examples:225 Examples:
 226 ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p
236 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c227 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c
237 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c228 ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c
238 ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p 
239 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8ff\x8fl\x8lu\x8us\x8sh\x8h·*\x8**\x8**\x8**\x8**\x8**\x8*229 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8ff\x8fl\x8lu\x8us\x8sh\x8h·*\x8**\x8**\x8**\x8**\x8**\x8*
240 bool·al_fflush(ALLEGRO_FILE·*f)230 bool·al_fflush(ALLEGRO_FILE·*f)
241 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e231 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
242 Flush·any·pending·writes·to·the·given·file.232 Flush·any·pending·writes·to·the·given·file.
243 Returns·true·on·success,·false·otherwise.·errno·is·set·to·indicate·the·error.233 Returns·true·on·success,·false·otherwise.·errno·is·set·to·indicate·the·error.
244 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o234 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o
245 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8ft\x8te\x8el\x8ll\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*235 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8ft\x8te\x8el\x8ll\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*
67.0 KB
./usr/share/doc/allegro5-doc/refman/font.html
    
Offset 294, 23 lines modifiedOffset 294, 14 lines modified
294 <p>A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it294 <p>A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it
295 with·<a·href="font.html#al_load_font">al_load_font</a>·which·supports295 with·<a·href="font.html#al_load_font">al_load_font</a>·which·supports
296 loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library.296 loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library.
297 If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded297 If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded
298 with·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>·and·a298 with·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>·and·a
299 font·in·Allegro’s·bitmap·font·format·will·be·created·from·it·with·<a299 font·in·Allegro’s·bitmap·font·format·will·be·created·from·it·with·<a
300 href="font.html#al_grab_font_from_bitmap">al_grab_font_from_bitmap</a>.</p>300 href="font.html#al_grab_font_from_bitmap">al_grab_font_from_bitmap</a>.</p>
301 <p>Examples:</p> 
302 <ul> 
303 <li><a 
304 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L10">ex_disable_screensaver.c</a></li> 
305 <li><a 
306 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L17">ex_font_justify.cpp</a></li> 
307 <li><a 
308 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L13">ex_timedwait.c</a></li> 
309 </ul> 
310 <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2>301 <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2>
311 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH<span·class="op">;</span></span></code></pre></div>302 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH<span·class="op">;</span></span></code></pre></div>
312 <p><a303 <p><a
313 href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source304 href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source
314 Code</a></p>305 Code</a></p>
315 <p>A·structure·containing·the·properties·of·a·character·in·a·font.</p>306 <p>A·structure·containing·the·properties·of·a·character·in·a·font.</p>
316 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·<span·class="op">{</span></span>307 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·<span·class="op">{</span></span>
Offset 337, 19 lines modifiedOffset 328, 14 lines modified
337 to·the·next·character·in·a·string·and·includes·kerning.</p>328 to·the·next·character·in·a·string·and·includes·kerning.</p>
338 <p>Since:·5.2.1</p>329 <p>Since:·5.2.1</p>
339 <blockquote>330 <blockquote>
340 <p><em><a·href="getting_started.html#unstable-api">Unstable331 <p><em><a·href="getting_started.html#unstable-api">Unstable
341 API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p>332 API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p>
342 </blockquote>333 </blockquote>
343 <p>See·also:·<a·href="font.html#al_get_glyph">al_get_glyph</a></p>334 <p>See·also:·<a·href="font.html#al_get_glyph">al_get_glyph</a></p>
344 <p>Examples:</p> 
345 <ul> 
346 <li><a 
347 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L91">ex_ttf.c</a></li> 
348 </ul> 
349 <h2·id="al_init_font_addon">al_init_font_addon</h2>335 <h2·id="al_init_font_addon">al_init_font_addon</h2>
350 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>336 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
351 <p><a337 <p><a
352 href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L367">Source338 href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L367">Source
353 Code</a></p>339 Code</a></p>
354 <p>Initialise·the·font·addon.</p>340 <p>Initialise·the·font·addon.</p>
355 <p>Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to341 <p>Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to
Offset 361, 23 lines modifiedOffset 347, 14 lines modified
361 function·has·no·return·value.·You·may·wish·to·avoid·checking·the·return347 function·has·no·return·value.·You·may·wish·to·avoid·checking·the·return
362 value·if·your·code·needs·to·be·compatible·with·Allegro·5.0.·Currently,348 value·if·your·code·needs·to·be·compatible·with·Allegro·5.0.·Currently,
363 the·function·will·never·return·false.</p>349 the·function·will·never·return·false.</p>
364 <p>See·also:·<a350 <p>See·also:·<a
365 href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a351 href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a
366 href="font.html#al_init_ttf_addon">al_init_ttf_addon</a>,·<a352 href="font.html#al_init_ttf_addon">al_init_ttf_addon</a>,·<a
367 href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p>353 href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p>
368 <p>Examples:</p> 
369 <ul> 
370 <li><a 
371 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L28">ex_disable_screensaver.c</a></li> 
372 <li><a 
373 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L104">ex_font_justify.cpp</a></li> 
374 <li><a 
375 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L30">ex_timedwait.c</a></li> 
376 </ul> 
377 <h2·id="al_is_font_addon_initialized">al_is_font_addon_initialized</h2>354 <h2·id="al_is_font_addon_initialized">al_is_font_addon_initialized</h2>
378 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_font_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>355 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_font_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
379 <p><a356 <p><a
380 href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L393">Source357 href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L393">Source
381 Code</a></p>358 Code</a></p>
382 <p>Returns·true·if·the·font·addon·is·initialized,·otherwise·returns359 <p>Returns·true·if·the·font·addon·is·initialized,·otherwise·returns
383 false.</p>360 false.</p>
Offset 408, 40 lines modifiedOffset 385, 22 lines modified
408 href="graphics.html#al_set_new_bitmap_flags">bitmap·flags</a>·at·the385 href="graphics.html#al_set_new_bitmap_flags">bitmap·flags</a>·at·the
409 time·the·font·is·loaded.</p>386 time·the·font·is·loaded.</p>
410 <p>See·also:·<a·href="font.html#al_destroy_font">al_destroy_font</a>,·<a387 <p>See·also:·<a·href="font.html#al_destroy_font">al_destroy_font</a>,·<a
411 href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a388 href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a
412 href="font.html#al_register_font_loader">al_register_font_loader</a>,·<a389 href="font.html#al_register_font_loader">al_register_font_loader</a>,·<a
413 href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a>,390 href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a>,
414 <a·href="font.html#al_load_ttf_font">al_load_ttf_font</a></p>391 <a·href="font.html#al_load_ttf_font">al_load_ttf_font</a></p>
415 <p>Examples:</p> 
416 <ul> 
417 <li><a 
418 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L116">ex_font_justify.cpp</a></li> 
419 <li><a 
420 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_membmp.c#L104">ex_membmp.c</a></li> 
421 <li><a 
422 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_title.c#L60">ex_window_title.c</a></li> 
423 </ul> 
424 <h2·id="al_destroy_font">al_destroy_font</h2>392 <h2·id="al_destroy_font">al_destroy_font</h2>
425 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_font<span·class="op">(</span>ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div>393 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_font<span·class="op">(</span>ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div>
426 <p><a394 <p><a
427 href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L357">Source395 href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L357">Source
428 Code</a></p>396 Code</a></p>
429 <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if397 <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if
430 passed·NULL.</p>398 passed·NULL.</p>
431 <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p>399 <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p>
432 <p>Examples:</p> 
433 <ul> 
434 <li><a 
435 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L67">ex_disable_screensaver.c</a></li> 
436 <li><a 
437 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L139">ex_font_justify.cpp</a></li> 
438 <li><a 
439 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L86">ex_cpu.c</a></li> 
440 </ul> 
441 <h2·id="al_register_font_loader">al_register_font_loader</h2>400 <h2·id="al_register_font_loader">al_register_font_loader</h2>
442 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_register_font_loader<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>extension<span·class="op">,</span></span>401 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_register_font_loader<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>extension<span·class="op">,</span></span>
443 <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_FONT·<span·class="op">*(*</span>load_font<span·class="op">)(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">))</span></span></code></pre></div>402 <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_FONT·<span·class="op">*(*</span>load_font<span·class="op">)(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">))</span></span></code></pre></div>
444 <p><a403 <p><a
445 href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L426">Source404 href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L426">Source
446 Code</a></p>405 Code</a></p>
447 <p>Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files406 <p>Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files
Offset 475, 86 lines modifiedOffset 434, 53 lines modified
475 ···············|········|434 ···············|········|
476 ···············descent··|435 ···············descent··|
477 ···············|········|436 ···············|········|
478 -------------------------</code></pre>437 -------------------------</code></pre>
479 <p>See·also:·<a438 <p>See·also:·<a
480 href="font.html#al_get_text_width">al_get_text_width</a>,·<a439 href="font.html#al_get_text_width">al_get_text_width</a>,·<a
481 href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p>440 href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p>
482 <p>Examples:</p> 
483 <ul> 
484 <li><a 
485 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L78">ex_font_justify.cpp</a></li> 
486 <li><a 
487 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_membmp.c#L66">ex_membmp.c</a></li> 
488 <li><a 
489 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L54">ex_mouse_warp.c</a></li> 
490 </ul> 
491 <h2·id="al_get_font_ascent">al_get_font_ascent</h2>441 <h2·id="al_get_font_ascent">al_get_font_ascent</h2>
492 <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_font_ascent<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div>442 <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_font_ascent<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div>
Max diff block lines reached; 33922/42137 bytes (80.50%) of diff not shown.
25.8 KB
html2text {}
    
Offset 103, 18 lines modifiedOffset 103, 14 lines modified
103 typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT;103 typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT;
104 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e104 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
105 A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with105 A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with
106 _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8f_\x8o_\x8n_\x8t·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by106 _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8f_\x8o_\x8n_\x8t·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by
107 the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it107 the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it
108 will·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·and·a·font·in·Allegro’s·bitmap·font·format108 will·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·and·a·font·in·Allegro’s·bitmap·font·format
109 will·be·created·from·it·with·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p.109 will·be·created·from·it·with·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p.
110 Examples: 
111 ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c 
112 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p 
113 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c 
114 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_G\x8GL\x8LY\x8YP\x8PH\x8H·*\x8**\x8**\x8**\x8**\x8*110 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_G\x8GL\x8LY\x8YP\x8PH\x8H·*\x8**\x8**\x8**\x8**\x8*
115 typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH;111 typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH;
116 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e112 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
117 A·structure·containing·the·properties·of·a·character·in·a·font.113 A·structure·containing·the·properties·of·a·character·in·a·font.
118 typedef·struct·ALLEGRO_GLYPH·{114 typedef·struct·ALLEGRO_GLYPH·{
119 ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on115 ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on
120 ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap116 ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap
Offset 135, 33 lines modifiedOffset 131, 27 lines modified
135 Glyphs·are·tightly·packed·onto·the·bitmap,·so·you·need·to·add·offset_x·and131 Glyphs·are·tightly·packed·onto·the·bitmap,·so·you·need·to·add·offset_x·and
136 offset_y·to·your·draw·position·for·the·text·to·look·right.132 offset_y·to·your·draw·position·for·the·text·to·look·right.
137 advance·is·the·number·of·pixels·to·add·to·your·x·position·to·advance·to·the133 advance·is·the·number·of·pixels·to·add·to·your·x·position·to·advance·to·the
138 next·character·in·a·string·and·includes·kerning.134 next·character·in·a·string·and·includes·kerning.
139 Since:·5.2.1135 Since:·5.2.1
140 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·API·is·new·and·subject·to·refinement.136 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·API·is·new·and·subject·to·refinement.
141 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h137 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h
142 Examples: 
143 ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c 
144 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*138 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*
145 bool·al_init_font_addon(void)139 bool·al_init_font_addon(void)
146 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e140 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
147 Initialise·the·font·addon.141 Initialise·the·font·addon.
148 Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to·initialise142 Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to·initialise
149 allegro_image·separately·(unless·you·are·using·another·library·to·load·images).143 allegro_image·separately·(unless·you·are·using·another·library·to·load·images).
150 Similarly,·if·you·wish·to·load·truetype-fonts,·do·not·forget·to·also·call144 Similarly,·if·you·wish·to·load·truetype-fonts,·do·not·forget·to·also·call
151 _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8t_\x8f_\x8__\x8a_\x8d_\x8d_\x8o_\x8n.145 _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8t_\x8f_\x8__\x8a_\x8d_\x8d_\x8o_\x8n.
152 Returns·true·on·success,·false·on·failure.·On·the·5.0·branch,·this·function·has146 Returns·true·on·success,·false·on·failure.·On·the·5.0·branch,·this·function·has
153 no·return·value.·You·may·wish·to·avoid·checking·the·return·value·if·your·code147 no·return·value.·You·may·wish·to·avoid·checking·the·return·value·if·your·code
154 needs·to·be·compatible·with·Allegro·5.0.·Currently,·the·function·will·never148 needs·to·be·compatible·with·Allegro·5.0.·Currently,·the·function·will·never
155 return·false.149 return·false.
156 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8t_\x8f_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n150 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8t_\x8f_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n
157 Examples: 
158 ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c 
159 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p 
160 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c 
161 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8*151 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8*
162 bool·al_is_font_addon_initialized(void)152 bool·al_is_font_addon_initialized(void)
163 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e153 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
164 Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false.154 Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false.
165 Since:·5.2.6155 Since:·5.2.6
166 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n156 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n
167 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*157 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*
Offset 176, 27 lines modifiedOffset 166, 19 lines modified
176 Loads·a·font·from·disk.·This·will·use·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·if·you·pass·the166 Loads·a·font·from·disk.·This·will·use·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·if·you·pass·the
177 name·of·a·known·bitmap·format,·or·else·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8t_\x8f_\x8__\x8f_\x8o_\x8n_\x8t.167 name·of·a·known·bitmap·format,·or·else·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8t_\x8f_\x8__\x8f_\x8o_\x8n_\x8t.
178 The·flags·parameter·is·passed·through·to·either·of·those·functions.·Bitmap·and168 The·flags·parameter·is·passed·through·to·either·of·those·functions.·Bitmap·and
179 TTF·fonts·are·also·affected·by·the·current·_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8·_\x8f_\x8l_\x8a_\x8g_\x8s·at·the·time·the·font·is169 TTF·fonts·are·also·affected·by·the·current·_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8·_\x8f_\x8l_\x8a_\x8g_\x8s·at·the·time·the·font·is
180 loaded.170 loaded.
181 See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8f_\x8o_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8o_\x8a_\x8d_\x8e_\x8r,171 See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8f_\x8o_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8o_\x8a_\x8d_\x8e_\x8r,
182 _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8t_\x8f_\x8__\x8f_\x8o_\x8n_\x8t172 _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8t_\x8f_\x8__\x8f_\x8o_\x8n_\x8t
183 Examples: 
184 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p 
185 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8b_\x8m_\x8p_\x8._\x8c 
186 ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e_\x8._\x8c 
187 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_f\x8fo\x8on\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8*173 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_f\x8fo\x8on\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8*
188 void·al_destroy_font(ALLEGRO_FONT·*f)174 void·al_destroy_font(ALLEGRO_FONT·*f)
189 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e175 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
190 Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL.176 Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL.
191 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8f_\x8o_\x8n_\x8t177 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8f_\x8o_\x8n_\x8t
192 Examples: 
193 ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c 
194 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p 
195 ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c 
196 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_f\x8fo\x8on\x8nt\x8t_\x8_l\x8lo\x8oa\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8*178 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_f\x8fo\x8on\x8nt\x8t_\x8_l\x8lo\x8oa\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8*
197 bool·al_register_font_loader(char·const·*extension,179 bool·al_register_font_loader(char·const·*extension,
198 ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags))180 ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags))
199 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e181 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
200 Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this182 Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this
201 format.183 format.
202 The·extension·should·include·the·leading·dot·(‘.’)·character.·It·will·be184 The·extension·should·include·the·leading·dot·(‘.’)·character.·It·will·be
Offset 222, 48 lines modifiedOffset 204, 34 lines modified
222 /········\·····|········height204 /········\·····|········height
223 ----------------········|205 ----------------········|
224 ···············|········|206 ···············|········|
225 ···············descent··|207 ···············descent··|
226 ···············|········|208 ···············|········|
227 -------------------------209 -------------------------
228 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s210 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s
229 Examples: 
230 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p 
231 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8b_\x8m_\x8p_\x8._\x8c 
232 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c 
233 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8as\x8sc\x8ce\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8*211 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8as\x8sc\x8ce\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8*
234 int·al_get_font_ascent(const·ALLEGRO_FONT·*f)212 int·al_get_font_ascent(const·ALLEGRO_FONT·*f)
235 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e213 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
236 Returns·the·ascent·of·the·specified·font.214 Returns·the·ascent·of·the·specified·font.
237 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8d_\x8e_\x8s_\x8c_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t215 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8d_\x8e_\x8s_\x8c_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t
238 Examples: 
239 ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c 
240 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_d\x8de\x8es\x8sc\x8ce\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8*216 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_d\x8de\x8es\x8sc\x8ce\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8*
241 int·al_get_font_descent(const·ALLEGRO_FONT·*f)217 int·al_get_font_descent(const·ALLEGRO_FONT·*f)
242 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e218 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
243 Returns·the·descent·of·the·specified·font.219 Returns·the·descent·of·the·specified·font.
244 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8s_\x8c_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t220 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8s_\x8c_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t
245 Examples: 
246 ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c 
247 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8te\x8ex\x8xt\x8t_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8*221 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8te\x8ex\x8xt\x8t_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8*
248 int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str)222 int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str)
249 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e223 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
250 Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels.224 Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels.
251 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s225 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s
252 Examples: 
253 ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n_\x8s_\x8._\x8c 
254 ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c 
255 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c 
256 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_u\x8us\x8st\x8tr\x8r_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8*226 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_u\x8us\x8st\x8tr\x8r_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8*
257 int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr)227 int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr)
258 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e228 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
259 Like·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h·but·expects·an·ALLEGRO_USTR.229 Like·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h·but·expects·an·ALLEGRO_USTR.
260 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s230 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s
261 Examples: 
262 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p 
263 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_t\x8te\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8*231 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_t\x8te\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8*
264 void·al_draw_text(const·ALLEGRO_FONT·*font,232 void·al_draw_text(const·ALLEGRO_FONT·*font,
265 ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags,233 ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags,
266 ···char·const·*text)234 ···char·const·*text)
267 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e235 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
Max diff block lines reached; 18591/26398 bytes (70.43%) of diff not shown.
2.02 KB
./usr/share/doc/allegro5-doc/refman/fshook.html
    
Offset 250, 21 lines modifiedOffset 250, 14 lines modified
250 <p><a250 <p><a
251 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source251 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source
252 Code</a></p>252 Code</a></p>
253 <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory253 <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory
254 (check·with·<a254 (check·with·<a
255 href="fshook.html#al_get_fs_entry_mode">al_get_fs_entry_mode</a>).·There255 href="fshook.html#al_get_fs_entry_mode">al_get_fs_entry_mode</a>).·There
256 are·no·user·accessible·member·variables.</p>256 are·no·user·accessible·member·variables.</p>
257 <p>Examples:</p> 
258 <ul> 
259 <li><a 
260 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L6">ex_dir.c</a></li> 
261 <li><a 
262 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L37">ex_physfs.c</a></li> 
263 </ul> 
264 <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1>257 <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1>
265 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</span></code></pre></div>258 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</span></code></pre></div>
266 <p><a259 <p><a
267 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source260 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source
268 Code</a></p>261 Code</a></p>
269 <p>Filesystem·modes/types</p>262 <p>Filesystem·modes/types</p>
270 <ul>263 <ul>
925 B
html2text {}
    
Offset 79, 17 lines modifiedOffset 79, 14 lines modified
79 filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a·.zip·archive·(or79 filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a·.zip·archive·(or
80 whatever·else·you·or·an·addon·makes·it·do).80 whatever·else·you·or·an·addon·makes·it·do).
81 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FS\x8S_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8*81 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FS\x8S_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8*
82 typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY;82 typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY;
83 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e83 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
84 Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory·(check·with84 Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory·(check·with
85 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8__\x8m_\x8o_\x8d_\x8e).·There·are·no·user·accessible·member·variables.85 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8__\x8m_\x8o_\x8d_\x8e).·There·are·no·user·accessible·member·variables.
86 Examples: 
87 ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c 
88 ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c 
89 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*86 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*
90 typedef·enum·ALLEGRO_FILE_MODE87 typedef·enum·ALLEGRO_FILE_MODE
91 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e88 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
92 Filesystem·modes/types89 Filesystem·modes/types
93 ····*·ALLEGRO_FILEMODE_READ·-·Readable90 ····*·ALLEGRO_FILEMODE_READ·-·Readable
94 ····*·ALLEGRO_FILEMODE_WRITE·-·Writable91 ····*·ALLEGRO_FILEMODE_WRITE·-·Writable
95 ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable92 ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable
2.8 KB
./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html
    
Offset 197, 21 lines modifiedOffset 197, 14 lines modified
197 <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·refresh_rate<span·class="op">;</span>···<span·class="co">//·The·refresh·rate·of·the·mode</span></span>197 <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·refresh_rate<span·class="op">;</span>···<span·class="co">//·The·refresh·rate·of·the·mode</span></span>
198 <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_DISPLAY_MODE<span·class="op">;</span></span></code></pre></div>198 <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_DISPLAY_MODE<span·class="op">;</span></span></code></pre></div>
199 <p>The·<code>refresh_rate</code>·may·be·zero·if·unknown.</p>199 <p>The·<code>refresh_rate</code>·may·be·zero·if·unknown.</p>
200 <p>For·an·explanation·of·what·<code>format</code>·means,·see·<a200 <p>For·an·explanation·of·what·<code>format</code>·means,·see·<a
201 href="graphics.html#allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</a>.</p>201 href="graphics.html#allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</a>.</p>
202 <p>See·also:·<a202 <p>See·also:·<a
203 href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a></p>203 href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a></p>
204 <p>Examples:</p> 
205 <ul> 
206 <li><a 
207 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L33">ex_monitorinfo.c</a></li> 
208 <li><a 
209 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_options.c#L100">ex_display_options.c</a></li> 
210 </ul> 
211 <h1·id="al_get_display_mode">al_get_display_mode</h1>204 <h1·id="al_get_display_mode">al_get_display_mode</h1>
212 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>al_get_display_mode<span·class="op">(</span><span·class="dt">int</span>·index<span·class="op">,</span>·ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div>205 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>al_get_display_mode<span·class="op">(</span><span·class="dt">int</span>·index<span·class="op">,</span>·ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div>
213 <p><a206 <p><a
214 href="https://github.com/liballeg/allegro5/blob/master/src/fullscreen_mode.c#L32">Source207 href="https://github.com/liballeg/allegro5/blob/master/src/fullscreen_mode.c#L32">Source
215 Code</a></p>208 Code</a></p>
216 <p>Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed209 <p>Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed
217 between·a·call·of·<a210 between·a·call·of·<a
1.09 KB
html2text {}
    
Offset 58, 17 lines modifiedOffset 58, 14 lines modified
58 ···int·height;·········//·Screen·height58 ···int·height;·········//·Screen·height
59 ···int·format;·········//·The·pixel·format·of·the·mode59 ···int·format;·········//·The·pixel·format·of·the·mode
60 ···int·refresh_rate;···//·The·refresh·rate·of·the·mode60 ···int·refresh_rate;···//·The·refresh·rate·of·the·mode
61 }·ALLEGRO_DISPLAY_MODE;61 }·ALLEGRO_DISPLAY_MODE;
62 The·refresh_rate·may·be·zero·if·unknown.62 The·refresh_rate·may·be·zero·if·unknown.
63 For·an·explanation·of·what·format·means,·see·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T.63 For·an·explanation·of·what·format·means,·see·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T.
64 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e64 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e
65 Examples: 
66 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c 
67 ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n_\x8s_\x8._\x8c 
68 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*65 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
69 ALLEGRO_DISPLAY_MODE·*al_get_display_mode(int·index,·ALLEGRO_DISPLAY_MODE66 ALLEGRO_DISPLAY_MODE·*al_get_display_mode(int·index,·ALLEGRO_DISPLAY_MODE
70 *mode)67 *mode)
71 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e68 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
72 Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed·between·a69 Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed·between·a
73 call·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e.·index·must·be·between70 call·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e.·index·must·be·between
74 0·and·the·number·returned·from·al_get_num_display_modes-1.·mode·must·be·an71 0·and·the·number·returned·from·al_get_num_display_modes-1.·mode·must·be·an
85.5 KB
./usr/share/doc/allegro5-doc/refman/graphics.html
    
Offset 449, 23 lines modifiedOffset 449, 14 lines modified
449 <p><a449 <p><a
450 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source450 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source
451 Code</a></p>451 Code</a></p>
452 <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent452 <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent
453 way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a453 way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a
454 href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate454 href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate
455 from·and·to·various·color·representations.</p>455 from·and·to·various·color·representations.</p>
456 <p>Examples:</p> 
457 <ul> 
458 <li><a 
459 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L15">ex_keyboard_focus.c</a></li> 
460 <li><a 
461 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L13">ex_nodisplay.c</a></li> 
462 <li><a 
463 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L16">ex_mouse_focus.c</a></li> 
464 </ul> 
465 <h2·id="al_map_rgb">al_map_rgb</h2>456 <h2·id="al_map_rgb">al_map_rgb</h2>
466 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb<span·class="op">(</span></span>457 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb<span·class="op">(</span></span>
467 <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">)</span></span></code></pre></div>458 <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">)</span></span></code></pre></div>
468 <p><a459 <p><a
469 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L575">Source460 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L575">Source
470 Code</a></p>461 Code</a></p>
471 <p>Convert·r,·g,·b·(ranging·from·0-255)·into·an·<a462 <p>Convert·r,·g,·b·(ranging·from·0-255)·into·an·<a
Offset 474, 19 lines modifiedOffset 465, 19 lines modified
474 <p>This·function·can·be·called·before·Allegro·is·initialized.</p>465 <p>This·function·can·be·called·before·Allegro·is·initialized.</p>
475 <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a466 <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a
476 href="graphics.html#al_map_rgba_f">al_map_rgba_f</a>,·<a467 href="graphics.html#al_map_rgba_f">al_map_rgba_f</a>,·<a
477 href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p>468 href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p>
478 <p>Examples:</p>469 <p>Examples:</p>
479 <ul>470 <ul>
480 <li><a471 <li><a
 472 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L97">ex_audio_props.cpp</a></li>
 473 <li><a
481 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li>474 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li>
482 <li><a475 <li><a
483 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L49">ex_keyboard_focus.c</a></li>476 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L49">ex_keyboard_focus.c</a></li>
484 <li><a 
485 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L37">ex_nodisplay.c</a></li> 
486 </ul>477 </ul>
487 <h2·id="al_map_rgb_f">al_map_rgb_f</h2>478 <h2·id="al_map_rgb_f">al_map_rgb_f</h2>
488 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">)</span></span></code></pre></div>479 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">)</span></span></code></pre></div>
489 <p><a480 <p><a
490 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L610">Source481 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L610">Source
491 Code</a></p>482 Code</a></p>
492 <p>Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·<a483 <p>Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·<a
Offset 497, 17 lines modifiedOffset 488, 17 lines modified
497 href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a488 href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a
498 href="graphics.html#al_map_rgba_f">al_map_rgba_f</a></p>489 href="graphics.html#al_map_rgba_f">al_map_rgba_f</a></p>
499 <p>Examples:</p>490 <p>Examples:</p>
500 <ul>491 <ul>
501 <li><a492 <li><a
502 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li>493 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li>
503 <li><a494 <li><a
504 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L128">ex_keyboard_events.c</a></li>495 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L173">ex_color.cpp</a></li>
505 <li><a496 <li><a
506 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L93">ex_drawpixels.c</a></li>497 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L80">ex_font_justify.cpp</a></li>
507 </ul>498 </ul>
508 <h2·id="al_map_rgba">al_map_rgba</h2>499 <h2·id="al_map_rgba">al_map_rgba</h2>
509 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgba<span·class="op">(</span></span>500 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgba<span·class="op">(</span></span>
510 <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div>501 <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div>
511 <p><a502 <p><a
512 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L553">Source503 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L553">Source
513 Code</a></p>504 Code</a></p>
Offset 518, 17 lines modifiedOffset 509, 17 lines modified
518 href="graphics.html#al_premul_rgba">al_premul_rgba</a>,·<a509 href="graphics.html#al_premul_rgba">al_premul_rgba</a>,·<a
519 href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p>510 href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p>
520 <p>Examples:</p>511 <p>Examples:</p>
521 <ul>512 <ul>
522 <li><a513 <li><a
523 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L41">ex_nodisplay.c</a></li>514 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L41">ex_nodisplay.c</a></li>
524 <li><a515 <li><a
525 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L47">ex_drawpixels.c</a></li> 
526 <li><a 
527 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L88">ex_timedwait.c</a></li>516 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L88">ex_timedwait.c</a></li>
 517 <li><a
 518 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L47">ex_drawpixels.c</a></li>
528 </ul>519 </ul>
529 <h2·id="al_premul_rgba">al_premul_rgba</h2>520 <h2·id="al_premul_rgba">al_premul_rgba</h2>
530 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba<span·class="op">(</span></span>521 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba<span·class="op">(</span></span>
531 <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div>522 <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div>
532 <p><a523 <p><a
533 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L564">Source524 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L564">Source
534 Code</a></p>525 Code</a></p>
Offset 565, 17 lines modifiedOffset 556, 17 lines modified
565 href="graphics.html#al_premul_rgba_f">al_premul_rgba_f</a>,·<a556 href="graphics.html#al_premul_rgba_f">al_premul_rgba_f</a>,·<a
566 href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p>557 href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p>
567 <p>Examples:</p>558 <p>Examples:</p>
568 <ul>559 <ul>
569 <li><a560 <li><a
570 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L88">ex_timedwait.c</a></li>561 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L88">ex_timedwait.c</a></li>
571 <li><a562 <li><a
572 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L11">ex_resize.c</a></li>563 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L59">ex_cpu.c</a></li>
573 <li><a564 <li><a
574 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_rotate.c#L127">ex_rotate.c</a></li>565 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L11">ex_resize.c</a></li>
575 </ul>566 </ul>
576 <h2·id="al_premul_rgba_f">al_premul_rgba_f</h2>567 <h2·id="al_premul_rgba_f">al_premul_rgba_f</h2>
577 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">,</span>·<span·class="dt">float</span>·a<span·class="op">)</span></span></code></pre></div>568 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">,</span>·<span·class="dt">float</span>·a<span·class="op">)</span></span></code></pre></div>
578 <p><a569 <p><a
579 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L597">Source570 href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L597">Source
580 Code</a></p>571 Code</a></p>
581 <p>This·is·a·shortcut·for·<a572 <p>This·is·a·shortcut·for·<a
Offset 712, 23 lines modifiedOffset 703, 14 lines modified
712 this·is·just·the·size·of·a·single·pixel,·but·for·blocked·pixel·formats703 this·is·just·the·size·of·a·single·pixel,·but·for·blocked·pixel·formats
713 this·value·is·different.</p></li>704 this·value·is·different.</p></li>
714 </ul>705 </ul>
715 <p>See·also:·<a·href="graphics.html#al_lock_bitmap">al_lock_bitmap</a>,706 <p>See·also:·<a·href="graphics.html#al_lock_bitmap">al_lock_bitmap</a>,
716 <a·href="graphics.html#al_lock_bitmap_region">al_lock_bitmap_region</a>,707 <a·href="graphics.html#al_lock_bitmap_region">al_lock_bitmap_region</a>,
717 <a·href="graphics.html#al_unlock_bitmap">al_unlock_bitmap</a>,·<a708 <a·href="graphics.html#al_unlock_bitmap">al_unlock_bitmap</a>,·<a
718 href="graphics.html#allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</a></p>709 href="graphics.html#allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</a></p>
719 <p>Examples:</p> 
720 <ul> 
721 <li><a 
722 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L21">ex_lockbitmap.c</a></li> 
723 <li><a 
724 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_premulalpha.c#L16">ex_premulalpha.c</a></li> 
725 <li><a 
726 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L52">ex_multisample.c</a></li> 
727 </ul> 
728 <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2>710 <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2>
729 <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</span></code></pre></div>711 <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</span></code></pre></div>
730 <p><a712 <p><a
731 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source713 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source
732 Code</a></p>714 Code</a></p>
733 <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit715 <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit
734 layout·of·a·pixel·in·memory.·Components·are·specified·from·high·bits·to716 layout·of·a·pixel·in·memory.·Components·are·specified·from·high·bits·to
Offset 838, 23 lines modifiedOffset 820, 14 lines modified
838 bytes,·resulting·in·4x·compression·ratio.·This·format·supports·smooth820 bytes,·resulting·in·4x·compression·ratio.·This·format·supports·smooth
Max diff block lines reached; 41323/50226 bytes (82.27%) of diff not shown.
36.4 KB
html2text {}
    
Offset 175, 52 lines modifiedOffset 175, 48 lines modified
175 *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8ol\x8lo\x8or\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*175 *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8ol\x8lo\x8or\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*
176 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8OL\x8LO\x8OR\x8R·*\x8**\x8**\x8**\x8**\x8*176 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8OL\x8LO\x8OR\x8R·*\x8**\x8**\x8**\x8**\x8*
177 typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR;177 typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR;
178 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e178 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
179 An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use179 An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use
180 _\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. and·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. to·translate·from·and·to·various180 _\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. and·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. to·translate·from·and·to·various
181 color·representations.181 color·representations.
182 Examples: 
183 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c 
184 ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c 
185 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c 
186 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8*182 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8*
187 ALLEGRO_COLOR·al_map_rgb(183 ALLEGRO_COLOR·al_map_rgb(
188 ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b)184 ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b)
189 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e185 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
190 Convert·r,·g,·b·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·255·for186 Convert·r,·g,·b·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·255·for
191 alpha.187 alpha.
192 This·function·can·be·called·before·Allegro·is·initialized.188 This·function·can·be·called·before·Allegro·is·initialized.
193 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f189 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f
194 Examples:190 Examples:
 191 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p
195 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c192 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c
196 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c193 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c
197 ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c 
198 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8*194 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8*
199 ALLEGRO_COLOR·al_map_rgb_f(float·r,·float·g,·float·b)195 ALLEGRO_COLOR·al_map_rgb_f(float·r,·float·g,·float·b)
200 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e196 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
201 Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·1.0f·for197 Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·1.0f·for
202 alpha.198 alpha.
203 This·function·can·be·called·before·Allegro·is·initialized.199 This·function·can·be·called·before·Allegro·is·initialized.
204 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f200 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f
205 Examples:201 Examples:
206 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c202 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c
207 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c 
208 ····*·_\x8e_\x8x_\x8__\x8d_.r_.a_.w_.p_.i_.x_.e_.l_.s_.._.c203 ····*·_\x8e_\x8x_\x8__\x8c_.o_.l_.o_.r_.._.c_.p_.p
 204 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p
209 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8*205 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8*
210 ALLEGRO_COLOR·al_map_rgba(206 ALLEGRO_COLOR·al_map_rgba(
211 ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a)207 ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a)
212 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e208 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
213 Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R.209 Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R.
214 This·function·can·be·called·before·Allegro·is·initialized.210 This·function·can·be·called·before·Allegro·is·initialized.
215 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f211 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f
216 Examples:212 Examples:
217 ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c213 ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c
218 ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c 
219 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c214 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c
 215 ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c
220 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8*216 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8*
221 ALLEGRO_COLOR·al_premul_rgba(217 ALLEGRO_COLOR·al_premul_rgba(
222 ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a)218 ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a)
223 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e219 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
224 This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a(r·*·a·/·255,·g·*·a·/·255,·b·*·a·/·255,·a).220 This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a(r·*·a·/·255,·g·*·a·/·255,·b·*·a·/·255,·a).
225 By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of221 By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of
226 bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that222 bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that
Offset 241, 16 lines modifiedOffset 237, 16 lines modified
241 ALLEGRO_COLOR·al_map_rgba_f(float·r,·float·g,·float·b,·float·a)237 ALLEGRO_COLOR·al_map_rgba_f(float·r,·float·g,·float·b,·float·a)
242 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e238 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
243 Convert·r,·g,·b,·a·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R.239 Convert·r,·g,·b,·a·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R.
244 This·function·can·be·called·before·Allegro·is·initialized.240 This·function·can·be·called·before·Allegro·is·initialized.
245 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f241 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f
246 Examples:242 Examples:
247 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c243 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c
 244 ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c
248 ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x8._\x8c245 ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x8._\x8c
249 ····*·_\x8e_\x8x_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8._\x8c 
250 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8*246 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8*
251 ALLEGRO_COLOR·al_premul_rgba_f(float·r,·float·g,·float·b,·float·a)247 ALLEGRO_COLOR·al_premul_rgba_f(float·r,·float·g,·float·b,·float·a)
252 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e248 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
253 This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f(r·*·a,·g·*·a,·b·*·a,·a).249 This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f(r·*·a,·g·*·a,·b·*·a,·a).
254 By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of250 By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of
255 bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that251 bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that
256 feature).·This·means·that·if·you·want·to·tint·a·bitmap·or·primitive·to·be252 feature).·This·means·that·if·you·want·to·tint·a·bitmap·or·primitive·to·be
Offset 333, 18 lines modifiedOffset 329, 14 lines modified
333 ····*·p\x8pi\x8ix\x8xe\x8el\x8l_\x8_s\x8si\x8iz\x8ze\x8e·is·the·number·of·bytes·used·to·represent·a·single·block·of329 ····*·p\x8pi\x8ix\x8xe\x8el\x8l_\x8_s\x8si\x8iz\x8ze\x8e·is·the·number·of·bytes·used·to·represent·a·single·block·of
334 ······pixels·for·the·pixel·format·of·this·locked·region.·For·most·formats·(and330 ······pixels·for·the·pixel·format·of·this·locked·region.·For·most·formats·(and
335 ······historically,·this·used·to·be·true·for·all·formats),·this·is·just·the331 ······historically,·this·used·to·be·true·for·all·formats),·this·is·just·the
336 ······size·of·a·single·pixel,·but·for·blocked·pixel·formats·this·value·is332 ······size·of·a·single·pixel,·but·for·blocked·pixel·formats·this·value·is
337 ······different.333 ······different.
338 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,334 See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,
339 _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T335 _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T
340 Examples: 
341 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c 
342 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8a_\x8l_\x8p_\x8h_\x8a_\x8._\x8c 
343 ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c 
344 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8IX\x8XE\x8EL\x8L_\x8_F\x8FO\x8OR\x8RM\x8MA\x8AT\x8T·*\x8**\x8**\x8**\x8**\x8*336 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8IX\x8XE\x8EL\x8L_\x8_F\x8FO\x8OR\x8RM\x8MA\x8AT\x8T·*\x8**\x8**\x8**\x8**\x8*
345 typedef·enum·ALLEGRO_PIXEL_FORMAT337 typedef·enum·ALLEGRO_PIXEL_FORMAT
346 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e338 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
347 Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a339 Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a
348 pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for340 pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for
349 example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000.341 example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000.
350 ·····N\x8No\x8ot\x8te\x8e:\x8:342 ·····N\x8No\x8ot\x8te\x8e:\x8:
Offset 440, 18 lines modifiedOffset 432, 14 lines modified
440 ······resulting·in·4x·compression·ratio.·This·format·supports·sharp·alpha432 ······resulting·in·4x·compression·ratio.·This·format·supports·sharp·alpha
441 ······transitions.·Since·5.1.9.433 ······transitions.·Since·5.1.9.
442 ····*·ALLEGRO_PIXEL_FORMAT_COMPRESSED_RGBA_DXT5·-·Compressed·using·the·DXT5434 ····*·ALLEGRO_PIXEL_FORMAT_COMPRESSED_RGBA_DXT5·-·Compressed·using·the·DXT5
443 ······compression·algorithm.·Each·4x4·pixel·block·is·encoded·in·128·bytes,435 ······compression·algorithm.·Each·4x4·pixel·block·is·encoded·in·128·bytes,
444 ······resulting·in·4x·compression·ratio.·This·format·supports·smooth·alpha436 ······resulting·in·4x·compression·ratio.·This·format·supports·smooth·alpha
445 ······transitions.·Since·5.1.9.437 ······transitions.·Since·5.1.9.
446 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t438 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t
447 Examples: 
448 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c 
449 ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c 
450 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c 
451 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_s\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8*439 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_s\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8*
452 int·al_get_pixel_size(int·format)440 int·al_get_pixel_size(int·format)
453 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e441 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
454 Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies.·For442 Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies.·For
455 blocked·pixel·formats·(e.g. compressed·formats),·this·returns·0.443 blocked·pixel·formats·(e.g. compressed·formats),·this·returns·0.
456 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t_\x8__\x8b_\x8i_\x8t_\x8s444 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t_\x8__\x8b_\x8i_\x8t_\x8s
457 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_f\x8fo\x8or\x8rm\x8ma\x8at\x8t_\x8_b\x8bi\x8it\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8*445 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_f\x8fo\x8or\x8rm\x8ma\x8at\x8t_\x8_b\x8bi\x8it\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8*
Offset 520, 15 lines modifiedOffset 508, 15 lines modified
520 ·····operations·on·it·(with·the·sole·exception·of·_\x8a_\x8l_\x8__\x8p_\x8u_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l·and508 ·····operations·on·it·(with·the·sole·exception·of·_\x8a_\x8l_\x8__\x8p_\x8u_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l·and
521 ·····_\x8a_\x8l_\x8__\x8p_\x8u_\x8t_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8e_\x8d_\x8__\x8p_\x8i_\x8x_\x8e_\x8l).509 ·····_\x8a_\x8l_\x8__\x8p_\x8u_\x8t_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8e_\x8d_\x8__\x8p_\x8i_\x8x_\x8e_\x8l).
522 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8L_\x8O_\x8C_\x8K_\x8E_\x8D_\x8__\x8R_\x8E_\x8G_\x8I_\x8O_\x8N,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,510 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8L_\x8O_\x8C_\x8K_\x8E_\x8D_\x8__\x8R_\x8E_\x8G_\x8I_\x8O_\x8N,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,
523 _\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8e_\x8d511 _\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8e_\x8d
524 Examples:512 Examples:
525 ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c513 ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c
526 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8b_\x8m_\x8p_\x8._\x8c514 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8b_\x8m_\x8p_\x8._\x8c
527 ····*·_\x8e_\x8x_\x8__\x8l_.o_.c_.k_.b_.i_.t_.m_.a_.p_\x8._\x8c515 ····*·_\x8e_\x8x_\x8__\x8p_.r_.e_.m_.u_.l_.a_.l_.p_.h_.a_\x8._\x8c
528 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oc\x8ck\x8k_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p_\x8_r\x8re\x8eg\x8gi\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*516 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oc\x8ck\x8k_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p_\x8_r\x8re\x8eg\x8gi\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*
529 ALLEGRO_LOCKED_REGION·*al_lock_bitmap_region(ALLEGRO_BITMAP·*bitmap,517 ALLEGRO_LOCKED_REGION·*al_lock_bitmap_region(ALLEGRO_BITMAP·*bitmap,
530 ···int·x,·int·y,·int·width,·int·height,·int·format,·int·flags)518 ···int·x,·int·y,·int·width,·int·height,·int·format,·int·flags)
531 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e519 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
532 Like·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·but·only·locks·a·specific·area·of·the·bitmap.·If·the520 Like·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·but·only·locks·a·specific·area·of·the·bitmap.·If·the
533 bitmap·is·a·video·bitmap,·only·that·area·of·the·texture·will·be·updated·when·it521 bitmap·is·a·video·bitmap,·only·that·area·of·the·texture·will·be·updated·when·it
534 is·unlocked.·Locking·only·the·region·you·indend·to·modify·will·be·faster·than522 is·unlocked.·Locking·only·the·region·you·indend·to·modify·will·be·faster·than
Max diff block lines reached; 29005/37224 bytes (77.92%) of diff not shown.
6.32 KB
./usr/share/doc/allegro5-doc/refman/haptic.html
    
Offset 265, 21 lines modifiedOffset 265, 14 lines modified
265 <p><em><a·href="getting_started.html#unstable-api">Unstable265 <p><em><a·href="getting_started.html#unstable-api">Unstable
266 API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all266 API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all
267 the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from267 the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from
268 users.</p>268 users.</p>
269 </blockquote>269 </blockquote>
270 <p>See·also:·<a270 <p>See·also:·<a
271 href="haptic.html#al_get_haptic_from_joystick">al_get_haptic_from_joystick</a></p>271 href="haptic.html#al_get_haptic_from_joystick">al_get_haptic_from_joystick</a></p>
272 <p>Examples:</p> 
273 <ul> 
274 <li><a 
275 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> 
276 <li><a 
277 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L21">ex_haptic2.cpp</a></li> 
278 </ul> 
279 <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1>272 <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1>
280 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span></code></pre></div>273 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span></code></pre></div>
281 <p><a274 <p><a
282 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source275 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source
283 Code</a></p>276 Code</a></p>
284 <p>This·enum·contains·flags·that·are·used·to·define·haptic·effects·and277 <p>This·enum·contains·flags·that·are·used·to·define·haptic·effects·and
285 capabilities.·If·the·flag·is·set·in·the·return·value·of·<a278 capabilities.·If·the·flag·is·set·in·the·return·value·of·<a
Offset 523, 21 lines modifiedOffset 516, 14 lines modified
523 <p>Since:·5.1.8</p>516 <p>Since:·5.1.8</p>
524 <blockquote>517 <blockquote>
525 <p><em><a·href="getting_started.html#unstable-api">Unstable518 <p><em><a·href="getting_started.html#unstable-api">Unstable
526 API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all519 API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all
527 the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from520 the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from
528 users.</p>521 users.</p>
529 </blockquote>522 </blockquote>
530 <p>Examples:</p> 
531 <ul> 
532 <li><a 
533 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> 
534 <li><a 
535 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L22">ex_haptic2.cpp</a></li> 
536 </ul> 
537 <h1·id="allegro_haptic_effect_id">ALLEGRO_HAPTIC_EFFECT_ID</h1>523 <h1·id="allegro_haptic_effect_id">ALLEGRO_HAPTIC_EFFECT_ID</h1>
538 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID<span·class="op">;</span></span></code></pre></div>524 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID<span·class="op">;</span></span></code></pre></div>
539 <p><a525 <p><a
540 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L183">Source526 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L183">Source
541 Code</a></p>527 Code</a></p>
542 <p>This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic528 <p>This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic
543 effect·and·should·be·considered·opaque.·Its·implementation·is·visible529 effect·and·should·be·considered·opaque.·Its·implementation·is·visible
Offset 545, 21 lines modifiedOffset 531, 14 lines modified
545 <p>Since:·5.1.8</p>531 <p>Since:·5.1.8</p>
546 <blockquote>532 <blockquote>
547 <p><em><a·href="getting_started.html#unstable-api">Unstable533 <p><em><a·href="getting_started.html#unstable-api">Unstable
548 API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all534 API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all
549 the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from535 the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from
550 users.</p>536 users.</p>
551 </blockquote>537 </blockquote>
552 <p>Examples:</p> 
553 <ul> 
554 <li><a 
555 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> 
556 <li><a 
557 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L23">ex_haptic2.cpp</a></li> 
558 </ul> 
559 <h1·id="al_install_haptic">al_install_haptic</h1>538 <h1·id="al_install_haptic">al_install_haptic</h1>
560 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_haptic<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>539 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_haptic<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
561 <p><a540 <p><a
562 href="https://github.com/liballeg/allegro5/blob/master/src/haptic.c#L34">Source541 href="https://github.com/liballeg/allegro5/blob/master/src/haptic.c#L34">Source
563 Code</a></p>542 Code</a></p>
564 <p>Installs·the·haptic·(force·feedback)·device·subsystem.·This·must·be543 <p>Installs·the·haptic·(force·feedback)·device·subsystem.·This·must·be
565 called·before·using·any·other·haptic-related·functions.·Returns·true·if544 called·before·using·any·other·haptic-related·functions.·Returns·true·if
2.79 KB
html2text {}
    
Offset 90, 17 lines modifiedOffset 90, 14 lines modified
90 This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force90 This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force
91 feedback·or·vibration.91 feedback·or·vibration.
92 Since:·5.1.892 Since:·5.1.8
93 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for93 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for
94 ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting94 ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting
95 ·····feedback·from·users.95 ·····feedback·from·users.
96 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k96 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k
97 Examples: 
98 ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c 
99 ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p 
100 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_C\x8CO\x8ON\x8NS\x8ST\x8TA\x8AN\x8NT\x8TS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*97 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_C\x8CO\x8ON\x8NS\x8ST\x8TA\x8AN\x8NT\x8TS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*
101 enum·ALLEGRO_HAPTIC_CONSTANTS98 enum·ALLEGRO_HAPTIC_CONSTANTS
102 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e99 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
103 This·enum·contains·flags·that·are·used·to·define·haptic·effects·and100 This·enum·contains·flags·that·are·used·to·define·haptic·effects·and
104 capabilities.·If·the·flag·is·set·in·the·return·value·of101 capabilities.·If·the·flag·is·set·in·the·return·value·of
105 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8c_\x8a_\x8p_\x8a_\x8b_\x8i_\x8l_\x8i_\x8t_\x8i_\x8e_\x8s,·it·means·the·device·supports·the·given·effect.·The102 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8c_\x8a_\x8p_\x8a_\x8b_\x8i_\x8l_\x8i_\x8t_\x8i_\x8e_\x8s,·it·means·the·device·supports·the·given·effect.·The
106 value·of·these·flags·should·be·set·into·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8H_\x8A_\x8P_\x8T_\x8I_\x8C_\x8__\x8E_\x8F_\x8F_\x8E_\x8C_\x8T·struct·to103 value·of·these·flags·should·be·set·into·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8H_\x8A_\x8P_\x8T_\x8I_\x8C_\x8__\x8E_\x8F_\x8F_\x8E_\x8C_\x8T·struct·to
Offset 286, 30 lines modifiedOffset 283, 24 lines modified
286 ······If·you·don’t·want·to·use·an·envelope,·then·set·all·four·fields·of283 ······If·you·don’t·want·to·use·an·envelope,·then·set·all·four·fields·of
287 ······data.envelope·to·0.0.·The·effect·will·then·play·back·at·full·intensity284 ······data.envelope·to·0.0.·The·effect·will·then·play·back·at·full·intensity
288 ······throughout·its·playback.285 ······throughout·its·playback.
289 Since:·5.1.8286 Since:·5.1.8
290 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for287 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for
291 ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting288 ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting
292 ·····feedback·from·users.289 ·····feedback·from·users.
293 Examples: 
294 ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c 
295 ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p 
296 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_E\x8EF\x8FF\x8FE\x8EC\x8CT\x8T_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8**\x8*290 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_E\x8EF\x8FF\x8FE\x8EC\x8CT\x8T_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8**\x8*
297 typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID;291 typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID;
298 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e292 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
299 This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect·and293 This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect·and
300 should·be·considered·opaque.·Its·implementation·is·visible·merely·to·allow294 should·be·considered·opaque.·Its·implementation·is·visible·merely·to·allow
301 allocation·by·the·users·of·the·Allegro·library.295 allocation·by·the·users·of·the·Allegro·library.
302 Since:·5.1.8296 Since:·5.1.8
303 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for297 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for
304 ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting298 ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting
305 ·····feedback·from·users.299 ·····feedback·from·users.
306 Examples: 
307 ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c 
308 ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p 
309 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_h\x8ha\x8ap\x8pt\x8ti\x8ic\x8c·*\x8**\x8**\x8**\x8**\x8**\x8*300 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_h\x8ha\x8ap\x8pt\x8ti\x8ic\x8c·*\x8**\x8**\x8**\x8**\x8**\x8*
310 bool·al_install_haptic(void)301 bool·al_install_haptic(void)
311 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e302 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
312 Installs·the·haptic·(force·feedback)·device·subsystem.·This·must·be·called303 Installs·the·haptic·(force·feedback)·device·subsystem.·This·must·be·called
313 before·using·any·other·haptic-related·functions.·Returns·true·if·the·haptics304 before·using·any·other·haptic-related·functions.·Returns·true·if·the·haptics
314 subsystem·could·be·initialized·correctly,·false·in·case·of·error.305 subsystem·could·be·initialized·correctly,·false·in·case·of·error.
315 For·portability·you·should·first·open·a·display·before·calling306 For·portability·you·should·first·open·a·display·before·calling
2.55 KB
./usr/share/doc/allegro5-doc/refman/image.html
    
Offset 207, 23 lines modifiedOffset 207, 14 lines modified
207 installed·libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to207 installed·libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to
208 be·universally·available.</p>208 be·universally·available.</p>
209 <p>The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS209 <p>The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS
210 file·contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.210 file·contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.
211 Note·that·when·loading·a·DDS·file,·the·created·bitmap·will·always·be·a211 Note·that·when·loading·a·DDS·file,·the·created·bitmap·will·always·be·a
212 video·bitmap·and·will·have·the·pixel·format·matching·the·format·in·the212 video·bitmap·and·will·have·the·pixel·format·matching·the·format·in·the
213 file.</p>213 file.</p>
214 <p>Examples:</p> 
215 <ul> 
216 <li><a 
217 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L29">ex_convert.c</a></li> 
218 <li><a 
219 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L22">ex_nodisplay.c</a></li> 
220 <li><a 
221 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L53">ex_opengl_pixel_shader.c</a></li> 
222 </ul> 
223 <h1214 <h1
224 id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1>215 id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1>
225 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_image_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>216 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_image_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
226 <p><a217 <p><a
227 href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source218 href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source
228 Code</a></p>219 Code</a></p>
229 <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns220 <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns
1.1 KB
html2text {}
    
Offset 64, 18 lines modifiedOffset 64, 14 lines modified
64 Other·formats·may·be·available·depending·on·the·operating·system·and·installed64 Other·formats·may·be·available·depending·on·the·operating·system·and·installed
65 libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to·be·universally65 libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to·be·universally
66 available.66 available.
67 The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file67 The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file
68 contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when68 contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when
69 loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will69 loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will
70 have·the·pixel·format·matching·the·format·in·the·file.70 have·the·pixel·format·matching·the·format·in·the·file.
71 Examples: 
72 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c 
73 ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c 
74 ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c 
75 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*71 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
76 bool·al_is_image_addon_initialized(void)72 bool·al_is_image_addon_initialized(void)
77 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e73 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
78 Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false.74 Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false.
79 Since:·5.2.675 Since:·5.2.6
80 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*76 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
81 void·al_shutdown_image_addon(void)77 void·al_shutdown_image_addon(void)
5.16 KB
./usr/share/doc/allegro5-doc/refman/joystick.html
    
Offset 230, 44 lines modifiedOffset 230, 28 lines modified
230 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK<span·class="op">;</span></span></code></pre></div>230 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK<span·class="op">;</span></span></code></pre></div>
231 <p><a231 <p><a
232 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L39">Source232 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L39">Source
233 Code</a></p>233 Code</a></p>
234 <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p>234 <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p>
235 <p>See·also:·<a235 <p>See·also:·<a
236 href="joystick.html#al_get_joystick">al_get_joystick</a></p>236 href="joystick.html#al_get_joystick">al_get_joystick</a></p>
237 <p>Examples:</p> 
238 <ul> 
239 <li><a 
240 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L14">ex_haptic.c</a></li> 
241 <li><a 
242 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L7">ex_joystick_hotplugging.c</a></li> 
243 <li><a 
244 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L32">ex_joystick_events.c</a></li> 
245 </ul> 
246 <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1>237 <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1>
247 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE<span·class="op">;</span></span></code></pre></div>238 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE<span·class="op">;</span></span></code></pre></div>
248 <p><a239 <p><a
249 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L45">Source240 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L45">Source
250 Code</a></p>241 Code</a></p>
251 <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s242 <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s
252 axes·and·buttons·at·a·particular·instant.·All·fields·public·and243 axes·and·buttons·at·a·particular·instant.·All·fields·public·and
253 read-only.</p>244 read-only.</p>
254 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">struct</span>·<span·class="op">{</span></span>245 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">struct</span>·<span·class="op">{</span></span>
255 <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·axis<span·class="op">[</span>num_axes<span·class="op">];</span>·············<span·class="co">//·-1.0·to·1.0</span></span>246 <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·axis<span·class="op">[</span>num_axes<span·class="op">];</span>·············<span·class="co">//·-1.0·to·1.0</span></span>
256 <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·stick<span·class="op">[</span>num_sticks<span·class="op">];</span></span>247 <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·stick<span·class="op">[</span>num_sticks<span·class="op">];</span></span>
257 <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·button<span·class="op">[</span>num_buttons<span·class="op">];</span>·············<span·class="co">//·0·to·32767</span></span></code></pre></div>248 <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·button<span·class="op">[</span>num_buttons<span·class="op">];</span>·············<span·class="co">//·0·to·32767</span></span></code></pre></div>
258 <p>See·also:·<a249 <p>See·also:·<a
259 href="joystick.html#al_get_joystick_state">al_get_joystick_state</a></p>250 href="joystick.html#al_get_joystick_state">al_get_joystick_state</a></p>
260 <p>Examples:</p> 
261 <ul> 
262 <li><a 
263 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L38">ex_joystick_hotplugging.c</a></li> 
264 <li><a 
265 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L34">ex_joystick_events.c</a></li> 
266 </ul> 
267 <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1>251 <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1>
268 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</span></code></pre></div>252 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</span></code></pre></div>
269 <p><a253 <p><a
270 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L58">Source254 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L58">Source
271 Code</a></p>255 Code</a></p>
272 <ul>256 <ul>
273 <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li>257 <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li>
1.76 KB
html2text {}
    
Offset 74, 31 lines modifiedOffset 74, 24 lines modified
74 mutually·exclusive.·The·haptics·subsystem·will·use·the·same·driver·as·the74 mutually·exclusive.·The·haptics·subsystem·will·use·the·same·driver·as·the
75 joystick·system·does.75 joystick·system·does.
76 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8*76 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8*
77 typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK;77 typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK;
78 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e78 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
79 This·is·an·abstract·data·type·representing·a·physical·joystick.79 This·is·an·abstract·data·type·representing·a·physical·joystick.
80 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k80 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k
81 Examples: 
82 ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c 
83 ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c 
84 ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c 
85 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*81 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*
86 typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE;82 typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE;
87 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e83 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
88 This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s·axes·and84 This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s·axes·and
89 buttons·at·a·particular·instant.·All·fields·public·and·read-only.85 buttons·at·a·particular·instant.·All·fields·public·and·read-only.
90 struct·{86 struct·{
91 ···float·axis[num_axes];·············//·-1.0·to·1.087 ···float·axis[num_axes];·············//·-1.0·to·1.0
92 }·stick[num_sticks];88 }·stick[num_sticks];
93 int·button[num_buttons];·············//·0·to·3276789 int·button[num_buttons];·············//·0·to·32767
94 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8a_\x8t_\x8e90 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8a_\x8t_\x8e
95 Examples: 
96 ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c 
97 ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c 
98 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YF\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*91 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YF\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*
99 enum·ALLEGRO_JOYFLAGS92 enum·ALLEGRO_JOYFLAGS
100 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e93 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
101 ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input94 ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input
102 ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input95 ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input
103 (this·enum·is·a·holdover·from·the·old·API·and·may·be·removed)96 (this·enum·is·a·holdover·from·the·old·API·and·may·be·removed)
104 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8f_\x8l_\x8a_\x8g_\x8s97 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8f_\x8l_\x8a_\x8g_\x8s
11.3 KB
./usr/share/doc/allegro5-doc/refman/keyboard.html
    
Offset 212, 23 lines modifiedOffset 212, 14 lines modified
212 <ul>212 <ul>
213 <li>display·-·points·to·the·display·that·had·keyboard·focus·at·the·time213 <li>display·-·points·to·the·display·that·had·keyboard·focus·at·the·time
214 the·state·was·saved.·If·no·display·was·focused,·this·points·to214 the·state·was·saved.·If·no·display·was·focused,·this·points·to
215 NULL.</li>215 NULL.</li>
216 </ul>216 </ul>
217 <p>You·cannot·read·the·state·of·keys·directly.·Use·the·function·<a217 <p>You·cannot·read·the·state·of·keys·directly.·Use·the·function·<a
218 href="keyboard.html#al_key_down">al_key_down</a>.</p>218 href="keyboard.html#al_key_down">al_key_down</a>.</p>
219 <p>Examples:</p> 
220 <ul> 
221 <li><a 
222 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L42">ex_d3d.cpp</a></li> 
223 <li><a 
224 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L4">ex_keyboard_focus.c</a></li> 
225 <li><a 
226 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L33">ex_mouse_focus.c</a></li> 
227 </ul> 
228 <h1·id="key-codes">Key·codes</h1>219 <h1·id="key-codes">Key·codes</h1>
229 <p>The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest220 <p>The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest
230 key·code.·So·if·you·want·to·use·the·key·code·as·array·index·you·can·do221 key·code.·So·if·you·want·to·use·the·key·code·as·array·index·you·can·do
231 something·like·this:</p>222 something·like·this:</p>
232 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·pressed_keys<span·class="op">[</span>ALLEGRO_KEY_MAX<span·class="op">];</span></span>223 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·pressed_keys<span·class="op">[</span>ALLEGRO_KEY_MAX<span·class="op">];</span></span>
233 <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="co">//...</span></span>224 <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="co">//...</span></span>
234 <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>pressed_keys<span·class="op">[</span>key_code<span·class="op">]</span>·<span·class="op">=</span>·<span·class="kw">true</span><span·class="op">;</span></span></code></pre></div>225 <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>pressed_keys<span·class="op">[</span>key_code<span·class="op">]</span>·<span·class="op">=</span>·<span·class="kw">true</span><span·class="op">;</span></span></code></pre></div>
Offset 353, 19 lines modifiedOffset 344, 19 lines modified
353 was·already·installed,·nothing·happens·and·true·is·returned.</p>344 was·already·installed,·nothing·happens·and·true·is·returned.</p>
354 <p>See·also:·<a345 <p>See·also:·<a
355 href="keyboard.html#al_uninstall_keyboard">al_uninstall_keyboard</a>,·<a346 href="keyboard.html#al_uninstall_keyboard">al_uninstall_keyboard</a>,·<a
356 href="keyboard.html#al_is_keyboard_installed">al_is_keyboard_installed</a></p>347 href="keyboard.html#al_is_keyboard_installed">al_is_keyboard_installed</a></p>
357 <p>Examples:</p>348 <p>Examples:</p>
358 <ul>349 <ul>
359 <li><a350 <li><a
360 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L34">ex_d3d.cpp</a></li>351 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L155">ex_audio_props.cpp</a></li>
361 <li><a352 <li><a
362 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L39">ex_keyboard_focus.c</a></li>353 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L39">ex_keyboard_focus.c</a></li>
363 <li><a354 <li><a
364 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L44">ex_mouse_focus.c</a></li>355 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L34">ex_d3d.cpp</a></li>
365 </ul>356 </ul>
366 <h1·id="al_is_keyboard_installed">al_is_keyboard_installed</h1>357 <h1·id="al_is_keyboard_installed">al_is_keyboard_installed</h1>
367 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_keyboard_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>358 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_keyboard_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
368 <p><a359 <p><a
369 href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L112">Source360 href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L112">Source
370 Code</a></p>361 Code</a></p>
371 <p>Returns·true·if·<a362 <p>Returns·true·if·<a
Offset 392, 18 lines modifiedOffset 383, 18 lines modified
392 <p>See·also:·<a·href="keyboard.html#al_key_down">al_key_down</a>,·<a383 <p>See·also:·<a·href="keyboard.html#al_key_down">al_key_down</a>,·<a
393 href="keyboard.html#al_clear_keyboard_state">al_clear_keyboard_state</a>,384 href="keyboard.html#al_clear_keyboard_state">al_clear_keyboard_state</a>,
394 <a385 <a
395 href="keyboard.html#allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</a></p>386 href="keyboard.html#allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</a></p>
396 <p>Examples:</p>387 <p>Examples:</p>
397 <ul>388 <ul>
398 <li><a389 <li><a
399 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L107">ex_d3d.cpp</a></li> 
400 <li><a 
401 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L53">ex_keyboard_focus.c</a></li>390 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L53">ex_keyboard_focus.c</a></li>
402 <li><a391 <li><a
 392 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L107">ex_d3d.cpp</a></li>
 393 <li><a
403 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L94">ex_mouse_focus.c</a></li>394 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L94">ex_mouse_focus.c</a></li>
404 </ul>395 </ul>
405 <h1·id="al_clear_keyboard_state">al_clear_keyboard_state</h1>396 <h1·id="al_clear_keyboard_state">al_clear_keyboard_state</h1>
406 <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_clear_keyboard_state<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div>397 <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_clear_keyboard_state<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div>
407 <p><a398 <p><a
408 href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L262">Source399 href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L262">Source
409 Code</a></p>400 Code</a></p>
Offset 440, 18 lines modifiedOffset 431, 18 lines modified
440 <p>Return·true·if·the·key·specified·was·held·down·in·the·state431 <p>Return·true·if·the·key·specified·was·held·down·in·the·state
441 specified.</p>432 specified.</p>
442 <p>See·also:·<a433 <p>See·also:·<a
443 href="keyboard.html#allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</a></p>434 href="keyboard.html#allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</a></p>
444 <p>Examples:</p>435 <p>Examples:</p>
445 <ul>436 <ul>
446 <li><a437 <li><a
447 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L111">ex_d3d.cpp</a></li> 
448 <li><a 
449 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L54">ex_keyboard_focus.c</a></li>438 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L54">ex_keyboard_focus.c</a></li>
450 <li><a439 <li><a
 440 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L111">ex_d3d.cpp</a></li>
 441 <li><a
451 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L95">ex_mouse_focus.c</a></li>442 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L95">ex_mouse_focus.c</a></li>
452 </ul>443 </ul>
453 <h1·id="al_keycode_to_name">al_keycode_to_name</h1>444 <h1·id="al_keycode_to_name">al_keycode_to_name</h1>
454 <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_keycode_to_name<span·class="op">(</span><span·class="dt">int</span>·keycode<span·class="op">)</span></span></code></pre></div>445 <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_keycode_to_name<span·class="op">(</span><span·class="dt">int</span>·keycode<span·class="op">)</span></span></code></pre></div>
455 <p><a446 <p><a
456 href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L228">Source447 href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L228">Source
457 Code</a></p>448 Code</a></p>
Offset 493, 19 lines modifiedOffset 484, 19 lines modified
493 <p>Retrieve·the·keyboard·event·source.·All·<a484 <p>Retrieve·the·keyboard·event·source.·All·<a
494 href="events.html#allegro_event_key_down">keyboard·events</a>·are485 href="events.html#allegro_event_key_down">keyboard·events</a>·are
495 generated·by·this·event·source.</p>486 generated·by·this·event·source.</p>
496 <p>Returns·NULL·if·the·keyboard·subsystem·was·not·installed.</p>487 <p>Returns·NULL·if·the·keyboard·subsystem·was·not·installed.</p>
497 <p>Examples:</p>488 <p>Examples:</p>
498 <ul>489 <ul>
499 <li><a490 <li><a
 491 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L44">ex_disable_screensaver.c</a></li>
 492 <li><a
500 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L140">ex_keyboard_events.c</a></li>493 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L140">ex_keyboard_events.c</a></li>
501 <li><a494 <li><a
502 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L145">ex_opengl.c</a></li>495 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L145">ex_opengl.c</a></li>
503 <li><a 
504 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_winfull.c#L40">ex_winfull.c</a></li> 
505 </ul>496 </ul>
506 <p·class="timestamp">497 <p·class="timestamp">
507 Allegro·version·5.2.10498 Allegro·version·5.2.10
508 ·-·Last·updated:·2024-11-29·14:21:22·UTC499 ·-·Last·updated:·2024-11-29·14:21:22·UTC
509 </p>500 </p>
510 </div>501 </div>
511 </body>502 </body>
5.05 KB
html2text {}
    
Offset 62, 18 lines modifiedOffset 62, 14 lines modified
62 typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE;62 typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE;
63 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e63 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
64 This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s·state·at64 This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s·state·at
65 a·particular·instant.·It·contains·the·following·publically·readable·fields:65 a·particular·instant.·It·contains·the·following·publically·readable·fields:
66 ····*·display·-·points·to·the·display·that·had·keyboard·focus·at·the·time·the66 ····*·display·-·points·to·the·display·that·had·keyboard·focus·at·the·time·the
67 ······state·was·saved.·If·no·display·was·focused,·this·points·to·NULL.67 ······state·was·saved.·If·no·display·was·focused,·this·points·to·NULL.
68 You·cannot·read·the·state·of·keys·directly.·Use·the·function·_\x8a_\x8l_\x8__\x8k_\x8e_\x8y_\x8__\x8d_\x8o_\x8w_\x8n.68 You·cannot·read·the·state·of·keys·directly.·Use·the·function·_\x8a_\x8l_\x8__\x8k_\x8e_\x8y_\x8__\x8d_\x8o_\x8w_\x8n.
69 Examples: 
70 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p 
71 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c 
72 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c 
73 *\x8**\x8**\x8**\x8**\x8**\x8*·K\x8Ke\x8ey\x8y·c\x8co\x8od\x8de\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*69 *\x8**\x8**\x8**\x8**\x8**\x8*·K\x8Ke\x8ey\x8y·c\x8co\x8od\x8de\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*
74 The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest·key·code.·So70 The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest·key·code.·So
75 if·you·want·to·use·the·key·code·as·array·index·you·can·do·something·like·this:71 if·you·want·to·use·the·key·code·as·array·index·you·can·do·something·like·this:
76 bool·pressed_keys[ALLEGRO_KEY_MAX];72 bool·pressed_keys[ALLEGRO_KEY_MAX];
77 //...73 //...
78 pressed_keys[key_code]·=·true;74 pressed_keys[key_code]·=·true;
79 These·are·the·list·of·key·codes·used·by·Allegro,·which·are·returned·in·the75 These·are·the·list·of·key·codes·used·by·Allegro,·which·are·returned·in·the
Offset 190, 17 lines modifiedOffset 186, 17 lines modified
190 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*186 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
191 bool·al_install_keyboard(void)187 bool·al_install_keyboard(void)
192 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e188 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
193 Install·a·keyboard·driver.·Returns·true·if·successful.·If·a·driver·was·already189 Install·a·keyboard·driver.·Returns·true·if·successful.·If·a·driver·was·already
194 installed,·nothing·happens·and·true·is·returned.190 installed,·nothing·happens·and·true·is·returned.
195 See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d191 See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d
196 Examples:192 Examples:
197 ····*·_\x8e_\x8x_\x8__\x8d_.3_.d_\x8._\x8c_\x8p_\x8p193 ····*·_\x8e_\x8x_\x8__\x8a_.u_.d_.i_.o_.__.p_.r_.o_.p_.s_\x8._\x8c_\x8p_\x8p
198 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c194 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c
199 ····*·_\x8e_\x8x_\x8__\x8m_.o_.u_.s_.e_.__.f_.o_.c_.u_.s_.._.c195 ····*·_\x8e_\x8x_\x8__\x8d_.3_.d_.._.c_.p_.p
200 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*196 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
201 bool·al_is_keyboard_installed(void)197 bool·al_is_keyboard_installed(void)
202 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e198 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
203 Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d·was·called·successfully.199 Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d·was·called·successfully.
204 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*200 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
205 void·al_uninstall_keyboard(void)201 void·al_uninstall_keyboard(void)
206 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e202 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
Offset 211, 16 lines modifiedOffset 207, 16 lines modified
211 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*207 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
212 void·al_get_keyboard_state(ALLEGRO_KEYBOARD_STATE·*ret_state)208 void·al_get_keyboard_state(ALLEGRO_KEYBOARD_STATE·*ret_state)
213 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e209 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
214 Save·the·state·of·the·keyboard·specified·at·the·time·the·function·is·called210 Save·the·state·of·the·keyboard·specified·at·the·time·the·function·is·called
215 into·the·structure·pointed·to·by·r\x8re\x8et\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e.211 into·the·structure·pointed·to·by·r\x8re\x8et\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e.
216 See·also:·_\x8a_\x8l_\x8__\x8k_\x8e_\x8y_\x8__\x8d_\x8o_\x8w_\x8n,·_\x8a_\x8l_\x8__\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8K_\x8E_\x8Y_\x8B_\x8O_\x8A_\x8R_\x8D_\x8__\x8S_\x8T_\x8A_\x8T_\x8E212 See·also:·_\x8a_\x8l_\x8__\x8k_\x8e_\x8y_\x8__\x8d_\x8o_\x8w_\x8n,·_\x8a_\x8l_\x8__\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8K_\x8E_\x8Y_\x8B_\x8O_\x8A_\x8R_\x8D_\x8__\x8S_\x8T_\x8A_\x8T_\x8E
217 Examples:213 Examples:
218 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p 
219 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c214 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c
 215 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p
220 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c216 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c
221 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8le\x8ea\x8ar\x8r_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*217 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8le\x8ea\x8ar\x8r_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
222 void·al_clear_keyboard_state(ALLEGRO_DISPLAY·*display)218 void·al_clear_keyboard_state(ALLEGRO_DISPLAY·*display)
223 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e219 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
224 Clear·the·state·of·the·keyboard,·emitting·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8K_\x8E_\x8Y_\x8__\x8U_\x8P·for·each220 Clear·the·state·of·the·keyboard,·emitting·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8K_\x8E_\x8Y_\x8__\x8U_\x8P·for·each
225 currently·pressed·key.·The·given·display·is·regarded·as·the·one·which·had·the221 currently·pressed·key.·The·given·display·is·regarded·as·the·one·which·had·the
226 keyboard·focus·when·the·event·occurred.·In·case·display·is·NULL·no·event·is222 keyboard·focus·when·the·event·occurred.·In·case·display·is·NULL·no·event·is
Offset 237, 16 lines modifiedOffset 233, 16 lines modified
237 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c233 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c
238 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_k\x8ke\x8ey\x8y_\x8_d\x8do\x8ow\x8wn\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*234 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_k\x8ke\x8ey\x8y_\x8_d\x8do\x8ow\x8wn\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
239 bool·al_key_down(const·ALLEGRO_KEYBOARD_STATE·*state,·int·keycode)235 bool·al_key_down(const·ALLEGRO_KEYBOARD_STATE·*state,·int·keycode)
240 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e236 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
241 Return·true·if·the·key·specified·was·held·down·in·the·state·specified.237 Return·true·if·the·key·specified·was·held·down·in·the·state·specified.
242 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8K_\x8E_\x8Y_\x8B_\x8O_\x8A_\x8R_\x8D_\x8__\x8S_\x8T_\x8A_\x8T_\x8E238 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8K_\x8E_\x8Y_\x8B_\x8O_\x8A_\x8R_\x8D_\x8__\x8S_\x8T_\x8A_\x8T_\x8E
243 Examples:239 Examples:
244 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p 
245 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c240 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c
 241 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p
246 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c242 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c
247 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_k\x8ke\x8ey\x8yc\x8co\x8od\x8de\x8e_\x8_t\x8to\x8o_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*243 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_k\x8ke\x8ey\x8yc\x8co\x8od\x8de\x8e_\x8_t\x8to\x8o_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
248 const·char·*al_keycode_to_name(int·keycode)244 const·char·*al_keycode_to_name(int·keycode)
249 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e245 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
250 Converts·the·given·keycode·to·a·description·of·the·key.246 Converts·the·given·keycode·to·a·description·of·the·key.
251 Examples:247 Examples:
252 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c248 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c
Offset 268, 11 lines modifiedOffset 264, 11 lines modified
268 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*264 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
269 ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(void)265 ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(void)
270 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e266 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
271 Retrieve·the·keyboard·event·source.·All·_\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this267 Retrieve·the·keyboard·event·source.·All·_\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this
272 event·source.268 event·source.
273 Returns·NULL·if·the·keyboard·subsystem·was·not·installed.269 Returns·NULL·if·the·keyboard·subsystem·was·not·installed.
274 Examples:270 Examples:
 271 ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c
275 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c272 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c
276 ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c273 ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c
277 ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c 
278 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC274 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC
2.21 KB
./usr/share/doc/allegro5-doc/refman/memfile.html
    
Offset 196, 19 lines modifiedOffset 196, 14 lines modified
196 Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file196 Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file
197 size·is·fixed·and·cannot·be·expanded.·The·file·is·always·read197 size·is·fixed·and·cannot·be·expanded.·The·file·is·always·read
198 from/written·to·in·binary·mode,·which·means·that·no·newline·translation198 from/written·to·in·binary·mode,·which·means·that·no·newline·translation
199 is·performed.</p>199 is·performed.</p>
200 <p>It·should·be·closed·with·<a·href="file.html#al_fclose">al_fclose</a>.200 <p>It·should·be·closed·with·<a·href="file.html#al_fclose">al_fclose</a>.
201 After·the·file·is·closed,·you·are·responsible·for·freeing·the·memory·(if201 After·the·file·is·closed,·you·are·responsible·for·freeing·the·memory·(if
202 needed).</p>202 needed).</p>
203 <p>Examples:</p> 
204 <ul> 
205 <li><a 
206 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L36">ex_memfile.c</a></li> 
207 </ul> 
208 <h1203 <h1
209 id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1>204 id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1>
210 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>205 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
211 <p><a206 <p><a
212 href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source207 href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source
213 Code</a></p>208 Code</a></p>
214 <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a209 <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a
1020 B
html2text {}
    
Offset 57, 15 lines modifiedOffset 57, 13 lines modified
57 upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open.57 upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open.
58 The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable).58 The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable).
59 Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is59 Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is
60 fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary60 fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary
61 mode,·which·means·that·no·newline·translation·is·performed.61 mode,·which·means·that·no·newline·translation·is·performed.
62 It·should·be·closed·with·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e.·After·the·file·is·closed,·you·are62 It·should·be·closed·with·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e.·After·the·file·is·closed,·you·are
63 responsible·for·freeing·the·memory·(if·needed).63 responsible·for·freeing·the·memory·(if·needed).
64 Examples: 
65 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c 
66 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_m\x8me\x8em\x8mf\x8fi\x8il\x8le\x8e_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*64 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_m\x8me\x8em\x8mf\x8fi\x8il\x8le\x8e_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
67 uint32_t·al_get_allegro_memfile_version(void)65 uint32_t·al_get_allegro_memfile_version(void)
68 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e66 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
69 Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as67 Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as
70 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n.68 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n.
71 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC69 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC
7.66 KB
./usr/share/doc/allegro5-doc/refman/memory.html
    
Offset 203, 21 lines modifiedOffset 203, 14 lines modified
203 be·overridden.</p>203 be·overridden.</p>
204 <p>This·is·a·macro.</p>204 <p>This·is·a·macro.</p>
205 <p>See·also:·<a·href="memory.html#al_free">al_free</a>,·<a205 <p>See·also:·<a·href="memory.html#al_free">al_free</a>,·<a
206 href="memory.html#al_realloc">al_realloc</a>,·<a206 href="memory.html#al_realloc">al_realloc</a>,·<a
207 href="memory.html#al_calloc">al_calloc</a>,·<a207 href="memory.html#al_calloc">al_calloc</a>,·<a
208 href="memory.html#al_malloc_with_context">al_malloc_with_context</a>,·<a208 href="memory.html#al_malloc_with_context">al_malloc_with_context</a>,·<a
209 href="memory.html#al_set_memory_interface">al_set_memory_interface</a></p>209 href="memory.html#al_set_memory_interface">al_set_memory_interface</a></p>
210 <p>Examples:</p> 
211 <ul> 
212 <li><a 
213 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L27">ex_audio_timer.c</a></li> 
214 <li><a 
215 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L134">ex_vertex_buffer.c</a></li> 
216 </ul> 
217 <h1·id="al_free">al_free</h1>210 <h1·id="al_free">al_free</h1>
218 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_free</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span>211 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_free</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span>
219 <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_free_with_context</span><span·class="op">((</span><span·class="pp">p</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span></code></pre></div>212 <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_free_with_context</span><span·class="op">((</span><span·class="pp">p</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span></code></pre></div>
220 <p><a213 <p><a
221 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source214 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source
222 Code</a></p>215 Code</a></p>
223 <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be216 <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be
Offset 225, 23 lines modifiedOffset 218, 14 lines modified
225 <p>Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be218 <p>Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be
226 freed·from·the·same·DLL.·In·the·few·places·where·an·Allegro·function219 freed·from·the·same·DLL.·In·the·few·places·where·an·Allegro·function
227 returns·a·pointer·that·must·be·freed,·you·must·use·<a220 returns·a·pointer·that·must·be·freed,·you·must·use·<a
228 href="memory.html#al_free">al_free</a>·for·portability·to·Windows.</p>221 href="memory.html#al_free">al_free</a>·for·portability·to·Windows.</p>
229 <p>This·is·a·macro.</p>222 <p>This·is·a·macro.</p>
230 <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a223 <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a
231 href="memory.html#al_free_with_context">al_free_with_context</a></p>224 href="memory.html#al_free_with_context">al_free_with_context</a></p>
232 <p>Examples:</p> 
233 <ul> 
234 <li><a 
235 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clipboard.c#L67">ex_clipboard.c</a></li> 
236 <li><a 
237 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drag_and_drop.c#L166">ex_drag_and_drop.c</a></li> 
238 <li><a 
239 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L254">ex_record_name.c</a></li> 
240 </ul> 
241 <h1·id="al_realloc">al_realloc</h1>225 <h1·id="al_realloc">al_realloc</h1>
242 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_realloc</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span>226 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_realloc</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span>
243 <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_realloc_with_context</span><span·class="op">((</span><span·class="pp">p</span><span·class="op">),</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span></code></pre></div>227 <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_realloc_with_context</span><span·class="op">((</span><span·class="pp">p</span><span·class="op">),</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span></code></pre></div>
244 <p><a228 <p><a
245 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source229 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source
246 Code</a></p>230 Code</a></p>
247 <p>Like·realloc()·in·the·C·standard·library,·but·the·implementation·may231 <p>Like·realloc()·in·the·C·standard·library,·but·the·implementation·may
Offset 256, 19 lines modifiedOffset 240, 14 lines modified
256 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L57">Source240 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L57">Source
257 Code</a></p>241 Code</a></p>
258 <p>Like·calloc()·in·the·C·standard·library,·but·the·implementation·may242 <p>Like·calloc()·in·the·C·standard·library,·but·the·implementation·may
259 be·overridden.</p>243 be·overridden.</p>
260 <p>This·is·a·macro.</p>244 <p>This·is·a·macro.</p>
261 <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a245 <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a
262 href="memory.html#al_calloc_with_context">al_calloc_with_context</a></p>246 href="memory.html#al_calloc_with_context">al_calloc_with_context</a></p>
263 <p>Examples:</p> 
264 <ul> 
265 <li><a 
266 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L123">ex_record_name.c</a></li> 
267 </ul> 
268 <h1·id="al_malloc_with_context">al_malloc_with_context</h1>247 <h1·id="al_malloc_with_context">al_malloc_with_context</h1>
269 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*</span>al_malloc_with_context<span·class="op">(</span><span·class="dt">size_t</span>·n<span·class="op">,</span></span>248 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*</span>al_malloc_with_context<span·class="op">(</span><span·class="dt">size_t</span>·n<span·class="op">,</span></span>
270 <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·line<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>file<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>func<span·class="op">)</span></span></code></pre></div>249 <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·line<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>file<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>func<span·class="op">)</span></span></code></pre></div>
271 <p><a250 <p><a
272 href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L38">Source251 href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L38">Source
273 Code</a></p>252 Code</a></p>
274 <p>This·calls·malloc()·from·the·Allegro·library·(this·matters·on253 <p>This·calls·malloc()·from·the·Allegro·library·(this·matters·on
2.55 KB
html2text {}
    
Offset 60, 32 lines modifiedOffset 60, 25 lines modified
60 ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__))60 ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__))
61 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e61 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
62 Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be62 Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be
63 overridden.63 overridden.
64 This·is·a·macro.64 This·is·a·macro.
65 See·also:·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t,65 See·also:·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t,
66 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e66 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e
67 Examples: 
68 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c 
69 ····*·_\x8e_\x8x_\x8__\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8._\x8c 
70 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ee\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*67 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ee\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
71 #define·al_free(p)·\68 #define·al_free(p)·\
72 ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__))69 ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__))
73 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e70 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
74 Like·free()·in·the·C·standard·library,·but·the·implementation·may·be71 Like·free()·in·the·C·standard·library,·but·the·implementation·may·be
75 overridden.72 overridden.
76 Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed73 Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed
77 from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a74 from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a
78 pointer·that·must·be·freed,·you·must·use·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e·for·portability·to·Windows.75 pointer·that·must·be·freed,·you·must·use·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e·for·portability·to·Windows.
79 This·is·a·macro.76 This·is·a·macro.
80 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t77 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t
81 Examples: 
82 ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8b_\x8o_\x8a_\x8r_\x8d_\x8._\x8c 
83 ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c 
84 ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c 
85 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ea\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8*78 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ea\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8*
86 #define·al_realloc(p,·n)·\79 #define·al_realloc(p,·n)·\
87 ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__))80 ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__))
88 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e81 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
89 Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be82 Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be
90 overridden.83 overridden.
91 This·is·a·macro.84 This·is·a·macro.
Offset 94, 16 lines modifiedOffset 87, 14 lines modified
94 #define·al_calloc(c,·n)·\87 #define·al_calloc(c,·n)·\
95 ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__))88 ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__))
96 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e89 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
97 Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be90 Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be
98 overridden.91 overridden.
99 This·is·a·macro.92 This·is·a·macro.
100 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t93 See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t
101 Examples: 
102 ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c 
103 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8al\x8ll\x8lo\x8oc\x8c_\x8_w\x8wi\x8it\x8th\x8h_\x8_c\x8co\x8on\x8nt\x8te\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8*94 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8al\x8ll\x8lo\x8oc\x8c_\x8_w\x8wi\x8it\x8th\x8h_\x8_c\x8co\x8on\x8nt\x8te\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8*
104 void·*al_malloc_with_context(size_t·n,95 void·*al_malloc_with_context(size_t·n,
105 ···int·line,·const·char·*file,·const·char·*func)96 ···int·line,·const·char·*file,·const·char·*func)
106 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e97 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
107 This·calls·malloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless98 This·calls·malloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless
108 overridden·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,99 overridden·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,
109 Generally·you·should·use·the·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c·macro.100 Generally·you·should·use·the·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c·macro.
2.94 KB
./usr/share/doc/allegro5-doc/refman/misc.html
    
Offset 182, 23 lines modifiedOffset 182, 14 lines modified
182 <h1·id="allegro_pi">ALLEGRO_PI</h1>182 <h1·id="allegro_pi">ALLEGRO_PI</h1>
183 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_PI········</span><span·class="fl">3.14159265358979323846</span></span></code></pre></div>183 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_PI········</span><span·class="fl">3.14159265358979323846</span></span></code></pre></div>
184 <p><a184 <p><a
185 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L96">Source185 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L96">Source
186 Code</a></p>186 Code</a></p>
187 <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,187 <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,
188 but·you·can·use·this·one·instead.</p>188 but·you·can·use·this·one·instead.</p>
189 <p>Examples:</p> 
190 <ul> 
191 <li><a 
192 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L31">ex_convert.c</a></li> 
193 <li><a 
194 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L89">ex_opengl.c</a></li> 
195 <li><a 
196 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L49">ex_blend_bench.c</a></li> 
197 </ul> 
198 <h1·id="al_run_main">al_run_main</h1>189 <h1·id="al_run_main">al_run_main</h1>
199 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_run_main<span·class="op">(</span><span·class="dt">int</span>·argc<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**</span>argv<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">(*</span>user_main<span·class="op">)(</span><span·class="dt">int</span><span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**))</span></span></code></pre></div>190 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_run_main<span·class="op">(</span><span·class="dt">int</span>·argc<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**</span>argv<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">(*</span>user_main<span·class="op">)(</span><span·class="dt">int</span><span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**))</span></span></code></pre></div>
200 <p><a191 <p><a
201 href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L36">Source192 href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L36">Source
202 Code</a></p>193 Code</a></p>
203 <p>This·function·is·useful·in·cases·where·you·don’t·have·a·main()194 <p>This·function·is·useful·in·cases·where·you·don’t·have·a·main()
204 function·but·want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).195 function·but·want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).
1.08 KB
html2text {}
    
Offset 48, 18 lines modifiedOffset 48, 14 lines modified
48 These·functions·are·declared·in·the·main·Allegro·header·file:48 These·functions·are·declared·in·the·main·Allegro·header·file:
49 ·#include·<allegro5/allegro.h>49 ·#include·<allegro5/allegro.h>
50 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8I·*\x8**\x8**\x8**\x8**\x8**\x8*50 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8I·*\x8**\x8**\x8**\x8**\x8**\x8*
51 #define·ALLEGRO_PI········3.1415926535897932384651 #define·ALLEGRO_PI········3.14159265358979323846
52 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e52 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
53 C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but·you53 C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but·you
54 can·use·this·one·instead.54 can·use·this·one·instead.
55 Examples: 
56 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c 
57 ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c 
58 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c 
59 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_m\x8ma\x8ai\x8in\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*55 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_m\x8ma\x8ai\x8in\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
60 int·al_run_main(int·argc,·char·**argv,·int·(*user_main)(int,·char·**))56 int·al_run_main(int·argc,·char·**argv,·int·(*user_main)(int,·char·**))
61 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e57 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
62 This·function·is·useful·in·cases·where·you·don’t·have·a·main()·function·but58 This·function·is·useful·in·cases·where·you·don’t·have·a·main()·function·but
63 want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and59 want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and
64 Linux·this·is·no·problem·because·you·simply·can·call·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m.·But60 Linux·this·is·no·problem·because·you·simply·can·call·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m.·But
65 some·other·system·(like·OSX)·don’t·allow·calling·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·in·the·main61 some·other·system·(like·OSX)·don’t·allow·calling·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·in·the·main
4.98 KB
./usr/share/doc/allegro5-doc/refman/monitor.html
    
Offset 202, 23 lines modifiedOffset 202, 14 lines modified
202 <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x1<span·class="op">;</span></span>202 <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x1<span·class="op">;</span></span>
203 <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y1<span·class="op">;</span></span>203 <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y1<span·class="op">;</span></span>
204 <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x2<span·class="op">;</span></span>204 <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x2<span·class="op">;</span></span>
205 <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y2<span·class="op">;</span></span>205 <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y2<span·class="op">;</span></span>
206 <span·id="cb3-7"><a·href="#cb3-7"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_MONITOR_INFO<span·class="op">;</span></span></code></pre></div>206 <span·id="cb3-7"><a·href="#cb3-7"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_MONITOR_INFO<span·class="op">;</span></span></code></pre></div>
207 <p>See·also:·<a207 <p>See·also:·<a
208 href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p>208 href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p>
209 <p>Examples:</p> 
210 <ul> 
211 <li><a 
212 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L8">ex_monitorinfo.c</a></li> 
213 <li><a 
214 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drag_and_drop.c#L67">ex_drag_and_drop.c</a></li> 
215 <li><a 
216 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L16">ex_windows.c</a></li> 
217 </ul> 
218 <h1·id="al_get_monitor_info">al_get_monitor_info</h1>209 <h1·id="al_get_monitor_info">al_get_monitor_info</h1>
219 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_monitor_info<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">,</span>·ALLEGRO_MONITOR_INFO·<span·class="op">*</span>info<span·class="op">)</span></span></code></pre></div>210 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_monitor_info<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">,</span>·ALLEGRO_MONITOR_INFO·<span·class="op">*</span>info<span·class="op">)</span></span></code></pre></div>
220 <p><a211 <p><a
221 href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L52">Source212 href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L52">Source
222 Code</a></p>213 Code</a></p>
223 <p>Get·information·about·a·monitor’s·position·on·the·desktop.·adapter·is214 <p>Get·information·about·a·monitor’s·position·on·the·desktop.·adapter·is
224 a·number·from·0·to·al_get_num_video_adapters()-1.</p>215 a·number·from·0·to·al_get_num_video_adapters()-1.</p>
Offset 271, 17 lines modifiedOffset 262, 17 lines modified
271 <p>See·also:·<a262 <p>See·also:·<a
272 href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p>263 href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p>
273 <p>Examples:</p>264 <p>Examples:</p>
274 <ul>265 <ul>
275 <li><a266 <li><a
276 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L21">ex_monitorinfo.c</a></li>267 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L21">ex_monitorinfo.c</a></li>
277 <li><a268 <li><a
278 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_winfull.c#L20">ex_winfull.c</a></li> 
279 <li><a 
280 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dualies.c#L79">ex_dualies.c</a></li>269 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dualies.c#L79">ex_dualies.c</a></li>
 270 <li><a
 271 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_winfull.c#L20">ex_winfull.c</a></li>
281 </ul>272 </ul>
282 <h1·id="al_get_monitor_refresh_rate">al_get_monitor_refresh_rate</h1>273 <h1·id="al_get_monitor_refresh_rate">al_get_monitor_refresh_rate</h1>
283 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_monitor_refresh_rate<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">)</span></span></code></pre></div>274 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_monitor_refresh_rate<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">)</span></span></code></pre></div>
284 <p><a275 <p><a
285 href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L36">Source276 href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L36">Source
286 Code</a></p>277 Code</a></p>
287 <p>Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display278 <p>Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display
1.89 KB
html2text {}
    
Offset 62, 18 lines modifiedOffset 62, 14 lines modified
62 {62 {
63 ···int·x1;63 ···int·x1;
64 ···int·y1;64 ···int·y1;
65 ···int·x2;65 ···int·x2;
66 ···int·y2;66 ···int·y2;
67 }·ALLEGRO_MONITOR_INFO;67 }·ALLEGRO_MONITOR_INFO;
68 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o68 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o
69 Examples: 
70 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c 
71 ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c 
72 ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c 
73 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8*69 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8*
74 bool·al_get_monitor_info(int·adapter,·ALLEGRO_MONITOR_INFO·*info)70 bool·al_get_monitor_info(int·adapter,·ALLEGRO_MONITOR_INFO·*info)
75 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e71 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
76 Get·information·about·a·monitor’s·position·on·the·desktop.·adapter·is·a·number72 Get·information·about·a·monitor’s·position·on·the·desktop.·adapter·is·a·number
77 from·0·to·al_get_num_video_adapters()-1.73 from·0·to·al_get_num_video_adapters()-1.
78 On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL74 On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL
79 backends,·which·will·often·have·different·adapters·available.75 backends,·which·will·often·have·different·adapters·available.
Offset 98, 16 lines modifiedOffset 94, 16 lines modified
98 attached·to·the·computer·counts·as·one·or·more·adapters.·An·adapter·is·thus94 attached·to·the·computer·counts·as·one·or·more·adapters.·An·adapter·is·thus
99 really·a·video·port·that·can·have·a·monitor·connected·to·it.95 really·a·video·port·that·can·have·a·monitor·connected·to·it.
100 On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL96 On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL
101 backends,·which·will·often·have·different·adapters·available.97 backends,·which·will·often·have·different·adapters·available.
102 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o98 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o
103 Examples:99 Examples:
104 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c100 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c
105 ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c 
106 ····*·_\x8e_\x8x_\x8__\x8d_\x8u_\x8a_\x8l_\x8i_\x8e_\x8s_\x8._\x8c101 ····*·_\x8e_\x8x_\x8__\x8d_\x8u_\x8a_\x8l_\x8i_\x8e_\x8s_\x8._\x8c
 102 ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c
107 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*103 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
108 int·al_get_monitor_refresh_rate(int·adapter)104 int·al_get_monitor_refresh_rate(int·adapter)
109 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e105 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
110 Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display·adapter.106 Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display·adapter.
111 Since:·5.2.6107 Since:·5.2.6
112 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently·only108 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently·only
113 ·····works·on·Windows.109 ·····works·on·Windows.
8.71 KB
./usr/share/doc/allegro5-doc/refman/mouse.html
    
Offset 251, 23 lines modifiedOffset 251, 14 lines modified
251 <li><p>pressure·-·pressure,·ranging·from·<code>0.0</code>·to251 <li><p>pressure·-·pressure,·ranging·from·<code>0.0</code>·to
252 <code>1.0</code></p></li>252 <code>1.0</code></p></li>
253 </ul>253 </ul>
254 <p>See·also:·<a254 <p>See·also:·<a
255 href="mouse.html#al_get_mouse_state">al_get_mouse_state</a>,·<a255 href="mouse.html#al_get_mouse_state">al_get_mouse_state</a>,·<a
256 href="mouse.html#al_get_mouse_state_axis">al_get_mouse_state_axis</a>,256 href="mouse.html#al_get_mouse_state_axis">al_get_mouse_state_axis</a>,
257 <a·href="mouse.html#al_mouse_button_down">al_mouse_button_down</a></p>257 <a·href="mouse.html#al_mouse_button_down">al_mouse_button_down</a></p>
258 <p>Examples:</p> 
259 <ul> 
260 <li><a 
261 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L4">ex_mouse_focus.c</a></li> 
262 <li><a 
263 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L34">ex_mouse.c</a></li> 
264 <li><a 
265 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L160">nihgui.cpp</a></li> 
266 </ul> 
267 <h1·id="mouse-button-constants">Mouse·button·constants</h1>258 <h1·id="mouse-button-constants">Mouse·button·constants</h1>
268 <p>Unlike·other·indexes,·the·first·mouse·button·is·numbered·1·when259 <p>Unlike·other·indexes,·the·first·mouse·button·is·numbered·1·when
269 returned·in·the·event.mouse.button·field·of260 returned·in·the·event.mouse.button·field·of
270 ALLEGRO_EVENT_MOUSE_BUTTON_UP·and·ALLEGRO_EVENT_MOUSE_BUTTON_DOWN261 ALLEGRO_EVENT_MOUSE_BUTTON_UP·and·ALLEGRO_EVENT_MOUSE_BUTTON_DOWN
271 events.</p>262 events.</p>
272 <p>As·a·convenience,·the·following·ALLEGRO_MOUSE_BUTTON·constants·are263 <p>As·a·convenience,·the·following·ALLEGRO_MOUSE_BUTTON·constants·are
273 provided·below.·However,·depending·on·the·hardware·there·may·be·more·or264 provided·below.·However,·depending·on·the·hardware·there·may·be·more·or
Offset 291, 17 lines modifiedOffset 282, 17 lines modified
291 Code</a></p>282 Code</a></p>
292 <p>Install·a·mouse·driver.</p>283 <p>Install·a·mouse·driver.</p>
293 <p>Returns·true·if·successful.·If·a·driver·was·already·installed,284 <p>Returns·true·if·successful.·If·a·driver·was·already·installed,
294 nothing·happens·and·true·is·returned.</p>285 nothing·happens·and·true·is·returned.</p>
295 <p>Examples:</p>286 <p>Examples:</p>
296 <ul>287 <ul>
297 <li><a288 <li><a
298 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L41">ex_mouse_focus.c</a></li>289 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L156">ex_audio_props.cpp</a></li>
299 <li><a290 <li><a
300 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L46">ex_mouse.c</a></li>291 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L195">ex_color.cpp</a></li>
301 <li><a292 <li><a
302 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L101">ex_font_justify.cpp</a></li>293 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L101">ex_font_justify.cpp</a></li>
303 </ul>294 </ul>
304 <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1>295 <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1>
305 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_mouse_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>296 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_mouse_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
306 <p><a297 <p><a
307 href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L40">Source298 href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L40">Source
Offset 471, 15 lines modifiedOffset 462, 15 lines modified
471 <p>Examples:</p>462 <p>Examples:</p>
472 <ul>463 <ul>
473 <li><a464 <li><a
474 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L58">ex_display_events.c</a></li>465 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L58">ex_display_events.c</a></li>
475 <li><a466 <li><a
476 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L46">ex_mouse_warp.c</a></li>467 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L46">ex_mouse_warp.c</a></li>
477 <li><a468 <li><a
478 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_noframe.c#L44">ex_noframe.c</a></li>469 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer.c#L191">ex_timer.c</a></li>
479 </ul>470 </ul>
480 <h1·id="al_set_mouse_wheel_precision">al_set_mouse_wheel_precision</h1>471 <h1·id="al_set_mouse_wheel_precision">al_set_mouse_wheel_precision</h1>
481 <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_mouse_wheel_precision<span·class="op">(</span><span·class="dt">int</span>·precision<span·class="op">)</span></span></code></pre></div>472 <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_mouse_wheel_precision<span·class="op">(</span><span·class="dt">int</span>·precision<span·class="op">)</span></span></code></pre></div>
482 <p><a473 <p><a
483 href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L325">Source474 href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L325">Source
484 Code</a></p>475 Code</a></p>
485 <p>Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This476 <p>Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This
Offset 656, 17 lines modifiedOffset 647, 17 lines modified
656 <p>See·also:·<a647 <p>See·also:·<a
657 href="mouse.html#al_show_mouse_cursor">al_show_mouse_cursor</a></p>648 href="mouse.html#al_show_mouse_cursor">al_show_mouse_cursor</a></p>
658 <p>Examples:</p>649 <p>Examples:</p>
659 <ul>650 <ul>
660 <li><a651 <li><a
661 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L56">ex_mouse.c</a></li>652 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L56">ex_mouse.c</a></li>
662 <li><a653 <li><a
663 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ogre3d.cpp#L336">ex_ogre3d.cpp</a></li> 
664 <li><a 
665 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_events.c#L83">ex_mouse_events.c</a></li>654 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_events.c#L83">ex_mouse_events.c</a></li>
 655 <li><a
 656 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ogre3d.cpp#L336">ex_ogre3d.cpp</a></li>
666 </ul>657 </ul>
667 <h2·id="al_show_mouse_cursor">al_show_mouse_cursor</h2>658 <h2·id="al_show_mouse_cursor">al_show_mouse_cursor</h2>
668 <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><span·class="dt">bool</span>·al_show_mouse_cursor<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div>659 <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><span·class="dt">bool</span>·al_show_mouse_cursor<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div>
669 <p><a660 <p><a
670 href="https://github.com/liballeg/allegro5/blob/master/src/mouse_cursor.c#L96">Source661 href="https://github.com/liballeg/allegro5/blob/master/src/mouse_cursor.c#L96">Source
671 Code</a></p>662 Code</a></p>
672 <p>Make·a·mouse·cursor·visible·in·the·given·display.</p>663 <p>Make·a·mouse·cursor·visible·in·the·given·display.</p>
4.11 KB
html2text {}
    
Offset 81, 18 lines modifiedOffset 81, 14 lines modified
81 ····*·y·-·mouse·y·position81 ····*·y·-·mouse·y·position
82 ····*·w,·z·-·mouse·wheel·position·(2D·‘ball’)82 ····*·w,·z·-·mouse·wheel·position·(2D·‘ball’)
83 ····*·buttons·-·mouse·buttons·bitfield83 ····*·buttons·-·mouse·buttons·bitfield
84 ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first84 ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first
85 ······bit·is·set·if·the·secondary·mouse·button·is·held·down,·and·so·on.85 ······bit·is·set·if·the·secondary·mouse·button·is·held·down,·and·so·on.
86 ····*·pressure·-·pressure,·ranging·from·0.0·to·1.086 ····*·pressure·-·pressure,·ranging·from·0.0·to·1.0
87 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8a_\x8x_\x8i_\x8s,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n87 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8a_\x8x_\x8i_\x8s,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n
88 Examples: 
89 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c 
90 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c 
91 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p 
92 *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mo\x8ou\x8us\x8se\x8e·b\x8bu\x8ut\x8tt\x8to\x8on\x8n·c\x8co\x8on\x8ns\x8st\x8ta\x8an\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*88 *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mo\x8ou\x8us\x8se\x8e·b\x8bu\x8ut\x8tt\x8to\x8on\x8n·c\x8co\x8on\x8ns\x8st\x8ta\x8an\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*
93 Unlike·other·indexes,·the·first·mouse·button·is·numbered·1·when·returned·in·the89 Unlike·other·indexes,·the·first·mouse·button·is·numbered·1·when·returned·in·the
94 event.mouse.button·field·of·ALLEGRO_EVENT_MOUSE_BUTTON_UP·and90 event.mouse.button·field·of·ALLEGRO_EVENT_MOUSE_BUTTON_UP·and
95 ALLEGRO_EVENT_MOUSE_BUTTON_DOWN·events.91 ALLEGRO_EVENT_MOUSE_BUTTON_DOWN·events.
96 As·a·convenience,·the·following·ALLEGRO_MOUSE_BUTTON·constants·are·provided92 As·a·convenience,·the·following·ALLEGRO_MOUSE_BUTTON·constants·are·provided
97 below.·However,·depending·on·the·hardware·there·may·be·more·or·fewer·mouse93 below.·However,·depending·on·the·hardware·there·may·be·more·or·fewer·mouse
98 buttons.·You·can·check·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s·if·you·want·to·be·sure.94 buttons.·You·can·check·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s·if·you·want·to·be·sure.
Offset 107, 16 lines modifiedOffset 103, 16 lines modified
107 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*103 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
108 bool·al_install_mouse(void)104 bool·al_install_mouse(void)
109 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e105 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
110 Install·a·mouse·driver.106 Install·a·mouse·driver.
111 Returns·true·if·successful.·If·a·driver·was·already·installed,·nothing·happens107 Returns·true·if·successful.·If·a·driver·was·already·installed,·nothing·happens
112 and·true·is·returned.108 and·true·is·returned.
113 Examples:109 Examples:
114 ····*·_\x8e_\x8x_\x8__\x8m_.o_.u_.s_.e_.__.f_.o_.c_.u_.s_.._.c110 ····*·_\x8e_\x8x_\x8__\x8a_.u_.d_.i_.o_.__.p_.r_.o_.p_.s_.._.c_.p_.p
115 ····*·_\x8e_\x8x_\x8__\x8m_.o_.u_.s_.e_.._.c111 ····*·_\x8e_\x8x_\x8__\x8c_.o_.l_.o_.r_.._.c_.p_.p
116 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p112 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p
117 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*113 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
118 bool·al_is_mouse_installed(void)114 bool·al_is_mouse_installed(void)
119 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e115 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
120 Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e·was·called·successfully.116 Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e·was·called·successfully.
121 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*117 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
122 void·al_uninstall_mouse(void)118 void·al_uninstall_mouse(void)
Offset 216, 15 lines modifiedOffset 212, 15 lines modified
216 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e212 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
217 Retrieve·the·mouse·event·source.·All·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this·event213 Retrieve·the·mouse·event·source.·All·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this·event
218 source.214 source.
219 Returns·NULL·if·the·mouse·subsystem·was·not·installed.215 Returns·NULL·if·the·mouse·subsystem·was·not·installed.
220 Examples:216 Examples:
221 ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c217 ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c
222 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c218 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c
223 ····*·_\x8e_\x8x_\x8__\x8n_.o_.f_.r_.a_.m_.e_\x8._\x8c219 ····*·_\x8e_\x8x_\x8__\x8t_.i_.m_.e_.r_\x8._\x8c
224 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_w\x8wh\x8he\x8ee\x8el\x8l_\x8_p\x8pr\x8re\x8ec\x8ci\x8is\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*220 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_w\x8wh\x8he\x8ee\x8el\x8l_\x8_p\x8pr\x8re\x8ec\x8ci\x8is\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
225 void·al_set_mouse_wheel_precision(int·precision)221 void·al_set_mouse_wheel_precision(int·precision)
226 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e222 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
227 Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This·precision223 Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This·precision
228 manifests·itself·as·a·multiplier·on·the·dz·and·dw·fields·in·mouse·events.·It224 manifests·itself·as·a·multiplier·on·the·dz·and·dw·fields·in·mouse·events.·It
229 also·affects·the·z·and·w·fields·of·events·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8S_\x8T_\x8A_\x8T_\x8E,·but·not·in·a225 also·affects·the·z·and·w·fields·of·events·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8S_\x8T_\x8A_\x8T_\x8E,·but·not·in·a
230 simple·way·if·you·alter·the·precision·often,·so·it·is·suggested·to·reset·those226 simple·way·if·you·alter·the·precision·often,·so·it·is·suggested·to·reset·those
Offset 340, 16 lines modifiedOffset 336, 16 lines modified
340 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e336 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
341 Hide·the·mouse·cursor·in·the·given·display.·This·has·no·effect·on·what·the337 Hide·the·mouse·cursor·in·the·given·display.·This·has·no·effect·on·what·the
342 current·mouse·cursor·looks·like;·it·just·makes·it·disappear.338 current·mouse·cursor·looks·like;·it·just·makes·it·disappear.
343 Returns·true·on·success·(or·if·the·cursor·already·was·hidden),·false·otherwise.339 Returns·true·on·success·(or·if·the·cursor·already·was·hidden),·false·otherwise.
344 See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8c_\x8u_\x8r_\x8s_\x8o_\x8r340 See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8c_\x8u_\x8r_\x8s_\x8o_\x8r
345 Examples:341 Examples:
346 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c342 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c
347 ····*·_\x8e_\x8x_\x8__\x8o_\x8g_\x8r_\x8e_\x83_\x8d_\x8._\x8c_\x8p_\x8p 
348 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c343 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c
 344 ····*·_\x8e_\x8x_\x8__\x8o_\x8g_\x8r_\x8e_\x83_\x8d_\x8._\x8c_\x8p_\x8p
349 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8ho\x8ow\x8w_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_c\x8cu\x8ur\x8rs\x8so\x8or\x8r·*\x8**\x8**\x8**\x8**\x8*345 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8ho\x8ow\x8w_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_c\x8cu\x8ur\x8rs\x8so\x8or\x8r·*\x8**\x8**\x8**\x8**\x8*
350 bool·al_show_mouse_cursor(ALLEGRO_DISPLAY·*display)346 bool·al_show_mouse_cursor(ALLEGRO_DISPLAY·*display)
351 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e347 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
352 Make·a·mouse·cursor·visible·in·the·given·display.348 Make·a·mouse·cursor·visible·in·the·given·display.
353 Returns·true·if·a·mouse·cursor·is·shown·as·a·result·of·the·call·(or·one·already349 Returns·true·if·a·mouse·cursor·is·shown·as·a·result·of·the·call·(or·one·already
354 was·visible),·false·otherwise.350 was·visible),·false·otherwise.
355 See·also:·_\x8a_\x8l_\x8__\x8h_\x8i_\x8d_\x8e_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8c_\x8u_\x8r_\x8s_\x8o_\x8r351 See·also:·_\x8a_\x8l_\x8__\x8h_\x8i_\x8d_\x8e_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8c_\x8u_\x8r_\x8s_\x8o_\x8r
59.5 KB
./usr/share/doc/allegro5-doc/refman/native_dialog.html
    
Offset 267, 32 lines modifiedOffset 267, 20 lines modified
267 <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im">&lt;allegro5/allegro_native_dialog.h&gt;</span></span></code></pre></div>267 <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im">&lt;allegro5/allegro_native_dialog.h&gt;</span></span></code></pre></div>
268 <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1>268 <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1>
269 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER<span·class="op">;</span></span></code></pre></div>269 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER<span·class="op">;</span></span></code></pre></div>
270 <p><a270 <p><a
271 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source271 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source
272 Code</a></p>272 Code</a></p>
273 <p>Opaque·handle·to·a·native·file·dialog.</p>273 <p>Opaque·handle·to·a·native·file·dialog.</p>
274 <p>Examples:</p> 
275 <ul> 
276 <li><a 
277 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L31">ex_native_filechooser.c</a></li> 
278 </ul> 
279 <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1>274 <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1>
280 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG<span·class="op">;</span></span></code></pre></div>275 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG<span·class="op">;</span></span></code></pre></div>
281 <p><a276 <p><a
282 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source277 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source
283 Code</a></p>278 Code</a></p>
284 <p>Opaque·handle·to·a·text·log·window.</p>279 <p>Opaque·handle·to·a·text·log·window.</p>
285 <p>Examples:</p> 
286 <ul> 
287 <li><a 
288 href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L27">common.c</a></li> 
289 <li><a 
290 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L36">ex_native_filechooser.c</a></li> 
291 </ul> 
292 <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1>280 <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1>
293 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>281 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
294 <p><a282 <p><a
295 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L18">Source283 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L18">Source
296 Code</a></p>284 Code</a></p>
297 <p>Initialise·the·native·dialog·addon.</p>285 <p>Initialise·the·native·dialog·addon.</p>
298 <p>Returns·true·on·success,·false·on·error.</p>286 <p>Returns·true·on·success,·false·on·error.</p>
Offset 304, 23 lines modifiedOffset 292, 14 lines modified
304 is·<a292 is·<a
305 href="native_dialog.html#al_show_native_message_box">al_show_native_message_box</a>,293 href="native_dialog.html#al_show_native_message_box">al_show_native_message_box</a>,
306 which·may·be·useful·to·show·an·error·message·if·Allegro·fails·to294 which·may·be·useful·to·show·an·error·message·if·Allegro·fails·to
307 initialise.</p>295 initialise.</p>
308 </blockquote>296 </blockquote>
309 <p>See·also:·<a297 <p>See·also:·<a
310 href="native_dialog.html#al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</a></p>298 href="native_dialog.html#al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</a></p>
311 <p>Examples:</p> 
312 <ul> 
313 <li><a 
314 href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L39">common.c</a></li> 
315 <li><a 
316 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L58">ex_window_maximized.c</a></li> 
317 <li><a 
318 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_menu.c#L83">ex_menu.c</a></li> 
319 </ul> 
320 <h1299 <h1
321 id="al_is_native_dialog_addon_initialized">al_is_native_dialog_addon_initialized</h1>300 id="al_is_native_dialog_addon_initialized">al_is_native_dialog_addon_initialized</h1>
322 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_native_dialog_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>301 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_native_dialog_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
323 <p><a302 <p><a
324 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L35">Source303 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L35">Source
325 Code</a></p>304 Code</a></p>
326 <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise305 <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise
Offset 427, 19 lines modifiedOffset 406, 14 lines modified
427 and·<a406 and·<a
428 href="native_dialog.html#al_get_native_file_dialog_path">al_get_native_file_dialog_path</a>.407 href="native_dialog.html#al_get_native_file_dialog_path">al_get_native_file_dialog_path</a>.
429 When·you·are·done,·call·<a408 When·you·are·done,·call·<a
430 href="native_dialog.html#al_destroy_native_file_dialog">al_destroy_native_file_dialog</a>409 href="native_dialog.html#al_destroy_native_file_dialog">al_destroy_native_file_dialog</a>
431 on·it.</p>410 on·it.</p>
432 <p>If·a·dialog·window·could·not·be·created·then·this·function·returns411 <p>If·a·dialog·window·could·not·be·created·then·this·function·returns
433 NULL.</p>412 NULL.</p>
434 <p>Examples:</p> 
435 <ul> 
436 <li><a 
437 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L105">ex_native_filechooser.c</a></li> 
438 </ul> 
439 <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1>413 <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1>
440 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_show_native_file_dialog<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span></span>414 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_show_native_file_dialog<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span></span>
441 <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div>415 <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div>
442 <p><a416 <p><a
443 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L78">Source417 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L78">Source
444 Code</a></p>418 Code</a></p>
445 <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given419 <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given
Offset 453, 32 lines modifiedOffset 427, 22 lines modified
453 <p><em>Note:</em>·On·Android,·<a427 <p><em>Note:</em>·On·Android,·<a
454 href="events.html#allegro_event_display_halt_drawing">ALLEGRO_EVENT_DISPLAY_HALT_DRAWING</a>428 href="events.html#allegro_event_display_halt_drawing">ALLEGRO_EVENT_DISPLAY_HALT_DRAWING</a>
455 and·<a429 and·<a
456 href="events.html#allegro_event_display_resume_drawing">ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING</a>430 href="events.html#allegro_event_display_resume_drawing">ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING</a>
457 need·to·be·handled·before·this·function·returns.·This·means·that·you431 need·to·be·handled·before·this·function·returns.·This·means·that·you
458 must·call·it·from·a·different·thread.</p>432 must·call·it·from·a·different·thread.</p>
459 </blockquote>433 </blockquote>
460 <p>Examples:</p> 
461 <ul> 
462 <li><a 
463 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L59">ex_native_filechooser.c</a></li> 
464 </ul> 
465 <h1434 <h1
466 id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1>435 id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1>
467 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_native_file_dialog_count<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div>436 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_native_file_dialog_count<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div>
468 <p><a437 <p><a
469 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L87">Source438 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L87">Source
470 Code</a></p>439 Code</a></p>
471 <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was440 <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was
472 cancelled.</p>441 cancelled.</p>
473 <p>Examples:</p> 
474 <ul> 
475 <li><a 
476 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L148">ex_native_filechooser.c</a></li> 
477 </ul> 
478 <h1442 <h1
479 id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1>443 id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1>
480 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_native_file_dialog_path<span·class="op">(</span></span>444 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_native_file_dialog_path<span·class="op">(</span></span>
481 <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">,</span>·<span·class="dt">size_t</span>·i<span·class="op">)</span></span></code></pre></div>445 <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">,</span>·<span·class="dt">size_t</span>·i<span·class="op">)</span></span></code></pre></div>
482 <p><a446 <p><a
483 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L95">Source447 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L95">Source
484 Code</a></p>448 Code</a></p>
Offset 488, 31 lines modifiedOffset 452, 21 lines modified
488 <code>-1</code>.</p>452 <code>-1</code>.</p>
489 <blockquote>453 <blockquote>
490 <p><em>Note:</em>·On·Android,·this·function·returns·a·content://454 <p><em>Note:</em>·On·Android,·this·function·returns·a·content://
491 Universal·Resource·Identifier·instead·of·a·file·path·due·to·the455 Universal·Resource·Identifier·instead·of·a·file·path·due·to·the
492 constraints·of·Scoped·Storage.·Selected·files·may·be·accessed·using·<a456 constraints·of·Scoped·Storage.·Selected·files·may·be·accessed·using·<a
493 href="platform.html#al_android_open_fd">al_android_open_fd</a>.</p>457 href="platform.html#al_android_open_fd">al_android_open_fd</a>.</p>
494 </blockquote>458 </blockquote>
495 <p>Examples:</p> 
496 <ul> 
497 <li><a 
498 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L155">ex_native_filechooser.c</a></li> 
499 </ul> 
500 <h1459 <h1
501 id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1>460 id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1>
502 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_native_file_dialog<span·class="op">(</span>ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div>461 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_native_file_dialog<span·class="op">(</span>ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div>
503 <p><a462 <p><a
504 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L106">Source463 href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L106">Source
Max diff block lines reached; 29553/37767 bytes (78.25%) of diff not shown.
22.5 KB
html2text {}
    
Offset 90, 39 lines modifiedOffset 90, 30 lines modified
90 These·functions·are·declared·in·the·following·header·file.·Link·with90 These·functions·are·declared·in·the·following·header·file.·Link·with
91 allegro_dialog.91 allegro_dialog.
92 ·#include·<allegro5/allegro_native_dialog.h>92 ·#include·<allegro5/allegro_native_dialog.h>
93 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8EC\x8CH\x8HO\x8OO\x8OS\x8SE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8*93 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8EC\x8CH\x8HO\x8OO\x8OS\x8SE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8*
94 typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER;94 typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER;
95 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e95 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
96 Opaque·handle·to·a·native·file·dialog.96 Opaque·handle·to·a·native·file·dialog.
97 Examples: 
98 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c 
99 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TE\x8EX\x8XT\x8TL\x8LO\x8OG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8*97 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TE\x8EX\x8XT\x8TL\x8LO\x8OG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8*
100 typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG;98 typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG;
101 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e99 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
102 Opaque·handle·to·a·text·log·window.100 Opaque·handle·to·a·text·log·window.
103 Examples: 
104 ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c 
105 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c 
106 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*101 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
107 bool·al_init_native_dialog_addon(void)102 bool·al_init_native_dialog_addon(void)
108 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e103 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
109 Initialise·the·native·dialog·addon.104 Initialise·the·native·dialog·addon.
110 Returns·true·on·success,·false·on·error.105 Returns·true·on·success,·false·on·error.
111 Since:·5.0.9,·5.1.0106 Since:·5.0.9,·5.1.0
112 ·····N\x8No\x8ot\x8te\x8e:\x8:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called107 ·····N\x8No\x8ot\x8te\x8e:\x8:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called
113 ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future108 ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future
114 ·····functionality·may·require·explicit·initialisation.·An·exception·is109 ·····functionality·may·require·explicit·initialisation.·An·exception·is
115 ·····_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8__\x8b_\x8o_\x8x,·which·may·be·useful·to·show·an·error110 ·····_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8__\x8b_\x8o_\x8x,·which·may·be·useful·to·show·an·error
116 ·····message·if·Allegro·fails·to·initialise.111 ·····message·if·Allegro·fails·to·initialise.
117 See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n112 See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n
118 Examples: 
119 ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c 
120 ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8m_\x8a_\x8x_\x8i_\x8m_\x8i_\x8z_\x8e_\x8d_\x8._\x8c 
121 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c 
122 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*113 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
123 bool·al_is_native_dialog_addon_initialized(void)114 bool·al_is_native_dialog_addon_initialized(void)
124 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e115 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
125 Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns116 Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns
126 false.117 false.
127 Since:·5.2.6118 Since:·5.2.6
128 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*119 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
Offset 189, 55 lines modifiedOffset 180, 45 lines modified
189 ······If·supported,·allow·selecting·multiple·files.180 ······If·supported,·allow·selecting·multiple·files.
190 Returns:181 Returns:
191 A·handle·to·the·dialog·which·you·can·pass·to·_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g·to182 A·handle·to·the·dialog·which·you·can·pass·to·_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g·to
192 display·it,·and·from·which·you·then·can·query·the·results·using183 display·it,·and·from·which·you·then·can·query·the·results·using
193 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8c_\x8o_\x8u_\x8n_\x8t·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8p_\x8a_\x8t_\x8h.·When·you184 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8c_\x8o_\x8u_\x8n_\x8t·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8p_\x8a_\x8t_\x8h.·When·you
194 are·done,·call·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g·on·it.185 are·done,·call·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g·on·it.
195 If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL.186 If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL.
196 Examples: 
197 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c 
198 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8ho\x8ow\x8w_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*187 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8ho\x8ow\x8w_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*
199 bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display,188 bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display,
200 ···ALLEGRO_FILECHOOSER·*dialog)189 ···ALLEGRO_FILECHOOSER·*dialog)
201 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e190 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
202 Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is191 Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is
203 treated·as·the·parent·if·possible.192 treated·as·the·parent·if·possible.
204 This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to193 This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to
205 spawn·a·thread·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·and·call·it·from·inside·that·thread.194 spawn·a·thread·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·and·call·it·from·inside·that·thread.
206 Returns·true·on·success,·false·on·failure.195 Returns·true·on·success,·false·on·failure.
207 ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8H_\x8A_\x8L_\x8T_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G·and196 ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8H_\x8A_\x8L_\x8T_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G·and
208 ·····_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8R_\x8E_\x8S_\x8U_\x8M_\x8E_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G·need·to·be·handled·before·this197 ·····_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8R_\x8E_\x8S_\x8U_\x8M_\x8E_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G·need·to·be·handled·before·this
209 ·····function·returns.·This·means·that·you·must·call·it·from·a·different198 ·····function·returns.·This·means·that·you·must·call·it·from·a·different
210 ·····thread.199 ·····thread.
211 Examples: 
212 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c 
213 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8*200 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8*
214 int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog)201 int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog)
215 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e202 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
216 Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled.203 Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled.
217 Examples: 
218 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c 
219 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8*204 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8*
220 const·char·*al_get_native_file_dialog_path(205 const·char·*al_get_native_file_dialog_path(
221 ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i)206 ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i)
222 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e207 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
223 Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0208 Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0
224 to·the·return·value·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8c_\x8o_\x8u_\x8n_\x8t·-1.209 to·the·return·value·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8c_\x8o_\x8u_\x8n_\x8t·-1.
225 ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·this·function·returns·a·content://·Universal210 ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·this·function·returns·a·content://·Universal
226 ·····Resource·Identifier·instead·of·a·file·path·due·to·the·constraints·of211 ·····Resource·Identifier·instead·of·a·file·path·due·to·the·constraints·of
227 ·····Scoped·Storage.·Selected·files·may·be·accessed·using212 ·····Scoped·Storage.·Selected·files·may·be·accessed·using
228 ·····_\x8a_\x8l_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8__\x8o_\x8p_\x8e_\x8n_\x8__\x8f_\x8d.213 ·····_\x8a_\x8l_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8__\x8o_\x8p_\x8e_\x8n_\x8__\x8f_\x8d.
229 Examples: 
230 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c 
231 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*214 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*
232 void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog)215 void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog)
233 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e216 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
234 Frees·up·all·resources·used·by·the·file·dialog.217 Frees·up·all·resources·used·by·the·file·dialog.
235 Examples: 
236 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c 
237 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8ho\x8ow\x8w_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_m\x8me\x8es\x8ss\x8sa\x8ag\x8ge\x8e_\x8_b\x8bo\x8ox\x8x·*\x8**\x8**\x8**\x8**\x8**\x8*218 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8ho\x8ow\x8w_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_m\x8me\x8es\x8ss\x8sa\x8ag\x8ge\x8e_\x8_b\x8bo\x8ox\x8x·*\x8**\x8**\x8**\x8**\x8**\x8*
238 int·al_show_native_message_box(ALLEGRO_DISPLAY·*display,219 int·al_show_native_message_box(ALLEGRO_DISPLAY·*display,
239 ···char·const·*title,·char·const·*heading,·char·const·*text,220 ···char·const·*title,·char·const·*heading,·char·const·*text,
240 ···char·const·*buttons,·int·flags)221 ···char·const·*buttons,·int·flags)
241 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e222 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
242 Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error223 Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error
243 message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL,224 message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL,
Offset 280, 18 lines modifiedOffset 261, 14 lines modified
280 ··"If·you·click·yes·then·you·are·confirming·that·\"Yes\"·"261 ··"If·you·click·yes·then·you·are·confirming·that·\"Yes\"·"
281 ··"is·your·response·to·the·query·which·you·have·"262 ··"is·your·response·to·the·query·which·you·have·"
282 ··"generated·by·the·action·you·took·to·open·this·"263 ··"generated·by·the·action·you·took·to·open·this·"
283 ··"message·box.",264 ··"message·box.",
284 ··NULL,265 ··NULL,
285 ··ALLEGRO_MESSAGEBOX_YES_NO266 ··ALLEGRO_MESSAGEBOX_YES_NO
286 );267 );
287 Examples: 
288 ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c 
289 ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c 
290 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c 
291 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_t\x8te\x8ex\x8xt\x8t_\x8_l\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*268 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_t\x8te\x8ex\x8xt\x8t_\x8_l\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*
292 ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags)269 ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags)
293 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e270 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
294 Opens·a·window·to·which·you·can·append·log·messages·with271 Opens·a·window·to·which·you·can·append·log·messages·with
295 _\x8a_\x8l_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g.·This·can·be·useful·for·debugging·if·you·don’t·want272 _\x8a_\x8l_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g.·This·can·be·useful·for·debugging·if·you·don’t·want
296 to·depend·on·a·console·being·available.273 to·depend·on·a·console·being·available.
297 Use·_\x8a_\x8l_\x8__\x8c_\x8l_\x8o_\x8s_\x8e_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g·to·close·the·window·again.274 Use·_\x8a_\x8l_\x8__\x8c_\x8l_\x8o_\x8s_\x8e_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g·to·close·the·window·again.
Offset 302, 53 lines modifiedOffset 279, 40 lines modified
302 ······_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e.279 ······_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e.
303 ··ALLEGRO_TEXTLOG_MONOSPACE280 ··ALLEGRO_TEXTLOG_MONOSPACE
304 ······Use·a·monospace·font·to·display·the·text.281 ······Use·a·monospace·font·to·display·the·text.
305 Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows282 Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows
306 are·not·implemented·on·the·platform.283 are·not·implemented·on·the·platform.
307 ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·logs·can·be·viewed·using·logcat.284 ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·logs·can·be·viewed·using·logcat.
308 See·also:·_\x8a_\x8l_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g,·_\x8a_\x8l_\x8__\x8c_\x8l_\x8o_\x8s_\x8e_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g285 See·also:·_\x8a_\x8l_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g,·_\x8a_\x8l_\x8__\x8c_\x8l_\x8o_\x8s_\x8e_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g
309 Examples: 
310 ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c 
311 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c 
312 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8os\x8se\x8e_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_t\x8te\x8ex\x8xt\x8t_\x8_l\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*286 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8os\x8se\x8e_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_t\x8te\x8ex\x8xt\x8t_\x8_l\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*
313 void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog)287 void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog)
Max diff block lines reached; 15170/23047 bytes (65.82%) of diff not shown.
10.9 KB
./usr/share/doc/allegro5-doc/refman/path.html
    
Offset 245, 17 lines modifiedOffset 245, 17 lines modified
245 href="path.html#al_create_path_for_directory">al_create_path_for_directory</a>,245 href="path.html#al_create_path_for_directory">al_create_path_for_directory</a>,
246 <a·href="path.html#al_destroy_path">al_destroy_path</a></p>246 <a·href="path.html#al_destroy_path">al_destroy_path</a></p>
247 <p>Examples:</p>247 <p>Examples:</p>
248 <ul>248 <ul>
249 <li><a249 <li><a
250 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L18">ex_path.c</a></li>250 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L18">ex_path.c</a></li>
251 <li><a251 <li><a
252 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L35">ex_path_test.c</a></li> 
253 <li><a 
254 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L187">ex_audio_chain.cpp</a></li>252 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L187">ex_audio_chain.cpp</a></li>
 253 <li><a
 254 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L35">ex_path_test.c</a></li>
255 </ul>255 </ul>
256 <h1·id="al_create_path_for_directory">al_create_path_for_directory</h1>256 <h1·id="al_create_path_for_directory">al_create_path_for_directory</h1>
257 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_create_path_for_directory<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>str<span·class="op">)</span></span></code></pre></div>257 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_create_path_for_directory<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>str<span·class="op">)</span></span></code></pre></div>
258 <p><a258 <p><a
259 href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L188">Source259 href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L188">Source
260 Code</a></p>260 Code</a></p>
261 <p>This·is·the·same·as·<a261 <p>This·is·the·same·as·<a
Offset 275, 15 lines modifiedOffset 275, 15 lines modified
275 <p>Examples:</p>275 <p>Examples:</p>
276 <ul>276 <ul>
277 <li><a277 <li><a
278 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L14">ex_get_path.c</a></li>278 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L14">ex_get_path.c</a></li>
279 <li><a279 <li><a
280 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L21">ex_path.c</a></li>280 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L21">ex_path.c</a></li>
281 <li><a281 <li><a
282 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L36">ex_path_test.c</a></li>282 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L732">ex_audio_chain.cpp</a></li>
283 </ul>283 </ul>
284 <h1·id="al_clone_path">al_clone_path</h1>284 <h1·id="al_clone_path">al_clone_path</h1>
285 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_clone_path<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div>285 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_clone_path<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div>
286 <p><a286 <p><a
287 href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L203">Source287 href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L203">Source
288 Code</a></p>288 Code</a></p>
289 <p>Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure.</p>289 <p>Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure.</p>
Offset 326, 17 lines modifiedOffset 326, 17 lines modified
326 <p>For·example,·if·<em>head</em>·is·“/anchor/”·and·<em>tail</em>·is326 <p>For·example,·if·<em>head</em>·is·“/anchor/”·and·<em>tail</em>·is
327 “data/file.ext”,·then·after·the·call·<em>tail</em>·becomes327 “data/file.ext”,·then·after·the·call·<em>tail</em>·becomes
328 “/anchor/data/file.ext”.</p>328 “/anchor/data/file.ext”.</p>
329 <p>See·also:·<a·href="path.html#al_join_paths">al_join_paths</a></p>329 <p>See·also:·<a·href="path.html#al_join_paths">al_join_paths</a></p>
330 <p>Examples:</p>330 <p>Examples:</p>
331 <ul>331 <ul>
332 <li><a332 <li><a
333 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L376">ex_path_test.c</a></li> 
334 <li><a 
335 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L188">ex_audio_chain.cpp</a></li>333 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L188">ex_audio_chain.cpp</a></li>
 334 <li><a
 335 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L376">ex_path_test.c</a></li>
336 </ul>336 </ul>
337 <h1·id="al_get_path_drive">al_get_path_drive</h1>337 <h1·id="al_get_path_drive">al_get_path_drive</h1>
338 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_path_drive<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div>338 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_path_drive<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div>
339 <p><a339 <p><a
340 href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L481">Source340 href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L481">Source
341 Code</a></p>341 Code</a></p>
342 <p>Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is342 <p>Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is
Offset 381, 17 lines modifiedOffset 381, 17 lines modified
381 href="path.html#al_get_path_num_components">al_get_path_num_components</a>,381 href="path.html#al_get_path_num_components">al_get_path_num_components</a>,
382 <a·href="path.html#al_get_path_tail">al_get_path_tail</a></p>382 <a·href="path.html#al_get_path_tail">al_get_path_tail</a></p>
383 <p>Examples:</p>383 <p>Examples:</p>
384 <ul>384 <ul>
385 <li><a385 <li><a
386 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L53">ex_path.c</a></li>386 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L53">ex_path.c</a></li>
387 <li><a387 <li><a
388 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L35">ex_path_test.c</a></li> 
389 <li><a 
390 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L176">ex_audio_chain.cpp</a></li>388 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L176">ex_audio_chain.cpp</a></li>
 389 <li><a
 390 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L35">ex_path_test.c</a></li>
391 </ul>391 </ul>
392 <h1·id="al_get_path_tail">al_get_path_tail</h1>392 <h1·id="al_get_path_tail">al_get_path_tail</h1>
393 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_path_tail<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div>393 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_path_tail<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div>
394 <p><a394 <p><a
395 href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L307">Source395 href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L307">Source
396 Code</a></p>396 Code</a></p>
397 <p>Returns·the·last·directory·component,·or·NULL·if·there·are·no397 <p>Returns·the·last·directory·component,·or·NULL·if·there·are·no
Offset 536, 17 lines modifiedOffset 536, 17 lines modified
536 href="path.html#al_insert_path_component">al_insert_path_component</a>,536 href="path.html#al_insert_path_component">al_insert_path_component</a>,
537 <a537 <a
538 href="path.html#al_replace_path_component">al_replace_path_component</a>,538 href="path.html#al_replace_path_component">al_replace_path_component</a>,
539 <a·href="path.html#al_drop_path_tail">al_drop_path_tail</a></p>539 <a·href="path.html#al_drop_path_tail">al_drop_path_tail</a></p>
540 <p>Examples:</p>540 <p>Examples:</p>
541 <ul>541 <ul>
542 <li><a542 <li><a
543 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L206">ex_path_test.c</a></li> 
544 <li><a 
545 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L181">ex_audio_chain.cpp</a></li>543 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L181">ex_audio_chain.cpp</a></li>
 544 <li><a
 545 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L206">ex_path_test.c</a></li>
546 </ul>546 </ul>
547 <h1·id="al_drop_path_tail">al_drop_path_tail</h1>547 <h1·id="al_drop_path_tail">al_drop_path_tail</h1>
548 <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_drop_path_tail<span·class="op">(</span>ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div>548 <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_drop_path_tail<span·class="op">(</span>ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div>
549 <p><a549 <p><a
550 href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L320">Source550 href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L320">Source
551 Code</a></p>551 Code</a></p>
552 <p>Remove·the·last·directory·component,·if·any.</p>552 <p>Remove·the·last·directory·component,·if·any.</p>
4.92 KB
html2text {}
    
Offset 81, 16 lines modifiedOffset 81, 16 lines modified
81 Create·a·path·structure·from·a·string.·The·last·component,·if·it·is·followed·by81 Create·a·path·structure·from·a·string.·The·last·component,·if·it·is·followed·by
82 a·directory·separator·and·is·neither·“.”·nor·“..”,·is·treated·as·the·last82 a·directory·separator·and·is·neither·“.”·nor·“..”,·is·treated·as·the·last
83 directory·name·in·the·path.·Otherwise·the·last·component·is·treated·as·the83 directory·name·in·the·path.·Otherwise·the·last·component·is·treated·as·the
84 filename.·The·string·may·be·NULL·for·an·empty·path.84 filename.·The·string·may·be·NULL·for·an·empty·path.
85 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h85 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h
86 Examples:86 Examples:
87 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c87 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c
88 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c 
89 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p88 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p
 89 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c
90 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fo\x8or\x8r_\x8_d\x8di\x8ir\x8re\x8ec\x8ct\x8to\x8or\x8ry\x8y·*\x8**\x8**\x8**\x8**\x8**\x8*90 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fo\x8or\x8r_\x8_d\x8di\x8ir\x8re\x8ec\x8ct\x8to\x8or\x8ry\x8y·*\x8**\x8**\x8**\x8**\x8**\x8*
91 ALLEGRO_PATH·*al_create_path_for_directory(const·char·*str)91 ALLEGRO_PATH·*al_create_path_for_directory(const·char·*str)
92 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e92 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
93 This·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·but·interprets·the·passed·string·as·a93 This·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·but·interprets·the·passed·string·as·a
94 directory·path.·The·filename·component·of·the·returned·path·will·always·be94 directory·path.·The·filename·component·of·the·returned·path·will·always·be
95 empty.95 empty.
96 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h96 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h
Offset 98, 15 lines modifiedOffset 98, 15 lines modified
98 void·al_destroy_path(ALLEGRO_PATH·*path)98 void·al_destroy_path(ALLEGRO_PATH·*path)
99 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e99 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
100 Free·a·path·structure.·Does·nothing·if·passed·NULL.100 Free·a·path·structure.·Does·nothing·if·passed·NULL.
101 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y101 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y
102 Examples:102 Examples:
103 ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c103 ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c
104 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c104 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c
105 ····*·_\x8e_\x8x_\x8__\x8p_.a_.t_.h_.__.t_.e_.s_.t_.._.c105 ····*·_\x8e_\x8x_\x8__\x8a_.u_.d_.i_.o_.__.c_.h_.a_.i_.n_.._.c_.p_.p
106 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8on\x8ne\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8*106 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8on\x8ne\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8*
107 ALLEGRO_PATH·*al_clone_path(const·ALLEGRO_PATH·*path)107 ALLEGRO_PATH·*al_clone_path(const·ALLEGRO_PATH·*path)
108 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e108 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
109 Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure.109 Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure.
110 See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h110 See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h
111 Examples:111 Examples:
112 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c112 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c
Offset 131, 16 lines modifiedOffset 131, 16 lines modified
131 Concatenate·two·path·structures,·modifying·the·second·path·structure.·If·t\x8ta\x8ai\x8il\x8l131 Concatenate·two·path·structures,·modifying·the·second·path·structure.·If·t\x8ta\x8ai\x8il\x8l
132 is·an·absolute·path,·this·function·does·nothing.·Otherwise,·the·drive·and·path132 is·an·absolute·path,·this·function·does·nothing.·Otherwise,·the·drive·and·path
133 components·in·h\x8he\x8ea\x8ad\x8d·are·inserted·at·the·start·of·t\x8ta\x8ai\x8il\x8l.133 components·in·h\x8he\x8ea\x8ad\x8d·are·inserted·at·the·start·of·t\x8ta\x8ai\x8il\x8l.
134 For·example,·if·h\x8he\x8ea\x8ad\x8d·is·“/anchor/”·and·t\x8ta\x8ai\x8il\x8l·is·“data/file.ext”,·then·after·the134 For·example,·if·h\x8he\x8ea\x8ad\x8d·is·“/anchor/”·and·t\x8ta\x8ai\x8il\x8l·is·“data/file.ext”,·then·after·the
135 call·t\x8ta\x8ai\x8il\x8l·becomes·“/anchor/data/file.ext”.135 call·t\x8ta\x8ai\x8il\x8l·becomes·“/anchor/data/file.ext”.
136 See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8p_\x8a_\x8t_\x8h_\x8s136 See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8p_\x8a_\x8t_\x8h_\x8s
137 Examples:137 Examples:
138 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c 
139 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p138 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p
 139 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c
140 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_d\x8dr\x8ri\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*140 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_d\x8dr\x8ri\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
141 const·char·*al_get_path_drive(const·ALLEGRO_PATH·*path)141 const·char·*al_get_path_drive(const·ALLEGRO_PATH·*path)
142 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e142 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
143 Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is·none.143 Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is·none.
144 The·“drive·letter”·is·only·used·on·Windows,·and·is·usually·a·string·like·“c:”,144 The·“drive·letter”·is·only·used·on·Windows,·and·is·usually·a·string·like·“c:”,
145 but·may·be·something·like·“\\Computer·Name”·in·the·case·of·UNC·(Uniform·Naming145 but·may·be·something·like·“\\Computer·Name”·in·the·case·of·UNC·(Uniform·Naming
146 Convention)·syntax.146 Convention)·syntax.
Offset 162, 16 lines modifiedOffset 162, 16 lines modified
162 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e162 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
163 Return·the·i’th·directory·component·of·a·path,·counting·from·zero.·If·the·index163 Return·the·i’th·directory·component·of·a·path,·counting·from·zero.·If·the·index
164 is·negative·then·count·from·the·right,·i.e. -1·refers·to·the·last·path164 is·negative·then·count·from·the·right,·i.e. -1·refers·to·the·last·path
165 component.·It·is·an·error·to·pass·an·index·which·is·out·of·bounds.165 component.·It·is·an·error·to·pass·an·index·which·is·out·of·bounds.
166 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8n_\x8u_\x8m_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l166 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8n_\x8u_\x8m_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l
167 Examples:167 Examples:
168 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c168 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c
169 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c 
170 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p169 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p
 170 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c
171 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*171 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*
172 const·char·*al_get_path_tail(const·ALLEGRO_PATH·*path)172 const·char·*al_get_path_tail(const·ALLEGRO_PATH·*path)
173 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e173 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
174 Returns·the·last·directory·component,·or·NULL·if·there·are·no·directory174 Returns·the·last·directory·component,·or·NULL·if·there·are·no·directory
175 components.175 components.
176 Examples:176 Examples:
177 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c177 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c
Offset 248, 16 lines modifiedOffset 248, 16 lines modified
248 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e248 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
249 Delete·the·i’th·directory·component.·If·the·index·is·negative·then·count·from249 Delete·the·i’th·directory·component.·If·the·index·is·negative·then·count·from
250 the·right,·i.e. -1·refers·to·the·last·path·component.·It·is·an·error·to·pass·an250 the·right,·i.e. -1·refers·to·the·last·path·component.·It·is·an·error·to·pass·an
251 index·which·is·out·of·bounds.251 index·which·is·out·of·bounds.
252 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8e_\x8r_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8p_\x8l_\x8a_\x8c_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t,252 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8e_\x8r_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8p_\x8l_\x8a_\x8c_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t,
253 _\x8a_\x8l_\x8__\x8d_\x8r_\x8o_\x8p_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l253 _\x8a_\x8l_\x8__\x8d_\x8r_\x8o_\x8p_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l
254 Examples:254 Examples:
255 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c 
256 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p255 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p
 256 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c
257 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ro\x8op\x8p_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*257 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ro\x8op\x8p_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8*
258 void·al_drop_path_tail(ALLEGRO_PATH·*path)258 void·al_drop_path_tail(ALLEGRO_PATH·*path)
259 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e259 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
260 Remove·the·last·directory·component,·if·any.260 Remove·the·last·directory·component,·if·any.
261 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t261 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t
262 Examples:262 Examples:
263 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c263 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c
2.21 KB
./usr/share/doc/allegro5-doc/refman/physfs.html
    
Offset 224, 19 lines modifiedOffset 224, 14 lines modified
224 <blockquote>224 <blockquote>
225 <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and225 <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and
226 writing,·which·means·that·Windows-style·newlines·will·not·be226 writing,·which·means·that·Windows-style·newlines·will·not·be
227 preserved.</p>227 preserved.</p>
228 </blockquote>228 </blockquote>
229 <p>See·also:·<a229 <p>See·also:·<a
230 href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p>230 href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p>
231 <p>Examples:</p> 
232 <ul> 
233 <li><a 
234 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L149">ex_physfs.c</a></li> 
235 </ul> 
236 <h1231 <h1
237 id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1>232 id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1>
238 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>233 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
239 <p><a234 <p><a
240 href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source235 href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source
241 Code</a></p>236 Code</a></p>
242 <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a237 <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a
1.12 KB
html2text {}
    
Offset 70, 15 lines modifiedOffset 70, 13 lines modified
70 _\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e.70 _\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e.
71 ·····N\x8No\x8ot\x8te\x8e:\x8:·due·to·an·oversight,·this·function·differs·from71 ·····N\x8No\x8ot\x8te\x8e:\x8:·due·to·an·oversight,·this·function·differs·from
72 ·····_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e·and·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e·which72 ·····_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e·and·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e·which
73 ·····only·alter·the·current·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E.73 ·····only·alter·the·current·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E.
74 ·····N\x8No\x8ot\x8te\x8e:\x8:·PhysFS·does·not·support·the·text-mode·reading·and·writing,74 ·····N\x8No\x8ot\x8te\x8e:\x8:·PhysFS·does·not·support·the·text-mode·reading·and·writing,
75 ·····which·means·that·Windows-style·newlines·will·not·be·preserved.75 ·····which·means·that·Windows-style·newlines·will·not·be·preserved.
76 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e.76 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e.
77 Examples: 
78 ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c 
79 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_p\x8ph\x8hy\x8ys\x8sf\x8fs\x8s_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*77 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_p\x8ph\x8hy\x8ys\x8sf\x8fs\x8s_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
80 uint32_t·al_get_allegro_physfs_version(void)78 uint32_t·al_get_allegro_physfs_version(void)
81 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e79 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
82 Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as80 Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as
83 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n.81 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n.
84 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC82 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC
94.9 KB
./usr/share/doc/allegro5-doc/refman/primitives.html
    
Offset 343, 23 lines modifiedOffset 343, 14 lines modified
343 <p><a343 <p><a
344 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L48">Source344 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L48">Source
345 Code</a></p>345 Code</a></p>
346 <p>Initializes·the·primitives·addon.</p>346 <p>Initializes·the·primitives·addon.</p>
347 <p><em>Returns:</em>·True·on·success,·false·on·failure.</p>347 <p><em>Returns:</em>·True·on·success,·false·on·failure.</p>
348 <p>See·also:·<a348 <p>See·also:·<a
349 href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p>349 href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p>
350 <p>Examples:</p> 
351 <ul> 
352 <li><a 
353 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L55">ex_touch_input.c</a></li> 
354 <li><a 
355 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L154">ex_blend_bench.c</a></li> 
356 <li><a 
357 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_client.c#L157">ex_enet_client.c</a></li> 
358 </ul> 
359 <h2350 <h2
360 id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2>351 id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2>
361 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_primitives_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>352 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_primitives_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
362 <p><a353 <p><a
363 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source354 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source
364 Code</a></p>355 Code</a></p>
365 <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise356 <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise
Offset 483, 23 lines modifiedOffset 474, 14 lines modified
483 <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li>474 <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li>
484 <li>color·-·Color·of·the·line</li>475 <li>color·-·Color·of·the·line</li>
485 <li>thickness·-·Thickness·of·the·line,·pass·<code>&lt;=·0</code>·to·draw476 <li>thickness·-·Thickness·of·the·line,·pass·<code>&lt;=·0</code>·to·draw
486 hairline·lines</li>477 hairline·lines</li>
487 </ul>478 </ul>
488 <p>See·also:·<a479 <p>See·also:·<a
489 href="primitives.html#al_draw_soft_line">al_draw_soft_line</a></p>480 href="primitives.html#al_draw_soft_line">al_draw_soft_line</a></p>
490 <p>Examples:</p> 
491 <ul> 
492 <li><a 
493 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L85">ex_font_justify.cpp</a></li> 
494 <li><a 
495 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L17">ex_resize.c</a></li> 
496 <li><a 
497 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L59">ex_mouse_warp.c</a></li> 
498 </ul> 
499 <h2·id="al_draw_triangle">al_draw_triangle</h2>481 <h2·id="al_draw_triangle">al_draw_triangle</h2>
500 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span>482 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span>
501 <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·x3<span·class="op">,</span>·<span·class="dt">float</span>·y3<span·class="op">,</span>·ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·thickness<span·class="op">)</span></span></code></pre></div>483 <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·x3<span·class="op">,</span>·<span·class="dt">float</span>·y3<span·class="op">,</span>·ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·thickness<span·class="op">)</span></span></code></pre></div>
502 <p><a484 <p><a
503 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L126">Source485 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L126">Source
504 Code</a></p>486 Code</a></p>
505 <p>Draws·an·outlined·triangle.</p>487 <p>Draws·an·outlined·triangle.</p>
Offset 510, 38 lines modifiedOffset 492, 28 lines modified
510 <li>thickness·-·Thickness·of·the·lines,·pass·<code>&lt;=·0</code>·to492 <li>thickness·-·Thickness·of·the·lines,·pass·<code>&lt;=·0</code>·to
511 draw·hairline·lines</li>493 draw·hairline·lines</li>
512 </ul>494 </ul>
513 <p>See·also:·<a495 <p>See·also:·<a
514 href="primitives.html#al_draw_filled_triangle">al_draw_filled_triangle</a>,496 href="primitives.html#al_draw_filled_triangle">al_draw_filled_triangle</a>,
515 <a497 <a
516 href="primitives.html#al_draw_soft_triangle">al_draw_soft_triangle</a></p>498 href="primitives.html#al_draw_soft_triangle">al_draw_soft_triangle</a></p>
517 <p>Examples:</p> 
518 <ul> 
519 <li><a 
520 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L321">ex_prim.c</a></li> 
521 </ul> 
522 <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2>499 <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2>
523 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_filled_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span>500 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_filled_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span>
524 <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·x3<span·class="op">,</span>·<span·class="dt">float</span>·y3<span·class="op">,</span>·ALLEGRO_COLOR·color<span·class="op">)</span></span></code></pre></div>501 <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·x3<span·class="op">,</span>·<span·class="dt">float</span>·y3<span·class="op">,</span>·ALLEGRO_COLOR·color<span·class="op">)</span></span></code></pre></div>
525 <p><a502 <p><a
526 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L339">Source503 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L339">Source
527 Code</a></p>504 Code</a></p>
528 <p>Draws·a·filled·triangle.</p>505 <p>Draws·a·filled·triangle.</p>
529 <p><em>Parameters:</em></p>506 <p><em>Parameters:</em></p>
530 <ul>507 <ul>
531 <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li>508 <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li>
532 <li>color·-·Color·of·the·triangle</li>509 <li>color·-·Color·of·the·triangle</li>
533 </ul>510 </ul>
534 <p>See·also:·<a511 <p>See·also:·<a
535 href="primitives.html#al_draw_triangle">al_draw_triangle</a></p>512 href="primitives.html#al_draw_triangle">al_draw_triangle</a></p>
536 <p>Examples:</p> 
537 <ul> 
538 <li><a 
539 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L350">ex_prim.c</a></li> 
540 </ul> 
541 <h2·id="al_draw_rectangle">al_draw_rectangle</h2>513 <h2·id="al_draw_rectangle">al_draw_rectangle</h2>
542 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span>514 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span>
543 <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·thickness<span·class="op">)</span></span></code></pre></div>515 <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·thickness<span·class="op">)</span></span></code></pre></div>
544 <p><a516 <p><a
545 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L361">Source517 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L361">Source
546 Code</a></p>518 Code</a></p>
547 <p>Draws·an·outlined·rectangle.</p>519 <p>Draws·an·outlined·rectangle.</p>
Offset 553, 23 lines modifiedOffset 525, 14 lines modified
553 <li>thickness·-·Thickness·of·the·lines,·pass·<code>&lt;=·0</code>·to525 <li>thickness·-·Thickness·of·the·lines,·pass·<code>&lt;=·0</code>·to
554 draw·hairline·lines</li>526 draw·hairline·lines</li>
555 </ul>527 </ul>
556 <p>See·also:·<a528 <p>See·also:·<a
557 href="primitives.html#al_draw_filled_rectangle">al_draw_filled_rectangle</a>,529 href="primitives.html#al_draw_filled_rectangle">al_draw_filled_rectangle</a>,
558 <a530 <a
559 href="primitives.html#al_draw_rounded_rectangle">al_draw_rounded_rectangle</a></p>531 href="primitives.html#al_draw_rounded_rectangle">al_draw_rounded_rectangle</a></p>
560 <p>Examples:</p> 
561 <ul> 
562 <li><a 
563 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L24">ex_mouse.c</a></li> 
564 <li><a 
565 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L83">ex_font_justify.cpp</a></li> 
566 <li><a 
567 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_subbitmap.c#L206">ex_subbitmap.c</a></li> 
568 </ul> 
569 <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2>532 <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2>
570 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_filled_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span>533 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_filled_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span>
571 <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">)</span></span></code></pre></div>534 <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">)</span></span></code></pre></div>
572 <p><a535 <p><a
573 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L406">Source536 href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L406">Source
574 Code</a></p>537 Code</a></p>
575 <p>Draws·a·filled·rectangle.</p>538 <p>Draws·a·filled·rectangle.</p>
Offset 578, 23 lines modifiedOffset 541, 14 lines modified
578 <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the541 <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the
579 rectangle</li>542 rectangle</li>
580 <li>color·-·Color·of·the·rectangle</li>543 <li>color·-·Color·of·the·rectangle</li>
581 </ul>544 </ul>
582 <p>See·also:·<a545 <p>See·also:·<a
583 href="primitives.html#al_draw_rectangle">al_draw_rectangle</a>,·<a546 href="primitives.html#al_draw_rectangle">al_draw_rectangle</a>,·<a
584 href="primitives.html#al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</a></p>547 href="primitives.html#al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</a></p>
585 <p>Examples:</p> 
586 <ul> 
587 <li><a 
588 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L23">ex_mouse.c</a></li> 
589 <li><a 
590 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer.c#L91">ex_timer.c</a></li> 
591 <li><a 
592 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L103">ex_window_maximized.c</a></li> 
593 </ul> 
Max diff block lines reached; 52905/60937 bytes (86.82%) of diff not shown.
35.3 KB
html2text {}
    
Offset 123, 18 lines modifiedOffset 123, 14 lines modified
123 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n.123 _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n.
124 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*124 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*
125 bool·al_init_primitives_addon(void)125 bool·al_init_primitives_addon(void)
126 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e126 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
127 Initializes·the·primitives·addon.127 Initializes·the·primitives·addon.
128 R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·True·on·success,·false·on·failure.128 R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·True·on·success,·false·on·failure.
129 See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n129 See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n
130 Examples: 
131 ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c 
132 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c 
133 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8._\x8c 
134 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8*130 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8*
135 bool·al_is_primitives_addon_initialized(void)131 bool·al_is_primitives_addon_initialized(void)
136 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e132 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
137 Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false.133 Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false.
138 Since:·5.2.6134 Since:·5.2.6
139 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n135 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n
140 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*136 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8*
Offset 229, 97 lines modifiedOffset 225, 73 lines modified
229 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e225 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
230 Draws·a·line·segment·between·two·points.226 Draws·a·line·segment·between·two·points.
231 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:227 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
232 ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line228 ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line
233 ····*·color·-·Color·of·the·line229 ····*·color·-·Color·of·the·line
234 ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines230 ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines
235 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8l_\x8i_\x8n_\x8e231 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8l_\x8i_\x8n_\x8e
236 Examples: 
237 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p 
238 ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x8._\x8c 
239 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c 
240 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_t\x8tr\x8ri\x8ia\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*232 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_t\x8tr\x8ri\x8ia\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*
241 void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2,233 void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2,
242 ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness)234 ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness)
243 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e235 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
244 Draws·an·outlined·triangle.236 Draws·an·outlined·triangle.
245 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:237 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
246 ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle238 ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle
247 ····*·color·-·Color·of·the·triangle239 ····*·color·-·Color·of·the·triangle
248 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines240 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines
249 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e241 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e
250 Examples: 
251 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c 
252 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_t\x8tr\x8ri\x8ia\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*242 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_t\x8tr\x8ri\x8ia\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*
253 void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2,243 void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2,
254 ···float·x3,·float·y3,·ALLEGRO_COLOR·color)244 ···float·x3,·float·y3,·ALLEGRO_COLOR·color)
255 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e245 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
256 Draws·a·filled·triangle.246 Draws·a·filled·triangle.
257 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:247 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
258 ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle248 ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle
259 ····*·color·-·Color·of·the·triangle249 ····*·color·-·Color·of·the·triangle
260 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e250 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e
261 Examples: 
262 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c 
263 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*251 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*
264 void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2,252 void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2,
265 ···ALLEGRO_COLOR·color,·float·thickness)253 ···ALLEGRO_COLOR·color,·float·thickness)
266 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e254 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
267 Draws·an·outlined·rectangle.255 Draws·an·outlined·rectangle.
268 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:256 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
269 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle257 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle
270 ····*·color·-·Color·of·the·rectangle258 ····*·color·-·Color·of·the·rectangle
271 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines259 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines
272 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e260 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e
273 Examples: 
274 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c 
275 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p 
276 ····*·_\x8e_\x8x_\x8__\x8s_\x8u_\x8b_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c 
277 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*261 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*
278 void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2,262 void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2,
279 ···ALLEGRO_COLOR·color)263 ···ALLEGRO_COLOR·color)
280 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e264 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
281 Draws·a·filled·rectangle.265 Draws·a·filled·rectangle.
282 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:266 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
283 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle267 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle
284 ····*·color·-·Color·of·the·rectangle268 ····*·color·-·Color·of·the·rectangle
285 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e269 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e
286 Examples: 
287 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c 
288 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c 
289 ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8m_\x8a_\x8x_\x8i_\x8m_\x8i_\x8z_\x8e_\x8d_\x8._\x8c 
290 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_r\x8ro\x8ou\x8un\x8nd\x8de\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*270 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_r\x8ro\x8ou\x8un\x8nd\x8de\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*
291 void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2,271 void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2,
292 ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness)272 ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness)
293 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e273 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
294 Draws·an·outlined·rounded·rectangle.274 Draws·an·outlined·rounded·rectangle.
295 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:275 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
296 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle276 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle
297 ····*·color·-·Color·of·the·rectangle277 ····*·color·-·Color·of·the·rectangle
298 ····*·rx,·ry·-·The·radii·of·the·round278 ····*·rx,·ry·-·The·radii·of·the·round
299 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines279 ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines
300 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e280 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e
301 Examples: 
302 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c 
303 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c 
304 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p 
305 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_r\x8ro\x8ou\x8un\x8nd\x8de\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*281 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_r\x8ro\x8ou\x8un\x8nd\x8de\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8*
306 void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2,282 void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2,
307 ···float·rx,·float·ry,·ALLEGRO_COLOR·color)283 ···float·rx,·float·ry,·ALLEGRO_COLOR·color)
308 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e284 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
309 Draws·an·filled·rounded·rectangle.285 Draws·an·filled·rounded·rectangle.
310 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:286 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
311 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle287 ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle
312 ····*·color·-·Color·of·the·rectangle288 ····*·color·-·Color·of·the·rectangle
313 ····*·rx,·ry·-·The·radii·of·the·round289 ····*·rx,·ry·-·The·radii·of·the·round
314 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e290 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e
315 Examples: 
316 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c 
317 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
318 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c 
319 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8ca\x8al\x8lc\x8cu\x8ul\x8la\x8at\x8te\x8e_\x8_a\x8ar\x8rc\x8c·*\x8**\x8**\x8**\x8**\x8*291 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8ca\x8al\x8lc\x8cu\x8ul\x8la\x8at\x8te\x8e_\x8_a\x8ar\x8rc\x8c·*\x8**\x8**\x8**\x8**\x8*
320 void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy,292 void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy,
321 ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness,293 ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness,
322 ···int·num_points)294 ···int·num_points)
323 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e295 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
324 When·thickness·<=·0·this·function·computes·positions·of·num_points·regularly296 When·thickness·<=·0·this·function·computes·positions·of·num_points·regularly
325 spaced·points·on·an·elliptical·arc.·When·thickness·>·0·this·function·computes297 spaced·points·on·an·elliptical·arc.·When·thickness·>·0·this·function·computes
Offset 371, 16 lines modifiedOffset 343, 14 lines modified
371 ····*·start_theta·-·The·initial·angle·from·which·the·arc·is·calculated·in343 ····*·start_theta·-·The·initial·angle·from·which·the·arc·is·calculated·in
372 ······radians344 ······radians
373 ····*·delta_theta·-·Angular·span·of·the·arc·in·radians·(pass·a·negative·number345 ····*·delta_theta·-·Angular·span·of·the·arc·in·radians·(pass·a·negative·number
374 ······to·switch·direction)346 ······to·switch·direction)
375 ····*·thickness·-·Thickness·of·the·arc347 ····*·thickness·-·Thickness·of·the·arc
376 ····*·num_points·-·The·number·of·points·to·calculate348 ····*·num_points·-·The·number·of·points·to·calculate
377 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8a_\x8r_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8c_\x8u_\x8l_\x8a_\x8t_\x8e_\x8__\x8s_\x8p_\x8l_\x8i_\x8n_\x8e,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8c_\x8u_\x8l_\x8a_\x8t_\x8e_\x8__\x8r_\x8i_\x8b_\x8b_\x8o_\x8n349 See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8a_\x8r_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8c_\x8u_\x8l_\x8a_\x8t_\x8e_\x8__\x8s_\x8p_\x8l_\x8i_\x8n_\x8e,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8c_\x8u_\x8l_\x8a_\x8t_\x8e_\x8__\x8r_\x8i_\x8b_\x8b_\x8o_\x8n
378 Examples: 
379 ····*·_\x8e_\x8x_\x8__\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8._\x8c 
380 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_p\x8pi\x8ie\x8es\x8sl\x8li\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8*350 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_p\x8pi\x8ie\x8es\x8sl\x8li\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8*
Max diff block lines reached; 28787/36121 bytes (79.70%) of diff not shown.
8.17 KB
./usr/share/doc/allegro5-doc/refman/shader.html
    
Offset 229, 23 lines modifiedOffset 229, 14 lines modified
229 <em>program</em>·which·has·one·or·more·<em>shaders</em>·attached.·This229 <em>program</em>·which·has·one·or·more·<em>shaders</em>·attached.·This
230 can·be·confusing.)</p>230 can·be·confusing.)</p>
231 <p>The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be231 <p>The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be
232 provided·either·as·GLSL·or·HLSL,·depending·on·the·value·of·<a232 provided·either·as·GLSL·or·HLSL,·depending·on·the·value·of·<a
233 href="shader.html#allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</a>233 href="shader.html#allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</a>
234 used·when·creating·it.</p>234 used·when·creating·it.</p>
235 <p>Since:·5.1.0</p>235 <p>Since:·5.1.0</p>
236 <p>Examples:</p> 
237 <ul> 
238 <li><a 
239 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L39">ex_shader.cpp</a></li> 
240 <li><a 
241 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L22">ex_shader_target.c</a></li> 
242 <li><a 
243 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L60">ex_prim_shader.c</a></li> 
244 </ul> 
245 <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1>236 <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1>
246 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE<span·class="op">;</span></span></code></pre></div>237 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE<span·class="op">;</span></span></code></pre></div>
247 <p><a238 <p><a
248 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source239 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source
249 Code</a></p>240 Code</a></p>
250 <p>Used·with·<a241 <p>Used·with·<a
251 href="shader.html#al_attach_shader_source">al_attach_shader_source</a>242 href="shader.html#al_attach_shader_source">al_attach_shader_source</a>
Offset 293, 21 lines modifiedOffset 284, 14 lines modified
293 more·minimal·implementation·that·may·not·support·alpha·testing.</li>284 more·minimal·implementation·that·may·not·support·alpha·testing.</li>
294 <li>ALLEGRO_SHADER_GLSL_MINIMAL·-·Minimal·GLSL·shader.</li>285 <li>ALLEGRO_SHADER_GLSL_MINIMAL·-·Minimal·GLSL·shader.</li>
295 <li>ALLEGRO_SHADER_HLSL_MINIMAL·-·Minimal·HLSL·shader.</li>286 <li>ALLEGRO_SHADER_HLSL_MINIMAL·-·Minimal·HLSL·shader.</li>
296 <li>ALLEGRO_SHADER_HLSL_SM_3_0·-·HLSL·shader·using·shader·model287 <li>ALLEGRO_SHADER_HLSL_SM_3_0·-·HLSL·shader·using·shader·model
297 3_0.</li>288 3_0.</li>
298 </ul>289 </ul>
299 <p>Since:·5.1.0</p>290 <p>Since:·5.1.0</p>
300 <p>Examples:</p> 
301 <ul> 
302 <li><a 
303 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L42">ex_shader.cpp</a></li> 
304 <li><a 
305 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L22">ex_shader_target.c</a></li> 
306 </ul> 
307 <h1·id="al_create_shader">al_create_shader</h1>291 <h1·id="al_create_shader">al_create_shader</h1>
308 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_SHADER·<span·class="op">*</span>al_create_shader<span·class="op">(</span>ALLEGRO_SHADER_PLATFORM·platform<span·class="op">)</span></span></code></pre></div>292 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_SHADER·<span·class="op">*</span>al_create_shader<span·class="op">(</span>ALLEGRO_SHADER_PLATFORM·platform<span·class="op">)</span></span></code></pre></div>
309 <p><a293 <p><a
310 href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L58">Source294 href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L58">Source
311 Code</a></p>295 Code</a></p>
312 <p>Create·a·shader·object.</p>296 <p>Create·a·shader·object.</p>
313 <p>The·platform·argument·is·one·of·the·<a297 <p>The·platform·argument·is·one·of·the·<a
Offset 685, 17 lines modifiedOffset 669, 17 lines modified
685 <p>Since:·5.1.0</p>669 <p>Since:·5.1.0</p>
686 <p>See·also:·<a·href="shader.html#al_use_shader">al_use_shader</a></p>670 <p>See·also:·<a·href="shader.html#al_use_shader">al_use_shader</a></p>
687 <p>Examples:</p>671 <p>Examples:</p>
688 <ul>672 <ul>
689 <li><a673 <li><a
690 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_multitex.c#L123">ex_shader_multitex.c</a></li>674 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_multitex.c#L123">ex_shader_multitex.c</a></li>
691 <li><a675 <li><a
692 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L130">ex_palette.c</a></li> 
693 <li><a 
694 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L279">ex_prim_wrap.c</a></li>676 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L279">ex_prim_wrap.c</a></li>
 677 <li><a
 678 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L130">ex_palette.c</a></li>
695 </ul>679 </ul>
696 <h1·id="al_set_shader_matrix">al_set_shader_matrix</h1>680 <h1·id="al_set_shader_matrix">al_set_shader_matrix</h1>
697 <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_shader_matrix<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>name<span·class="op">,</span></span>681 <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_shader_matrix<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>name<span·class="op">,</span></span>
698 <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>matrix<span·class="op">)</span></span></code></pre></div>682 <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>matrix<span·class="op">)</span></span></code></pre></div>
699 <p><a683 <p><a
700 href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L291">Source684 href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L291">Source
701 Code</a></p>685 Code</a></p>
Offset 812, 17 lines modifiedOffset 796, 17 lines modified
812 <p>See·also:·<a796 <p>See·also:·<a
813 href="shader.html#al_attach_shader_source">al_attach_shader_source</a></p>797 href="shader.html#al_attach_shader_source">al_attach_shader_source</a></p>
814 <p>Examples:</p>798 <p>Examples:</p>
815 <ul>799 <ul>
816 <li><a800 <li><a
817 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_multitex.c#L73">ex_shader_multitex.c</a></li>801 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_multitex.c#L73">ex_shader_multitex.c</a></li>
818 <li><a802 <li><a
819 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L112">ex_palette.c</a></li> 
820 <li><a 
821 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L188">ex_prim_wrap.c</a></li>803 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L188">ex_prim_wrap.c</a></li>
 804 <li><a
 805 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L112">ex_palette.c</a></li>
822 </ul>806 </ul>
823 <p·class="timestamp">807 <p·class="timestamp">
824 Allegro·version·5.2.10808 Allegro·version·5.2.10
825 ·-·Last·updated:·2024-11-29·14:21:22·UTC809 ·-·Last·updated:·2024-11-29·14:21:22·UTC
826 </p>810 </p>
827 </div>811 </div>
828 </body>812 </body>
3.64 KB
html2text {}
    
Offset 71, 18 lines modifiedOffset 71, 14 lines modified
71 An·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex71 An·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex
72 and·a·pixel·shader.·(In·OpenGL·terms,·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·actually·a·p\x8pr\x8ro\x8og\x8gr\x8ra\x8am\x8m72 and·a·pixel·shader.·(In·OpenGL·terms,·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·actually·a·p\x8pr\x8ro\x8og\x8gr\x8ra\x8am\x8m
73 which·has·one·or·more·s\x8sh\x8ha\x8ad\x8de\x8er\x8rs\x8s·attached.·This·can·be·confusing.)73 which·has·one·or·more·s\x8sh\x8ha\x8ad\x8de\x8er\x8rs\x8s·attached.·This·can·be·confusing.)
74 The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be·provided74 The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be·provided
75 either·as·GLSL·or·HLSL,·depending·on·the·value·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M·used75 either·as·GLSL·or·HLSL,·depending·on·the·value·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M·used
76 when·creating·it.76 when·creating·it.
77 Since:·5.1.077 Since:·5.1.0
78 Examples: 
79 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p 
80 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c 
81 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c 
82 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*78 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8*
83 typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE;79 typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE;
84 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e80 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
85 Used·with·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·and·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e·to·specify81 Used·with·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·and·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e·to·specify
86 how·to·interpret·the·attached·source.82 how·to·interpret·the·attached·source.
87 ··ALLEGRO_VERTEX_SHADER83 ··ALLEGRO_VERTEX_SHADER
88 ······A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program84 ······A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program
Offset 113, 17 lines modifiedOffset 109, 14 lines modified
113 ····*·ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D)109 ····*·ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D)
114 ····*·ALLEGRO_SHADER_AUTO_MINIMAL·-·Like·ALLEGRO_SHADER_AUTO,·but·pick·a·more110 ····*·ALLEGRO_SHADER_AUTO_MINIMAL·-·Like·ALLEGRO_SHADER_AUTO,·but·pick·a·more
115 ······minimal·implementation·that·may·not·support·alpha·testing.111 ······minimal·implementation·that·may·not·support·alpha·testing.
116 ····*·ALLEGRO_SHADER_GLSL_MINIMAL·-·Minimal·GLSL·shader.112 ····*·ALLEGRO_SHADER_GLSL_MINIMAL·-·Minimal·GLSL·shader.
117 ····*·ALLEGRO_SHADER_HLSL_MINIMAL·-·Minimal·HLSL·shader.113 ····*·ALLEGRO_SHADER_HLSL_MINIMAL·-·Minimal·HLSL·shader.
118 ····*·ALLEGRO_SHADER_HLSL_SM_3_0·-·HLSL·shader·using·shader·model·3_0.114 ····*·ALLEGRO_SHADER_HLSL_SM_3_0·-·HLSL·shader·using·shader·model·3_0.
119 Since:·5.1.0115 Since:·5.1.0
120 Examples: 
121 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p 
122 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c 
123 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8*116 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8*
124 ALLEGRO_SHADER·*al_create_shader(ALLEGRO_SHADER_PLATFORM·platform)117 ALLEGRO_SHADER·*al_create_shader(ALLEGRO_SHADER_PLATFORM·platform)
125 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e118 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
126 Create·a·shader·object.119 Create·a·shader·object.
127 The·platform·argument·is·one·of·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M·values,·and120 The·platform·argument·is·one·of·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M·values,·and
128 specifies·the·type·of·shader·object·to·create,·and·which·language·is·used·to121 specifies·the·type·of·shader·object·to·create,·and·which·language·is·used·to
129 program·the·shader.122 program·the·shader.
Offset 339, 16 lines modifiedOffset 332, 16 lines modified
339 thus·not·use·al_tex·(the·al_use_tex·variable·will·be·set·to·false).332 thus·not·use·al_tex·(the·al_use_tex·variable·will·be·set·to·false).
340 Returns·true·on·success.·Otherwise·returns·false,·e.g. if·the·uniform·by·that333 Returns·true·on·success.·Otherwise·returns·false,·e.g. if·the·uniform·by·that
341 name·does·not·exist·in·the·shader.334 name·does·not·exist·in·the·shader.
342 Since:·5.1.0335 Since:·5.1.0
343 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r336 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r
344 Examples:337 Examples:
345 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8t_\x8e_\x8x_\x8._\x8c338 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8t_\x8e_\x8x_\x8._\x8c
346 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c 
347 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c339 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c
 340 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c
348 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_m\x8ma\x8at\x8tr\x8ri\x8ix\x8x·*\x8**\x8**\x8**\x8**\x8**\x8*341 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_m\x8ma\x8at\x8tr\x8ri\x8ix\x8x·*\x8**\x8**\x8**\x8**\x8**\x8*
349 bool·al_set_shader_matrix(const·char·*name,342 bool·al_set_shader_matrix(const·char·*name,
350 ···const·ALLEGRO_TRANSFORM·*matrix)343 ···const·ALLEGRO_TRANSFORM·*matrix)
351 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e344 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
352 Sets·a·matrix·uniform·of·the·current·target·bitmap’s·shader.345 Sets·a·matrix·uniform·of·the·current·target·bitmap’s·shader.
353 Returns·true·on·success.·Otherwise·returns·false,·e.g. if·the·uniform·by·that346 Returns·true·on·success.·Otherwise·returns·false,·e.g. if·the·uniform·by·that
354 name·does·not·exist·in·the·shader.347 name·does·not·exist·in·the·shader.
Offset 427, 10 lines modifiedOffset 420, 10 lines modified
427 requires·that·there·is·a·current·display·set·on·the·calling·thread.·This420 requires·that·there·is·a·current·display·set·on·the·calling·thread.·This
428 function·can·return·NULL·if·Allegro·was·built·without·support·for·shaders·of421 function·can·return·NULL·if·Allegro·was·built·without·support·for·shaders·of
429 the·selected·platform.422 the·selected·platform.
430 Since:·5.1.6423 Since:·5.1.6
431 See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e424 See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
432 Examples:425 Examples:
433 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8t_\x8e_\x8x_\x8._\x8c426 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8t_\x8e_\x8x_\x8._\x8c
434 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c 
435 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c427 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c
 428 ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c
436 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC429 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC
2.59 KB
./usr/share/doc/allegro5-doc/refman/state.html
    
Offset 218, 23 lines modifiedOffset 218, 14 lines modified
218 All·other·global·state·is·per-thread,·so·if·your·application·has218 All·other·global·state·is·per-thread,·so·if·your·application·has
219 multiple·separate·threads·they·never·will·interfere·with·each·other.219 multiple·separate·threads·they·never·will·interfere·with·each·other.
220 (Except·if·there·are·objects·accessed·by·multiple·threads·of·course.220 (Except·if·there·are·objects·accessed·by·multiple·threads·of·course.
221 Usually·you·want·to·minimize·that·though·and·for·the·remaining·cases·use221 Usually·you·want·to·minimize·that·though·and·for·the·remaining·cases·use
222 synchronization·primitives·described·in·the·threads·section·or·events222 synchronization·primitives·described·in·the·threads·section·or·events
223 described·in·the·events·section·to·control·inter-thread223 described·in·the·events·section·to·control·inter-thread
224 communication.)</p>224 communication.)</p>
225 <p>Examples:</p> 
226 <ul> 
227 <li><a 
228 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L65">ex_blend_bench.c</a></li> 
229 <li><a 
230 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L298">ex_blend2.cpp</a></li> 
231 <li><a 
232 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L24">nihgui.cpp</a></li> 
233 </ul> 
234 <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1>225 <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1>
235 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</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="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</span></code></pre></div>
236 <p><a227 <p><a
237 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source228 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source
238 Code</a></p>229 Code</a></p>
239 <p>Flags·which·can·be·passed·to·<a230 <p>Flags·which·can·be·passed·to·<a
240 href="state.html#al_store_state">al_store_state</a>/<a231 href="state.html#al_store_state">al_store_state</a>/<a
1.18 KB
html2text {}
    
Offset 76, 18 lines modifiedOffset 76, 14 lines modified
76 In·general,·the·only·real·global·state·is·the·active·system·driver.·All·other76 In·general,·the·only·real·global·state·is·the·active·system·driver.·All·other
77 global·state·is·per-thread,·so·if·your·application·has·multiple·separate77 global·state·is·per-thread,·so·if·your·application·has·multiple·separate
78 threads·they·never·will·interfere·with·each·other.·(Except·if·there·are·objects78 threads·they·never·will·interfere·with·each·other.·(Except·if·there·are·objects
79 accessed·by·multiple·threads·of·course.·Usually·you·want·to·minimize·that79 accessed·by·multiple·threads·of·course.·Usually·you·want·to·minimize·that
80 though·and·for·the·remaining·cases·use·synchronization·primitives·described·in80 though·and·for·the·remaining·cases·use·synchronization·primitives·described·in
81 the·threads·section·or·events·described·in·the·events·section·to·control·inter-81 the·threads·section·or·events·described·in·the·events·section·to·control·inter-
82 thread·communication.)82 thread·communication.)
83 Examples: 
84 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c 
85 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x82_\x8._\x8c_\x8p_\x8p 
86 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p 
87 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E_\x8_F\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*83 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E_\x8_F\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*
88 typedef·enum·ALLEGRO_STATE_FLAGS84 typedef·enum·ALLEGRO_STATE_FLAGS
89 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e85 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
90 Flags·which·can·be·passed·to·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e/_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·as·bit86 Flags·which·can·be·passed·to·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e/_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·as·bit
91 combinations.·See·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·for·the·list·of·flags.87 combinations.·See·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·for·the·list·of·flags.
92 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*88 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
93 void·al_restore_state(ALLEGRO_STATE·const·*state)89 void·al_restore_state(ALLEGRO_STATE·const·*state)
4.72 KB
./usr/share/doc/allegro5-doc/refman/system.html
    
Offset 248, 23 lines modifiedOffset 248, 14 lines modified
248 game·binary.·In·particular,·do·not·call·it·inside·a·shared·library248 game·binary.·In·particular,·do·not·call·it·inside·a·shared·library
249 unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to·call249 unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to·call
250 al_install_system·either·with·a·<code>NULL</code>·atexit_ptr,·or·with·a250 al_install_system·either·with·a·<code>NULL</code>·atexit_ptr,·or·with·a
251 pointer·to·atexit·provided·by·the·user·of·this·shared·library.</p>251 pointer·to·atexit·provided·by·the·user·of·this·shared·library.</p>
252 </blockquote>252 </blockquote>
253 <p>See·also:·<a253 <p>See·also:·<a
254 href="system.html#al_install_system">al_install_system</a></p>254 href="system.html#al_install_system">al_install_system</a></p>
255 <p>Examples:</p> 
256 <ul> 
257 <li><a 
258 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_devices.c#L16">ex_audio_devices.c</a></li> 
259 <li><a 
260 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L30">ex_get_path.c</a></li> 
261 <li><a 
262 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L15">ex_monitorinfo.c</a></li> 
263 </ul> 
264 <h1·id="al_uninstall_system">al_uninstall_system</h1>255 <h1·id="al_uninstall_system">al_uninstall_system</h1>
265 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_system<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>256 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_system<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
266 <p><a257 <p><a
267 href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L316">Source258 href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L316">Source
268 Code</a></p>259 Code</a></p>
269 <p>Closes·down·the·Allegro·system.</p>260 <p>Closes·down·the·Allegro·system.</p>
270 <blockquote>261 <blockquote>
Offset 386, 17 lines modifiedOffset 377, 17 lines modified
386 href="path.html#al_destroy_path">al_destroy_path</a>,·<a377 href="path.html#al_destroy_path">al_destroy_path</a>,·<a
387 href="system.html#al_set_exe_name">al_set_exe_name</a></p>378 href="system.html#al_set_exe_name">al_set_exe_name</a></p>
388 <p>Examples:</p>379 <p>Examples:</p>
389 <ul>380 <ul>
390 <li><a381 <li><a
391 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L11">ex_get_path.c</a></li>382 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L11">ex_get_path.c</a></li>
392 <li><a383 <li><a
393 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L87">ex_physfs.c</a></li>384 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L172">ex_audio_chain.cpp</a></li>
394 <li><a385 <li><a
395 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L20">ex_android.c</a></li>386 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L87">ex_physfs.c</a></li>
396 </ul>387 </ul>
397 <h1·id="al_set_exe_name">al_set_exe_name</h1>388 <h1·id="al_set_exe_name">al_set_exe_name</h1>
398 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_exe_name<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div>389 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_exe_name<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div>
399 <p><a390 <p><a
400 href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L405">Source391 href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L405">Source
401 Code</a></p>392 Code</a></p>
402 <p>This·override·the·executable·name·used·by·<a393 <p>This·override·the·executable·name·used·by·<a
2.07 KB
html2text {}
    
Offset 90, 18 lines modifiedOffset 90, 14 lines modified
90 atexit·function·visible·in·the·current·binary.90 atexit·function·visible·in·the·current·binary.
91 ·····Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final91 ·····Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final
92 ·····game·binary.·In·particular,·do·not·call·it·inside·a·shared·library92 ·····game·binary.·In·particular,·do·not·call·it·inside·a·shared·library
93 ·····unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to93 ·····unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to
94 ·····call·al_install_system·either·with·a·NULL·atexit_ptr,·or·with·a94 ·····call·al_install_system·either·with·a·NULL·atexit_ptr,·or·with·a
95 ·····pointer·to·atexit·provided·by·the·user·of·this·shared·library.95 ·····pointer·to·atexit·provided·by·the·user·of·this·shared·library.
96 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m96 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m
97 Examples: 
98 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8d_\x8e_\x8v_\x8i_\x8c_\x8e_\x8s_\x8._\x8c 
99 ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c 
100 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c 
101 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*97 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*
102 void·al_uninstall_system(void)98 void·al_uninstall_system(void)
103 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e99 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
104 Closes·down·the·Allegro·system.100 Closes·down·the·Allegro·system.
105 ·····Note:·al_uninstall_system()·can·be·called·without·a·corresponding101 ·····Note:·al_uninstall_system()·can·be·called·without·a·corresponding
106 ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·call,·e.g. from·atexit().102 ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·call,·e.g. from·atexit().
107 Examples:103 Examples:
Offset 180, 16 lines modifiedOffset 176, 16 lines modified
180 ··ALLEGRO_EXENAME_PATH176 ··ALLEGRO_EXENAME_PATH
181 ······The·full·path·to·the·executable.177 ······The·full·path·to·the·executable.
182 Returns·NULL·on·failure.·The·returned·path·should·be·freed·with178 Returns·NULL·on·failure.·The·returned·path·should·be·freed·with
183 _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h.179 _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h.
184 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8e_\x8x_\x8e_\x8__\x8n_\x8a_\x8m_\x8e180 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8e_\x8x_\x8e_\x8__\x8n_\x8a_\x8m_\x8e
185 Examples:181 Examples:
186 ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c182 ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c
 183 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p
187 ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c184 ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c
188 ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c 
189 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_e\x8ex\x8xe\x8e_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*185 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_e\x8ex\x8xe\x8e_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
190 void·al_set_exe_name(char·const·*path)186 void·al_set_exe_name(char·const·*path)
191 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e187 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
192 This·override·the·executable·name·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·for188 This·override·the·executable·name·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·for
193 ALLEGRO_EXENAME_PATH·and·ALLEGRO_RESOURCES_PATH.189 ALLEGRO_EXENAME_PATH·and·ALLEGRO_RESOURCES_PATH.
194 One·possibility·where·changing·this·can·be·useful·is·if·you·use·the·Python190 One·possibility·where·changing·this·can·be·useful·is·if·you·use·the·Python
195 wrapper.·Allegro·would·then·by·default·think·that·the·system’s·Python191 wrapper.·Allegro·would·then·by·default·think·that·the·system’s·Python
12.3 KB
./usr/share/doc/allegro5-doc/refman/threads.html
    
Offset 228, 47 lines modifiedOffset 228, 26 lines modified
228 <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im">&lt;allegro5/allegro.h&gt;</span></span></code></pre></div>228 <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im">&lt;allegro5/allegro.h&gt;</span></span></code></pre></div>
229 <h1·id="allegro_thread">ALLEGRO_THREAD</h1>229 <h1·id="allegro_thread">ALLEGRO_THREAD</h1>
230 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD<span·class="op">;</span></span></code></pre></div>230 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD<span·class="op">;</span></span></code></pre></div>
231 <p><a231 <p><a
232 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source232 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source
233 Code</a></p>233 Code</a></p>
234 <p>An·opaque·structure·representing·a·thread.</p>234 <p>An·opaque·structure·representing·a·thread.</p>
235 <p>Examples:</p> 
236 <ul> 
237 <li><a 
238 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L97">ex_threads.c</a></li> 
239 <li><a 
240 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L150">ex_threads2.c</a></li> 
241 <li><a 
242 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L16">ex_loading_thread.c</a></li> 
243 </ul> 
244 <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1>235 <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1>
245 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX<span·class="op">;</span></span></code></pre></div>236 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX<span·class="op">;</span></span></code></pre></div>
246 <p><a237 <p><a
247 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source238 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source
248 Code</a></p>239 Code</a></p>
249 <p>An·opaque·structure·representing·a·mutex.</p>240 <p>An·opaque·structure·representing·a·mutex.</p>
250 <p>Examples:</p> 
251 <ul> 
252 <li><a 
253 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L27">ex_threads2.c</a></li> 
254 <li><a 
255 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L14">ex_loading_thread.c</a></li> 
256 </ul> 
257 <h1·id="allegro_cond">ALLEGRO_COND</h1>241 <h1·id="allegro_cond">ALLEGRO_COND</h1>
258 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND<span·class="op">;</span></span></code></pre></div>242 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND<span·class="op">;</span></span></code></pre></div>
259 <p><a243 <p><a
260 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source244 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source
261 Code</a></p>245 Code</a></p>
262 <p>An·opaque·structure·representing·a·condition·variable.</p>246 <p>An·opaque·structure·representing·a·condition·variable.</p>
263 <p>Examples:</p> 
264 <ul> 
265 <li><a 
266 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L28">ex_threads2.c</a></li> 
267 </ul> 
268 <h1·id="al_create_thread">al_create_thread</h1>247 <h1·id="al_create_thread">al_create_thread</h1>
269 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread<span·class="op">(</span></span>248 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread<span·class="op">(</span></span>
270 <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">)</span></span></code></pre></div>249 <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">)</span></span></code></pre></div>
271 <p><a250 <p><a
272 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L115">Source251 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L115">Source
273 Code</a></p>252 Code</a></p>
274 <p>Spawn·a·new·thread·which·begins·executing·<code>proc</code>.·The·new253 <p>Spawn·a·new·thread·which·begins·executing·<code>proc</code>.·The·new
Offset 279, 17 lines modifiedOffset 258, 17 lines modified
279 <p>See·also:·<a·href="threads.html#al_start_thread">al_start_thread</a>,258 <p>See·also:·<a·href="threads.html#al_start_thread">al_start_thread</a>,
280 <a·href="threads.html#al_join_thread">al_join_thread</a>.</p>259 <a·href="threads.html#al_join_thread">al_join_thread</a>.</p>
281 <p>Examples:</p>260 <p>Examples:</p>
282 <ul>261 <ul>
283 <li><a262 <li><a
284 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L233">ex_threads.c</a></li>263 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L233">ex_threads.c</a></li>
285 <li><a264 <li><a
286 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L313">ex_threads2.c</a></li>265 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L110">ex_native_filechooser.c</a></li>
287 <li><a266 <li><a
288 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L158">ex_loading_thread.c</a></li>267 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L313">ex_threads2.c</a></li>
289 </ul>268 </ul>
290 <h1269 <h1
291 id="al_create_thread_with_stacksize">al_create_thread_with_stacksize</h1>270 id="al_create_thread_with_stacksize">al_create_thread_with_stacksize</h1>
292 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread_with_stacksize<span·class="op">(</span></span>271 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread_with_stacksize<span·class="op">(</span></span>
293 <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">,</span>·<span·class="dt">size_t</span>·stacksize<span·class="op">)</span></span></code></pre></div>272 <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">,</span>·<span·class="dt">size_t</span>·stacksize<span·class="op">)</span></span></code></pre></div>
294 <p><a273 <p><a
295 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source274 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source
Offset 319, 17 lines modifiedOffset 298, 17 lines modified
319 <p>See·also:·<a298 <p>See·also:·<a
320 href="threads.html#al_create_thread">al_create_thread</a>.</p>299 href="threads.html#al_create_thread">al_create_thread</a>.</p>
321 <p>Examples:</p>300 <p>Examples:</p>
322 <ul>301 <ul>
323 <li><a302 <li><a
324 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L237">ex_threads.c</a></li>303 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L237">ex_threads.c</a></li>
325 <li><a304 <li><a
326 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L329">ex_threads2.c</a></li>305 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L112">ex_native_filechooser.c</a></li>
327 <li><a306 <li><a
328 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L159">ex_loading_thread.c</a></li>307 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L329">ex_threads2.c</a></li>
329 </ul>308 </ul>
330 <h1·id="al_join_thread">al_join_thread</h1>309 <h1·id="al_join_thread">al_join_thread</h1>
331 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_join_thread<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">**</span>ret_value<span·class="op">)</span></span></code></pre></div>310 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_join_thread<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">**</span>ret_value<span·class="op">)</span></span></code></pre></div>
332 <p><a311 <p><a
333 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L194">Source312 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L194">Source
334 Code</a></p>313 Code</a></p>
335 <p>Wait·for·the·thread·to·finish·executing.·This·implicitly·calls·<a314 <p>Wait·for·the·thread·to·finish·executing.·This·implicitly·calls·<a
Offset 404, 17 lines modifiedOffset 383, 17 lines modified
404 <p>See·also:·<a383 <p>See·also:·<a
405 href="threads.html#al_join_thread">al_join_thread</a>.</p>384 href="threads.html#al_join_thread">al_join_thread</a>.</p>
406 <p>Examples:</p>385 <p>Examples:</p>
407 <ul>386 <ul>
408 <li><a387 <li><a
409 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L241">ex_threads.c</a></li>388 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L241">ex_threads.c</a></li>
410 <li><a389 <li><a
411 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L380">ex_threads2.c</a></li> 
412 <li><a 
413 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L134">ex_native_filechooser.c</a></li>390 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L134">ex_native_filechooser.c</a></li>
 391 <li><a
 392 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L380">ex_threads2.c</a></li>
414 </ul>393 </ul>
415 <h1·id="al_run_detached_thread">al_run_detached_thread</h1>394 <h1·id="al_run_detached_thread">al_run_detached_thread</h1>
416 <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>395 <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>
417 <p><a396 <p><a
418 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L147">Source397 href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L147">Source
419 Code</a></p>398 Code</a></p>
420 <p>Runs·the·passed·function·in·its·own·thread,·with·<code>arg</code>399 <p>Runs·the·passed·function·in·its·own·thread,·with·<code>arg</code>
4.41 KB
html2text {}
    
Offset 74, 44 lines modifiedOffset 74, 35 lines modified
74 cases.74 cases.
75 These·functions·are·declared·in·the·main·Allegro·header·file:75 These·functions·are·declared·in·the·main·Allegro·header·file:
76 ·#include·<allegro5/allegro.h>76 ·#include·<allegro5/allegro.h>
77 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TH\x8HR\x8RE\x8EA\x8AD\x8D·*\x8**\x8**\x8**\x8**\x8**\x8*77 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TH\x8HR\x8RE\x8EA\x8AD\x8D·*\x8**\x8**\x8**\x8**\x8**\x8*
78 typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD;78 typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD;
79 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e79 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
80 An·opaque·structure·representing·a·thread.80 An·opaque·structure·representing·a·thread.
81 Examples: 
82 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c 
83 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c 
84 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c 
85 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MU\x8UT\x8TE\x8EX\x8X·*\x8**\x8**\x8**\x8**\x8**\x8*81 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MU\x8UT\x8TE\x8EX\x8X·*\x8**\x8**\x8**\x8**\x8**\x8*
86 typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX;82 typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX;
87 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e83 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
88 An·opaque·structure·representing·a·mutex.84 An·opaque·structure·representing·a·mutex.
89 Examples: 
90 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c 
91 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c 
92 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8ND\x8D·*\x8**\x8**\x8**\x8**\x8**\x8*85 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8ND\x8D·*\x8**\x8**\x8**\x8**\x8**\x8*
93 typedef·struct·ALLEGRO_COND·ALLEGRO_COND;86 typedef·struct·ALLEGRO_COND·ALLEGRO_COND;
94 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e87 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
95 An·opaque·structure·representing·a·condition·variable.88 An·opaque·structure·representing·a·condition·variable.
96 Examples: 
97 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c 
98 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*89 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
99 ALLEGRO_THREAD·*al_create_thread(90 ALLEGRO_THREAD·*al_create_thread(
100 ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg)91 ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg)
101 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e92 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
102 Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its93 Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its
103 own·thread·handle·and·the·value·arg.94 own·thread·handle·and·the·value·arg.
104 Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL·if·there95 Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL·if·there
105 was·an·error.96 was·an·error.
106 See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d.97 See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d.
107 Examples:98 Examples:
108 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c99 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c
 100 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c
109 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c101 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c
110 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c 
111 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_w\x8wi\x8it\x8th\x8h_\x8_s\x8st\x8ta\x8ac\x8ck\x8ks\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*102 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_w\x8wi\x8it\x8th\x8h_\x8_s\x8st\x8ta\x8ac\x8ck\x8ks\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
112 ALLEGRO_THREAD·*al_create_thread_with_stacksize(103 ALLEGRO_THREAD·*al_create_thread_with_stacksize(
113 ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t104 ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t
114 stacksize)105 stacksize)
115 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e106 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
116 Spawn·a·new·thread·with·the·give·stacksize·in·bytes·which·begins·executing107 Spawn·a·new·thread·with·the·give·stacksize·in·bytes·which·begins·executing
117 proc.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·arg.108 proc.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·arg.
Offset 126, 16 lines modifiedOffset 117, 16 lines modified
126 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e117 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
127 When·a·thread·is·created,·it·is·initially·in·a·suspended·state.·Calling118 When·a·thread·is·created,·it·is·initially·in·a·suspended·state.·Calling
128 _\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·will·start·its·actual·execution.119 _\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·will·start·its·actual·execution.
129 Starting·a·thread·which·has·already·been·started·does·nothing.120 Starting·a·thread·which·has·already·been·started·does·nothing.
130 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d.121 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d.
131 Examples:122 Examples:
132 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c123 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c
 124 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c
133 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c125 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c
134 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c 
135 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_j\x8jo\x8oi\x8in\x8n_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*126 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_j\x8jo\x8oi\x8in\x8n_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
136 void·al_join_thread(ALLEGRO_THREAD·*thread,·void·**ret_value)127 void·al_join_thread(ALLEGRO_THREAD·*thread,·void·**ret_value)
137 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e128 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
138 Wait·for·the·thread·to·finish·executing.·This·implicitly·calls129 Wait·for·the·thread·to·finish·executing.·This·implicitly·calls
139 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p·first.130 _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p·first.
140 If·ret_value·is·non-NULL,·the·value·returned·by·the·thread·function·will·be131 If·ret_value·is·non-NULL,·the·value·returned·by·the·thread·function·will·be
141 stored·at·the·location·pointed·to·by·ret_value.132 stored·at·the·location·pointed·to·by·ret_value.
Offset 169, 16 lines modifiedOffset 160, 16 lines modified
169 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e160 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
170 Free·the·resources·used·by·a·thread.·Implicitly·performs·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the161 Free·the·resources·used·by·a·thread.·Implicitly·performs·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the
171 thread·if·it·hasn’t·been·done·already.162 thread·if·it·hasn’t·been·done·already.
172 Does·nothing·if·thread·is·NULL.163 Does·nothing·if·thread·is·NULL.
173 See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d.164 See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d.
174 Examples:165 Examples:
175 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c166 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c
176 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c 
177 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c167 ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c
 168 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c
178 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_d\x8de\x8et\x8ta\x8ac\x8ch\x8he\x8ed\x8d_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*169 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_d\x8de\x8et\x8ta\x8ac\x8ch\x8he\x8ed\x8d_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
179 void·al_run_detached_thread(void·*(*proc)(void·*arg),·void·*arg)170 void·al_run_detached_thread(void·*(*proc)(void·*arg),·void·*arg)
180 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e171 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
181 Runs·the·passed·function·in·its·own·thread,·with·arg·passed·to·it·as·only172 Runs·the·passed·function·in·its·own·thread,·with·arg·passed·to·it·as·only
182 parameter.·This·is·similar·to·calling·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·and173 parameter.·This·is·similar·to·calling·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·and
183 (after·the·thread·has·finished)·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·-·but·you·don’t·have·the174 (after·the·thread·has·finished)·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·-·but·you·don’t·have·the
184 possibility·of·ever·calling·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the·thread.175 possibility·of·ever·calling·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the·thread.
6.1 KB
./usr/share/doc/allegro5-doc/refman/time.html
    
Offset 187, 36 lines modifiedOffset 187, 31 lines modified
187 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT<span·class="op">;</span></span></code></pre></div>187 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT<span·class="op">;</span></span></code></pre></div>
188 <p><a188 <p><a
189 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/altime.h#L12">Source189 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/altime.h#L12">Source
190 Code</a></p>190 Code</a></p>
191 <p>Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it191 <p>Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it
192 can·be·statically·allocated.·The·contents·are·private.</p>192 can·be·statically·allocated.·The·contents·are·private.</p>
193 <p>See·also:·<a·href="time.html#al_init_timeout">al_init_timeout</a></p>193 <p>See·also:·<a·href="time.html#al_init_timeout">al_init_timeout</a></p>
194 <p>Examples:</p> 
195 <ul> 
196 <li><a 
197 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L99">ex_timedwait.c</a></li> 
198 </ul> 
199 <h1·id="al_get_time">al_get_time</h1>194 <h1·id="al_get_time">al_get_time</h1>
200 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_time<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>195 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_time<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
201 <p><a196 <p><a
202 href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L504">Source197 href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L504">Source
203 Code</a></p>198 Code</a></p>
204 <p>Return·the·number·of·seconds·since·the·Allegro·library·was199 <p>Return·the·number·of·seconds·since·the·Allegro·library·was
205 initialised.·The·return·value·is·undefined·if·Allegro·is·uninitialised.200 initialised.·The·return·value·is·undefined·if·Allegro·is·uninitialised.
206 The·resolution·depends·on·the·used·driver,·but·typically·can·be·in·the201 The·resolution·depends·on·the·used·driver,·but·typically·can·be·in·the
207 order·of·microseconds.</p>202 order·of·microseconds.</p>
208 <p>Examples:</p>203 <p>Examples:</p>
209 <ul>204 <ul>
210 <li><a205 <li><a
211 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L40">ex_convert.c</a></li>206 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L40">ex_convert.c</a></li>
212 <li><a207 <li><a
213 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L81">ex_d3d.cpp</a></li> 
214 <li><a 
215 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L215">ex_enet_server.c</a></li>208 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L215">ex_enet_server.c</a></li>
 209 <li><a
 210 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L81">ex_d3d.cpp</a></li>
216 </ul>211 </ul>
217 <h1·id="al_init_timeout">al_init_timeout</h1>212 <h1·id="al_init_timeout">al_init_timeout</h1>
218 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_init_timeout<span·class="op">(</span>ALLEGRO_TIMEOUT·<span·class="op">*</span>timeout<span·class="op">,</span>·<span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div>213 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_init_timeout<span·class="op">(</span>ALLEGRO_TIMEOUT·<span·class="op">*</span>timeout<span·class="op">,</span>·<span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div>
219 <p><a214 <p><a
220 href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L527">Source215 href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L527">Source
221 Code</a></p>216 Code</a></p>
222 <p>Set·timeout·value·of·some·number·of·seconds·after·the·function217 <p>Set·timeout·value·of·some·number·of·seconds·after·the·function
Offset 242, 19 lines modifiedOffset 237, 19 lines modified
242 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>al_rest<span·class="op">(</span><span·class="fl">0.000001</span><span·class="op">)</span></span></code></pre></div>237 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>al_rest<span·class="op">(</span><span·class="fl">0.000001</span><span·class="op">)</span></span></code></pre></div>
243 <p>might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer238 <p>might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer
244 routines·for·easier·ways·to·time·your·program·without·using·up·all239 routines·for·easier·ways·to·time·your·program·without·using·up·all
245 CPU.</p>240 CPU.</p>
246 <p>Examples:</p>241 <p>Examples:</p>
247 <ul>242 <ul>
248 <li><a243 <li><a
249 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L68">ex_keyboard_focus.c</a></li>244 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec.c#L104">ex_acodec.c</a></li>
250 <li><a245 <li><a
251 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L45">ex_timer_pause.c</a></li>246 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L116">ex_acodec_multi.c</a></li>
252 <li><a247 <li><a
253 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L92">ex_mouse_focus.c</a></li>248 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L86">ex_kcm_direct.c</a></li>
254 </ul>249 </ul>
255 <p·class="timestamp">250 <p·class="timestamp">
256 Allegro·version·5.2.10251 Allegro·version·5.2.10
257 ·-·Last·updated:·2024-11-29·14:21:22·UTC252 ·-·Last·updated:·2024-11-29·14:21:22·UTC
258 </p>253 </p>
259 </div>254 </div>
260 </body>255 </body>
2.25 KB
html2text {}
    
Offset 51, 26 lines modifiedOffset 51, 24 lines modified
51 ·#include·<allegro5/allegro.h>51 ·#include·<allegro5/allegro.h>
52 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8EO\x8OU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8*52 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8EO\x8OU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8*
53 typedef·struct·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT;53 typedef·struct·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT;
54 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e54 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
55 Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it·can·be55 Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it·can·be
56 statically·allocated.·The·contents·are·private.56 statically·allocated.·The·contents·are·private.
57 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8o_\x8u_\x8t57 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8o_\x8u_\x8t
58 Examples: 
59 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c 
60 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*58 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
61 double·al_get_time(void)59 double·al_get_time(void)
62 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e60 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
63 Return·the·number·of·seconds·since·the·Allegro·library·was·initialised.·The61 Return·the·number·of·seconds·since·the·Allegro·library·was·initialised.·The
64 return·value·is·undefined·if·Allegro·is·uninitialised.·The·resolution·depends62 return·value·is·undefined·if·Allegro·is·uninitialised.·The·resolution·depends
65 on·the·used·driver,·but·typically·can·be·in·the·order·of·microseconds.63 on·the·used·driver,·but·typically·can·be·in·the·order·of·microseconds.
66 Examples:64 Examples:
67 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c65 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c
68 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p 
69 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c66 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c
 67 ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p
70 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_t\x8ti\x8im\x8me\x8eo\x8ou\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8*68 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_t\x8ti\x8im\x8me\x8eo\x8ou\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8*
71 void·al_init_timeout(ALLEGRO_TIMEOUT·*timeout,·double·seconds)69 void·al_init_timeout(ALLEGRO_TIMEOUT·*timeout,·double·seconds)
72 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e70 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
73 Set·timeout·value·of·some·number·of·seconds·after·the·function·call.71 Set·timeout·value·of·some·number·of·seconds·after·the·function·call.
74 For·compatibility·with·all·platforms,·seconds·must·be·2,147,483.647·seconds·or72 For·compatibility·with·all·platforms,·seconds·must·be·2,147,483.647·seconds·or
75 less.73 less.
76 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8I_\x8M_\x8E_\x8O_\x8U_\x8T,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l74 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8I_\x8M_\x8E_\x8O_\x8U_\x8T,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l
Offset 82, 11 lines modifiedOffset 80, 11 lines modified
82 Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the80 Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the
83 current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the81 current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the
84 accuracy·can·be·in·the·order·of·10ms.·That·is,·even82 accuracy·can·be·in·the·order·of·10ms.·That·is,·even
85 al_rest(0.000001)83 al_rest(0.000001)
86 might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for84 might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for
87 easier·ways·to·time·your·program·without·using·up·all·CPU.85 easier·ways·to·time·your·program·without·using·up·all·CPU.
88 Examples:86 Examples:
 87 ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8._\x8c
 88 ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c
89 ····*·_\x8e_\x8x_\x8__\x8k_\x8e_.y_.b_.o_.a_.r_.d_.__.f_.o_.c_.u_.s_\x8._\x8c89 ····*·_\x8e_\x8x_\x8__\x8k_\x8c_.m_.__.d_.i_.r_.e_.c_.t_\x8._\x8c
90 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c 
91 ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c 
92 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC90 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC
9.49 KB
./usr/share/doc/allegro5-doc/refman/timer.html
    
Offset 213, 23 lines modifiedOffset 213, 14 lines modified
213 <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im">&lt;allegro5/allegro.h&gt;</span></span></code></pre></div>213 <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im">&lt;allegro5/allegro.h&gt;</span></span></code></pre></div>
214 <h1·id="allegro_timer">ALLEGRO_TIMER</h1>214 <h1·id="allegro_timer">ALLEGRO_TIMER</h1>
215 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER<span·class="op">;</span></span></code></pre></div>215 <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER<span·class="op">;</span></span></code></pre></div>
216 <p><a216 <p><a
217 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source217 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source
218 Code</a></p>218 Code</a></p>
219 <p>This·is·an·abstract·data·type·representing·a·timer·object.</p>219 <p>This·is·an·abstract·data·type·representing·a·timer·object.</p>
220 <p>Examples:</p> 
221 <ul> 
222 <li><a 
223 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L188">ex_enet_server.c</a></li> 
224 <li><a 
225 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L22">ex_timer_pause.c</a></li> 
226 <li><a 
227 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L46">ex_user_events.c</a></li> 
228 </ul> 
229 <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1>220 <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1>
230 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_USECS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">······</span><span·class="op">((</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="fl">1000000.0</span><span·class="op">)</span></span></code></pre></div>221 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_USECS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">······</span><span·class="op">((</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="fl">1000000.0</span><span·class="op">)</span></span></code></pre></div>
231 <p><a222 <p><a
232 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source223 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source
233 Code</a></p>224 Code</a></p>
234 <p>Convert·microseconds·to·seconds.</p>225 <p>Convert·microseconds·to·seconds.</p>
235 <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1>226 <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1>
Offset 240, 19 lines modifiedOffset 231, 14 lines modified
240 <p>Convert·milliseconds·to·seconds.</p>231 <p>Convert·milliseconds·to·seconds.</p>
241 <h1·id="allegro_bps_to_secs">ALLEGRO_BPS_TO_SECS</h1>232 <h1·id="allegro_bps_to_secs">ALLEGRO_BPS_TO_SECS</h1>
242 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_BPS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">1.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span></code></pre></div>233 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_BPS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">1.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span></code></pre></div>
243 <p><a234 <p><a
244 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L37">Source235 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L37">Source
245 Code</a></p>236 Code</a></p>
246 <p>Convert·beats·per·second·to·seconds.</p>237 <p>Convert·beats·per·second·to·seconds.</p>
247 <p>Examples:</p> 
248 <ul> 
249 <li><a 
250 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L719">ex_prim.c</a></li> 
251 </ul> 
252 <h1·id="allegro_bpm_to_secs">ALLEGRO_BPM_TO_SECS</h1>238 <h1·id="allegro_bpm_to_secs">ALLEGRO_BPM_TO_SECS</h1>
253 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_BPM_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">60.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span></code></pre></div>239 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_BPM_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">60.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span></code></pre></div>
254 <p><a240 <p><a
255 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L41">Source241 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L41">Source
256 Code</a></p>242 Code</a></p>
257 <p>Convert·beats·per·minute·to·seconds.</p>243 <p>Convert·beats·per·minute·to·seconds.</p>
258 <h1·id="al_create_timer">al_create_timer</h1>244 <h1·id="al_create_timer">al_create_timer</h1>
Offset 336, 15 lines modifiedOffset 322, 15 lines modified
336 <p>Examples:</p>322 <p>Examples:</p>
337 <ul>323 <ul>
338 <li><a324 <li><a
339 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L48">ex_timer_pause.c</a></li>325 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L48">ex_timer_pause.c</a></li>
340 <li><a326 <li><a
341 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L196">ex_android.c</a></li>327 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L196">ex_android.c</a></li>
342 <li><a328 <li><a
343 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_projection2.c#L153">ex_projection2.c</a></li>329 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L343">ex_native_filechooser.c</a></li>
344 </ul>330 </ul>
345 <h1·id="al_get_timer_started">al_get_timer_started</h1>331 <h1·id="al_get_timer_started">al_get_timer_started</h1>
346 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_timer_started<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div>332 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_timer_started<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div>
347 <p><a333 <p><a
348 href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L356">Source334 href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L356">Source
349 Code</a></p>335 Code</a></p>
350 <p>Return·true·if·the·timer·specified·is·currently·started.</p>336 <p>Return·true·if·the·timer·specified·is·currently·started.</p>
Offset 362, 15 lines modifiedOffset 348, 15 lines modified
362 <p>Examples:</p>348 <p>Examples:</p>
363 <ul>349 <ul>
364 <li><a350 <li><a
365 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L69">ex_timer_pause.c</a></li>351 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L69">ex_timer_pause.c</a></li>
366 <li><a352 <li><a
367 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L112">ex_user_events.c</a></li>353 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L112">ex_user_events.c</a></li>
368 <li><a354 <li><a
369 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_noframe.c#L90">ex_noframe.c</a></li>355 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L224">ex_font_multiline.cpp</a></li>
370 </ul>356 </ul>
371 <h1·id="al_get_timer_count">al_get_timer_count</h1>357 <h1·id="al_get_timer_count">al_get_timer_count</h1>
372 <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">int64_t</span>·al_get_timer_count<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div>358 <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">int64_t</span>·al_get_timer_count<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div>
373 <p><a359 <p><a
374 href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L399">Source360 href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L399">Source
375 Code</a></p>361 Code</a></p>
376 <p>Return·the·timer’s·counter·value.·The·timer·can·be·started·or362 <p>Return·the·timer’s·counter·value.·The·timer·can·be·started·or
3.49 KB
html2text {}
    
Offset 62, 32 lines modifiedOffset 62, 26 lines modified
62 ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e62 ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
63 These·functions·are·declared·in·the·main·Allegro·header·file:63 These·functions·are·declared·in·the·main·Allegro·header·file:
64 ·#include·<allegro5/allegro.h>64 ·#include·<allegro5/allegro.h>
65 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8*65 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8*
66 typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER;66 typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER;
67 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e67 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
68 This·is·an·abstract·data·type·representing·a·timer·object.68 This·is·an·abstract·data·type·representing·a·timer·object.
69 Examples: 
70 ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c 
71 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c 
72 ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c 
73 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*69 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*
74 #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0)70 #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0)
75 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e71 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
76 Convert·microseconds·to·seconds.72 Convert·microseconds·to·seconds.
77 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MS\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*73 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MS\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*
78 #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0)74 #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0)
79 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e75 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
80 Convert·milliseconds·to·seconds.76 Convert·milliseconds·to·seconds.
81 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*77 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*
82 #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x))78 #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x))
83 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e79 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
84 Convert·beats·per·second·to·seconds.80 Convert·beats·per·second·to·seconds.
85 Examples: 
86 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c 
87 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PM\x8M_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*81 *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PM\x8M_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8*
88 #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x))82 #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x))
89 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e83 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
90 Convert·beats·per·minute·to·seconds.84 Convert·beats·per·minute·to·seconds.
91 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8*85 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8*
92 ALLEGRO_TIMER·*al_create_timer(double·speed_secs)86 ALLEGRO_TIMER·*al_create_timer(double·speed_secs)
93 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e87 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
Offset 131, 15 lines modifiedOffset 125, 15 lines modified
131 Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing·and·it125 Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing·and·it
132 will·stop·generating·events.·Stopping·a·timer·that·is·already·stopped·does126 will·stop·generating·events.·Stopping·a·timer·that·is·already·stopped·does
133 nothing.127 nothing.
134 See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r128 See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r
135 Examples:129 Examples:
136 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c130 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c
137 ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c131 ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c
138 ····*·_\x8e_\x8x_\x8__\x8p_.r_.o_.j_.e_.c_.t_.i_.o_.n_.2_\x8._\x8c132 ····*·_\x8e_\x8x_\x8__\x8n_.a_.t_.i_.v_.e_.__.f_.i_.l_.e_.c_.h_.o_.o_.s_.e_.r_\x8._\x8c
139 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_s\x8st\x8ta\x8ar\x8rt\x8te\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*133 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_s\x8st\x8ta\x8ar\x8rt\x8te\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
140 bool·al_get_timer_started(const·ALLEGRO_TIMER·*timer)134 bool·al_get_timer_started(const·ALLEGRO_TIMER·*timer)
141 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e135 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
142 Return·true·if·the·timer·specified·is·currently·started.136 Return·true·if·the·timer·specified·is·currently·started.
143 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8*137 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8*
144 void·al_destroy_timer(ALLEGRO_TIMER·*timer)138 void·al_destroy_timer(ALLEGRO_TIMER·*timer)
145 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e139 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
Offset 147, 15 lines modifiedOffset 141, 15 lines modified
147 be·stopped·before·uninstallation.·It·will·also·automatically·unregister·the141 be·stopped·before·uninstallation.·It·will·also·automatically·unregister·the
148 timer·with·any·event·queues.142 timer·with·any·event·queues.
149 Does·nothing·if·passed·the·NULL·pointer.143 Does·nothing·if·passed·the·NULL·pointer.
150 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r144 See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r
151 Examples:145 Examples:
152 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c146 ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c
153 ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c147 ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c
154 ····*·_\x8e_\x8x_\x8__\x8n_.o_.f_.r_.a_.m_.e_.._.c148 ····*·_\x8e_\x8x_\x8__\x8f_.o_.n_.t_.__.m_.u_.l_.t_.i_.l_.i_.n_.e_.._.c_.p_.p
155 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8*149 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8*
156 int64_t·al_get_timer_count(const·ALLEGRO_TIMER·*timer)150 int64_t·al_get_timer_count(const·ALLEGRO_TIMER·*timer)
157 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e151 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
158 Return·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped.152 Return·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped.
159 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t153 See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t
160 Examples:154 Examples:
161 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c155 ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c
5.7 KB
./usr/share/doc/allegro5-doc/refman/touch.html
    
Offset 330, 15 lines modifiedOffset 330, 15 lines modified
330 <p>Examples:</p>330 <p>Examples:</p>
331 <ul>331 <ul>
332 <li><a332 <li><a
333 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L178">ex_lockbitmap.c</a></li>333 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L178">ex_lockbitmap.c</a></li>
334 <li><a334 <li><a
335 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L973">ex_haiku.c</a></li>335 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L973">ex_haiku.c</a></li>
336 <li><a336 <li><a
337 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L154">ex_prim_shader.c</a></li>337 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L121">nihgui.cpp</a></li>
338 </ul>338 </ul>
339 <h1·id="al_get_touch_input_state">al_get_touch_input_state</h1>339 <h1·id="al_get_touch_input_state">al_get_touch_input_state</h1>
340 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_get_touch_input_state<span·class="op">(</span>ALLEGRO_TOUCH_INPUT_STATE·<span·class="op">*</span>ret_state<span·class="op">)</span></span></code></pre></div>340 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_get_touch_input_state<span·class="op">(</span>ALLEGRO_TOUCH_INPUT_STATE·<span·class="op">*</span>ret_state<span·class="op">)</span></span></code></pre></div>
341 <p><a341 <p><a
342 href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L93">Source342 href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L93">Source
343 Code</a></p>343 Code</a></p>
344 <p>Gets·the·current·touch·input·state.·The·touch·information·is·copied344 <p>Gets·the·current·touch·input·state.·The·touch·information·is·copied
Offset 399, 17 lines modifiedOffset 399, 17 lines modified
399 href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a399 href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a
400 href="events.html#al_register_event_source">al_register_event_source</a></p>400 href="events.html#al_register_event_source">al_register_event_source</a></p>
401 <p>Examples:</p>401 <p>Examples:</p>
402 <ul>402 <ul>
403 <li><a403 <li><a
404 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L66">ex_touch_input.c</a></li>404 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L66">ex_touch_input.c</a></li>
405 <li><a405 <li><a
406 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L129">ex_android.c</a></li> 
407 <li><a 
408 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L387">ex_polygon.c</a></li>406 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L387">ex_polygon.c</a></li>
 407 <li><a
 408 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L129">ex_android.c</a></li>
409 </ul>409 </ul>
410 <h1410 <h1
411 id="al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</h1>411 id="al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</h1>
412 <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>al_get_touch_input_mouse_emulation_event_source<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>412 <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>al_get_touch_input_mouse_emulation_event_source<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
413 <p><a413 <p><a
414 href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L140">Source414 href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L140">Source
415 Code</a></p>415 Code</a></p>
Offset 427, 17 lines modifiedOffset 427, 17 lines modified
427 different·semantics·compared·to·mouse·input.</p>427 different·semantics·compared·to·mouse·input.</p>
428 </blockquote>428 </blockquote>
429 <p>Examples:</p>429 <p>Examples:</p>
430 <ul>430 <ul>
431 <li><a431 <li><a
432 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L180">ex_lockbitmap.c</a></li>432 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L180">ex_lockbitmap.c</a></li>
433 <li><a433 <li><a
434 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L975">ex_haiku.c</a></li>434 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L388">ex_polygon.c</a></li>
435 <li><a435 <li><a
436 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L156">ex_prim_shader.c</a></li>436 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L975">ex_haiku.c</a></li>
437 </ul>437 </ul>
438 <p·class="timestamp">438 <p·class="timestamp">
439 Allegro·version·5.2.10439 Allegro·version·5.2.10
440 ·-·Last·updated:·2024-11-29·14:21:22·UTC440 ·-·Last·updated:·2024-11-29·14:21:22·UTC
441 </p>441 </p>
442 </div>442 </div>
443 </body>443 </body>
2.55 KB
html2text {}
    
Offset 130, 15 lines modifiedOffset 130, 15 lines modified
130 bool·al_is_touch_input_installed(void)130 bool·al_is_touch_input_installed(void)
131 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e131 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
132 Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t·was·called·successfully.132 Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t·was·called·successfully.
133 Since:·5.1.0133 Since:·5.1.0
134 Examples:134 Examples:
135 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c135 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c
136 ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c136 ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c
137 ····*·_\x8e_.x_.__.p_.r_.i_.m_.__.s_.h_.a_.d_.e_.r_.._.c137 ····*·_\x8n_.i_.h_.g_.u_.i_.._.c_.p_.p
138 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*138 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
139 void·al_get_touch_input_state(ALLEGRO_TOUCH_INPUT_STATE·*ret_state)139 void·al_get_touch_input_state(ALLEGRO_TOUCH_INPUT_STATE·*ret_state)
140 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e140 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
141 Gets·the·current·touch·input·state.·The·touch·information·is·copied·into·the141 Gets·the·current·touch·input·state.·The·touch·information·is·copied·into·the
142 _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8O_\x8U_\x8C_\x8H_\x8__\x8I_\x8N_\x8P_\x8U_\x8T_\x8__\x8S_\x8T_\x8A_\x8T_\x8E·you·provide·to·this·function.142 _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8O_\x8U_\x8C_\x8H_\x8__\x8I_\x8N_\x8P_\x8U_\x8T_\x8__\x8S_\x8T_\x8A_\x8T_\x8E·you·provide·to·this·function.
143 Since:·5.1.0143 Since:·5.1.0
144 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*144 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
Offset 165, 23 lines modifiedOffset 165, 23 lines modified
165 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e165 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
166 Returns·the·global·touch·input·event·source.·This·event·source·generates·_\x8t_\x8o_\x8u_\x8c_\x8h166 Returns·the·global·touch·input·event·source.·This·event·source·generates·_\x8t_\x8o_\x8u_\x8c_\x8h
167 _\x8i_\x8n_\x8p_\x8u_\x8t_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s.167 _\x8i_\x8n_\x8p_\x8u_\x8t_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s.
168 Since:·5.1.0168 Since:·5.1.0
169 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e169 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
170 Examples:170 Examples:
171 ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c171 ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c
172 ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c 
173 ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c172 ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c
 173 ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c
174 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*174 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
175 ALLEGRO_EVENT_SOURCE·*al_get_touch_input_mouse_emulation_event_source(void)175 ALLEGRO_EVENT_SOURCE·*al_get_touch_input_mouse_emulation_event_source(void)
176 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e176 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
177 Returns·the·global·touch·input·event·source·for·emulated·mouse·events.·This177 Returns·the·global·touch·input·event·source·for·emulated·mouse·events.·This
178 event·source·generates·_\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8e_\x8d_\x8·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·that·are·based·on·touch·events.178 event·source·generates·_\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8e_\x8d_\x8·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·that·are·based·on·touch·events.
179 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e179 See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
180 Since:·5.1.0180 Since:·5.1.0
181 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have181 ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have
182 ·····different·semantics·compared·to·mouse·input.182 ·····different·semantics·compared·to·mouse·input.
183 Examples:183 Examples:
184 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c184 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c
 185 ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c
185 ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c186 ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c
186 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c 
187 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC187 Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC
23.3 KB
./usr/share/doc/allegro5-doc/refman/transformations.html
    
Offset 312, 23 lines modifiedOffset 312, 14 lines modified
312 <p>Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms312 <p>Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms
313 use·only·a·small·subsection·of·this·matrix,·namely·the·top·left·2x2313 use·only·a·small·subsection·of·this·matrix,·namely·the·top·left·2x2
314 matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values.</p>314 matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values.</p>
315 <p><em>Fields:</em></p>315 <p><em>Fields:</em></p>
316 <ul>316 <ul>
317 <li>m·-·A·4x4·float·matrix</li>317 <li>m·-·A·4x4·float·matrix</li>
318 </ul>318 </ul>
319 <p>Examples:</p> 
320 <ul> 
321 <li><a 
322 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L137">ex_shader.cpp</a></li> 
323 <li><a 
324 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L61">ex_shader_target.c</a></li> 
325 <li><a 
326 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L74">ex_audio_timer.c</a></li> 
327 </ul> 
328 <h1·id="al_copy_transform">al_copy_transform</h1>319 <h1·id="al_copy_transform">al_copy_transform</h1>
329 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_copy_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>dest<span·class="op">,</span>·<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>src<span·class="op">)</span></span></code></pre></div>320 <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_copy_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>dest<span·class="op">,</span>·<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>src<span·class="op">)</span></span></code></pre></div>
330 <p><a321 <p><a
331 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L30">Source322 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L30">Source
332 Code</a></p>323 Code</a></p>
333 <p>Makes·a·copy·of·a·transformation.</p>324 <p>Makes·a·copy·of·a·transformation.</p>
334 <p><em>Parameters:</em></p>325 <p><em>Parameters:</em></p>
Offset 368, 19 lines modifiedOffset 359, 19 lines modified
368 <p>See·also:·<a359 <p>See·also:·<a
369 href="transformations.html#al_get_current_transform">al_get_current_transform</a>,360 href="transformations.html#al_get_current_transform">al_get_current_transform</a>,
370 <a361 <a
371 href="transformations.html#al_transform_coordinates">al_transform_coordinates</a></p>362 href="transformations.html#al_transform_coordinates">al_transform_coordinates</a></p>
372 <p>Examples:</p>363 <p>Examples:</p>
373 <ul>364 <ul>
374 <li><a365 <li><a
375 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L142">ex_shader.cpp</a></li>366 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L124">ex_audio_timer.c</a></li>
376 <li><a367 <li><a
377 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L120">ex_shader_target.c</a></li>368 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L142">ex_shader.cpp</a></li>
378 <li><a369 <li><a
379 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L124">ex_audio_timer.c</a></li>370 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L234">ex_polygon.c</a></li>
380 </ul>371 </ul>
381 <h1·id="al_get_current_transform">al_get_current_transform</h1>372 <h1·id="al_get_current_transform">al_get_current_transform</h1>
382 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>373 <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
383 <p><a374 <p><a
384 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L104">Source375 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L104">Source
385 Code</a></p>376 Code</a></p>
386 <p>Returns·the·transformation·of·the·current·target·bitmap,·as·set·by·<a377 <p>Returns·the·transformation·of·the·current·target·bitmap,·as·set·by·<a
Offset 438, 15 lines modifiedOffset 429, 15 lines modified
438 <p>Examples:</p>429 <p>Examples:</p>
439 <ul>430 <ul>
440 <li><a431 <li><a
441 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_projection.c#L79">ex_projection.c</a></li>432 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_projection.c#L79">ex_projection.c</a></li>
442 <li><a433 <li><a
443 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_depth_target.c#L40">ex_depth_target.c</a></li>434 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_depth_target.c#L40">ex_depth_target.c</a></li>
444 <li><a435 <li><a
445 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_projection2.c#L43">ex_projection2.c</a></li>436 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_camera.c#L204">ex_camera.c</a></li>
446 </ul>437 </ul>
447 <h1438 <h1
448 id="al_get_current_projection_transform">al_get_current_projection_transform</h1>439 id="al_get_current_projection_transform">al_get_current_projection_transform</h1>
449 <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_projection_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>440 <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_projection_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
450 <p><a441 <p><a
451 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L116">Source442 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L116">Source
452 Code</a></p>443 Code</a></p>
Offset 567, 19 lines modifiedOffset 558, 19 lines modified
567 <a558 <a
568 href="transformations.html#al_rotate_transform">al_rotate_transform</a>,559 href="transformations.html#al_rotate_transform">al_rotate_transform</a>,
569 <a560 <a
570 href="transformations.html#al_scale_transform">al_scale_transform</a></p>561 href="transformations.html#al_scale_transform">al_scale_transform</a></p>
571 <p>Examples:</p>562 <p>Examples:</p>
572 <ul>563 <ul>
573 <li><a564 <li><a
574 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L139">ex_shader.cpp</a></li>565 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L122">ex_audio_timer.c</a></li>
575 <li><a566 <li><a
576 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L117">ex_shader_target.c</a></li>567 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L139">ex_shader.cpp</a></li>
577 <li><a568 <li><a
578 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L122">ex_audio_timer.c</a></li>569 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L231">ex_polygon.c</a></li>
579 </ul>570 </ul>
580 <h1·id="al_build_transform">al_build_transform</h1>571 <h1·id="al_build_transform">al_build_transform</h1>
581 <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·x<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span></span>572 <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·x<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span></span>
582 <span·id="cb21-2"><a·href="#cb21-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·sx<span·class="op">,</span>·<span·class="dt">float</span>·sy<span·class="op">,</span>·<span·class="dt">float</span>·theta<span·class="op">)</span></span></code></pre></div>573 <span·id="cb21-2"><a·href="#cb21-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·sx<span·class="op">,</span>·<span·class="dt">float</span>·sy<span·class="op">,</span>·<span·class="dt">float</span>·theta<span·class="op">)</span></span></code></pre></div>
583 <p><a574 <p><a
584 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L173">Source575 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L173">Source
585 Code</a></p>576 Code</a></p>
Offset 606, 18 lines modifiedOffset 597, 18 lines modified
606 <a597 <a
607 href="transformations.html#al_scale_transform">al_scale_transform</a>,598 href="transformations.html#al_scale_transform">al_scale_transform</a>,
608 <a599 <a
609 href="transformations.html#al_compose_transform">al_compose_transform</a></p>600 href="transformations.html#al_compose_transform">al_compose_transform</a></p>
610 <p>Examples:</p>601 <p>Examples:</p>
611 <ul>602 <ul>
612 <li><a603 <li><a
613 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L82">ex_threads.c</a></li> 
614 <li><a 
615 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L173">ex_color_gradient.c</a></li>604 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L173">ex_color_gradient.c</a></li>
616 <li><a605 <li><a
 606 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L82">ex_threads.c</a></li>
 607 <li><a
617 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L91">ex_prim.c</a></li>608 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L91">ex_prim.c</a></li>
618 </ul>609 </ul>
619 <h1·id="al_build_camera_transform">al_build_camera_transform</h1>610 <h1·id="al_build_camera_transform">al_build_camera_transform</h1>
620 <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_camera_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span></span>611 <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_camera_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span></span>
621 <span·id="cb22-2"><a·href="#cb22-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·position_x<span·class="op">,</span>·<span·class="dt">float</span>·position_y<span·class="op">,</span>·<span·class="dt">float</span>·position_z<span·class="op">,</span></span>612 <span·id="cb22-2"><a·href="#cb22-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·position_x<span·class="op">,</span>·<span·class="dt">float</span>·position_y<span·class="op">,</span>·<span·class="dt">float</span>·position_z<span·class="op">,</span></span>
622 <span·id="cb22-3"><a·href="#cb22-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·look_x<span·class="op">,</span>·<span·class="dt">float</span>·look_y<span·class="op">,</span>·<span·class="dt">float</span>·look_z<span·class="op">,</span></span>613 <span·id="cb22-3"><a·href="#cb22-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·look_x<span·class="op">,</span>·<span·class="dt">float</span>·look_y<span·class="op">,</span>·<span·class="dt">float</span>·look_z<span·class="op">,</span></span>
623 <span·id="cb22-4"><a·href="#cb22-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·up_x<span·class="op">,</span>·<span·class="dt">float</span>·up_y<span·class="op">,</span>·<span·class="dt">float</span>·up_z<span·class="op">)</span></span></code></pre></div>614 <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>
Offset 687, 17 lines modifiedOffset 678, 17 lines modified
687 <a678 <a
688 href="transformations.html#al_build_transform">al_build_transform</a></p>679 href="transformations.html#al_build_transform">al_build_transform</a></p>
689 <p>Examples:</p>680 <p>Examples:</p>
690 <ul>681 <ul>
691 <li><a682 <li><a
692 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L140">ex_shader.cpp</a></li>683 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L140">ex_shader.cpp</a></li>
693 <li><a684 <li><a
694 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L119">ex_shader_target.c</a></li> 
695 <li><a 
696 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L232">ex_polygon.c</a></li>685 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L232">ex_polygon.c</a></li>
 686 <li><a
 687 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L45">ex_vertex_buffer.c</a></li>
697 </ul>688 </ul>
698 <h1·id="al_rotate_transform">al_rotate_transform</h1>689 <h1·id="al_rotate_transform">al_rotate_transform</h1>
699 <div·class="sourceCode"·id="cb27"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb27-1"><a·href="#cb27-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_rotate_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·theta<span·class="op">)</span></span></code></pre></div>690 <div·class="sourceCode"·id="cb27"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb27-1"><a·href="#cb27-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_rotate_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·theta<span·class="op">)</span></span></code></pre></div>
700 <p><a691 <p><a
701 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L352">Source692 href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L352">Source
702 Code</a></p>693 Code</a></p>
703 <p>Apply·a·rotation·to·a·transformation.</p>694 <p>Apply·a·rotation·to·a·transformation.</p>
Offset 737, 19 lines modifiedOffset 728, 19 lines modified
737 <a728 <a
738 href="transformations.html#al_rotate_transform">al_rotate_transform</a>,729 href="transformations.html#al_rotate_transform">al_rotate_transform</a>,
739 <a730 <a
740 href="transformations.html#al_build_transform">al_build_transform</a></p>731 href="transformations.html#al_build_transform">al_build_transform</a></p>
741 <p>Examples:</p>732 <p>Examples:</p>
742 <ul>733 <ul>
Max diff block lines reached; 5036/14144 bytes (35.61%) of diff not shown.
9.35 KB
html2text {}
    
Offset 136, 18 lines modifiedOffset 136, 14 lines modified
136 typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM;136 typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM;
137 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e137 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
138 Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms·use·only·a138 Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms·use·only·a
139 small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right139 small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right
140 most·2x1·matrix,·for·a·total·of·6·values.140 most·2x1·matrix,·for·a·total·of·6·values.
141 F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8:141 F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8:
142 ····*·m·-·A·4x4·float·matrix142 ····*·m·-·A·4x4·float·matrix
143 Examples: 
144 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p 
145 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c 
146 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c 
147 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8op\x8py\x8y_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*143 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8op\x8py\x8y_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*
148 void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src)144 void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src)
149 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e145 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
150 Makes·a·copy·of·a·transformation.146 Makes·a·copy·of·a·transformation.
151 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:147 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
152 ····*·dest·-·Source·transformation148 ····*·dest·-·Source·transformation
153 ····*·src·-·Destination·transformation149 ····*·src·-·Destination·transformation
Offset 170, 17 lines modifiedOffset 166, 17 lines modified
170 ···al_translate_transform(&transform,·5,·10);166 ···al_translate_transform(&transform,·5,·10);
171 ···al_use_transform(&transform);167 ···al_use_transform(&transform);
172 }168 }
173 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:169 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
174 ····*·trans·-·Transformation·to·use170 ····*·trans·-·Transformation·to·use
175 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m_\x8__\x8c_\x8o_\x8o_\x8r_\x8d_\x8i_\x8n_\x8a_\x8t_\x8e_\x8s171 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m_\x8__\x8c_\x8o_\x8o_\x8r_\x8d_\x8i_\x8n_\x8a_\x8t_\x8e_\x8s
176 Examples:172 Examples:
177 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p 
178 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c 
179 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c173 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c
 174 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p
 175 ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c
180 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*176 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*
181 const·ALLEGRO_TRANSFORM·*al_get_current_transform(void)177 const·ALLEGRO_TRANSFORM·*al_get_current_transform(void)
182 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e178 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
183 Returns·the·transformation·of·the·current·target·bitmap,·as·set·by179 Returns·the·transformation·of·the·current·target·bitmap,·as·set·by
184 _\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m.·If·there·is·no·target·bitmap,·this·function·returns·NULL.180 _\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m.·If·there·is·no·target·bitmap,·this·function·returns·NULL.
185 R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation.181 R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation.
186 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m182 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m
Offset 217, 15 lines modifiedOffset 213, 15 lines modified
217 is·safe·to·pass·references·to·local·variables.213 is·safe·to·pass·references·to·local·variables.
218 Since:·5.1.9214 Since:·5.1.9
219 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8p_\x8e_\x8r_\x8s_\x8p_\x8e_\x8c_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,215 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8p_\x8e_\x8r_\x8s_\x8p_\x8e_\x8c_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,
220 _\x8a_\x8l_\x8__\x8o_\x8r_\x8t_\x8h_\x8o_\x8g_\x8r_\x8a_\x8p_\x8h_\x8i_\x8c_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m216 _\x8a_\x8l_\x8__\x8o_\x8r_\x8t_\x8h_\x8o_\x8g_\x8r_\x8a_\x8p_\x8h_\x8i_\x8c_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m
221 Examples:217 Examples:
222 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8._\x8c218 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8._\x8c
223 ····*·_\x8e_\x8x_\x8__\x8d_\x8e_\x8p_\x8t_\x8h_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c219 ····*·_\x8e_\x8x_\x8__\x8d_\x8e_\x8p_\x8t_\x8h_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c
224 ····*·_\x8e_\x8x_\x8__\x8p_.r_.o_.j_.e_.c_.t_.i_.o_.n_.2_\x8._\x8c220 ····*·_\x8e_\x8x_\x8__\x8c_.a_.m_.e_.r_.a_\x8._\x8c
225 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*221 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*
226 const·ALLEGRO_TRANSFORM·*al_get_current_projection_transform(void)222 const·ALLEGRO_TRANSFORM·*al_get_current_projection_transform(void)
227 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e223 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
228 If·there·is·no·target·bitmap,·this·function·returns·NULL.224 If·there·is·no·target·bitmap,·this·function·returns·NULL.
229 R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation.225 R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation.
230 Since:·5.1.9226 Since:·5.1.9
231 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m227 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m
Offset 300, 17 lines modifiedOffset 296, 17 lines modified
300 ALLEGRO_TRANSFORM·t;296 ALLEGRO_TRANSFORM·t;
301 al_identity_transform(&t);297 al_identity_transform(&t);
302 al_use_transform(&t);298 al_use_transform(&t);
303 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:299 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
304 ····*·trans·-·Transformation·to·alter300 ····*·trans·-·Transformation·to·alter
305 See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m301 See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m
306 Examples:302 Examples:
307 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p 
308 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c 
309 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c303 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c
 304 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p
 305 ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c
310 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*306 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*
311 void·al_build_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y,307 void·al_build_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y,
312 ···float·sx,·float·sy,·float·theta)308 ···float·sx,·float·sy,·float·theta)
313 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e309 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
314 Builds·a·transformation·given·some·parameters.·This·call·is·equivalent·to310 Builds·a·transformation·given·some·parameters.·This·call·is·equivalent·to
315 calling·the·transformations·in·this·order:·make·identity,·rotate,·scale,311 calling·the·transformations·in·this·order:·make·identity,·rotate,·scale,
316 translate.·This·method·is·faster,·however,·than·actually·calling·those312 translate.·This·method·is·faster,·however,·than·actually·calling·those
Offset 322, 16 lines modifiedOffset 318, 16 lines modified
322 ····*·theta·-·Rotation·angle·in·radians318 ····*·theta·-·Rotation·angle·in·radians
323 ·····N\x8No\x8ot\x8te\x8e:·this·function·was·previously·documented·to·be·equivalent·to·a319 ·····N\x8No\x8ot\x8te\x8e:·this·function·was·previously·documented·to·be·equivalent·to·a
324 ·····different·(and·more·useful)·order·of·operations:·identity,·scale,320 ·····different·(and·more·useful)·order·of·operations:·identity,·scale,
325 ·····rotate,·translate.321 ·····rotate,·translate.
326 See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,322 See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,
327 _\x8a_\x8l_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m323 _\x8a_\x8l_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m
328 Examples:324 Examples:
329 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c 
330 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c325 ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c
 326 ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c
331 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c327 ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c
332 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_c\x8ca\x8am\x8me\x8er\x8ra\x8a_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*328 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_c\x8ca\x8am\x8me\x8er\x8ra\x8a_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*
333 void·al_build_camera_transform(ALLEGRO_TRANSFORM·*trans,329 void·al_build_camera_transform(ALLEGRO_TRANSFORM·*trans,
334 ···float·position_x,·float·position_y,·float·position_z,330 ···float·position_x,·float·position_y,·float·position_z,
335 ···float·look_x,·float·look_y,·float·look_z,331 ···float·look_x,·float·look_y,·float·look_z,
336 ···float·up_x,·float·up_y,·float·up_z)332 ···float·up_x,·float·up_y,·float·up_z)
337 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e333 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
Offset 373, 16 lines modifiedOffset 369, 16 lines modified
373 Apply·a·translation·to·a·transformation.369 Apply·a·translation·to·a·transformation.
374 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:370 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
375 ····*·trans·-·Transformation·to·alter371 ····*·trans·-·Transformation·to·alter
376 ····*·x,·y·-·Translation372 ····*·x,·y·-·Translation
377 See·also:·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m373 See·also:·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m
378 Examples:374 Examples:
379 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p375 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p
380 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c 
381 ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c376 ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c
 377 ····*·_\x8e_\x8x_\x8__\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8._\x8c
382 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ro\x8ot\x8ta\x8at\x8te\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*378 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ro\x8ot\x8ta\x8at\x8te\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8*
383 void·al_rotate_transform(ALLEGRO_TRANSFORM·*trans,·float·theta)379 void·al_rotate_transform(ALLEGRO_TRANSFORM·*trans,·float·theta)
384 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e380 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
385 Apply·a·rotation·to·a·transformation.381 Apply·a·rotation·to·a·transformation.
386 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:382 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
387 ····*·trans·-·Transformation·to·alter383 ····*·trans·-·Transformation·to·alter
388 ····*·theta·-·Rotation·angle·in·radians384 ····*·theta·-·Rotation·angle·in·radians
Offset 396, 17 lines modifiedOffset 392, 17 lines modified
396 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e392 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
397 Apply·a·scale·to·a·transformation.393 Apply·a·scale·to·a·transformation.
398 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:394 P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8:
399 ····*·trans·-·Transformation·to·alter395 ····*·trans·-·Transformation·to·alter
400 ····*·sx,·sy·-·Scale396 ····*·sx,·sy·-·Scale
401 See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m397 See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m
402 Examples:398 Examples:
403 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c 
404 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c399 ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c
405 ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c400 ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c
 401 ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c
406 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m_\x8_c\x8co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*402 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m_\x8_c\x8co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*
407 void·al_transform_coordinates(const·ALLEGRO_TRANSFORM·*trans,·float·*x,·float403 void·al_transform_coordinates(const·ALLEGRO_TRANSFORM·*trans,·float·*x,·float
408 *y)404 *y)
409 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e405 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
410 Transform·a·pair·of·coordinates.406 Transform·a·pair·of·coordinates.
Max diff block lines reached; 2461/9550 bytes (25.77%) of diff not shown.
27.4 KB
./usr/share/doc/allegro5-doc/refman/utf8.html
    
Offset 444, 46 lines modifiedOffset 444, 28 lines modified
444 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR<span·class="op">;</span></span></code></pre></div>444 <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR<span·class="op">;</span></span></code></pre></div>
445 <p><a445 <p><a
446 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source446 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source
447 Code</a></p>447 Code</a></p>
448 <p>An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain448 <p>An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain
449 UTF-8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,449 UTF-8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,
450 including·NULs.</p>450 including·NULs.</p>
451 <p>Examples:</p> 
452 <ul> 
453 <li><a 
454 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L248">ex_font_multiline.cpp</a></li> 
455 <li><a 
456 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L39">nihgui.cpp</a></li> 
457 <li><a 
458 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L57">ex_blend.c</a></li> 
459 </ul> 
460 <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2>451 <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2>
461 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO<span·class="op">;</span></span></code></pre></div>452 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO<span·class="op">;</span></span></code></pre></div>
462 <p><a453 <p><a
463 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source454 href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source
464 Code</a></p>455 Code</a></p>
465 <p>A·type·that·holds·additional·information·for·an·<a456 <p>A·type·that·holds·additional·information·for·an·<a
466 href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an457 href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an
467 external·memory·buffer.·You·can·convert·it·back·to·<a458 external·memory·buffer.·You·can·convert·it·back·to·<a
468 href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·via·<a459 href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·via·<a
469 href="utf8.html#al_ref_info">al_ref_info</a>.</p>460 href="utf8.html#al_ref_info">al_ref_info</a>.</p>
470 <p>See·also:·<a·href="utf8.html#al_ref_cstr">al_ref_cstr</a>,·<a461 <p>See·also:·<a·href="utf8.html#al_ref_cstr">al_ref_cstr</a>,·<a
471 href="utf8.html#al_ref_buffer">al_ref_buffer</a>,·<a462 href="utf8.html#al_ref_buffer">al_ref_buffer</a>,·<a
472 href="utf8.html#al_ref_info">al_ref_info</a>·and·<a463 href="utf8.html#al_ref_info">al_ref_info</a>·and·<a
473 href="utf8.html#al_ref_ustr">al_ref_ustr</a>.</p>464 href="utf8.html#al_ref_ustr">al_ref_ustr</a>.</p>
474 <p>Examples:</p> 
475 <ul> 
476 <li><a 
477 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L248">ex_font_multiline.cpp</a></li> 
478 <li><a 
479 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L39">nihgui.cpp</a></li> 
480 <li><a 
481 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L57">ex_blend.c</a></li> 
482 </ul> 
483 <h1·id="creating-and-destroying-strings">Creating·and·destroying465 <h1·id="creating-and-destroying-strings">Creating·and·destroying
484 strings</h1>466 strings</h1>
485 <h2·id="al_ustr_new">al_ustr_new</h2>467 <h2·id="al_ustr_new">al_ustr_new</h2>
486 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_new<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">)</span></span></code></pre></div>468 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_new<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">)</span></span></code></pre></div>
487 <p><a469 <p><a
488 href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L62">Source470 href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L62">Source
489 Code</a></p>471 Code</a></p>
Offset 498, 15 lines modifiedOffset 480, 15 lines modified
498 <p>Examples:</p>480 <p>Examples:</p>
499 <ul>481 <ul>
500 <li><a482 <li><a
501 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L756">nihgui.cpp</a></li>483 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L756">nihgui.cpp</a></li>
502 <li><a484 <li><a
503 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L65">ex_loading_thread.c</a></li>485 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L65">ex_loading_thread.c</a></li>
504 <li><a486 <li><a
505 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L54">ex_utf8.c</a></li>487 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L63">ex_ttf.c</a></li>
506 </ul>488 </ul>
507 <h2·id="al_ustr_new_from_buffer">al_ustr_new_from_buffer</h2>489 <h2·id="al_ustr_new_from_buffer">al_ustr_new_from_buffer</h2>
508 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_new_from_buffer<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div>490 <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_new_from_buffer<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div>
509 <p><a491 <p><a
510 href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L70">Source492 href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L70">Source
511 Code</a></p>493 Code</a></p>
512 <p>Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by494 <p>Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by
Offset 557, 15 lines modifiedOffset 539, 15 lines modified
557 <p>Examples:</p>539 <p>Examples:</p>
558 <ul>540 <ul>
559 <li><a541 <li><a
560 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L761">nihgui.cpp</a></li>542 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L761">nihgui.cpp</a></li>
561 <li><a543 <li><a
562 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L77">ex_loading_thread.c</a></li>544 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L77">ex_loading_thread.c</a></li>
563 <li><a545 <li><a
564 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L61">ex_utf8.c</a></li>546 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_logo.c#L490">ex_logo.c</a></li>
565 </ul>547 </ul>
566 <h2·id="al_cstr">al_cstr</h2>548 <h2·id="al_cstr">al_cstr</h2>
567 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_cstr<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div>549 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_cstr<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div>
568 <p><a550 <p><a
569 href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L101">Source551 href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L101">Source
570 Code</a></p>552 Code</a></p>
571 <p>Get·a·<code>char·*</code>·pointer·to·the·data·in·a·string.·This553 <p>Get·a·<code>char·*</code>·pointer·to·the·data·in·a·string.·This
Offset 591, 15 lines modifiedOffset 573, 15 lines modified
591 <p>Examples:</p>573 <p>Examples:</p>
592 <ul>574 <ul>
593 <li><a575 <li><a
594 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L895">nihgui.cpp</a></li>576 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L895">nihgui.cpp</a></li>
595 <li><a577 <li><a
596 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L76">ex_loading_thread.c</a></li>578 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L76">ex_loading_thread.c</a></li>
597 <li><a579 <li><a
598 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L57">ex_utf8.c</a></li>580 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_logo.c#L487">ex_logo.c</a></li>
599 </ul>581 </ul>
600 <h2·id="al_ustr_to_buffer">al_ustr_to_buffer</h2>582 <h2·id="al_ustr_to_buffer">al_ustr_to_buffer</h2>
601 <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_ustr_to_buffer<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">*</span>buffer<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">)</span></span></code></pre></div>583 <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_ustr_to_buffer<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">*</span>buffer<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">)</span></span></code></pre></div>
602 <p><a584 <p><a
603 href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L110">Source585 href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L110">Source
604 Code</a></p>586 Code</a></p>
605 <p>Write·the·contents·of·the·string·into·a·pre-allocated·buffer·of·the587 <p>Write·the·contents·of·the·string·into·a·pre-allocated·buffer·of·the
Offset 698, 17 lines modifiedOffset 680, 17 lines modified
698 <p>See·also:·<a·href="utf8.html#al_ref_buffer">al_ref_buffer</a>,·<a680 <p>See·also:·<a·href="utf8.html#al_ref_buffer">al_ref_buffer</a>,·<a
699 href="utf8.html#al_ref_ustr">al_ref_ustr</a></p>681 href="utf8.html#al_ref_ustr">al_ref_ustr</a></p>
700 <p>Examples:</p>682 <p>Examples:</p>
701 <ul>683 <ul>
702 <li><a684 <li><a
703 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L58">ex_blend.c</a></li>685 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L58">ex_blend.c</a></li>
704 <li><a686 <li><a
705 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L76">ex_utf8.c</a></li> 
706 <li><a 
707 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L117">ex_ttf.c</a></li>687 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L117">ex_ttf.c</a></li>
 688 <li><a
 689 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L76">ex_utf8.c</a></li>
708 </ul>690 </ul>
709 <h2·id="al_ref_buffer">al_ref_buffer</h2>691 <h2·id="al_ref_buffer">al_ref_buffer</h2>
710 <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>al_ref_buffer<span·class="op">(</span>ALLEGRO_USTR_INFO·<span·class="op">*</span>info<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div>692 <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>al_ref_buffer<span·class="op">(</span>ALLEGRO_USTR_INFO·<span·class="op">*</span>info<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div>
711 <p><a693 <p><a
712 href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L173">Source694 href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L173">Source
713 Code</a></p>695 Code</a></p>
714 <p>Create·a·string·that·references·the·storage·of·an·underlying·buffer.696 <p>Create·a·string·that·references·the·storage·of·an·underlying·buffer.
Offset 749, 15 lines modifiedOffset 731, 15 lines modified
749 <p>Examples:</p>731 <p>Examples:</p>
750 <ul>732 <ul>
751 <li><a733 <li><a
752 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L47">nihgui.cpp</a></li>734 href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L47">nihgui.cpp</a></li>
753 <li><a735 <li><a
754 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L62">ex_blend.c</a></li>736 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L62">ex_blend.c</a></li>
755 <li><a737 <li><a
756 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L102">ex_utf8.c</a></li>738 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L116">ex_ttf.c</a></li>
757 </ul>739 </ul>
758 <h2·id="al_ref_info">al_ref_info</h2>740 <h2·id="al_ref_info">al_ref_info</h2>
759 <div·class="sourceCode"·id="cb19"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb19-1"><a·href="#cb19-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>al_ref_info<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR_INFO·<span·class="op">*</span>info<span·class="op">)</span></span></code></pre></div>741 <div·class="sourceCode"·id="cb19"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb19-1"><a·href="#cb19-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>al_ref_info<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR_INFO·<span·class="op">*</span>info<span·class="op">)</span></span></code></pre></div>
760 <p><a742 <p><a
Max diff block lines reached; 7638/16401 bytes (46.57%) of diff not shown.
11.3 KB
html2text {}
    
Offset 195, 41 lines modifiedOffset 195, 33 lines modified
195 *\x8**\x8**\x8**\x8**\x8**\x8*·U\x8UT\x8TF\x8F-\x8-8\x88·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·t\x8ty\x8yp\x8pe\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*195 *\x8**\x8**\x8**\x8**\x8**\x8*·U\x8UT\x8TF\x8F-\x8-8\x88·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·t\x8ty\x8yp\x8pe\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*
196 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R·*\x8**\x8**\x8**\x8**\x8*196 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R·*\x8**\x8**\x8**\x8**\x8*
197 typedef·struct·_al_tagbstring·ALLEGRO_USTR;197 typedef·struct·_al_tagbstring·ALLEGRO_USTR;
198 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e198 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
199 An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF-199 An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF-
200 8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including200 8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including
201 NULs.201 NULs.
202 Examples: 
203 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p 
204 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p 
205 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c 
206 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R_\x8_I\x8IN\x8NF\x8FO\x8O·*\x8**\x8**\x8**\x8**\x8*202 *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R_\x8_I\x8IN\x8NF\x8FO\x8O·*\x8**\x8**\x8**\x8**\x8*
207 typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO;203 typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO;
208 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e204 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
209 A·type·that·holds·additional·information·for·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·that·references·an205 A·type·that·holds·additional·information·for·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·that·references·an
210 external·memory·buffer.·You·can·convert·it·back·to·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·via206 external·memory·buffer.·You·can·convert·it·back·to·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·via
211 _\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8i_\x8n_\x8f_\x8o.207 _\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8i_\x8n_\x8f_\x8o.
212 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8i_\x8n_\x8f_\x8o·and·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r.208 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8i_\x8n_\x8f_\x8o·and·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r.
213 Examples: 
214 ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p 
215 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p 
216 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c 
217 *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Cr\x8re\x8ea\x8at\x8ti\x8in\x8ng\x8g·a\x8an\x8nd\x8d·d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8yi\x8in\x8ng\x8g·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*209 *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Cr\x8re\x8ea\x8at\x8ti\x8in\x8ng\x8g·a\x8an\x8nd\x8d·d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8yi\x8in\x8ng\x8g·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*
218 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w·*\x8**\x8**\x8**\x8**\x8*210 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w·*\x8**\x8**\x8**\x8**\x8*
219 ALLEGRO_USTR·*al_ustr_new(const·char·*s)211 ALLEGRO_USTR·*al_ustr_new(const·char·*s)
220 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e212 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
221 Create·a·new·string·containing·a·copy·of·the·C-style·string·s.·The·string·must213 Create·a·new·string·containing·a·copy·of·the·C-style·string·s.·The·string·must
222 eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e.214 eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e.
223 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p,215 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p,
224 _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8u_\x8t_\x8f_\x81_\x86216 _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8u_\x8t_\x8f_\x81_\x86
225 Examples:217 Examples:
226 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p218 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p
227 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c219 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c
228 ····*·_\x8e_\x8x_\x8__\x8u_.t_.f_.8_\x8._\x8c220 ····*·_\x8e_\x8x_\x8__\x8t_.t_.f_\x8._\x8c
229 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w_\x8_f\x8fr\x8ro\x8om\x8m_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8*221 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w_\x8_f\x8fr\x8ro\x8om\x8m_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8*
230 ALLEGRO_USTR·*al_ustr_new_from_buffer(const·char·*s,·size_t·size)222 ALLEGRO_USTR·*al_ustr_new_from_buffer(const·char·*s,·size_t·size)
231 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e223 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
232 Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by·s·of·the224 Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by·s·of·the
233 given·size·in·bytes.·The·string·must·eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e.225 given·size·in·bytes.·The·string·must·eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e.
234 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w226 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w
235 Examples:227 Examples:
Offset 255, 15 lines modifiedOffset 247, 15 lines modified
255 void·al_ustr_free(ALLEGRO_USTR·*us)247 void·al_ustr_free(ALLEGRO_USTR·*us)
256 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e248 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
257 Free·a·previously·allocated·string.·Does·nothing·if·the·argument·is·NULL.249 Free·a·previously·allocated·string.·Does·nothing·if·the·argument·is·NULL.
258 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f250 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f
259 Examples:251 Examples:
260 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p252 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p
261 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c253 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c
262 ····*·_\x8e_\x8x_\x8__\x8u_.t_.f_.8_\x8._\x8c254 ····*·_\x8e_\x8x_\x8__\x8l_.o_.g_.o_\x8._\x8c
263 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8*255 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8*
264 const·char·*al_cstr(const·ALLEGRO_USTR·*us)256 const·char·*al_cstr(const·ALLEGRO_USTR·*us)
265 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e257 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
266 Get·a·char·*·pointer·to·the·data·in·a·string.·This·pointer·will·only·be·valid258 Get·a·char·*·pointer·to·the·data·in·a·string.·This·pointer·will·only·be·valid
267 while·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·object·is·not·modified·and·not·destroyed.·The·pointer259 while·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·object·is·not·modified·and·not·destroyed.·The·pointer
268 may·be·passed·to·functions·expecting·C-style·strings,·with·the·following260 may·be·passed·to·functions·expecting·C-style·strings,·with·the·following
269 caveats:261 caveats:
Offset 276, 15 lines modifiedOffset 268, 15 lines modified
276 ····*·If·the·ALLEGRO_USTR·references·another·string,·the·returned·C·string·will268 ····*·If·the·ALLEGRO_USTR·references·another·string,·the·returned·C·string·will
277 ······point·into·the·referenced·string.·Again,·no·NUL·terminator·will·be·added269 ······point·into·the·referenced·string.·Again,·no·NUL·terminator·will·be·added
278 ······to·the·referenced·string.270 ······to·the·referenced·string.
279 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8t_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p271 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8t_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p
280 Examples:272 Examples:
281 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p273 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p
282 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c274 ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c
283 ····*·_\x8e_\x8x_\x8__\x8u_.t_.f_.8_\x8._\x8c275 ····*·_\x8e_\x8x_\x8__\x8l_.o_.g_.o_\x8._\x8c
284 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_t\x8to\x8o_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8*276 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_t\x8to\x8o_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8*
285 void·al_ustr_to_buffer(const·ALLEGRO_USTR·*us,·char·*buffer,·int·size)277 void·al_ustr_to_buffer(const·ALLEGRO_USTR·*us,·char·*buffer,·int·size)
286 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e278 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
287 Write·the·contents·of·the·string·into·a·pre-allocated·buffer·of·the·given·size279 Write·the·contents·of·the·string·into·a·pre-allocated·buffer·of·the·given·size
288 in·bytes.·The·result·will·always·be·NUL·terminated,·so·a·maximum·of·size·-·1280 in·bytes.·The·result·will·always·be·NUL·terminated,·so·a·maximum·of·size·-·1
289 bytes·will·be·copied.281 bytes·will·be·copied.
290 See·also:·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p282 See·also:·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p
Offset 340, 16 lines modifiedOffset 332, 16 lines modified
340 The·string·is·valid·until·the·underlying·C·string·disappears.332 The·string·is·valid·until·the·underlying·C·string·disappears.
341 Example:333 Example:
342 ALLEGRO_USTR_INFO·info;334 ALLEGRO_USTR_INFO·info;
343 ALLEGRO_USTR·*us·=·al_ref_cstr(&info,·"my·string");335 ALLEGRO_USTR·*us·=·al_ref_cstr(&info,·"my·string");
344 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r336 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r
345 Examples:337 Examples:
346 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c338 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c
347 ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c 
348 ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c339 ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c
 340 ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c
349 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ef\x8f_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8*341 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ef\x8f_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8*
350 const·ALLEGRO_USTR·*al_ref_buffer(ALLEGRO_USTR_INFO·*info,·const·char·*s,342 const·ALLEGRO_USTR·*al_ref_buffer(ALLEGRO_USTR_INFO·*info,·const·char·*s,
351 size_t·size)343 size_t·size)
352 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e344 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
353 Create·a·string·that·references·the·storage·of·an·underlying·buffer.·The·size345 Create·a·string·that·references·the·storage·of·an·underlying·buffer.·The·size
354 of·the·buffer·is·given·in·bytes.·You·can·use·it·to·reference·only·part·of·a346 of·the·buffer·is·given·in·bytes.·You·can·use·it·to·reference·only·part·of·a
355 string·or·an·arbitrary·region·of·memory.347 string·or·an·arbitrary·region·of·memory.
Offset 372, 15 lines modifiedOffset 364, 15 lines modified
372 The·string·is·valid·until·the·underlying·string·is·modified·or·destroyed.364 The·string·is·valid·until·the·underlying·string·is·modified·or·destroyed.
373 If·you·need·a·range·of·code-points·instead·of·bytes,·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find365 If·you·need·a·range·of·code-points·instead·of·bytes,·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find
374 the·byte·offsets.366 the·byte·offsets.
375 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r367 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r
376 Examples:368 Examples:
377 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p369 ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p
378 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c370 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c
379 ····*·_\x8e_\x8x_\x8__\x8u_.t_.f_.8_\x8._\x8c371 ····*·_\x8e_\x8x_\x8__\x8t_.t_.f_\x8._\x8c
380 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ef\x8f_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8*372 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ef\x8f_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8*
381 const·ALLEGRO_USTR·*al_ref_info(const·ALLEGRO_USTR_INFO·*info)373 const·ALLEGRO_USTR·*al_ref_info(const·ALLEGRO_USTR_INFO·*info)
382 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e374 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
383 Create·a·read-only·string·that·references·the·storage·of·another·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R375 Create·a·read-only·string·that·references·the·storage·of·another·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R
384 string·that·has·already·been·stored·in·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R_\x8__\x8I_\x8N_\x8F_\x8O·structure.376 string·that·has·already·been·stored·in·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R_\x8__\x8I_\x8N_\x8F_\x8O·structure.
385 The·string·is·valid·until·the·underlying·string·is·modified·or·destroyed.377 The·string·is·valid·until·the·underlying·string·is·modified·or·destroyed.
386 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r378 See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r
Offset 398, 30 lines modifiedOffset 390, 30 lines modified
398 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8*390 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8*
399 size_t·al_ustr_length(const·ALLEGRO_USTR·*us)391 size_t·al_ustr_length(const·ALLEGRO_USTR·*us)
400 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e392 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
401 Return·the·number·of·code·points·in·the·string.393 Return·the·number·of·code·points·in·the·string.
402 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8s_\x8i_\x8z_\x8e,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t394 See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8s_\x8i_\x8z_\x8e,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t
403 Examples:395 Examples:
404 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c396 ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c
405 ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c 
406 ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c397 ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c
 398 ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c
407 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t·*\x8**\x8**\x8**\x8**\x8*399 *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t·*\x8**\x8**\x8**\x8**\x8*
408 int·al_ustr_offset(const·ALLEGRO_USTR·*us,·int·index)400 int·al_ustr_offset(const·ALLEGRO_USTR·*us,·int·index)
409 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e401 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
410 Return·the·byte·offset·(from·the·start·of·the·string)·of·the·code·point·at·the402 Return·the·byte·offset·(from·the·start·of·the·string)·of·the·code·point·at·the
411 specified·index·in·the·string.·A·zero·index·parameter·will·return·the·first403 specified·index·in·the·string.·A·zero·index·parameter·will·return·the·first
412 character·of·the·string.·If·index·is·negative,·it·counts·backward·from·the·end404 character·of·the·string.·If·index·is·negative,·it·counts·backward·from·the·end
413 of·the·string,·so·an·index·of·-1·will·return·an·offset·to·the·last·code·point.405 of·the·string,·so·an·index·of·-1·will·return·an·offset·to·the·last·code·point.
414 If·the·index·is·past·the·end·of·the·string,·returns·the·offset·of·the·end·of406 If·the·index·is·past·the·end·of·the·string,·returns·the·offset·of·the·end·of
415 the·string.407 the·string.
Max diff block lines reached; 4175/11523 bytes (36.23%) of diff not shown.
20.8 KB
./usr/share/doc/allegro5-doc/refman/video.html
    
Offset 290, 19 lines modifiedOffset 290, 14 lines modified
290 <h1·id="al_init_video_addon">al_init_video_addon</h1>290 <h1·id="al_init_video_addon">al_init_video_addon</h1>
291 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>291 <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
292 <p><a292 <p><a
293 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L275">Source293 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L275">Source
294 Code</a></p>294 Code</a></p>
295 <p>Initializes·the·video·addon.</p>295 <p>Initializes·the·video·addon.</p>
296 <p>Since:·5.1.12</p>296 <p>Since:·5.1.12</p>
297 <p>Examples:</p> 
298 <ul> 
299 <li><a 
300 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L114">ex_video.c</a></li> 
301 </ul> 
302 <h1297 <h1
303 id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1>298 id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1>
304 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_video_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>299 <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_video_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div>
305 <p><a300 <p><a
306 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L297">Source301 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L297">Source
307 Code</a></p>302 Code</a></p>
308 <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns303 <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns
Offset 328, 19 lines modifiedOffset 323, 14 lines modified
328 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_VIDEO·<span·class="op">*</span>al_open_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div>323 <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_VIDEO·<span·class="op">*</span>al_open_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div>
329 <p><a324 <p><a
330 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L100">Source325 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L100">Source
331 Code</a></p>326 Code</a></p>
332 <p>Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the327 <p>Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the
333 meta·info·so·you·can·query·e.g. the·size·or·audio·rate.</p>328 meta·info·so·you·can·query·e.g. the·size·or·audio·rate.</p>
334 <p>Since:·5.1.0</p>329 <p>Since:·5.1.0</p>
335 <p>Examples:</p> 
336 <ul> 
337 <li><a 
338 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L141">ex_video.c</a></li> 
339 </ul> 
340 <h1·id="al_identify_video">al_identify_video</h1>330 <h1·id="al_identify_video">al_identify_video</h1>
341 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div>331 <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div>
342 <p><a332 <p><a
343 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L334">Source333 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L334">Source
344 Code</a></p>334 Code</a></p>
345 <p>This·works·exactly·as·<a335 <p>This·works·exactly·as·<a
346 href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you336 href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you
Offset 372, 31 lines modifiedOffset 362, 21 lines modified
372 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_close_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div>362 <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_close_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div>
373 <p><a363 <p><a
374 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L141">Source364 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L141">Source
375 Code</a></p>365 Code</a></p>
376 <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer366 <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer
377 is·invalid·after·the·function·returns.</p>367 is·invalid·after·the·function·returns.</p>
378 <p>Since:·5.1.0</p>368 <p>Since:·5.1.0</p>
379 <p>Examples:</p> 
380 <ul> 
381 <li><a 
382 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L180">ex_video.c</a></li> 
383 </ul> 
384 <h1·id="al_start_video">al_start_video</h1>369 <h1·id="al_start_video">al_start_video</h1>
385 <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_MIXER·<span·class="op">*</span>mixer<span·class="op">)</span></span></code></pre></div>370 <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_MIXER·<span·class="op">*</span>mixer<span·class="op">)</span></span></code></pre></div>
386 <p><a371 <p><a
387 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L164">Source372 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L164">Source
388 Code</a></p>373 Code</a></p>
389 <p>Starts·playing·the·video·from·the·beginning.</p>374 <p>Starts·playing·the·video·from·the·beginning.</p>
390 <p>Since:·5.1.0</p>375 <p>Since:·5.1.0</p>
391 <p>Examples:</p> 
392 <ul> 
393 <li><a 
394 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L162">ex_video.c</a></li> 
395 </ul> 
396 <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1>376 <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1>
397 <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_video_with_voice<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_VOICE·<span·class="op">*</span>voice<span·class="op">)</span></span></code></pre></div>377 <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_video_with_voice<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_VOICE·<span·class="op">*</span>voice<span·class="op">)</span></span></code></pre></div>
398 <p><a378 <p><a
399 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L179">Source379 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L179">Source
400 Code</a></p>380 Code</a></p>
401 <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio381 <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio
402 is·routed·to·the·provided·voice.</p>382 is·routed·to·the·provided·voice.</p>
Offset 406, 100 lines modifiedOffset 386, 65 lines modified
406 <p><a386 <p><a
407 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L156">Source387 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L156">Source
408 Code</a></p>388 Code</a></p>
409 <p>Get·an·event·source·for·the·video.·The·possible·events·are·described389 <p>Get·an·event·source·for·the·video.·The·possible·events·are·described
410 under·<a390 under·<a
411 href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p>391 href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p>
412 <p>Since:·5.1.0</p>392 <p>Since:·5.1.0</p>
413 <p>Examples:</p> 
414 <ul> 
415 <li><a 
416 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L157">ex_video.c</a></li> 
417 </ul> 
418 <h1·id="al_set_video_playing">al_set_video_playing</h1>393 <h1·id="al_set_video_playing">al_set_video_playing</h1>
419 <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·<span·class="dt">bool</span>·play<span·class="op">)</span></span></code></pre></div>394 <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·<span·class="dt">bool</span>·play<span·class="op">)</span></span></code></pre></div>
420 <p><a395 <p><a
421 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L190">Source396 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L190">Source
422 Code</a></p>397 Code</a></p>
423 <p>Paused·or·resumes·playback.</p>398 <p>Paused·or·resumes·playback.</p>
424 <p>Since:·5.1.12</p>399 <p>Since:·5.1.12</p>
425 <p>Examples:</p> 
426 <ul> 
427 <li><a 
428 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L177">ex_video.c</a></li> 
429 </ul> 
430 <h1·id="al_is_video_playing">al_is_video_playing</h1>400 <h1·id="al_is_video_playing">al_is_video_playing</h1>
431 <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div>401 <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div>
432 <p><a402 <p><a
433 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L202">Source403 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L202">Source
434 Code</a></p>404 Code</a></p>
435 <p>Returns·true·if·the·video·is·currently·playing.</p>405 <p>Returns·true·if·the·video·is·currently·playing.</p>
436 <p>Since:·5.1.12</p>406 <p>Since:·5.1.12</p>
437 <p>Examples:</p> 
438 <ul> 
439 <li><a 
440 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L74">ex_video.c</a></li> 
441 </ul> 
442 <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1>407 <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1>
443 <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_video_audio_rate<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div>408 <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_video_audio_rate<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div>
444 <p><a409 <p><a
445 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L243">Source410 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L243">Source
446 Code</a></p>411 Code</a></p>
447 <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p>412 <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p>
448 <p>Since:·5.1.0</p>413 <p>Since:·5.1.0</p>
449 <p>Examples:</p> 
450 <ul> 
451 <li><a 
452 href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L72">ex_video.c</a></li> 
453 </ul> 
454 <h1·id="al_get_video_fps">al_get_video_fps</h1>414 <h1·id="al_get_video_fps">al_get_video_fps</h1>
455 <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_video_fps<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div>415 <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_video_fps<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div>
456 <p><a416 <p><a
457 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L251">Source417 href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L251">Source
458 Code</a></p>418 Code</a></p>
459 <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will419 <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will
460 not·be·an·integer·value.</p>420 not·be·an·integer·value.</p>
Max diff block lines reached; 5730/13966 bytes (41.03%) of diff not shown.
7.09 KB
html2text {}
    
Offset 109, 16 lines modifiedOffset 109, 14 lines modified
109 ······in·sync.109 ······in·sync.
110 Since:·5.1.11110 Since:·5.1.11
111 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*111 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
112 bool·al_init_video_addon(void)112 bool·al_init_video_addon(void)
113 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e113 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
114 Initializes·the·video·addon.114 Initializes·the·video·addon.
115 Since:·5.1.12115 Since:·5.1.12
116 Examples: 
117 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
118 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*116 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8*
119 bool·al_is_video_addon_initialized(void)117 bool·al_is_video_addon_initialized(void)
120 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e118 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
121 Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false.119 Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false.
122 Since:·5.2.6120 Since:·5.2.6
123 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*121 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8*
124 void·al_shutdown_video_addon(void)122 void·al_shutdown_video_addon(void)
Offset 134, 16 lines modifiedOffset 132, 14 lines modified
134 Since:·5.1.12132 Since:·5.1.12
135 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8*133 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8*
136 ALLEGRO_VIDEO·*al_open_video(char·const·*filename)134 ALLEGRO_VIDEO·*al_open_video(char·const·*filename)
137 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e135 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
138 Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the·meta·info·so136 Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the·meta·info·so
139 you·can·query·e.g. the·size·or·audio·rate.137 you·can·query·e.g. the·size·or·audio·rate.
140 Since:·5.1.0138 Since:·5.1.0
141 Examples: 
142 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
143 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8id\x8de\x8en\x8nt\x8ti\x8if\x8fy\x8y_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8*139 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8id\x8de\x8en\x8nt\x8ti\x8if\x8fy\x8y_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8*
144 char·const·*al_identify_video(char·const·*filename)140 char·const·*al_identify_video(char·const·*filename)
145 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e141 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
146 This·works·exactly·as·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f·but·you·specify·the·filename·of·the142 This·works·exactly·as·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f·but·you·specify·the·filename·of·the
147 file·for·which·to·detect·the·type·and·not·a·file·handle.·The·extension,·if·any,143 file·for·which·to·detect·the·type·and·not·a·file·handle.·The·extension,·if·any,
148 of·the·passed·filename·is·not·taken·into·account·-·only·the·file·contents.144 of·the·passed·filename·is·not·taken·into·account·-·only·the·file·contents.
149 Since:·5.2.8145 Since:·5.2.8
Offset 161, 85 lines modifiedOffset 157, 67 lines modified
161 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o157 See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o
162 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8os\x8se\x8e_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8*158 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8os\x8se\x8e_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8*
163 void·al_close_video(ALLEGRO_VIDEO·*video)159 void·al_close_video(ALLEGRO_VIDEO·*video)
164 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e160 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
165 Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is161 Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is
166 invalid·after·the·function·returns.162 invalid·after·the·function·returns.
167 Since:·5.1.0163 Since:·5.1.0
168 Examples: 
169 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
170 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8*164 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8*
171 void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer)165 void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer)
172 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e166 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
173 Starts·playing·the·video·from·the·beginning.167 Starts·playing·the·video·from·the·beginning.
174 Since:·5.1.0168 Since:·5.1.0
175 Examples: 
176 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
177 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_w\x8wi\x8it\x8th\x8h_\x8_v\x8vo\x8oi\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*169 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_w\x8wi\x8it\x8th\x8h_\x8_v\x8vo\x8oi\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
178 void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice)170 void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice)
179 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e171 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
180 Like·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o·but·audio·is·routed·to·the·provided·voice.172 Like·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o·but·audio·is·routed·to·the·provided·voice.
181 Since:·5.1.0173 Since:·5.1.0
182 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*174 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
183 ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video)175 ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video)
184 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e176 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
185 Get·an·event·source·for·the·video.·The·possible·events·are·described·under177 Get·an·event·source·for·the·video.·The·possible·events·are·described·under
186 _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8V_\x8I_\x8D_\x8E_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E.178 _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8V_\x8I_\x8D_\x8E_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E.
187 Since:·5.1.0179 Since:·5.1.0
188 Examples: 
189 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
190 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_p\x8pl\x8la\x8ay\x8yi\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*180 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_p\x8pl\x8la\x8ay\x8yi\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*
191 void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play)181 void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play)
192 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e182 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
193 Paused·or·resumes·playback.183 Paused·or·resumes·playback.
194 Since:·5.1.12184 Since:·5.1.12
195 Examples: 
196 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
197 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_p\x8pl\x8la\x8ay\x8yi\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*185 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_p\x8pl\x8la\x8ay\x8yi\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8*
198 bool·al_is_video_playing(ALLEGRO_VIDEO·*video)186 bool·al_is_video_playing(ALLEGRO_VIDEO·*video)
199 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e187 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
200 Returns·true·if·the·video·is·currently·playing.188 Returns·true·if·the·video·is·currently·playing.
201 Since:·5.1.12189 Since:·5.1.12
202 Examples: 
203 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
204 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*190 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
205 double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video)191 double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video)
206 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e192 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
207 Returns·the·audio·rate·of·the·video,·in·Hz.193 Returns·the·audio·rate·of·the·video,·in·Hz.
208 Since:·5.1.0194 Since:·5.1.0
209 Examples: 
210 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
211 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_f\x8fp\x8ps\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*195 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_f\x8fp\x8ps\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*
212 double·al_get_video_fps(ALLEGRO_VIDEO·*video)196 double·al_get_video_fps(ALLEGRO_VIDEO·*video)
213 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e197 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
214 Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an198 Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an
215 integer·value.199 integer·value.
216 Since:·5.1.0200 Since:·5.1.0
217 Examples: 
218 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
219 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_s\x8sc\x8ca\x8al\x8le\x8ed\x8d_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8*201 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_s\x8sc\x8ca\x8al\x8le\x8ed\x8d_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8*
220 float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video)202 float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video)
221 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e203 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
222 Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do204 Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do
223 not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of205 not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of
224 the·frame·bitmap.206 the·frame·bitmap.
225 Since:·5.1.12207 Since:·5.1.12
226 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e208 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e
227 Examples: 
228 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
229 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_s\x8sc\x8ca\x8al\x8le\x8ed\x8d_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8**\x8*209 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_s\x8sc\x8ca\x8al\x8le\x8ed\x8d_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8**\x8*
230 float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video)210 float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video)
231 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e211 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
232 Returns·the·height·with·which·the·video·frame·should·be·drawn.·Videos·often·do212 Returns·the·height·with·which·the·video·frame·should·be·drawn.·Videos·often·do
233 not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·height213 not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·height
234 of·the·frame·bitmap.214 of·the·frame·bitmap.
235 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e215 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e
236 Since:·5.1.12216 Since:·5.1.12
237 Examples: 
238 ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c 
239 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_f\x8fr\x8ra\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*217 *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_f\x8fr\x8ra\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8*
240 ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video)218 ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video)
241 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e219 _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e
242 Returns·the·current·video·frame.·The·bitmap·is·owned·by·the·video·so·do·not220 Returns·the·current·video·frame.·The·bitmap·is·owned·by·the·video·so·do·not
243 attempt·to·free·it.·The·bitmap·will·stay·valid·until·the·next·call·to221 attempt·to·free·it.·The·bitmap·will·stay·valid·until·the·next·call·to
244 al_get_video_frame.222 al_get_video_frame.
245 Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a·video223 Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a·video
Offset 249, 27 lines modifiedOffset 227, 21 lines modified
249 float·sw·=·al_get_bitmap_width(frame);227 float·sw·=·al_get_bitmap_width(frame);
250 float·sh·=·al_get_bitmap_height(frame);228 float·sh·=·al_get_bitmap_height(frame);
251 float·dw·=·scale·*·al_get_video_scaled_width(video);229 float·dw·=·scale·*·al_get_video_scaled_width(video);
252 float·dh·=·scale·*·al_get_video_scaled_height(video);230 float·dh·=·scale·*·al_get_video_scaled_height(video);
253 al_draw_scaled_bitmap(frame,·0,·0,·sw,·sh,·0,·0,·dw,·dh,·0);231 al_draw_scaled_bitmap(frame,·0,·0,·sw,·sh,·0,·0,·dw,·dh,·0);
254 Since:·5.1.0232 Since:·5.1.0
255 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8d_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8d_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t233 See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8d_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8d_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t
Max diff block lines reached; 808/7240 bytes (11.16%) of diff not shown.
426 B
./usr/share/man/man3/ALLEGRO_CONFIG.3alleg5.gz
334 B
ALLEGRO_CONFIG.3alleg5
    
Offset 3, 10 lines modifiedOffset 3, 12 lines modified
3 .TH·"ALLEGRO_CONFIG"·"3alleg5"·""·"Allegro·reference·manual"·""3 .TH·"ALLEGRO_CONFIG"·"3alleg5"·""·"Allegro·reference·manual"·""
4 .SH·NAME4 .SH·NAME
5 ALLEGRO_CONFIG·\-·Allegro·5·API5 ALLEGRO_CONFIG·\-·Allegro·5·API
6 .SH·SYNOPSIS6 .SH·SYNOPSIS
7 .IP7 .IP
8 .EX8 .EX
9 #include·<allegro5/allegro.h>9 #include·<allegro5/allegro.h>
  
 10 typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG;
10 .EE11 .EE
11 .SH·DESCRIPTION12 .SH·DESCRIPTION
12 An·abstract·configuration·structure.13 An·abstract·configuration·structure.
605 B
./usr/share/man/man3/ALLEGRO_CONFIG_ENTRY.3alleg5.gz
501 B
ALLEGRO_CONFIG_ENTRY.3alleg5
    
Offset 3, 13 lines modifiedOffset 3, 15 lines modified
3 .TH·"ALLEGRO_CONFIG_ENTRY"·"3alleg5"·""·"Allegro·reference·manual"·""3 .TH·"ALLEGRO_CONFIG_ENTRY"·"3alleg5"·""·"Allegro·reference·manual"·""
4 .SH·NAME4 .SH·NAME
5 ALLEGRO_CONFIG_ENTRY·\-·Allegro·5·API5 ALLEGRO_CONFIG_ENTRY·\-·Allegro·5·API
6 .SH·SYNOPSIS6 .SH·SYNOPSIS
7 .IP7 .IP
8 .EX8 .EX
9 #include·<allegro5/allegro.h>9 #include·<allegro5/allegro.h>
  
 10 typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY;
10 .EE11 .EE
11 .SH·DESCRIPTION12 .SH·DESCRIPTION
12 An·opaque·structure·used·for·iterating·across·entries·in·a·configuration13 An·opaque·structure·used·for·iterating·across·entries·in·a·configuration
13 section.14 section.
14 .SH·SEE·ALSO15 .SH·SEE·ALSO
15 al_get_first_config_entry(3alleg5),·al_get_next_config_entry(3alleg5)16 al_get_first_config_entry(3alleg5),·al_get_next_config_entry(3alleg5)
629 B
./usr/share/man/man3/ALLEGRO_CONFIG_SECTION.3alleg5.gz
521 B
ALLEGRO_CONFIG_SECTION.3alleg5
    
Offset 3, 14 lines modifiedOffset 3, 16 lines modified
3 .TH·"ALLEGRO_CONFIG_SECTION"·"3alleg5"·""·"Allegro·reference·manual"·""3 .TH·"ALLEGRO_CONFIG_SECTION"·"3alleg5"·""·"Allegro·reference·manual"·""
4 .SH·NAME4 .SH·NAME
5 ALLEGRO_CONFIG_SECTION·\-·Allegro·5·API5 ALLEGRO_CONFIG_SECTION·\-·Allegro·5·API
6 .SH·SYNOPSIS6 .SH·SYNOPSIS
7 .IP7 .IP
8 .EX8 .EX
9 #include·<allegro5/allegro.h>9 #include·<allegro5/allegro.h>
  
 10 typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION;
10 .EE11 .EE
11 .SH·DESCRIPTION12 .SH·DESCRIPTION
12 An·opaque·structure·used·for·iterating·across·sections·in·a13 An·opaque·structure·used·for·iterating·across·sections·in·a
13 configuration·structure.14 configuration·structure.
14 .SH·SEE·ALSO15 .SH·SEE·ALSO
15 al_get_first_config_section(3alleg5),16 al_get_first_config_section(3alleg5),
16 al_get_next_config_section(3alleg5)17 al_get_next_config_section(3alleg5)