Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | · | 1 | ·3486a384b64530eeb0a36f381d8794fb·1408444·doc·optional·allegro5-doc_5.2.10.0+dfsg-1_all.deb |
2 | ·897fcce54ba41da8a3b38f87effb7498·19288·libdevel·optional·liballegro-acodec5-dev_5.2.10.0+dfsg-1_arm64.deb | 2 | ·897fcce54ba41da8a3b38f87effb7498·19288·libdevel·optional·liballegro-acodec5-dev_5.2.10.0+dfsg-1_arm64.deb |
3 | ·21e36b9e9a5214567a8a3872fad2e7e1·63336·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.10.0+dfsg-1_arm64.deb | 3 | ·21e36b9e9a5214567a8a3872fad2e7e1·63336·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.10.0+dfsg-1_arm64.deb |
4 | ·a1b557363279b5441514550b154e2374·38048·libs·optional·liballegro-acodec5.2t64_5.2.10.0+dfsg-1_arm64.deb | 4 | ·a1b557363279b5441514550b154e2374·38048·libs·optional·liballegro-acodec5.2t64_5.2.10.0+dfsg-1_arm64.deb |
5 | ·612e0397af17320c7071b7bdd4a0c20c·22060·libdevel·optional·liballegro-audio5-dev_5.2.10.0+dfsg-1_arm64.deb | 5 | ·612e0397af17320c7071b7bdd4a0c20c·22060·libdevel·optional·liballegro-audio5-dev_5.2.10.0+dfsg-1_arm64.deb |
6 | ·e94b88ab0fb2f2e1fbc936a6ea33ffc9·106912·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.10.0+dfsg-1_arm64.deb | 6 | ·e94b88ab0fb2f2e1fbc936a6ea33ffc9·106912·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.10.0+dfsg-1_arm64.deb |
7 | ·bc36f1e2fa8f0081c8316f0603143861·56836·libs·optional·liballegro-audio5.2t64_5.2.10.0+dfsg-1_arm64.deb | 7 | ·bc36f1e2fa8f0081c8316f0603143861·56836·libs·optional·liballegro-audio5.2t64_5.2.10.0+dfsg-1_arm64.deb |
8 | ·aa83ce97685d69f037ac94b2ce3c418f·20340·libdevel·optional·liballegro-dialog5-dev_5.2.10.0+dfsg-1_arm64.deb | 8 | ·aa83ce97685d69f037ac94b2ce3c418f·20340·libdevel·optional·liballegro-dialog5-dev_5.2.10.0+dfsg-1_arm64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-11-29·14:21:22.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-11-29·14:21:22.000000·debian-binary |
2 | -rw-r--r--···0········0········0····3166 | 2 | -rw-r--r--···0········0········0····31664·2024-11-29·14:21:22.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··13 | 3 | -rw-r--r--···0········0········0··1376588·2024-11-29·14:21:22.000000·data.tar.xz |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | Package:·allegro5-doc | 1 | Package:·allegro5-doc |
2 | Source:·allegro5 | 2 | Source:·allegro5 |
3 | Version:·2:5.2.10.0+dfsg-1 | 3 | Version:·2:5.2.10.0+dfsg-1 |
4 | Architecture:·all | 4 | Architecture:·all |
5 | Maintainer:·Debian·Games·Team·<pkg-games-devel@lists.alioth.debian.org> | 5 | Maintainer:·Debian·Games·Team·<pkg-games-devel@lists.alioth.debian.org> |
6 | Installed-Size:·5 | 6 | Installed-Size:·5782 |
7 | Depends:·fonts-dejavu-core | 7 | Depends:·fonts-dejavu-core |
8 | Section:·doc | 8 | Section:·doc |
9 | Priority:·optional | 9 | Priority:·optional |
10 | Multi-Arch:·foreign | 10 | Multi-Arch:·foreign |
11 | Homepage:·https://liballeg.org/ | 11 | Homepage:·https://liballeg.org/ |
12 | Description:·documentation·for·the·Allegro·5·library | 12 | Description:·documentation·for·the·Allegro·5·library |
13 | ·This·package·contains·the·Allegro·documentation·in·various·formats, | 13 | ·This·package·contains·the·Allegro·documentation·in·various·formats, |
Offset 198, 402 lines modified | Offset 198, 402 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.c | 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.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.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.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.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.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.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.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.cpp | 202 | -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.hpp | 203 | -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)····1 | 205 | -rw-r--r--···0·root·········(0)·root·········(0)····12204·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/acodec.html |
206 | -rw-r--r--···0·root·········(0)·root·········(0)···2 | 206 | -rw-r--r--···0·root·········(0)·root·········(0)···282019·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.js | 207 | -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)···· | 208 | -rw-r--r--···0·root·········(0)·root·········(0)····86641·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/color.html |
209 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 209 | -rw-r--r--···0·root·········(0)·root·········(0)····38404·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.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.html |
211 | -rw-r--r--···0·root·········(0)·root·········(0)····89 | 211 | -rw-r--r--···0·root·········(0)·root·········(0)····89395·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/display.html |
212 | -rw-r--r--···0·root·········(0)·root·········(0)····8 | 212 | -rw-r--r--···0·root·········(0)·root·········(0)····84172·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/events.html |
213 | -rw-r--r--···0·root·········(0)·root·········(0)····62 | 213 | -rw-r--r--···0·root·········(0)·root·········(0)····62816·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/file.html |
214 | -rw-r--r--···0·root·········(0)·root·········(0)····56 | 214 | -rw-r--r--···0·root·········(0)·root·········(0)····56732·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fixed.html |
215 | -rw-r--r--···0·root·········(0)·root·········(0)··· | 215 | -rw-r--r--···0·root·········(0)·root·········(0)···118391·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/font.html |
216 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 216 | -rw-r--r--···0·root·········(0)·root·········(0)····43136·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fshook.html |
217 | -rw-r--r--···0·root·········(0)·root·········(0)····13 | 217 | -rw-r--r--···0·root·········(0)·root·········(0)····13650·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.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.html |
219 | -rw-r--r--···0·root·········(0)·root·········(0)···22 | 219 | -rw-r--r--···0·root·········(0)·root·········(0)···225908·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/graphics.html |
220 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 220 | -rw-r--r--···0·root·········(0)·root·········(0)····70455·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/haptic.html |
221 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 221 | -rw-r--r--···0·root·········(0)·root·········(0)····13270·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.png | 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.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.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.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.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.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.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.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.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.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.html | 228 | -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.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.html |
230 | -rw-r--r--···0·root·········(0)·root·········(0)····35 | 230 | -rw-r--r--···0·root·········(0)·root·········(0)····35825·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/joystick.html |
231 | -rw-r--r--···0·root·········(0)·root·········(0)····24 | 231 | -rw-r--r--···0·root·········(0)·root·········(0)····24344·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.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.html |
233 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 233 | -rw-r--r--···0·root·········(0)·root·········(0)····11156·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/memfile.html |
234 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 234 | -rw-r--r--···0·root·········(0)·root·········(0)····27358·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/memory.html |
235 | -rw-r--r--···0·root·········(0)·root·········(0)····10 | 235 | -rw-r--r--···0·root·········(0)·root·········(0)····10569·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/misc.html |
236 | -rw-r--r--···0·root·········(0)·root·········(0)····15 | 236 | -rw-r--r--···0·root·········(0)·root·········(0)····15525·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/monitor.html |
237 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 237 | -rw-r--r--···0·root·········(0)·root·········(0)····44119·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/mouse.html |
238 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 238 | -rw-r--r--···0·root·········(0)·root·········(0)····94550·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.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.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.css | 240 | -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.html | 241 | -rw-r--r--···0·root·········(0)·root·········(0)····38119·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/path.html |
242 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 242 | -rw-r--r--···0·root·········(0)·root·········(0)····12287·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.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.html |
244 | -rw-r--r--···0·root·········(0)·root·········(0)···14 | 244 | -rw-r--r--···0·root·········(0)·root·········(0)···174891·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.js | 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.js |
246 | -rw-r--r--···0·root·········(0)·root·········(0)····45 | 246 | -rw-r--r--···0·root·········(0)·root·········(0)····46532·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/shader.html |
247 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 247 | -rw-r--r--···0·root·········(0)·root·········(0)····16224·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/state.html |
248 | -rw-r--r--···0·root·········(0)·root·········(0)····72 | 248 | -rw-r--r--···0·root·········(0)·root·········(0)····72892·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/system.html |
249 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 249 | -rw-r--r--···0·root·········(0)·root·········(0)····36034·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.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.html |
251 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 251 | -rw-r--r--···0·root·········(0)·root·········(0)····28713·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/timer.html |
252 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 252 | -rw-r--r--···0·root·········(0)·root·········(0)····23245·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/touch.html |
253 | -rw-r--r--···0·root·········(0)·root·········(0)····82 | 253 | -rw-r--r--···0·root·········(0)·root·········(0)····82635·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/transformations.html |
254 | -rw-r--r--···0·root·········(0)·root·········(0)···104 | 254 | -rw-r--r--···0·root·········(0)·root·········(0)···104905·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/utf8.html |
255 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 255 | -rw-r--r--···0·root·········(0)·root·········(0)····37236·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.allegro5 | 257 | -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)······40 | 260 | -rw-r--r--···0·root·········(0)·root·········(0)······408·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)······25 | 261 | -rw-r--r--···0·root·········(0)·root·········(0)······258·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)······55 | 262 | -rw-r--r--···0·root·········(0)·root·········(0)······556·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz |
263 | -rw-r--r--···0·root·········(0)·root·········(0)······55 | 263 | -rw-r--r--···0·root·········(0)·root·········(0)······559·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_PAN_NONE.3alleg5.gz |
264 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 264 | -rw-r--r--···0·root·········(0)·root·········(0)······320·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_RECORDER.3alleg5.gz |
265 | -rw-r--r--···0·root·········(0)·root·········(0)······47 | 265 | -rw-r--r--···0·root·········(0)·root·········(0)······478·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_RECORDER_EVENT.3alleg5.gz |
266 | -rw-r--r--···0·root·········(0)·root·········(0)·····112 | 266 | -rw-r--r--···0·root·········(0)·root·········(0)·····1127·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_STREAM.3alleg5.gz |
267 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 267 | -rw-r--r--···0·root·········(0)·root·········(0)······250·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_BITMAP.3alleg5.gz |
268 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 268 | -rw-r--r--···0·root·········(0)·root·········(0)······461·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)······25 | 269 | -rw-r--r--···0·root·········(0)·root·········(0)······252·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)······24 | 270 | -rw-r--r--···0·root·········(0)·root·········(0)······249·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)······28 | 271 | -rw-r--r--···0·root·········(0)·root·········(0)······283·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)······31 | 272 | -rw-r--r--···0·root·········(0)·root·········(0)······316·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_COLOR.3alleg5.gz |
273 | -rw-r--r--···0·root·········(0)·root·········(0)······24 | 273 | -rw-r--r--···0·root·········(0)·root·········(0)······249·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_COND.3alleg5.gz |
274 | -rw-r--r--···0·root·········(0)·root·········(0)······23 | 274 | -rw-r--r--···0·root·········(0)·root·········(0)······239·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_CONFIG.3alleg5.gz |
275 | -rw-r--r--···0·root·········(0)·root·········(0)······30 | 275 | -rw-r--r--···0·root·········(0)·root·········(0)······306·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)······30 | 276 | -rw-r--r--···0·root·········(0)·root·········(0)······304·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)······2 | 277 | -rw-r--r--···0·root·········(0)·root·········(0)······251·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_DISPLAY.3alleg5.gz |
278 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 278 | -rw-r--r--···0·root·········(0)·root·········(0)······461·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)·····511 | 279 | -rw-r--r--···0·root·········(0)·root·········(0)·····5119·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT.3alleg5.gz |
280 | -rw-r--r--···0·root·········(0)·root·········(0)······36 | 280 | -rw-r--r--···0·root·········(0)·root·········(0)······369·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)······ | 281 | -rw-r--r--···0·root·········(0)·root·········(0)······402·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)······29 | 282 | -rw-r--r--···0·root·········(0)·root·········(0)······299·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)······3 | 283 | -rw-r--r--···0·root·········(0)·root·········(0)······310·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE_IS_USER.3alleg5.gz |
284 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 284 | -rw-r--r--···0·root·········(0)·root·········(0)······273·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_FILE.3alleg5.gz |
285 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 285 | -rw-r--r--···0·root·········(0)·root·········(0)······252·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_FILECHOOSER.3alleg5.gz |
286 | -rw-r--r--···0·root·········(0)·root·········(0)······77 | 286 | -rw-r--r--···0·root·········(0)·root·········(0)······775·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_FILE_INTERFACE.3alleg5.gz |
287 | -rw-r--r--···0·root·········(0)·root·········(0)······31 | 287 | -rw-r--r--···0·root·········(0)·root·········(0)······314·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_FILE_MODE.3alleg5.gz |
288 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 288 | -rw-r--r--···0·root·········(0)·root·········(0)······413·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_FONT.3alleg5.gz |
289 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 289 | -rw-r--r--···0·root·········(0)·root·········(0)······422·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_FOR_EACH_FS_ENTRY_RESULT.3alleg5.gz |
290 | -rw-r--r--···0·root·········(0)·root·········(0)······31 | 290 | -rw-r--r--···0·root·········(0)·root·········(0)······318·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_FS_ENTRY.3alleg5.gz |
291 | -rw-r--r--···0·root·········(0)·root·········(0)······5 | 291 | -rw-r--r--···0·root·········(0)·root·········(0)······511·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_FS_INTERFACE.3alleg5.gz |
292 | -rw-r--r--···0·root·········(0)·root·········(0)······6 | 292 | -rw-r--r--···0·root·········(0)·root·········(0)······692·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_GET_EVENT_TYPE.3alleg5.gz |
293 | -rw-r--r--···0·root·········(0)·root·········(0)······78 | 293 | -rw-r--r--···0·root·········(0)·root·········(0)······789·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_GLYPH.3alleg5.gz |
294 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 294 | -rw-r--r--···0·root·········(0)·root·········(0)······431·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_HAPTIC.3alleg5.gz |
295 | -rw-r--r--···0·root·········(0)·root·········(0)······81 | 295 | -rw-r--r--···0·root·········(0)·root·········(0)······816·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_CONSTANTS.3alleg5.gz |
296 | -rw-r--r--···0·root·········(0)·root·········(0)·····314 | 296 | -rw-r--r--···0·root·········(0)·root·········(0)·····3144·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_EFFECT.3alleg5.gz |
297 | -rw-r--r--···0·root·········(0)·root·········(0)······45 | 297 | -rw-r--r--···0·root·········(0)·root·········(0)······457·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_EFFECT_ID.3alleg5.gz |
298 | -rw-r--r--···0·root·········(0)·root·········(0)······36 | 298 | -rw-r--r--···0·root·········(0)·root·········(0)······367·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_INDEX_BUFFER.3alleg5.gz |
299 | -rw-r--r--···0·root·········(0)·root·········(0)······33 | 299 | -rw-r--r--···0·root·········(0)·root·········(0)······336·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_JOYFLAGS.3alleg5.gz |
300 | -rw-r--r--···0·root·········(0)·root·········(0)······27 | 300 | -rw-r--r--···0·root·········(0)·root·········(0)······279·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_JOYSTICK.3alleg5.gz |
301 | -rw-r--r--···0·root·········(0)·root·········(0)······41 | 301 | -rw-r--r--···0·root·········(0)·root·········(0)······418·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_JOYSTICK_STATE.3alleg5.gz |
302 | -rw-r--r--···0·root·········(0)·root·········(0)······45 | 302 | -rw-r--r--···0·root·········(0)·root·········(0)······457·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_KEYBOARD_STATE.3alleg5.gz |
303 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 303 | -rw-r--r--···0·root·········(0)·root·········(0)······430·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_LINE_CAP.3alleg5.gz |
304 | -rw-r--r--···0·root·········(0)·root·········(0)······40 | 304 | -rw-r--r--···0·root·········(0)·root·········(0)······406·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_LINE_JOIN.3alleg5.gz |
305 | -rw-r--r--···0·root·········(0)·root·········(0)······79 | 305 | -rw-r--r--···0·root·········(0)·root·········(0)······798·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_LOCKED_REGION.3alleg5.gz |
306 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 306 | -rw-r--r--···0·root·········(0)·root·········(0)······372·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_MEMORY_INTERFACE.3alleg5.gz |
307 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 307 | -rw-r--r--···0·root·········(0)·root·········(0)······293·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_MENU.3alleg5.gz |
308 | -rw-r--r--···0·root·········(0)·root·········(0)······70 | 308 | -rw-r--r--···0·root·········(0)·root·········(0)······709·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_MENU_INFO.3alleg5.gz |
309 | -rw-r--r--···0·root·········(0)·root·········(0)······50 | 309 | -rw-r--r--···0·root·········(0)·root·········(0)······506·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_MIXER.3alleg5.gz |
310 | -rw-r--r--···0·root·········(0)·root·········(0)······29 | 310 | -rw-r--r--···0·root·········(0)·root·········(0)······299·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_MIXER_QUALITY.3alleg5.gz |
311 | -rw-r--r--···0·root·········(0)·root·········(0)······46 | 311 | -rw-r--r--···0·root·········(0)·root·········(0)······464·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_MONITOR_INFO.3alleg5.gz |
312 | -rw-r--r--···0·root·········(0)·root·········(0)······44 | 312 | -rw-r--r--···0·root·········(0)·root·········(0)······448·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_MOUSE_EMULATION_MODE.3alleg5.gz |
313 | -rw-r--r--···0·root·········(0)·root·········(0)······45 | 313 | -rw-r--r--···0·root·········(0)·root·········(0)······458·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_MOUSE_STATE.3alleg5.gz |
314 | -rw-r--r--···0·root·········(0)·root·········(0)······24 | 314 | -rw-r--r--···0·root·········(0)·root·········(0)······247·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_MSECS_TO_SECS.3alleg5.gz |
315 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 315 | -rw-r--r--···0·root·········(0)·root·········(0)······240·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_MUTEX.3alleg5.gz |
316 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 316 | -rw-r--r--···0·root·········(0)·root·········(0)······302·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE.3alleg5.gz |
317 | -rw-r--r--···0·root·········(0)·root·········(0)······29 | 317 | -rw-r--r--···0·root·········(0)·root·········(0)······296·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_PI.3alleg5.gz |
318 | -rw-r--r--···0·root·········(0)·root·········(0)·····21 | 318 | -rw-r--r--···0·root·········(0)·root·········(0)·····2161·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_PIXEL_FORMAT.3alleg5.gz |
319 | -rw-r--r--···0·root·········(0)·root·········(0)······46 | 319 | -rw-r--r--···0·root·········(0)·root·········(0)······469·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_PLAYMODE.3alleg5.gz |
320 | -rw-r--r--···0·root·········(0)·root·········(0)·····11 | 320 | -rw-r--r--···0·root·········(0)·root·········(0)·····1140·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_PRIM_ATTR.3alleg5.gz |
321 | -rw-r--r--···0·root·········(0)·root·········(0)······5 | 321 | -rw-r--r--···0·root·········(0)·root·········(0)······571·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_PRIM_BUFFER_FLAGS.3alleg5.gz |
322 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 322 | -rw-r--r--···0·root·········(0)·root·········(0)······360·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_PRIM_QUALITY.3alleg5.gz |
323 | -rw-r--r--···0·root·········(0)·root·········(0)······90 | 323 | -rw-r--r--···0·root·········(0)·root·········(0)······904·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_PRIM_STORAGE.3alleg5.gz |
324 | -rw-r--r--···0·root·········(0)·root·········(0)······48 | 324 | -rw-r--r--···0·root·········(0)·root·········(0)······485·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_PRIM_TYPE.3alleg5.gz |
Max diff block lines reached; 172989/207677 bytes (83.30%) of diff not shown. |
Offset 181, 15 lines modified | Offset 181, 16 lines modified | ||
181 | id="toc-al_get_allegro_acodec_version">al_get_allegro_acodec_version</a></li> | 181 | id="toc-al_get_allegro_acodec_version">al_get_allegro_acodec_version</a></li> |
182 | </ul> | 182 | </ul> |
183 | </nav> | 183 | </nav> |
184 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 184 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
185 | allegro_acodec.</p> | 185 | allegro_acodec.</p> |
186 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_acodec.h></span></span></code></pre></div> | 186 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_acodec.h></span></span></code></pre></div> |
187 | <h1·id="al_init_acodec_addon">al_init_acodec_addon</h1> | 187 | <h1·id="al_init_acodec_addon">al_init_acodec_addon</h1> |
188 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_acodec_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 188 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_acodec_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
189 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_acodec_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
189 | <p><a | 190 | <p><a |
190 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L21">Source | 191 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L21">Source |
191 | Code</a></p> | 192 | Code</a></p> |
192 | <p>This·function·registers·all·the·known·audio·file·type·handlers·for·<a | 193 | <p>This·function·registers·all·the·known·audio·file·type·handlers·for·<a |
193 | href="audio.html#al_load_sample">al_load_sample</a>,·<a | 194 | href="audio.html#al_load_sample">al_load_sample</a>,·<a |
194 | href="audio.html#al_save_sample">al_save_sample</a>,·<a | 195 | href="audio.html#al_save_sample">al_save_sample</a>,·<a |
195 | href="audio.html#al_load_audio_stream">al_load_audio_stream</a>, | 196 | href="audio.html#al_load_audio_stream">al_load_audio_stream</a>, |
Offset 220, 15 lines modified | Offset 221, 16 lines modified | ||
220 | <li><a | 221 | <li><a |
221 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L39">ex_acodec_multi.c</a></li> | 222 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L39">ex_acodec_multi.c</a></li> |
222 | <li><a | 223 | <li><a |
223 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L30">ex_kcm_direct.c</a></li> | 224 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L30">ex_kcm_direct.c</a></li> |
224 | </ul> | 225 | </ul> |
225 | <h1 | 226 | <h1 |
226 | id="al_is_acodec_addon_initialized">al_is_acodec_addon_initialized</h1> | 227 | 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> | 228 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_acodec_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
229 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_acodec_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
228 | <p><a | 230 | <p><a |
229 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L99">Source | 231 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L99">Source |
230 | Code</a></p> | 232 | Code</a></p> |
231 | <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns | 233 | <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns |
232 | false.</p> | 234 | false.</p> |
233 | <p>Since:·5.2.6</p> | 235 | <p>Since:·5.2.6</p> |
234 | <h1 | 236 | <h1 |
Offset 47, 14 lines modified | Offset 47, 15 lines modified | ||
47 | ····*·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n_\x8__\x8i_\x8n_\x8i_\x8t_\x8i_\x8a_\x8l_\x8i_\x8z_\x8e_\x8d | 47 | ····*·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n_\x8__\x8i_\x8n_\x8i_\x8t_\x8i_\x8a_\x8l_\x8i_\x8z_\x8e_\x8d |
48 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n | 48 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n |
49 | These·functions·are·declared·in·the·following·header·file.·Link·with | 49 | These·functions·are·declared·in·the·following·header·file.·Link·with |
50 | allegro_acodec. | 50 | allegro_acodec. |
51 | ·#include·<allegro5/allegro_acodec.h> | 51 | ·#include·<allegro5/allegro_acodec.h> |
52 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 52 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
53 | bool·al_init_acodec_addon(void) | 53 | bool·al_init_acodec_addon(void) |
54 | bool·al_init_acodec_addon(void) | ||
54 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 55 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
55 | This·function·registers·all·the·known·audio·file·type·handlers·for | 56 | This·function·registers·all·the·known·audio·file·type·handlers·for |
56 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m,·etc. | 57 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m,·etc. |
57 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised | 58 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised |
58 | extensions·is:·.wav,·.flac,·.ogg,·.opus,·.it,·.mod,·.s3m,·.xm,·.voc. | 59 | extensions·is:·.wav,·.flac,·.ogg,·.opus,·.it,·.mod,·.s3m,·.xm,·.voc. |
59 | L\x8Li\x8im\x8mi\x8it\x8ta\x8at\x8ti\x8io\x8on\x8ns\x8s:\x8: | 60 | L\x8Li\x8im\x8mi\x8it\x8ta\x8at\x8ti\x8io\x8on\x8ns\x8s:\x8: |
60 | ····*·Saving·is·only·supported·for·wav·files. | 61 | ····*·Saving·is·only·supported·for·wav·files. |
Offset 70, 14 lines modified | Offset 71, 15 lines modified | ||
70 | Return·true·on·success. | 71 | Return·true·on·success. |
71 | Examples: | 72 | Examples: |
72 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 73 | ····*·_\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__\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 | ····*·_\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* | 76 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
76 | bool·al_is_acodec_addon_initialized(void) | 77 | bool·al_is_acodec_addon_initialized(void) |
78 | bool·al_is_acodec_addon_initialized(void) | ||
77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
78 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. | 80 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. |
79 | Since:·5.2.6 | 81 | 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* | 82 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
81 | uint32_t·al_get_allegro_acodec_version(void) | 83 | uint32_t·al_get_allegro_acodec_version(void) |
82 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 84 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
83 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 85 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
Offset 554, 15 lines modified | Offset 554, 16 lines modified | ||
554 | <p>If·you·want·to·play·large·audio·files·(e.g. background·music)·without | 554 | <p>If·you·want·to·play·large·audio·files·(e.g. background·music)·without |
555 | loading·the·whole·file·at·once·you·can·use·<a | 555 | loading·the·whole·file·at·once·you·can·use·<a |
556 | href="audio.html#al_play_audio_stream">al_play_audio_stream</a>·(after | 556 | href="audio.html#al_play_audio_stream">al_play_audio_stream</a>·(after |
557 | calling·<a·href="audio.html#al_reserve_samples">al_reserve_samples</a>). | 557 | calling·<a·href="audio.html#al_reserve_samples">al_reserve_samples</a>). |
558 | This·will·load·and·play·an·<code>ALLEGRO_AUDIO_STREAM</code>.·Note·that | 558 | This·will·load·and·play·an·<code>ALLEGRO_AUDIO_STREAM</code>.·Note·that |
559 | the·basic·API·only·supports·one·such·audio·stream·playing·at·once.</p> | 559 | the·basic·API·only·supports·one·such·audio·stream·playing·at·once.</p> |
560 | <h2·id="allegro_sample_id">ALLEGRO_SAMPLE_ID</h2> | 560 | <h2·id="allegro_sample_id">ALLEGRO_SAMPLE_ID</h2> |
561 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID<span·class="op">;</span></span> | 561 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID<span·class="op">;</span></span> |
562 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID<span·class="op">;</span></span></code></pre></div> | ||
562 | <p><a | 563 | <p><a |
563 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L151">Source | 564 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L151">Source |
564 | Code</a></p> | 565 | Code</a></p> |
565 | <p>An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·<a | 566 | <p>An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·<a |
566 | href="audio.html#al_play_sample">al_play_sample</a>.·It·can·be·used·to | 567 | href="audio.html#al_play_sample">al_play_sample</a>.·It·can·be·used·to |
567 | later·stop·the·sample·with·<a | 568 | later·stop·the·sample·with·<a |
568 | href="audio.html#al_stop_sample">al_stop_sample</a>.·The·underlying | 569 | href="audio.html#al_stop_sample">al_stop_sample</a>.·The·underlying |
Offset 570, 15 lines modified | Offset 571, 16 lines modified | ||
570 | href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p> | 571 | href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p> |
571 | <p>Examples:</p> | 572 | <p>Examples:</p> |
572 | <ul> | 573 | <ul> |
573 | <li><a | 574 | <li><a |
574 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_simple.c#L33">ex_audio_simple.c</a></li> | 575 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_simple.c#L33">ex_audio_simple.c</a></li> |
575 | </ul> | 576 | </ul> |
576 | <h2·id="al_install_audio">al_install_audio</h2> | 577 | <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> | 578 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
579 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
578 | <p><a | 580 | <p><a |
579 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L422">Source | 581 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L422">Source |
580 | Code</a></p> | 582 | Code</a></p> |
581 | <p>Install·the·audio·subsystem.</p> | 583 | <p>Install·the·audio·subsystem.</p> |
582 | <p>Returns·true·on·success,·false·on·failure.</p> | 584 | <p>Returns·true·on·success,·false·on·failure.</p> |
583 | <blockquote> | 585 | <blockquote> |
584 | <p>Note:·most·users·will·call·<a | 586 | <p>Note:·most·users·will·call·<a |
Offset 597, 15 lines modified | Offset 599, 16 lines modified | ||
597 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_devices.c#L20">ex_audio_devices.c</a></li> | 599 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_devices.c#L20">ex_audio_devices.c</a></li> |
598 | <li><a | 600 | <li><a |
599 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L95">ex_saw.c</a></li> | 601 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L95">ex_saw.c</a></li> |
600 | <li><a | 602 | <li><a |
601 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L53">ex_stream_file.c</a></li> | 603 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L53">ex_stream_file.c</a></li> |
602 | </ul> | 604 | </ul> |
603 | <h2·id="al_uninstall_audio">al_uninstall_audio</h2> | 605 | <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> | 606 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
607 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
605 | <p><a | 608 | <p><a |
606 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L441">Source | 609 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L441">Source |
607 | Code</a></p> | 610 | Code</a></p> |
608 | <p>Uninstalls·the·audio·subsystem.</p> | 611 | <p>Uninstalls·the·audio·subsystem.</p> |
609 | <p>See·also:·<a | 612 | <p>See·also:·<a |
610 | href="audio.html#al_install_audio">al_install_audio</a></p> | 613 | href="audio.html#al_install_audio">al_install_audio</a></p> |
611 | <p>Examples:</p> | 614 | <p>Examples:</p> |
Offset 614, 23 lines modified | Offset 617, 25 lines modified | ||
614 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L123">ex_saw.c</a></li> | 617 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L123">ex_saw.c</a></li> |
615 | <li><a | 618 | <li><a |
616 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L133">ex_stream_file.c</a></li> | 619 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L133">ex_stream_file.c</a></li> |
617 | <li><a | 620 | <li><a |
618 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L134">ex_acodec_multi.c</a></li> | 621 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L134">ex_acodec_multi.c</a></li> |
619 | </ul> | 622 | </ul> |
620 | <h2·id="al_is_audio_installed">al_is_audio_installed</h2> | 623 | <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> | 624 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_audio_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
625 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_audio_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
622 | <p><a | 626 | <p><a |
623 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L456">Source | 627 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L456">Source |
624 | Code</a></p> | 628 | Code</a></p> |
625 | <p>Returns·true·if·<a | 629 | <p>Returns·true·if·<a |
626 | href="audio.html#al_install_audio">al_install_audio</a>·was·called | 630 | href="audio.html#al_install_audio">al_install_audio</a>·was·called |
627 | previously·and·returned·successfully.</p> | 631 | previously·and·returned·successfully.</p> |
628 | <h2·id="al_reserve_samples">al_reserve_samples</h2> | 632 | <h2·id="al_reserve_samples">al_reserve_samples</h2> |
629 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_reserve_samples<span·class="op">(</span><span·class="dt">int</span>·reserve_samples<span·class="op">)</span></span> | 633 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_reserve_samples<span·class="op">(</span><span·class="dt">int</span>·reserve_samples<span·class="op">)</span></span> |
634 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_reserve_samples<span·class="op">(</span><span·class="dt">int</span>·reserve_samples<span·class="op">)</span></span></code></pre></div> | ||
630 | <p><a | 635 | <p><a |
631 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L207">Source | 636 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L207">Source |
632 | Code</a></p> | 637 | Code</a></p> |
633 | <p>Reserves·a·number·of·sample·instances,·attaching·them·to·the·default | 638 | <p>Reserves·a·number·of·sample·instances,·attaching·them·to·the·default |
634 | mixer.·If·no·default·mixer·is·set·when·this·function·is·called,·then·it | 639 | mixer.·If·no·default·mixer·is·set·when·this·function·is·called,·then·it |
635 | will·create·one·and·attach·it·to·the·default·voice.·If·no·default·voice | 640 | will·create·one·and·attach·it·to·the·default·voice.·If·no·default·voice |
636 | has·been·set,·it,·too,·will·be·created.</p> | 641 | has·been·set,·it,·too,·will·be·created.</p> |
Offset 658, 15 lines modified | Offset 663, 17 lines modified | ||
658 | <li><a | 663 | <li><a |
659 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L167">ex_audio_props.cpp</a></li> | 664 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L167">ex_audio_props.cpp</a></li> |
660 | <li><a | 665 | <li><a |
661 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L182">ex_resample_test.c</a></li> | 666 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L182">ex_resample_test.c</a></li> |
662 | </ul> | 667 | </ul> |
663 | <h2·id="al_play_sample">al_play_sample</h2> | 668 | <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> | 669 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_play_sample<span·class="op">(</span>ALLEGRO_SAMPLE·<span·class="op">*</span>spl<span·class="op">,</span>·<span·class="dt">float</span>·gain<span·class="op">,</span>·<span·class="dt">float</span>·pan<span·class="op">,</span>·<span·class="dt">float</span>·speed<span·class="op">,</span></span> |
670 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_PLAYMODE·loop<span·class="op">,</span>·ALLEGRO_SAMPLE_ID·<span·class="op">*</span>ret_id<span·class="op">)</span></span> | ||
671 | <span·id="cb8-3"><a·href="#cb8-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_play_sample<span·class="op">(</span>ALLEGRO_SAMPLE·<span·class="op">*</span>spl<span·class="op">,</span>·<span·class="dt">float</span>·gain<span·class="op">,</span>·<span·class="dt">float</span>·pan<span·class="op">,</span>·<span·class="dt">float</span>·speed<span·class="op">,</span></span> | ||
665 | <span·id="cb8- | 672 | <span·id="cb8-4"><a·href="#cb8-4"·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><a | 673 | <p><a |
667 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L342">Source | 674 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L342">Source |
668 | Code</a></p> | 675 | Code</a></p> |
669 | <p>Plays·a·sample·on·one·of·the·sample·instances·created·by·<a | 676 | <p>Plays·a·sample·on·one·of·the·sample·instances·created·by·<a |
670 | href="audio.html#al_reserve_samples">al_reserve_samples</a>.·Returns | 677 | href="audio.html#al_reserve_samples">al_reserve_samples</a>.·Returns |
671 | true·on·success,·false·on·failure.·Playback·may·fail·because·all·the | 678 | true·on·success,·false·on·failure.·Playback·may·fail·because·all·the |
672 | reserved·sample·instances·are·currently·used.</p> | 679 | reserved·sample·instances·are·currently·used.</p> |
Offset 699, 15 lines modified | Offset 706, 16 lines modified | ||
699 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L107">ex_acodec_multi.c</a></li> | 706 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L107">ex_acodec_multi.c</a></li> |
700 | <li><a | 707 | <li><a |
701 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L80">ex_kcm_direct.c</a></li> | 708 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L80">ex_kcm_direct.c</a></li> |
702 | <li><a | 709 | <li><a |
703 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L90">ex_mixer_chain.c</a></li> | 710 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L90">ex_mixer_chain.c</a></li> |
704 | </ul> | 711 | </ul> |
705 | <h2·id="al_stop_sample">al_stop_sample</h2> | 712 | <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> | 713 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_sample<span·class="op">(</span>ALLEGRO_SAMPLE_ID·<span·class="op">*</span>spl_id<span·class="op">)</span></span> |
714 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_sample<span·class="op">(</span>ALLEGRO_SAMPLE_ID·<span·class="op">*</span>spl_id<span·class="op">)</span></span></code></pre></div> | ||
707 | <p><a | 715 | <p><a |
708 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L401">Source | 716 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L401">Source |
709 | Code</a></p> | 717 | Code</a></p> |
710 | <p>Stop·the·sample·started·by·<a | 718 | <p>Stop·the·sample·started·by·<a |
711 | href="audio.html#al_play_sample">al_play_sample</a>.</p> | 719 | href="audio.html#al_play_sample">al_play_sample</a>.</p> |
712 | <p>See·also:·<a | 720 | <p>See·also:·<a |
713 | href="audio.html#al_stop_samples">al_stop_samples</a></p> | 721 | href="audio.html#al_stop_samples">al_stop_samples</a></p> |
Offset 717, 28 lines modified | Offset 725, 30 lines modified | ||
717 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L123">ex_acodec_multi.c</a></li> | 725 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L123">ex_acodec_multi.c</a></li> |
718 | <li><a | 726 | <li><a |
719 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L88">ex_kcm_direct.c</a></li> | 727 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L88">ex_kcm_direct.c</a></li> |
720 | <li><a | 728 | <li><a |
721 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L108">ex_mixer_chain.c</a></li> | 729 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L108">ex_mixer_chain.c</a></li> |
722 | </ul> | 730 | </ul> |
723 | <h2·id="al_stop_samples">al_stop_samples</h2> | 731 | <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> | 732 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_samples<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
733 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_samples<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
725 | <p><a | 734 | <p><a |
726 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L451">Source | 735 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L451">Source |
727 | Code</a></p> | 736 | Code</a></p> |
728 | <p>Stop·all·samples·started·by·<a | 737 | <p>Stop·all·samples·started·by·<a |
729 | href="audio.html#al_play_sample">al_play_sample</a>.</p> | 738 | 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> | 739 | <p>See·also:·<a·href="audio.html#al_stop_sample">al_stop_sample</a></p> |
Max diff block lines reached; 242696/255403 bytes (95.02%) of diff not shown. |
Offset 228, 49 lines modified | Offset 228, 54 lines modified | ||
228 | samples,·you·can·use·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D·that·al_play_sample·returns. | 228 | samples,·you·can·use·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D·that·al_play_sample·returns. |
229 | If·you·want·to·play·large·audio·files·(e.g. background·music)·without·loading | 229 | If·you·want·to·play·large·audio·files·(e.g. background·music)·without·loading |
230 | the·whole·file·at·once·you·can·use·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m·(after·calling | 230 | the·whole·file·at·once·you·can·use·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m·(after·calling |
231 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s).·This·will·load·and·play·an·ALLEGRO_AUDIO_STREAM.·Note·that | 231 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s).·This·will·load·and·play·an·ALLEGRO_AUDIO_STREAM.·Note·that |
232 | the·basic·API·only·supports·one·such·audio·stream·playing·at·once. | 232 | the·basic·API·only·supports·one·such·audio·stream·playing·at·once. |
233 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SA\x8AM\x8MP\x8PL\x8LE\x8E_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8* | 233 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SA\x8AM\x8MP\x8PL\x8LE\x8E_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8* |
234 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; | 234 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; |
235 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; | ||
235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 236 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
236 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·It | 237 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·It |
237 | can·be·used·to·later·stop·the·sample·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·The·underlying | 238 | 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. | 239 | ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d. |
239 | Examples: | 240 | Examples: |
240 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 241 | ····*·_\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* | 242 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8* |
242 | bool·al_install_audio(void) | 243 | bool·al_install_audio(void) |
244 | bool·al_install_audio(void) | ||
243 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 245 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
244 | Install·the·audio·subsystem. | 246 | Install·the·audio·subsystem. |
245 | Returns·true·on·success,·false·on·failure. | 247 | 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·and | 248 | ·····Note:·most·users·will·call·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s·and |
247 | ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n·after·this. | 249 | ·····_\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, | 250 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d, |
249 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 251 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
250 | Examples: | 252 | Examples: |
251 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8d_\x8e_\x8v_\x8i_\x8c_\x8e_\x8s_\x8._\x8c | 253 | ····*·_\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 | 254 | ····*·_\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 | 255 | ····*·_\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* | 256 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8* |
255 | void·al_uninstall_audio(void) | 257 | void·al_uninstall_audio(void) |
258 | void·al_uninstall_audio(void) | ||
256 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 259 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
257 | Uninstalls·the·audio·subsystem. | 260 | Uninstalls·the·audio·subsystem. |
258 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o | 261 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o |
259 | Examples: | 262 | Examples: |
260 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | 263 | ····*·_\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 | 264 | ····*·_\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 | 265 | ····*·_\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* | 266 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* |
264 | bool·al_is_audio_installed(void) | 267 | bool·al_is_audio_installed(void) |
268 | bool·al_is_audio_installed(void) | ||
265 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 269 | _\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·returned | 270 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o·was·called·previously·and·returned |
267 | successfully. | 271 | 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* | 272 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8er\x8rv\x8ve\x8e_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8* |
269 | bool·al_reserve_samples(int·reserve_samples) | 273 | bool·al_reserve_samples(int·reserve_samples) |
274 | bool·al_reserve_samples(int·reserve_samples) | ||
270 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 275 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
271 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default·mixer.·If | 276 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default·mixer.·If |
272 | no·default·mixer·is·set·when·this·function·is·called,·then·it·will·create·one | 277 | no·default·mixer·is·set·when·this·function·is·called,·then·it·will·create·one |
273 | and·attach·it·to·the·default·voice.·If·no·default·voice·has·been·set,·it,·too, | 278 | and·attach·it·to·the·default·voice.·If·no·default·voice·has·been·set,·it,·too, |
274 | will·be·created. | 279 | will·be·created. |
275 | If·you·call·this·function·a·second·time·with·a·smaller·number·of·samples,·then | 280 | If·you·call·this·function·a·second·time·with·a·smaller·number·of·samples,·then |
276 | the·excess·internal·sample·instances·will·be·destroyed·causing·some·sounds·to | 281 | the·excess·internal·sample·instances·will·be·destroyed·causing·some·sounds·to |
Offset 287, 14 lines modified | Offset 292, 16 lines modified | ||
287 | Examples: | 292 | Examples: |
288 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | 293 | ····*·_\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 | 294 | ····*·_\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 | 295 | ····*·_\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* | 296 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pl\x8la\x8ay\x8y_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
292 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, | 297 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, |
293 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) | 298 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) |
299 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, | ||
300 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) | ||
294 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 301 | _\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. | 302 | Plays·a·sample·on·one·of·the·sample·instances·created·by·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s. |
296 | Returns·true·on·success,·false·on·failure.·Playback·may·fail·because·all·the | 303 | Returns·true·on·success,·false·on·failure.·Playback·may·fail·because·all·the |
297 | reserved·sample·instances·are·currently·used. | 304 | reserved·sample·instances·are·currently·used. |
298 | Parameters: | 305 | Parameters: |
299 | ····*·gain·-·relative·volume·at·which·the·sample·is·played;·1.0·is·normal. | 306 | ····*·gain·-·relative·volume·at·which·the·sample·is·played;·1.0·is·normal. |
300 | ····*·pan·-·0.0·is·centred,·-1.0·is·left,·1.0·is·right,·or | 307 | ····*·pan·-·0.0·is·centred,·-1.0·is·left,·1.0·is·right,·or |
Offset 310, 30 lines modified | Offset 317, 33 lines modified | ||
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. | 317 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d. |
311 | Examples: | 318 | Examples: |
312 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | 319 | ····*·_\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 | 320 | ····*·_\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 | 321 | ····*·_\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* | 322 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
316 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) | 323 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) |
324 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) | ||
317 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 325 | _\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. | 326 | 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_\x8s | 327 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s |
320 | Examples: | 328 | Examples: |
321 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | 329 | ····*·_\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 | 330 | ····*·_\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 | 331 | ····*·_\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* | 332 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8* |
325 | void·al_stop_samples(void) | 333 | void·al_stop_samples(void) |
334 | void·al_stop_samples(void) | ||
326 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 335 | _\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. | 336 | 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_\x8e | 337 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e |
329 | Examples: | 338 | Examples: |
330 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 339 | ····*·_\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* | 340 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oc\x8ck\x8k_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8* |
332 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | 341 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) |
342 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | ||
333 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 343 | _\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. | 344 | Locks·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·returning·the·underlying·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8N_\x8S_\x8T_\x8A_\x8N_\x8C_\x8E. |
335 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such·as | 345 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such·as |
336 | volume,·pan,·etc)·while·the·sound·is·playing. | 346 | volume,·pan,·etc)·while·the·sound·is·playing. |
337 | This·function·will·return·NULL·if·the·sound·corresponding·to·the·id·is·no | 347 | This·function·will·return·NULL·if·the·sound·corresponding·to·the·id·is·no |
338 | longer·playing. | 348 | longer·playing. |
339 | While·locked,·ALLEGRO_SAMPLE_ID·will·be·unavailable·to·additional·calls·to | 349 | While·locked,·ALLEGRO_SAMPLE_ID·will·be·unavailable·to·additional·calls·to |
Offset 343, 26 lines modified | Offset 353, 28 lines modified | ||
343 | See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d | 353 | See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d |
344 | Since:·5.2.3 | 354 | 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. | 355 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API. |
346 | Examples: | 356 | Examples: |
347 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 357 | ····*·_\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* | 358 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nl\x8lo\x8oc\x8ck\x8k_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8* |
349 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | 359 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) |
360 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | ||
350 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 361 | _\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·reuse | 362 | Unlocks·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·allowing·future·calls·to·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e·to·reuse |
352 | it·if·possible.·Note·that·after·the·id·is·unlocked,·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8N_\x8S_\x8T_\x8A_\x8N_\x8C_\x8E | 363 | it·if·possible.·Note·that·after·the·id·is·unlocked,·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8N_\x8S_\x8T_\x8A_\x8N_\x8C_\x8E |
353 | that·was·previously·returned·by·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d·will·possibly·be·playing·a | 364 | that·was·previously·returned·by·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d·will·possibly·be·playing·a |
354 | different·sound,·so·you·should·only·use·it·after·locking·the·id·again. | 365 | 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_\x8d | 366 | See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d |
356 | Since:·5.2.3 | 367 | 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. | 368 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API. |
358 | Examples: | 369 | Examples: |
359 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 370 | ····*·_\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* | 371 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pl\x8la\x8ay\x8y_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_s\x8st\x8tr\x8re\x8ea\x8am\x8m·*\x8**\x8**\x8**\x8**\x8* |
361 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) | 372 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) |
373 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) | ||
Max diff block lines reached; 104780/112556 bytes (93.09%) of diff not shown. |
Offset 263, 15 lines modified | Offset 263, 16 lines modified | ||
263 | between·the·three·color·channels·into·account·as·well.·In·general,·most | 263 | between·the·three·color·channels·into·account·as·well.·In·general,·most |
264 | monitors·nowadays·try·to·be·close·to·the·sRGB·specification.·And·so·if | 264 | monitors·nowadays·try·to·be·close·to·the·sRGB·specification.·And·so·if |
265 | in·an·Allegro·game·you·display·something·with·color</p> | 265 | in·an·Allegro·game·you·display·something·with·color</p> |
266 | <p>al_map_rgb_f(0.5,·0.5,·0,5)</p> | 266 | <p>al_map_rgb_f(0.5,·0.5,·0,5)</p> |
267 | <p>then·it·will·appear·at·about·half·brightness·(even·though·the·actual | 267 | <p>then·it·will·appear·at·about·half·brightness·(even·though·the·actual |
268 | brightness·output·of·the·monitor·will·be·less·than·half).</p> | 268 | brightness·output·of·the·monitor·will·be·less·than·half).</p> |
269 | <h1·id="al_color_cmyk">al_color_cmyk</h1> | 269 | <h1·id="al_color_cmyk">al_color_cmyk</h1> |
270 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_cmyk<span·class="op">(</span><span·class="dt">float</span>·c<span·class="op">,</span>·<span·class="dt">float</span>·m<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span>·<span·class="dt">float</span>·k<span·class="op">)</span></span> | 270 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_cmyk<span·class="op">(</span><span·class="dt">float</span>·c<span·class="op">,</span>·<span·class="dt">float</span>·m<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span>·<span·class="dt">float</span>·k<span·class="op">)</span></span> |
271 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_cmyk<span·class="op">(</span><span·class="dt">float</span>·c<span·class="op">,</span>·<span·class="dt">float</span>·m<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span>·<span·class="dt">float</span>·k<span·class="op">)</span></span></code></pre></div> | ||
271 | <p><a | 272 | <p><a |
272 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source | 273 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source |
273 | Code</a></p> | 274 | Code</a></p> |
274 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> | 275 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> |
275 | structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> | 276 | structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> |
276 | <p>See·also:·<a | 277 | <p>See·also:·<a |
277 | href="color.html#al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</a>,·<a | 278 | href="color.html#al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</a>,·<a |
Offset 279, 28 lines modified | Offset 280, 31 lines modified | ||
279 | <p>Examples:</p> | 280 | <p>Examples:</p> |
280 | <ul> | 281 | <ul> |
281 | <li><a | 282 | <li><a |
282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> | 283 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> |
283 | </ul> | 284 | </ul> |
284 | <h1·id="al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</h1> | 285 | <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> | 286 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_cmyk_to_rgb<span·class="op">(</span><span·class="dt">float</span>·cyan<span·class="op">,</span>·<span·class="dt">float</span>·magenta<span·class="op">,</span>·<span·class="dt">float</span>·yellow<span·class="op">,</span></span> |
287 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>····<span·class="dt">float</span>·key<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span> | ||
288 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_cmyk_to_rgb<span·class="op">(</span><span·class="dt">float</span>·cyan<span·class="op">,</span>·<span·class="dt">float</span>·magenta<span·class="op">,</span>·<span·class="dt">float</span>·yellow<span·class="op">,</span></span> | ||
286 | <span·id="cb3- | 289 | <span·id="cb3-4"><a·href="#cb3-4"·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><a | 290 | <p><a |
288 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source | 291 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source |
289 | Code</a></p> | 292 | Code</a></p> |
290 | <p>Convert·CMYK·values·to·RGB·values.</p> | 293 | <p>Convert·CMYK·values·to·RGB·values.</p> |
291 | <p>See·also:·<a·href="color.html#al_color_cmyk">al_color_cmyk</a>,·<a | 294 | <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> | 295 | href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> |
293 | <p>Examples:</p> | 296 | <p>Examples:</p> |
294 | <ul> | 297 | <ul> |
295 | <li><a | 298 | <li><a |
296 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> | 299 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> |
297 | </ul> | 300 | </ul> |
298 | <h1·id="al_color_hsl">al_color_hsl</h1> | 301 | <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> | 302 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsl<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·l<span·class="op">)</span></span> |
303 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsl<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·l<span·class="op">)</span></span></code></pre></div> | ||
300 | <p><a | 304 | <p><a |
301 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source | 305 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source |
302 | Code</a></p> | 306 | Code</a></p> |
303 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> | 307 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> |
304 | structure·from·HSL·(hue,·saturation,·lightness)·values.</p> | 308 | structure·from·HSL·(hue,·saturation,·lightness)·values.</p> |
305 | <p>Parameters:</p> | 309 | <p>Parameters:</p> |
306 | <ul> | 310 | <ul> |
Offset 318, 15 lines modified | Offset 322, 17 lines modified | ||
318 | <li><a | 322 | <li><a |
319 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clip.c#L50">ex_clip.c</a></li> | 323 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clip.c#L50">ex_clip.c</a></li> |
320 | <li><a | 324 | <li><a |
321 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> | 325 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> |
322 | </ul> | 326 | </ul> |
323 | <h1·id="al_color_hsl_to_rgb">al_color_hsl_to_rgb</h1> | 327 | <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> | 328 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_hsl_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·lightness<span·class="op">,</span></span> |
329 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span> | ||
330 | <span·id="cb5-3"><a·href="#cb5-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_hsl_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·lightness<span·class="op">,</span></span> | ||
325 | <span·id="cb5- | 331 | <span·id="cb5-4"><a·href="#cb5-4"·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><a | 332 | <p><a |
327 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L367">Source | 333 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L367">Source |
328 | Code</a></p> | 334 | Code</a></p> |
329 | <p>Convert·values·in·HSL·color·model·to·RGB·color·model.</p> | 335 | <p>Convert·values·in·HSL·color·model·to·RGB·color·model.</p> |
330 | <p>Parameters:</p> | 336 | <p>Parameters:</p> |
331 | <ul> | 337 | <ul> |
332 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 338 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
Offset 342, 15 lines modified | Offset 348, 16 lines modified | ||
342 | <ul> | 348 | <ul> |
343 | <li><a | 349 | <li><a |
344 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L101">ex_color.cpp</a></li> | 350 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L101">ex_color.cpp</a></li> |
345 | <li><a | 351 | <li><a |
346 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> | 352 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> |
347 | </ul> | 353 | </ul> |
348 | <h1·id="al_color_hsv">al_color_hsv</h1> | 354 | <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> | 355 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsv<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·v<span·class="op">)</span></span> |
356 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsv<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·v<span·class="op">)</span></span></code></pre></div> | ||
350 | <p><a | 357 | <p><a |
351 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L339">Source | 358 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L339">Source |
352 | Code</a></p> | 359 | Code</a></p> |
353 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> | 360 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> |
354 | structure·from·HSV·(hue,·saturation,·value)·values.</p> | 361 | structure·from·HSV·(hue,·saturation,·value)·values.</p> |
355 | <p>Parameters:</p> | 362 | <p>Parameters:</p> |
356 | <ul> | 363 | <ul> |
Offset 368, 15 lines modified | Offset 375, 17 lines modified | ||
368 | <li><a | 375 | <li><a |
369 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> | 376 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> |
370 | <li><a | 377 | <li><a |
371 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L95">ex_multisample.c</a></li> | 378 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L95">ex_multisample.c</a></li> |
372 | </ul> | 379 | </ul> |
373 | <h1·id="al_color_hsv_to_rgb">al_color_hsv_to_rgb</h1> | 380 | <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> | 381 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_hsv_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·value<span·class="op">,</span></span> |
382 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span> | ||
383 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_hsv_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·value<span·class="op">,</span></span> | ||
375 | <span·id="cb7- | 384 | <span·id="cb7-4"><a·href="#cb7-4"·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><a | 385 | <p><a |
377 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L266">Source | 386 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L266">Source |
378 | Code</a></p> | 387 | Code</a></p> |
379 | <p>Convert·values·in·HSV·color·model·to·RGB·color·model.</p> | 388 | <p>Convert·values·in·HSV·color·model·to·RGB·color·model.</p> |
380 | <p>Parameters:</p> | 389 | <p>Parameters:</p> |
381 | <ul> | 390 | <ul> |
382 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 391 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
Offset 390, 15 lines modified | Offset 399, 16 lines modified | ||
390 | href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a></p> | 399 | href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a></p> |
391 | <p>Examples:</p> | 400 | <p>Examples:</p> |
392 | <ul> | 401 | <ul> |
393 | <li><a | 402 | <li><a |
394 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> | 403 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> |
395 | </ul> | 404 | </ul> |
396 | <h1·id="al_color_html">al_color_html</h1> | 405 | <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> | 406 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_html<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>string<span·class="op">)</span></span> |
407 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_html<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>string<span·class="op">)</span></span></code></pre></div> | ||
398 | <p><a | 408 | <p><a |
399 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L568">Source | 409 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L568">Source |
400 | Code</a></p> | 410 | Code</a></p> |
401 | <p>Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The | 411 | <p>Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The |
402 | accepted·format·is·the·same·as·<a | 412 | accepted·format·is·the·same·as·<a |
403 | href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>.</p> | 413 | href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>.</p> |
404 | <p>Returns·the·interpreted·color,·or | 414 | <p>Returns·the·interpreted·color,·or |
Offset 409, 15 lines modified | Offset 419, 17 lines modified | ||
409 | Allegro·5.0.x.</p> | 419 | Allegro·5.0.x.</p> |
410 | </blockquote> | 420 | </blockquote> |
411 | <p>See·also:·<a | 421 | <p>See·also:·<a |
412 | href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>,·<a | 422 | href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>,·<a |
413 | href="color.html#al_color_rgb_to_html">al_color_rgb_to_html</a></p> | 423 | href="color.html#al_color_rgb_to_html">al_color_rgb_to_html</a></p> |
414 | <h1·id="al_color_html_to_rgb">al_color_html_to_rgb</h1> | 424 | <h1·id="al_color_html_to_rgb">al_color_html_to_rgb</h1> |
415 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_color_html_to_rgb<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>string<span·class="op">,</span></span> | 425 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_color_html_to_rgb<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>string<span·class="op">,</span></span> |
426 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span> | ||
Max diff block lines reached; 62947/79015 bytes (79.66%) of diff not shown. |
Offset 99, 106 lines modified | Offset 99, 120 lines modified | ||
99 | try·to·be·close·to·the·sRGB·specification.·And·so·if·in·an·Allegro·game·you | 99 | try·to·be·close·to·the·sRGB·specification.·And·so·if·in·an·Allegro·game·you |
100 | display·something·with·color | 100 | display·something·with·color |
101 | al_map_rgb_f(0.5,·0.5,·0,5) | 101 | al_map_rgb_f(0.5,·0.5,·0,5) |
102 | then·it·will·appear·at·about·half·brightness·(even·though·the·actual·brightness | 102 | then·it·will·appear·at·about·half·brightness·(even·though·the·actual·brightness |
103 | output·of·the·monitor·will·be·less·than·half). | 103 | output·of·the·monitor·will·be·less·than·half). |
104 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* | 104 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* |
105 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) | 105 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) |
106 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) | ||
106 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 107 | _\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, | 108 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·CMYK·values·(cyan,·magenta,·yellow, |
108 | black). | 109 | black). |
109 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k | 110 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k |
110 | Examples: | 111 | Examples: |
111 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 112 | ····*·_\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* | 113 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
113 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, | 114 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, |
114 | ····float·key,·float·*red,·float·*green,·float·*blue) | 115 | ····float·key,·float·*red,·float·*green,·float·*blue) |
116 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, | ||
117 | ····float·key,·float·*red,·float·*green,·float·*blue) | ||
115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
116 | Convert·CMYK·values·to·RGB·values. | 119 | 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_\x8k | 120 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k |
118 | Examples: | 121 | Examples: |
119 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 122 | ····*·_\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* | 123 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
121 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | 124 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) |
125 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | ||
122 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 126 | _\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. | 127 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSL·(hue,·saturation,·lightness)·values. |
124 | Parameters: | 128 | Parameters: |
125 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 129 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
126 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 130 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
127 | ····*·lightness·-·Color·lightness·in·the·range·0..1 | 131 | ····*·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_\x8v | 132 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v |
129 | Examples: | 133 | Examples: |
130 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 134 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p |
131 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8._\x8c | 135 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8._\x8c |
132 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c | 136 | ····*·_\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* | 137 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
134 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, | 138 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, |
135 | ···float·*red,·float·*green,·float·*blue) | 139 | ···float·*red,·float·*green,·float·*blue) |
140 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, | ||
141 | ···float·*red,·float·*green,·float·*blue) | ||
136 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 142 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
137 | Convert·values·in·HSL·color·model·to·RGB·color·model. | 143 | Convert·values·in·HSL·color·model·to·RGB·color·model. |
138 | Parameters: | 144 | Parameters: |
139 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 145 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
140 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 146 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
141 | ····*·lightness·-·Color·lightness·in·the·range·0..1 | 147 | ····*·lightness·-·Color·lightness·in·the·range·0..1 |
142 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 | 148 | ····*·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_\x8b | 149 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b |
144 | Examples: | 150 | Examples: |
145 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 151 | ····*·_\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 | 152 | ····*·_\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* | 153 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v·*\x8**\x8**\x8**\x8**\x8**\x8* |
148 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | 154 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) |
155 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | ||
149 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 156 | _\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. | 157 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSV·(hue,·saturation,·value)·values. |
151 | Parameters: | 158 | Parameters: |
152 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 159 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
153 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 160 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
154 | ····*·value·-·Color·value·in·the·range·0..1 | 161 | ····*·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_\x8l | 162 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l |
156 | Examples: | 163 | Examples: |
157 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | 164 | ····*·_\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 | 165 | ····*·_\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 | 166 | ····*·_\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* | 167 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
161 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, | 168 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, |
162 | ···float·*red,·float·*green,·float·*blue) | 169 | ···float·*red,·float·*green,·float·*blue) |
170 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, | ||
171 | ···float·*red,·float·*green,·float·*blue) | ||
163 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 172 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
164 | Convert·values·in·HSV·color·model·to·RGB·color·model. | 173 | Convert·values·in·HSV·color·model·to·RGB·color·model. |
165 | Parameters: | 174 | Parameters: |
166 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 175 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
167 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 176 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
168 | ····*·value·-·Color·value·in·the·range·0..1 | 177 | ····*·value·-·Color·value·in·the·range·0..1 |
169 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 | 178 | ····*·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_\x8b | 179 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b |
171 | Examples: | 180 | Examples: |
172 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 181 | ····*·_\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* | 182 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8ht\x8tm\x8ml\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
174 | ALLEGRO_COLOR·al_color_html(char·const·*string) | 183 | ALLEGRO_COLOR·al_color_html(char·const·*string) |
184 | ALLEGRO_COLOR·al_color_html(char·const·*string) | ||
175 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 185 | _\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·accepted | 186 | 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. | 187 | format·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b. |
178 | Returns·the·interpreted·color,·or·al_map_rgba(0,·0,·0,·0)·if·the·string·could | 188 | Returns·the·interpreted·color,·or·al_map_rgba(0,·0,·0,·0)·if·the·string·could |
179 | not·be·parsed. | 189 | not·be·parsed. |
180 | ·····N\x8No\x8ot\x8te\x8e:·the·behaviour·on·invalid·strings·is·different·from·Allegro | 190 | ·····N\x8No\x8ot\x8te\x8e:·the·behaviour·on·invalid·strings·is·different·from·Allegro |
181 | ·····5.0.x. | 191 | ·····5.0.x. |
182 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8t_\x8m_\x8l | 192 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8t_\x8m_\x8l |
183 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8ht\x8tm\x8ml\x8l_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* | 193 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8ht\x8tm\x8ml\x8l_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
184 | bool·al_color_html_to_rgb(char·const·*string, | 194 | bool·al_color_html_to_rgb(char·const·*string, |
185 | ···float·*red,·float·*green,·float·*blue) | 195 | ···float·*red,·float·*green,·float·*blue) |
196 | bool·al_color_html_to_rgb(char·const·*string, | ||
197 | ···float·*red,·float·*green,·float·*blue) | ||
186 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 198 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
187 | Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·only | 199 | Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·only |
188 | accepted·formats·are·“#RRGGBB”·and·“RRGGBB”·where·R,·G,·B·are·hexadecimal | 200 | accepted·formats·are·“#RRGGBB”·and·“RRGGBB”·where·R,·G,·B·are·hexadecimal |
189 | digits·[0-9A-Fa-f]. | 201 | digits·[0-9A-Fa-f]. |
190 | Returns·true·on·success,·false·on·failure.·On·failure·all·components·are·set·to | 202 | Returns·true·on·success,·false·on·failure.·On·failure·all·components·are·set·to |
191 | zero. | 203 | zero. |
192 | ·····N\x8No\x8ot\x8te\x8e:·the·behaviour·on·invalid·strings·is·different·from·Allegro | 204 | ·····N\x8No\x8ot\x8te\x8e:·the·behaviour·on·invalid·strings·is·different·from·Allegro |
193 | ·····5.0.x. | 205 | ·····5.0.x. |
194 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8t_\x8m_\x8l | 206 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8t_\x8m_\x8l |
195 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_r\x8rg\x8gb\x8b_\x8_t\x8to\x8o_\x8_h\x8ht\x8tm\x8ml\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 207 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_r\x8rg\x8gb\x8b_\x8_t\x8to\x8o_\x8_h\x8ht\x8tm\x8ml\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
196 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, | 208 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, |
197 | ····char·*string) | 209 | ····char·*string) |
210 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, | ||
211 | ····char·*string) | ||
198 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 212 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
199 | Create·an·HTML-style·string·representation·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·e.g. #00faff. | 213 | Create·an·HTML-style·string·representation·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·e.g. #00faff. |
200 | Parameters: | 214 | Parameters: |
201 | ····*·red,·green,·blue·-·The·color·components·in·the·range·0..1. | 215 | ····*·red,·green,·blue·-·The·color·components·in·the·range·0..1. |
202 | ····*·string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result | 216 | ····*·string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result |
203 | ······will·be·written·(including·the·NUL·terminator). | 217 | ······will·be·written·(including·the·NUL·terminator). |
204 | Example: | 218 | Example: |
Offset 206, 24 lines modified | Offset 220, 26 lines modified | ||
206 | al_color_rgb_to_html(1,·0,·0,·html); | 220 | al_color_rgb_to_html(1,·0,·0,·html); |
207 | Now·html·will·contain·“#ff0000”. | 221 | 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_\x8b | 222 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b |
209 | Examples: | 223 | Examples: |
210 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 224 | ····*·_\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* | 225 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
Max diff block lines reached; 18760/25951 bytes (72.29%) of diff not shown. |
Offset 253, 30 lines modified | Offset 253, 32 lines modified | ||
253 | an·actual·program):</p> | 253 | an·actual·program):</p> |
254 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG<span·class="op">*</span>·cfg·<span·class="op">=</span>·al_load_config_file<span·class="op">(</span><span·class="st">"test.cfg"</span><span·class="op">);</span></span> | 254 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG<span·class="op">*</span>·cfg·<span·class="op">=</span>·al_load_config_file<span·class="op">(</span><span·class="st">"test.cfg"</span><span·class="op">);</span></span> |
255 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">""</span><span·class="op">,</span>·<span·class="st">"monster·name"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·Allegro·Developer·*/</span></span> | 255 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">""</span><span·class="op">,</span>·<span·class="st">"monster·name"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·Allegro·Developer·*/</span></span> |
256 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">"weapon·0"</span><span·class="op">,</span>·<span·class="st">"damage"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·443·*/</span></span> | 256 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">"weapon·0"</span><span·class="op">,</span>·<span·class="st">"damage"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·443·*/</span></span> |
257 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">"weapon·1"</span><span·class="op">,</span>·<span·class="st">"damage"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·503·*/</span></span> | 257 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">"weapon·1"</span><span·class="op">,</span>·<span·class="st">"damage"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·503·*/</span></span> |
258 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>al_destroy_config<span·class="op">(</span>cfg<span·class="op">);</span></span></code></pre></div> | 258 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>al_destroy_config<span·class="op">(</span>cfg<span·class="op">);</span></span></code></pre></div> |
259 | <h1·id="allegro_config">ALLEGRO_CONFIG</h1> | 259 | <h1·id="allegro_config">ALLEGRO_CONFIG</h1> |
260 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG<span·class="op">;</span></span> | 260 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG<span·class="op">;</span></span> |
261 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG<span·class="op">;</span></span></code></pre></div> | ||
261 | <p><a | 262 | <p><a |
262 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source | 263 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source |
263 | Code</a></p> | 264 | Code</a></p> |
264 | <p>An·abstract·configuration·structure.</p> | 265 | <p>An·abstract·configuration·structure.</p> |
265 | <p>Examples:</p> | 266 | <p>Examples:</p> |
266 | <ul> | 267 | <ul> |
267 | <li><a | 268 | <li><a |
268 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L26">ex_config.c</a></li> | 269 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L26">ex_config.c</a></li> |
269 | <li><a | 270 | <li><a |
270 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L14">ex_vsync.c</a></li> | 271 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L14">ex_vsync.c</a></li> |
271 | <li><a | 272 | <li><a |
272 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L239">ex_stream_seek.c</a></li> | 273 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L239">ex_stream_seek.c</a></li> |
273 | </ul> | 274 | </ul> |
274 | <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</h1> | 275 | <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> | 276 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION<span·class="op">;</span></span> |
277 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION<span·class="op">;</span></span></code></pre></div> | ||
276 | <p><a | 278 | <p><a |
277 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source | 279 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source |
278 | Code</a></p> | 280 | Code</a></p> |
279 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a | 281 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a |
280 | configuration·structure.</p> | 282 | configuration·structure.</p> |
281 | <p>See·also:·<a | 283 | <p>See·also:·<a |
282 | href="config.html#al_get_first_config_section">al_get_first_config_section</a>, | 284 | href="config.html#al_get_first_config_section">al_get_first_config_section</a>, |
Offset 284, 15 lines modified | Offset 286, 16 lines modified | ||
284 | href="config.html#al_get_next_config_section">al_get_next_config_section</a></p> | 286 | href="config.html#al_get_next_config_section">al_get_next_config_section</a></p> |
285 | <p>Examples:</p> | 287 | <p>Examples:</p> |
286 | <ul> | 288 | <ul> |
287 | <li><a | 289 | <li><a |
288 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L28">ex_config.c</a></li> | 290 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L28">ex_config.c</a></li> |
289 | </ul> | 291 | </ul> |
290 | <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1> | 292 | <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> | 293 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY<span·class="op">;</span></span> |
294 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY<span·class="op">;</span></span></code></pre></div> | ||
292 | <p><a | 295 | <p><a |
293 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source | 296 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source |
294 | Code</a></p> | 297 | Code</a></p> |
295 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a | 298 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a |
296 | configuration·section.</p> | 299 | configuration·section.</p> |
297 | <p>See·also:·<a | 300 | <p>See·also:·<a |
298 | href="config.html#al_get_first_config_entry">al_get_first_config_entry</a>, | 301 | href="config.html#al_get_first_config_entry">al_get_first_config_entry</a>, |
Offset 101, 30 lines modified | Offset 101, 33 lines modified | ||
101 | printf("%s\n",·al_get_config_value(cfg,·"weapon·0",·"damage"));·/*·Prints:·443 | 101 | printf("%s\n",·al_get_config_value(cfg,·"weapon·0",·"damage"));·/*·Prints:·443 |
102 | */ | 102 | */ |
103 | printf("%s\n",·al_get_config_value(cfg,·"weapon·1",·"damage"));·/*·Prints:·503 | 103 | printf("%s\n",·al_get_config_value(cfg,·"weapon·1",·"damage"));·/*·Prints:·503 |
104 | */ | 104 | */ |
105 | al_destroy_config(cfg); | 105 | al_destroy_config(cfg); |
106 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8* | 106 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8* |
107 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; | 107 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; |
108 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; | ||
108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 109 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
109 | An·abstract·configuration·structure. | 110 | An·abstract·configuration·structure. |
110 | Examples: | 111 | Examples: |
111 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 112 | ····*·_\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__\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 | ····*·_\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* | 115 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_S\x8SE\x8EC\x8CT\x8TI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8**\x8* |
115 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | 116 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; |
117 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | ||
116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
117 | An·opaque·structure·used·for·iterating·across·sections·in·a·configuration | 119 | An·opaque·structure·used·for·iterating·across·sections·in·a·configuration |
118 | structure. | 120 | 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_\x8n | 121 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n |
120 | Examples: | 122 | Examples: |
121 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 123 | ····*·_\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* | 124 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8* |
123 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | 125 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; |
126 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | ||
124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 127 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
125 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration | 128 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration |
126 | section. | 129 | 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_\x8y | 130 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y |
128 | Examples: | 131 | Examples: |
129 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 132 | ····*·_\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* | 133 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 340, 15 lines modified | Offset 340, 16 lines modified | ||
340 | example.</p> | 340 | example.</p> |
341 | <p>In·order·to·write·a·well-behaved·application,·it·is·necessary·to | 341 | <p>In·order·to·write·a·well-behaved·application,·it·is·necessary·to |
342 | remember·that·displays·will·also·inform·you·about·important·<a | 342 | remember·that·displays·will·also·inform·you·about·important·<a |
343 | href="events.html#allegro_event_display_expose">events</a>·via·their·<a | 343 | href="events.html#allegro_event_display_expose">events</a>·via·their·<a |
344 | href="display.html#al_get_display_event_source">event·sources</a>.</p> | 344 | href="display.html#al_get_display_event_source">event·sources</a>.</p> |
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> | 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> |
348 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY<span·class="op">;</span></span></code></pre></div> | ||
348 | <p><a | 349 | <p><a |
349 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source | 350 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source |
350 | Code</a></p> | 351 | Code</a></p> |
351 | <p>An·opaque·type·representing·an·open·display·or·window.</p> | 352 | <p>An·opaque·type·representing·an·open·display·or·window.</p> |
352 | <p>Examples:</p> | 353 | <p>Examples:</p> |
353 | <ul> | 354 | <ul> |
354 | <li><a | 355 | <li><a |
Offset 1444, 15 lines modified | Offset 1445, 16 lines modified | ||
1444 | <li><a | 1445 | <li><a |
1445 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_title.c#L49">ex_window_title.c</a></li> | 1446 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_title.c#L49">ex_window_title.c</a></li> |
1446 | <li><a | 1447 | <li><a |
1447 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L62">ex_windows.c</a></li> | 1448 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L62">ex_windows.c</a></li> |
1448 | </ul> | 1449 | </ul> |
1449 | <h2 | 1450 | <h2 |
1450 | id="allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</h2> | 1451 | id="allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</h2> |
1451 | <div·class="sourceCode"·id="cb41"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb41-1"><a·href="#cb41-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·</span><span·class="dv">255</span></span> | 1452 | <div·class="sourceCode"·id="cb41"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb41-1"><a·href="#cb41-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·</span><span·class="dv">255</span></span> |
1453 | <span·id="cb41-2"><a·href="#cb41-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·</span><span·class="dv">255</span></span></code></pre></div> | ||
1452 | <p><a | 1454 | <p><a |
1453 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L118">Source | 1455 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L118">Source |
1454 | Code</a></p> | 1456 | Code</a></p> |
1455 | <p>This·is·the·maximum·size·of·the·title·that·can·be·set·with·<a | 1457 | <p>This·is·the·maximum·size·of·the·title·that·can·be·set·with·<a |
1456 | href="display.html#al_set_new_window_title">al_set_new_window_title</a>.</p> | 1458 | href="display.html#al_set_new_window_title">al_set_new_window_title</a>.</p> |
1457 | <p>See·also:·<a | 1459 | <p>See·also:·<a |
1458 | href="display.html#al_set_new_window_title">al_set_new_window_title</a></p> | 1460 | href="display.html#al_set_new_window_title">al_set_new_window_title</a></p> |
Offset 126, 14 lines modified | Offset 126, 15 lines modified | ||
126 | provides·integration·for·both·(see·the·OpenGL·/·Direct3D·sections),·so·you·can | 126 | provides·integration·for·both·(see·the·OpenGL·/·Direct3D·sections),·so·you·can |
127 | retrieve·the·underlying·textures·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8Ps,·for·example. | 127 | retrieve·the·underlying·textures·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8Ps,·for·example. |
128 | In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that | 128 | In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that |
129 | displays·will·also·inform·you·about·important·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·via·their·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8s. | 129 | displays·will·also·inform·you·about·important·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·via·their·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8s. |
130 | *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 130 | *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
131 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y·*\x8**\x8**\x8**\x8**\x8* | 131 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y·*\x8**\x8**\x8**\x8**\x8* |
132 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | 132 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; |
133 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | ||
133 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 134 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
134 | An·opaque·type·representing·an·open·display·or·window. | 135 | An·opaque·type·representing·an·open·display·or·window. |
135 | Examples: | 136 | Examples: |
136 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | 137 | ····*·_\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__\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 | ····*·_\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* | 140 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8* |
Offset 769, 14 lines modified | Offset 770, 15 lines modified | ||
769 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8N_\x8E_\x8W_\x8__\x8W_\x8I_\x8N_\x8D_\x8O_\x8W_\x8__\x8T_\x8I_\x8T_\x8L_\x8E_\x8__\x8M_\x8A_\x8X_\x8__\x8S_\x8I_\x8Z_\x8E | 770 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8N_\x8E_\x8W_\x8__\x8W_\x8I_\x8N_\x8D_\x8O_\x8W_\x8__\x8T_\x8I_\x8T_\x8L_\x8E_\x8__\x8M_\x8A_\x8X_\x8__\x8S_\x8I_\x8Z_\x8E |
770 | Since:·5.1.12 | 771 | Since:·5.1.12 |
771 | Examples: | 772 | Examples: |
772 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e_\x8._\x8c | 773 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e_\x8._\x8c |
773 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c | 774 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c |
774 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_N\x8NE\x8EW\x8W_\x8_W\x8WI\x8IN\x8ND\x8DO\x8OW\x8W_\x8_T\x8TI\x8IT\x8TL\x8LE\x8E_\x8_M\x8MA\x8AX\x8X_\x8_S\x8SI\x8IZ\x8ZE\x8E·*\x8**\x8**\x8**\x8**\x8* | 775 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_N\x8NE\x8EW\x8W_\x8_W\x8WI\x8IN\x8ND\x8DO\x8OW\x8W_\x8_T\x8TI\x8IT\x8TL\x8LE\x8E_\x8_M\x8MA\x8AX\x8X_\x8_S\x8SI\x8IZ\x8ZE\x8E·*\x8**\x8**\x8**\x8**\x8* |
775 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 | 776 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 |
777 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 | ||
776 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 778 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
777 | This·is·the·maximum·size·of·the·title·that·can·be·set·with | 779 | This·is·the·maximum·size·of·the·title·that·can·be·set·with |
778 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e. | 780 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e. |
779 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e | 781 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e |
780 | Since:·5.1.12 | 782 | Since:·5.1.12 |
781 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_t\x8ti\x8it\x8tl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 783 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_t\x8ti\x8it\x8tl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
782 | const·char·*al_get_new_window_title(void) | 784 | const·char·*al_get_new_window_title(void) |
Offset 315, 15 lines modified | Offset 315, 16 lines modified | ||
315 | union·according·to·the·event·type.</p> | 315 | union·according·to·the·event·type.</p> |
316 | <p>In·addition·to·the·events·sent·by·Allegro·core,·there’s·also·events | 316 | <p>In·addition·to·the·events·sent·by·Allegro·core,·there’s·also·events |
317 | send·by·the·addons,·see·<a | 317 | send·by·the·addons,·see·<a |
318 | href="audio.html#allegro_audio_event_type">ALLEGRO_AUDIO_EVENT_TYPE</a> | 318 | href="audio.html#allegro_audio_event_type">ALLEGRO_AUDIO_EVENT_TYPE</a> |
319 | and·<a | 319 | and·<a |
320 | href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> | 320 | href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> |
321 | <h1·id="allegro_event">ALLEGRO_EVENT</h1> | 321 | <h1·id="allegro_event">ALLEGRO_EVENT</h1> |
322 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT<span·class="op">;</span></span> | 322 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT<span·class="op">;</span></span> |
323 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT<span·class="op">;</span></span></code></pre></div> | ||
323 | <p><a | 324 | <p><a |
324 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L216">Source | 325 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L216">Source |
325 | Code</a></p> | 326 | Code</a></p> |
326 | <p>An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it | 327 | <p>An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it |
327 | is·an·object·large·enough·to·hold·the·data·of·any·event·type.·All·events | 328 | is·an·object·large·enough·to·hold·the·data·of·any·event·type.·All·events |
328 | have·the·following·fields·in·common:</p> | 329 | have·the·following·fields·in·common:</p> |
329 | <dl> | 330 | <dl> |
Offset 1015, 15 lines modified | Offset 1016, 16 lines modified | ||
1015 | <p>Since:·5.2.9</p> | 1016 | <p>Since:·5.2.9</p> |
1016 | <blockquote> | 1017 | <blockquote> |
1017 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 1018 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
1018 | API</a>:</em>·This·is·an·experimental·feature·and·currently·only·works | 1019 | API</a>:</em>·This·is·an·experimental·feature·and·currently·only·works |
1019 | for·the·X11·backend.</p> | 1020 | for·the·X11·backend.</p> |
1020 | </blockquote> | 1021 | </blockquote> |
1021 | <h1·id="allegro_user_event">ALLEGRO_USER_EVENT</h1> | 1022 | <h1·id="allegro_user_event">ALLEGRO_USER_EVENT</h1> |
1022 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT<span·class="op">;</span></span> | 1023 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT<span·class="op">;</span></span> |
1024 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT<span·class="op">;</span></span></code></pre></div> | ||
1023 | <p><a | 1025 | <p><a |
1024 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L188">Source | 1026 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L188">Source |
1025 | Code</a></p> | 1027 | Code</a></p> |
1026 | <p>An·event·structure·that·can·be·emitted·by·user·event·sources.·These | 1028 | <p>An·event·structure·that·can·be·emitted·by·user·event·sources.·These |
1027 | are·the·public·fields:</p> | 1029 | are·the·public·fields:</p> |
1028 | <ul> | 1030 | <ul> |
1029 | <li>ALLEGRO_EVENT_SOURCE·*source;</li> | 1031 | <li>ALLEGRO_EVENT_SOURCE·*source;</li> |
Offset 1064, 15 lines modified | Offset 1066, 16 lines modified | ||
1064 | href="events.html#al_init_user_event_source">al_init_user_event_source</a></p> | 1066 | href="events.html#al_init_user_event_source">al_init_user_event_source</a></p> |
1065 | <p>Examples:</p> | 1067 | <p>Examples:</p> |
1066 | <ul> | 1068 | <ul> |
1067 | <li><a | 1069 | <li><a |
1068 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L37">ex_user_events.c</a></li> | 1070 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L37">ex_user_events.c</a></li> |
1069 | </ul> | 1071 | </ul> |
1070 | <h1·id="allegro_event_queue">ALLEGRO_EVENT_QUEUE</h1> | 1072 | <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> | 1073 | <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> |
1074 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE<span·class="op">;</span></span></code></pre></div> | ||
1072 | <p><a | 1075 | <p><a |
1073 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L258">Source | 1076 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L258">Source |
1074 | Code</a></p> | 1077 | Code</a></p> |
1075 | <p>An·event·queue·holds·events·that·have·been·generated·by·event·sources | 1078 | <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·they | 1079 | 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) | 1080 | are·generated.·Access·is·in·a·strictly·FIFO·(first-in-first-out) |
1078 | order.</p> | 1081 | order.</p> |
Offset 1085, 15 lines modified | Offset 1088, 16 lines modified | ||
1085 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L18">ex_inject_events.c</a></li> | 1088 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L18">ex_inject_events.c</a></li> |
1086 | <li><a | 1089 | <li><a |
1087 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> | 1090 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> |
1088 | <li><a | 1091 | <li><a |
1089 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L24">ex_timer_pause.c</a></li> | 1092 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L24">ex_timer_pause.c</a></li> |
1090 | </ul> | 1093 | </ul> |
1091 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> | 1094 | <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> | 1095 | <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> |
1096 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE<span·class="op">;</span></span></code></pre></div> | ||
1093 | <p><a | 1097 | <p><a |
1094 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L74">Source | 1098 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L74">Source |
1095 | Code</a></p> | 1099 | Code</a></p> |
1096 | <p>An·event·source·is·any·object·which·can·generate·events.·For·example, | 1100 | <p>An·event·source·is·any·object·which·can·generate·events.·For·example, |
1097 | an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the | 1101 | an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the |
1098 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with·<a | 1102 | 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> | 1103 | href="display.html#al_get_display_event_source">al_get_display_event_source</a>.</p> |
Offset 1108, 24 lines modified | Offset 1112, 26 lines modified | ||
1108 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> | 1112 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> |
1109 | <li><a | 1113 | <li><a |
1110 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L47">ex_user_events.c</a></li> | 1114 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L47">ex_user_events.c</a></li> |
1111 | <li><a | 1115 | <li><a |
1112 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L364">nihgui.cpp</a></li> | 1116 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L364">nihgui.cpp</a></li> |
1113 | </ul> | 1117 | </ul> |
1114 | <h1·id="allegro_event_type">ALLEGRO_EVENT_TYPE</h1> | 1118 | <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> | 1119 | <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> |
1120 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·ALLEGRO_EVENT_TYPE<span·class="op">;</span></span></code></pre></div> | ||
1116 | <p><a | 1121 | <p><a |
1117 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source | 1122 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source |
1118 | Code</a></p> | 1123 | Code</a></p> |
1119 | <p>An·integer·used·to·distinguish·between·different·types·of·events.</p> | 1124 | <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>,·<a | 1125 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a |
1121 | href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a | 1126 | href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a |
1122 | href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> | 1127 | href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> |
1123 | <h1·id="allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</h1> | 1128 | <h1·id="allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</h1> |
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> | 1129 | <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> |
1130 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_GET_EVENT_TYPE</span><span·class="op">(</span><span·class="pp">a</span><span·class="op">,</span><span·class="pp">·b</span><span·class="op">,</span><span·class="pp">·c</span><span·class="op">,</span><span·class="pp">·d</span><span·class="op">)</span><span·class="pp">···AL_ID</span><span·class="op">(</span><span·class="pp">a</span><span·class="op">,</span><span·class="pp">·b</span><span·class="op">,</span><span·class="pp">·c</span><span·class="op">,</span><span·class="pp">·d</span><span·class="op">)</span></span></code></pre></div> | ||
1125 | <p><a | 1131 | <p><a |
1126 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L69">Source | 1132 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L69">Source |
1127 | Code</a></p> | 1133 | Code</a></p> |
1128 | <p>Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually, | 1134 | <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, | 1135 | but·not·necessarily,·this·will·be·made·from·four·8-bit·character·codes, |
1130 | for·example:</p> | 1136 | 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> | 1137 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>Examples<span·class="op">:</span></span> |
Offset 1152, 15 lines modified | Offset 1158, 16 lines modified | ||
1152 | <span·id="cb10-9"><a·href="#cb10-9"·aria-hidden="true"·tabindex="-1"></a>···MEOW_EVENT<span·class="op">,</span></span> | 1158 | <span·id="cb10-9"><a·href="#cb10-9"·aria-hidden="true"·tabindex="-1"></a>···MEOW_EVENT<span·class="op">,</span></span> |
1153 | <span·id="cb10-10"><a·href="#cb10-10"·aria-hidden="true"·tabindex="-1"></a>···SQUAWK_EVENT</span> | 1159 | <span·id="cb10-10"><a·href="#cb10-10"·aria-hidden="true"·tabindex="-1"></a>···SQUAWK_EVENT</span> |
1154 | <span·id="cb10-11"><a·href="#cb10-11"·aria-hidden="true"·tabindex="-1"></a><span·class="op">};</span></span></code></pre></div> | 1160 | <span·id="cb10-11"><a·href="#cb10-11"·aria-hidden="true"·tabindex="-1"></a><span·class="op">};</span></span></code></pre></div> |
1155 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a | 1161 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a |
1156 | href="events.html#allegro_user_event">ALLEGRO_USER_EVENT</a>,·<a | 1162 | href="events.html#allegro_user_event">ALLEGRO_USER_EVENT</a>,·<a |
1157 | href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> | 1163 | href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> |
1158 | <h1·id="allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</h1> | 1164 | <h1·id="allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</h1> |
1159 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER</span><span·class="op">(</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">((</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">>=</span><span·class="pp">·</span><span·class="dv">512</span><span·class="op">)</span></span> | 1165 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER</span><span·class="op">(</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">((</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">>=</span><span·class="pp">·</span><span·class="dv">512</span><span·class="op">)</span></span> |
1166 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER</span><span·class="op">(</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">((</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">>=</span><span·class="pp">·</span><span·class="dv">512</span><span·class="op">)</span></span></code></pre></div> | ||
1160 | <p><a | 1167 | <p><a |
1161 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L64">Source | 1168 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L64">Source |
1162 | Code</a></p> | 1169 | Code</a></p> |
1163 | <p>A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin | 1170 | <p>A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin |
1164 | event·type,·i.e. one·of·those·described·in·<a | 1171 | event·type,·i.e. one·of·those·described·in·<a |
1165 | href="events.html#allegro_event_type">ALLEGRO_EVENT_TYPE</a>.</p> | 1172 | href="events.html#allegro_event_type">ALLEGRO_EVENT_TYPE</a>.</p> |
1166 | <h1·id="al_create_event_queue">al_create_event_queue</h1> | 1173 | <h1·id="al_create_event_queue">al_create_event_queue</h1> |
Offset 118, 14 lines modified | Offset 118, 15 lines modified | ||
118 | events·that·can·be·generated·by·user-defined·event·sources. | 118 | events·that·can·be·generated·by·user-defined·event·sources. |
119 | The·appropriate·reaction·to·an·event·is·determined·by·examining·the·fields·of | 119 | The·appropriate·reaction·to·an·event·is·determined·by·examining·the·fields·of |
120 | the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T·union·according·to·the·event·type. | 120 | the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T·union·according·to·the·event·type. |
121 | In·addition·to·the·events·sent·by·Allegro·core,·there’s·also·events·send·by·the | 121 | In·addition·to·the·events·sent·by·Allegro·core,·there’s·also·events·send·by·the |
122 | addons,·see·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8A_\x8U_\x8D_\x8I_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8V_\x8I_\x8D_\x8E_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E. | 122 | addons,·see·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8A_\x8U_\x8D_\x8I_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8V_\x8I_\x8D_\x8E_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E. |
123 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 123 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
124 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; | 124 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; |
125 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; | ||
125 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
126 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it·is·an | 127 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it·is·an |
127 | object·large·enough·to·hold·the·data·of·any·event·type.·All·events·have·the | 128 | object·large·enough·to·hold·the·data·of·any·event·type.·All·events·have·the |
128 | following·fields·in·common: | 129 | following·fields·in·common: |
129 | ··type·(ALLEGRO_EVENT_TYPE) | 130 | ··type·(ALLEGRO_EVENT_TYPE) |
130 | ······Indicates·the·type·of·event. | 131 | ······Indicates·the·type·of·event. |
131 | ··any.source·(ALLEGRO_EVENT_SOURCE·*) | 132 | ··any.source·(ALLEGRO_EVENT_SOURCE·*) |
Offset 496, 14 lines modified | Offset 497, 15 lines modified | ||
496 | ······action.·If·i\x8is\x8s_\x8_c\x8co\x8om\x8mp\x8pl\x8le\x8et\x8te\x8e·is·set·before·receiving·an·event·where·t\x8te\x8ex\x8xt\x8t·was | 497 | ······action.·If·i\x8is\x8s_\x8_c\x8co\x8om\x8mp\x8pl\x8le\x8et\x8te\x8e·is·set·before·receiving·an·event·where·t\x8te\x8ex\x8xt\x8t·was |
497 | ······not·NULL·it·means·the·user·aborted·the·drag&drop. | 498 | ······not·NULL·it·means·the·user·aborted·the·drag&drop. |
498 | Since:·5.2.9 | 499 | Since:·5.2.9 |
499 | ·····_\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 | 500 | ·····_\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 |
500 | ·····works·for·the·X11·backend. | 501 | ·····works·for·the·X11·backend. |
501 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8SE\x8ER\x8R_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 502 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8SE\x8ER\x8R_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
502 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; | 503 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; |
504 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; | ||
503 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 505 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
504 | An·event·structure·that·can·be·emitted·by·user·event·sources.·These·are·the | 506 | An·event·structure·that·can·be·emitted·by·user·event·sources.·These·are·the |
505 | public·fields: | 507 | public·fields: |
506 | ····*·ALLEGRO_EVENT_SOURCE·*source; | 508 | ····*·ALLEGRO_EVENT_SOURCE·*source; |
507 | ····*·intptr_t·data1; | 509 | ····*·intptr_t·data1; |
508 | ····*·intptr_t·data2; | 510 | ····*·intptr_t·data2; |
509 | ····*·intptr_t·data3; | 511 | ····*·intptr_t·data3; |
Offset 531, 42 lines modified | Offset 533, 46 lines modified | ||
531 | 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 | 533 | 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 |
532 | assigning·identifiers. | 534 | assigning·identifiers. |
533 | 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 | 535 | 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 |
534 | Examples: | 536 | Examples: |
535 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 537 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
536 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_Q\x8QU\x8UE\x8EU\x8UE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 538 | *\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* |
537 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | 539 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; |
540 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | ||
538 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 541 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
539 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are | 542 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are |
540 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. | 543 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. |
541 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. | 544 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. |
542 | 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 | 545 | 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 |
543 | Examples: | 546 | Examples: |
544 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 547 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
545 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | 548 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c |
546 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | 549 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c |
547 | *\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* | 550 | *\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* |
548 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | 551 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; |
552 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | ||
549 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 553 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
550 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an | 554 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an |
551 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE | 555 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE |
552 | 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. | 556 | 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. |
553 | You·may·create·your·own·“user”·event·sources·that·emit·custom·events. | 557 | You·may·create·your·own·“user”·event·sources·that·emit·custom·events. |
554 | 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 | 558 | 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 |
555 | Examples: | 559 | Examples: |
556 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 560 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
557 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 561 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
558 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | 562 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p |
559 | *\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* | 563 | *\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* |
560 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; | 564 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; |
565 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; | ||
561 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 566 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
562 | An·integer·used·to·distinguish·between·different·types·of·events. | 567 | An·integer·used·to·distinguish·between·different·types·of·events. |
563 | 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 | 568 | 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 |
564 | *\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* | 569 | *\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* |
565 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) | 570 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) |
571 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) | ||
566 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 572 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
567 | Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not | 573 | Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not |
568 | necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example: | 574 | necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example: |
569 | Examples: | 575 | Examples: |
570 | *·[ex_user_events.c](https://github.com/liballeg/allegro5/blob/master/examples/ | 576 | *·[ex_user_events.c](https://github.com/liballeg/allegro5/blob/master/examples/ |
571 | ex_user_events.c#L10) | 577 | ex_user_events.c#L10) |
Offset 589, 14 lines modified | Offset 595, 15 lines modified | ||
589 | ···BARK_EVENT·=·ALLEGRO_GET_EVENT_TYPE('M','I','N','E'), | 595 | ···BARK_EVENT·=·ALLEGRO_GET_EVENT_TYPE('M','I','N','E'), |
590 | ···MEOW_EVENT, | 596 | ···MEOW_EVENT, |
591 | ···SQUAWK_EVENT | 597 | ···SQUAWK_EVENT |
592 | }; | 598 | }; |
593 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8E_\x8R_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E_\x8__\x8I_\x8S_\x8__\x8U_\x8S_\x8E_\x8R | 599 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8E_\x8R_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E_\x8__\x8I_\x8S_\x8__\x8U_\x8S_\x8E_\x8R |
594 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E_\x8_I\x8IS\x8S_\x8_U\x8US\x8SE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* | 600 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E_\x8_I\x8IS\x8S_\x8_U\x8US\x8SE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* |
595 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) | 601 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) |
602 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) | ||
596 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 603 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
597 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event·type, | 604 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event·type, |
598 | i.e. one·of·those·described·in·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E. | 605 | i.e. one·of·those·described·in·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E. |
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* | 606 | *\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) | 607 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) |
601 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 608 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
602 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created | 609 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created |
Offset 236, 15 lines modified | Offset 236, 16 lines modified | ||
236 | id="toc-al_get_file_userdata">al_get_file_userdata</a></li> | 236 | id="toc-al_get_file_userdata">al_get_file_userdata</a></li> |
237 | </ul></li> | 237 | </ul></li> |
238 | </ul> | 238 | </ul> |
239 | </nav> | 239 | </nav> |
240 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 240 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
241 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 241 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
242 | <h1·id="allegro_file">ALLEGRO_FILE</h1> | 242 | <h1·id="allegro_file">ALLEGRO_FILE</h1> |
243 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE<span·class="op">;</span></span> | 243 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE<span·class="op">;</span></span> |
244 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE<span·class="op">;</span></span></code></pre></div> | ||
244 | <p><a | 245 | <p><a |
245 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L15">Source | 246 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L15">Source |
246 | Code</a></p> | 247 | Code</a></p> |
247 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file | 248 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file |
248 | on·disk·or·a·virtual·file.</p> | 249 | on·disk·or·a·virtual·file.</p> |
249 | <p>Examples:</p> | 250 | <p>Examples:</p> |
250 | <ul> | 251 | <ul> |
Offset 252, 15 lines modified | Offset 253, 16 lines modified | ||
252 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L23">ex_file.c</a></li> | 253 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L23">ex_file.c</a></li> |
253 | <li><a | 254 | <li><a |
254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L18">ex_dir.c</a></li> | 255 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L18">ex_dir.c</a></li> |
255 | <li><a | 256 | <li><a |
256 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L19">ex_memfile.c</a></li> | 257 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L19">ex_memfile.c</a></li> |
257 | </ul> | 258 | </ul> |
258 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> | 259 | <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> | 260 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span> |
261 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div> | ||
260 | <p><a | 262 | <p><a |
261 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source | 263 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source |
262 | Code</a></p> | 264 | Code</a></p> |
263 | <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”, | 265 | <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”, |
264 | real·or·virtual.·See·the·full·discussion·in·<a | 266 | real·or·virtual.·See·the·full·discussion·in·<a |
265 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> | 267 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> |
266 | <p>The·fields·are:</p> | 268 | <p>The·fields·are:</p> |
Offset 291, 15 lines modified | Offset 293, 16 lines modified | ||
291 | char·long·buffer·will·be·used.</p> | 293 | char·long·buffer·will·be·used.</p> |
292 | <p>Examples:</p> | 294 | <p>Examples:</p> |
293 | <ul> | 295 | <ul> |
294 | <li><a | 296 | <li><a |
295 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L65">ex_curl.c</a></li> | 297 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L65">ex_curl.c</a></li> |
296 | </ul> | 298 | </ul> |
297 | <h1·id="allegro_seek">ALLEGRO_SEEK</h1> | 299 | <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> | 300 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</span> |
301 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</span></code></pre></div> | ||
299 | <p><a | 302 | <p><a |
300 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L40">Source | 303 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L40">Source |
301 | Code</a></p> | 304 | Code</a></p> |
302 | <ul> | 305 | <ul> |
303 | <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li> | 306 | <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li> |
304 | <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li> | 307 | <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li> |
305 | <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li> | 308 | <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li> |
Offset 85, 23 lines modified | Offset 85, 25 lines modified | ||
85 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 85 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e |
86 | ··········o·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | 86 | ··········o·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e |
87 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8u_\x8s_\x8e_\x8r_\x8d_\x8a_\x8t_\x8a | 87 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8u_\x8s_\x8e_\x8r_\x8d_\x8a_\x8t_\x8a |
88 | These·functions·are·declared·in·the·main·Allegro·header·file: | 88 | These·functions·are·declared·in·the·main·Allegro·header·file: |
89 | ·#include·<allegro5/allegro.h> | 89 | ·#include·<allegro5/allegro.h> |
90 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 90 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
91 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | 91 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; |
92 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | ||
92 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 93 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
93 | An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk | 94 | An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk |
94 | or·a·virtual·file. | 95 | or·a·virtual·file. |
95 | Examples: | 96 | Examples: |
96 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 97 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
97 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c | 98 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c |
98 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 99 | ····*·_\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* | 100 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
100 | typedef·struct·ALLEGRO_FILE_INTERFACE | 101 | typedef·struct·ALLEGRO_FILE_INTERFACE |
102 | typedef·struct·ALLEGRO_FILE_INTERFACE | ||
101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
102 | A·structure·containing·function·pointers·to·handle·a·type·of·“file”,·real·or | 104 | 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. | 105 | virtual.·See·the·full·discussion·in·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e. |
104 | The·fields·are: | 106 | The·fields·are: |
105 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); | 107 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); |
106 | bool··········(*fi_fclose)(ALLEGRO_FILE·*f); | 108 | bool··········(*fi_fclose)(ALLEGRO_FILE·*f); |
107 | size_t········(*fi_fread)(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size); | 109 | size_t········(*fi_fread)(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size); |
Offset 124, 14 lines modified | Offset 126, 15 lines modified | ||
124 | free·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E·handle. | 126 | 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·long | 127 | If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16·char·long |
126 | buffer·will·be·used. | 128 | buffer·will·be·used. |
127 | Examples: | 129 | Examples: |
128 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c | 130 | ····*·_\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* | 131 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SE\x8EE\x8EK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8* |
130 | typedef·enum·ALLEGRO_SEEK | 132 | typedef·enum·ALLEGRO_SEEK |
133 | typedef·enum·ALLEGRO_SEEK | ||
131 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 134 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
132 | ····*·ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file | 135 | ····*·ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file |
133 | ····*·ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position | 136 | ····*·ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position |
134 | ····*·ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file | 137 | ····*·ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file |
135 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8s_\x8e_\x8e_\x8k | 138 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8s_\x8e_\x8e_\x8k |
136 | Examples: | 139 | Examples: |
137 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 140 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
Offset 202, 15 lines modified | Offset 202, 16 lines modified | ||
202 | <li><a·href="#al_fixhypot"·id="toc-al_fixhypot">al_fixhypot</a></li> | 202 | <li><a·href="#al_fixhypot"·id="toc-al_fixhypot">al_fixhypot</a></li> |
203 | </ul></li> | 203 | </ul></li> |
204 | </ul> | 204 | </ul> |
205 | </nav> | 205 | </nav> |
206 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 206 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
207 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 207 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
208 | <h1·id="al_fixed">al_fixed</h1> | 208 | <h1·id="al_fixed">al_fixed</h1> |
209 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="dt">int32_t</span>·al_fixed<span·class="op">;</span></span> | 209 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="dt">int32_t</span>·al_fixed<span·class="op">;</span></span> |
210 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="dt">int32_t</span>·al_fixed<span·class="op">;</span></span></code></pre></div> | ||
210 | <p><a | 211 | <p><a |
211 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fixed.h#L30">Source | 212 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fixed.h#L30">Source |
212 | Code</a></p> | 213 | Code</a></p> |
213 | <p>A·fixed·point·number.</p> | 214 | <p>A·fixed·point·number.</p> |
214 | <p>Allegro·provides·some·routines·for·working·with·fixed·point·numbers, | 215 | <p>Allegro·provides·some·routines·for·working·with·fixed·point·numbers, |
215 | and·defines·the·type·<code>al_fixed</code>·to·be·a·signed·32-bit | 216 | and·defines·the·type·<code>al_fixed</code>·to·be·a·signed·32-bit |
216 | integer.·The·high·word·is·used·for·the·integer·part·and·the·low·word·for | 217 | integer.·The·high·word·is·used·for·the·integer·part·and·the·low·word·for |
Offset 66, 14 lines modified | Offset 66, 15 lines modified | ||
66 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8a_\x8t_\x8a_\x8n_\x82 | 66 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8a_\x8t_\x8a_\x8n_\x82 |
67 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8s_\x8q_\x8r_\x8t | 67 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8s_\x8q_\x8r_\x8t |
68 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8h_\x8y_\x8p_\x8o_\x8t | 68 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8h_\x8y_\x8p_\x8o_\x8t |
69 | These·functions·are·declared·in·the·main·Allegro·header·file: | 69 | These·functions·are·declared·in·the·main·Allegro·header·file: |
70 | ·#include·<allegro5/allegro.h> | 70 | ·#include·<allegro5/allegro.h> |
71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fi\x8ix\x8xe\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fi\x8ix\x8xe\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
72 | typedef·int32_t·al_fixed; | 72 | typedef·int32_t·al_fixed; |
73 | typedef·int32_t·al_fixed; | ||
73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 74 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
74 | A·fixed·point·number. | 75 | A·fixed·point·number. |
75 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and | 76 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and |
76 | defines·the·type·al_fixed·to·be·a·signed·32-bit·integer.·The·high·word·is·used | 77 | defines·the·type·al_fixed·to·be·a·signed·32-bit·integer.·The·high·word·is·used |
77 | for·the·integer·part·and·the·low·word·for·the·fraction,·giving·a·range·of·- | 78 | for·the·integer·part·and·the·low·word·for·the·fraction,·giving·a·range·of·- |
78 | 32768·to·32767·and·an·accuracy·of·about·four·or·five·decimal·places.·Fixed | 79 | 32768·to·32767·and·an·accuracy·of·about·four·or·five·decimal·places.·Fixed |
79 | point·numbers·can·be·assigned,·compared,·added,·subtracted,·negated·and·shifted | 80 | point·numbers·can·be·assigned,·compared,·added,·subtracted,·negated·and·shifted |
Offset 283, 15 lines modified | Offset 283, 16 lines modified | ||
283 | </ul> | 283 | </ul> |
284 | </nav> | 284 | </nav> |
285 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 285 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
286 | allegro_font.</p> | 286 | allegro_font.</p> |
287 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_font.h></span></span></code></pre></div> | 287 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_font.h></span></span></code></pre></div> |
288 | <h1·id="general-font-routines">General·font·routines</h1> | 288 | <h1·id="general-font-routines">General·font·routines</h1> |
289 | <h2·id="allegro_font">ALLEGRO_FONT</h2> | 289 | <h2·id="allegro_font">ALLEGRO_FONT</h2> |
290 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FONT·ALLEGRO_FONT<span·class="op">;</span></span> | 290 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FONT·ALLEGRO_FONT<span·class="op">;</span></span> |
291 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FONT·ALLEGRO_FONT<span·class="op">;</span></span></code></pre></div> | ||
291 | <p><a | 292 | <p><a |
292 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L48">Source | 293 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L48">Source |
293 | Code</a></p> | 294 | Code</a></p> |
294 | <p>A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it | 295 | <p>A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it |
295 | with·<a·href="font.html#al_load_font">al_load_font</a>·which·supports | 296 | 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. | 297 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. |
297 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded | 298 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded |
Offset 304, 15 lines modified | Offset 305, 16 lines modified | ||
304 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L10">ex_disable_screensaver.c</a></li> | 305 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L10">ex_disable_screensaver.c</a></li> |
305 | <li><a | 306 | <li><a |
306 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L17">ex_font_justify.cpp</a></li> | 307 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L17">ex_font_justify.cpp</a></li> |
307 | <li><a | 308 | <li><a |
308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L13">ex_timedwait.c</a></li> | 309 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L13">ex_timedwait.c</a></li> |
309 | </ul> | 310 | </ul> |
310 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> | 311 | <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> | 312 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH<span·class="op">;</span></span> |
313 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH<span·class="op">;</span></span></code></pre></div> | ||
312 | <p><a | 314 | <p><a |
313 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source | 315 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source |
314 | Code</a></p> | 316 | Code</a></p> |
315 | <p>A·structure·containing·the·properties·of·a·character·in·a·font.</p> | 317 | <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> | 318 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·<span·class="op">{</span></span> |
317 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">;</span>···<span·class="co">//·the·bitmap·the·character·is·on</span></span> | 319 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">;</span>···<span·class="co">//·the·bitmap·the·character·is·on</span></span> |
318 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x<span·class="op">;</span>····················<span·class="co">//·the·x·position·of·the·glyph·on·bitmap</span></span> | 320 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x<span·class="op">;</span>····················<span·class="co">//·the·x·position·of·the·glyph·on·bitmap</span></span> |
Offset 343, 15 lines modified | Offset 345, 16 lines modified | ||
343 | <p>See·also:·<a·href="font.html#al_get_glyph">al_get_glyph</a></p> | 345 | <p>See·also:·<a·href="font.html#al_get_glyph">al_get_glyph</a></p> |
344 | <p>Examples:</p> | 346 | <p>Examples:</p> |
345 | <ul> | 347 | <ul> |
346 | <li><a | 348 | <li><a |
347 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L91">ex_ttf.c</a></li> | 349 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L91">ex_ttf.c</a></li> |
348 | </ul> | 350 | </ul> |
349 | <h2·id="al_init_font_addon">al_init_font_addon</h2> | 351 | <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> | 352 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
353 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
351 | <p><a | 354 | <p><a |
352 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L367">Source | 355 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L367">Source |
353 | Code</a></p> | 356 | Code</a></p> |
354 | <p>Initialise·the·font·addon.</p> | 357 | <p>Initialise·the·font·addon.</p> |
355 | <p>Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to | 358 | <p>Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to |
356 | initialise·allegro_image·separately·(unless·you·are·using·another | 359 | initialise·allegro_image·separately·(unless·you·are·using·another |
357 | library·to·load·images).</p> | 360 | library·to·load·images).</p> |
Offset 371, 35 lines modified | Offset 374, 38 lines modified | ||
371 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L28">ex_disable_screensaver.c</a></li> | 374 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L28">ex_disable_screensaver.c</a></li> |
372 | <li><a | 375 | <li><a |
373 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L104">ex_font_justify.cpp</a></li> | 376 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L104">ex_font_justify.cpp</a></li> |
374 | <li><a | 377 | <li><a |
375 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L30">ex_timedwait.c</a></li> | 378 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L30">ex_timedwait.c</a></li> |
376 | </ul> | 379 | </ul> |
377 | <h2·id="al_is_font_addon_initialized">al_is_font_addon_initialized</h2> | 380 | <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> | 381 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_font_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
382 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_font_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
379 | <p><a | 383 | <p><a |
380 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font | 384 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/foe_frequency(const%20ALLEGRO_VOICE%20*voice)#Laddons/audio/kcm_voice.c">Source |
381 | Code</a></p> | 385 | Code</a></p> |
382 | <p>Returns·true·if·the·font·addon·is·initialized,·otherwise·returns | 386 | <p>Returns·true·if·the·font·addon·is·initialized,·otherwise·returns |
383 | false.</p> | 387 | false.</p> |
384 | <p>Since:·5.2.6</p> | 388 | <p>Since:·5.2.6</p> |
385 | <p>See·also:·<a | 389 | <p>See·also:·<a |
386 | href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a | 390 | href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a |
387 | href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> | 391 | href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> |
388 | <h2·id="al_shutdown_font_addon">al_shutdown_font_addon</h2> | 392 | <h2·id="al_shutdown_font_addon">al_shutdown_font_addon</h2> |
389 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 393 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
394 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
390 | <p><a | 395 | <p><a |
391 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L402">Source | 396 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L402">Source |
392 | Code</a></p> | 397 | Code</a></p> |
393 | <p>Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit, | 398 | <p>Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit, |
394 | but·can·be·called·any·time·the·user·wishes·as·well.</p> | 399 | but·can·be·called·any·time·the·user·wishes·as·well.</p> |
395 | <p>See·also:·<a | 400 | <p>See·also:·<a |
396 | href="font.html#al_init_font_addon">al_init_font_addon</a></p> | 401 | href="font.html#al_init_font_addon">al_init_font_addon</a></p> |
397 | <h2·id="al_load_font">al_load_font</h2> | 402 | <h2·id="al_load_font">al_load_font</h2> |
398 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FONT·<span·class="op">*</span>al_load_font<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">)</span></span> | 403 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FONT·<span·class="op">*</span>al_load_font<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">)</span></span> |
404 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FONT·<span·class="op">*</span>al_load_font<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">)</span></span></code></pre></div> | ||
399 | <p><a | 405 | <p><a |
400 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L450">Source | 406 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L450">Source |
401 | Code</a></p> | 407 | Code</a></p> |
402 | <p>Loads·a·font·from·disk.·This·will·use·<a | 408 | <p>Loads·a·font·from·disk.·This·will·use·<a |
403 | href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a> | 409 | href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a> |
404 | if·you·pass·the·name·of·a·known·bitmap·format,·or·else·<a | 410 | if·you·pass·the·name·of·a·known·bitmap·format,·or·else·<a |
405 | href="font.html#al_load_ttf_font">al_load_ttf_font</a>.</p> | 411 | href="font.html#al_load_ttf_font">al_load_ttf_font</a>.</p> |
Offset 418, 15 lines modified | Offset 424, 16 lines modified | ||
418 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L116">ex_font_justify.cpp</a></li> | 424 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L116">ex_font_justify.cpp</a></li> |
419 | <li><a | 425 | <li><a |
420 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_membmp.c#L104">ex_membmp.c</a></li> | 426 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_membmp.c#L104">ex_membmp.c</a></li> |
421 | <li><a | 427 | <li><a |
422 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_title.c#L60">ex_window_title.c</a></li> | 428 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_title.c#L60">ex_window_title.c</a></li> |
423 | </ul> | 429 | </ul> |
424 | <h2·id="al_destroy_font">al_destroy_font</h2> | 430 | <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> | 431 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_font<span·class="op">(</span>ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">)</span></span> |
432 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_font<span·class="op">(</span>ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div> | ||
426 | <p><a | 433 | <p><a |
427 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L357">Source | 434 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L357">Source |
428 | Code</a></p> | 435 | Code</a></p> |
429 | <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if | 436 | <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if |
430 | passed·NULL.</p> | 437 | passed·NULL.</p> |
431 | <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p> | 438 | <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p> |
432 | <p>Examples:</p> | 439 | <p>Examples:</p> |
Offset 436, 30 lines modified | Offset 443, 33 lines modified | ||
436 | <li><a | 443 | <li><a |
437 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L139">ex_font_justify.cpp</a></li> | 444 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L139">ex_font_justify.cpp</a></li> |
438 | <li><a | 445 | <li><a |
439 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L86">ex_cpu.c</a></li> | 446 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L86">ex_cpu.c</a></li> |
440 | </ul> | 447 | </ul> |
441 | <h2·id="al_register_font_loader">al_register_font_loader</h2> | 448 | <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> | 449 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_register_font_loader<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>extension<span·class="op">,</span></span> |
450 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_FONT·<span·class="op">*(*</span>load_font<span·class="op">)(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">))</span></span> | ||
451 | <span·id="cb10-3"><a·href="#cb10-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_register_font_loader<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>extension<span·class="op">,</span></span> | ||
443 | <span·id="cb10- | 452 | <span·id="cb10-4"><a·href="#cb10-4"·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><a | 453 | <p><a |
445 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L426">Source | 454 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L426">Source |
446 | Code</a></p> | 455 | Code</a></p> |
447 | <p>Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files | 456 | <p>Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files |
448 | of·this·format.</p> | 457 | of·this·format.</p> |
449 | <p>The·<code>extension</code>·should·include·the·leading·dot·(‘.’) | 458 | <p>The·<code>extension</code>·should·include·the·leading·dot·(‘.’) |
450 | character.·It·will·be·matched·case-insensitively.</p> | 459 | character.·It·will·be·matched·case-insensitively.</p> |
451 | <p>The·<code>load_font</code>·argument·may·be·NULL·to·unregister·an | 460 | <p>The·<code>load_font</code>·argument·may·be·NULL·to·unregister·an |
452 | entry.</p> | 461 | entry.</p> |
453 | <p>Returns·true·on·success,·false·on·error.·Returns·false·if | 462 | <p>Returns·true·on·success,·false·on·error.·Returns·false·if |
Max diff block lines reached; 82475/96824 bytes (85.18%) of diff not shown. |
Offset 97, 26 lines modified | Offset 97, 28 lines modified | ||
97 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h | 97 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h |
98 | These·functions·are·declared·in·the·following·header·file.·Link·with | 98 | These·functions·are·declared·in·the·following·header·file.·Link·with |
99 | allegro_font. | 99 | allegro_font. |
100 | ·#include·<allegro5/allegro_font.h> | 100 | ·#include·<allegro5/allegro_font.h> |
101 | *\x8**\x8**\x8**\x8**\x8**\x8*·G\x8Ge\x8en\x8ne\x8er\x8ra\x8al\x8l·f\x8fo\x8on\x8nt\x8t·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 101 | *\x8**\x8**\x8**\x8**\x8**\x8*·G\x8Ge\x8en\x8ne\x8er\x8ra\x8al\x8l·f\x8fo\x8on\x8nt\x8t·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
102 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FO\x8ON\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8* | 102 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FO\x8ON\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8* |
103 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | 103 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; |
104 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | ||
104 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
105 | A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with | 106 | A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with |
106 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8f_\x8o_\x8n_\x8t·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by | 107 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8f_\x8o_\x8n_\x8t·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by |
107 | the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it | 108 | the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it |
108 | will·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·and·a·font·in·Allegro’s·bitmap·font·format | 109 | will·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·and·a·font·in·Allegro’s·bitmap·font·format |
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 | 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 | 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__\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__\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 | ····*·_\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* | 115 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_G\x8GL\x8LY\x8YP\x8PH\x8H·*\x8**\x8**\x8**\x8**\x8* |
115 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | 116 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; |
117 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | ||
116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
117 | A·structure·containing·the·properties·of·a·character·in·a·font. | 119 | A·structure·containing·the·properties·of·a·character·in·a·font. |
118 | typedef·struct·ALLEGRO_GLYPH·{ | 120 | typedef·struct·ALLEGRO_GLYPH·{ |
119 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on | 121 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on |
120 | ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap | 122 | ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap |
121 | ···int·y;····················//·the·y·position·of·the·glyph·on·bitmap | 123 | ···int·y;····················//·the·y·position·of·the·glyph·on·bitmap |
122 | ···int·w;····················//·the·width·of·the·glyph·in·pixels | 124 | ···int·w;····················//·the·width·of·the·glyph·in·pixels |
Offset 139, 14 lines modified | Offset 141, 15 lines modified | ||
139 | Since:·5.2.1 | 141 | 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. | 142 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·API·is·new·and·subject·to·refinement. |
141 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h | 143 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h |
142 | Examples: | 144 | Examples: |
143 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | 145 | ····*·_\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* | 146 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
145 | bool·al_init_font_addon(void) | 147 | bool·al_init_font_addon(void) |
148 | bool·al_init_font_addon(void) | ||
146 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 149 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
147 | Initialise·the·font·addon. | 150 | Initialise·the·font·addon. |
148 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to·initialise | 151 | 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). | 152 | 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·call | 153 | 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. | 154 | _\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·has | 155 | Returns·true·on·success,·false·on·failure.·On·the·5.0·branch,·this·function·has |
Offset 156, 61 lines modified | Offset 159, 68 lines modified | ||
156 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8t_\x8f_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 159 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8t_\x8f_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
157 | Examples: | 160 | 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 | 161 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c |
159 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 162 | ····*·_\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 | 163 | ····*·_\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* | 164 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* |
162 | bool·al_is_font_addon_initialized(void) | 165 | bool·al_is_font_addon_initialized(void) |
166 | bool·al_is_font_addon_initialized(void) | ||
163 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 167 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
164 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. | 168 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. |
165 | Since:·5.2.6 | 169 | 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_\x8n | 170 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
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* | 171 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
168 | void·al_shutdown_font_addon(void) | 172 | void·al_shutdown_font_addon(void) |
173 | void·al_shutdown_font_addon(void) | ||
169 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 174 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
170 | Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit,·but·can | 175 | Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit,·but·can |
171 | be·called·any·time·the·user·wishes·as·well. | 176 | be·called·any·time·the·user·wishes·as·well. |
172 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 177 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
173 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_f\x8fo\x8on\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* | 178 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_f\x8fo\x8on\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* |
174 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) | 179 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) |
180 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) | ||
175 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 181 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
176 | Loads·a·font·from·disk.·This·will·use·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·if·you·pass·the | 182 | Loads·a·font·from·disk.·This·will·use·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·if·you·pass·the |
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. | 183 | name·of·a·known·bitmap·format,·or·else·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8t_\x8f_\x8__\x8f_\x8o_\x8n_\x8t. |
178 | The·flags·parameter·is·passed·through·to·either·of·those·functions.·Bitmap·and | 184 | 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·is | 185 | TTF·fonts·are·also·affected·by·the·current·_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8·_\x8f_\x8l_\x8a_\x8g_\x8s·at·the·time·the·font·is |
180 | loaded. | 186 | 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, | 187 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8f_\x8o_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8o_\x8a_\x8d_\x8e_\x8r, |
182 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8t_\x8f_\x8__\x8f_\x8o_\x8n_\x8t | 188 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8t_\x8f_\x8__\x8f_\x8o_\x8n_\x8t |
183 | Examples: | 189 | Examples: |
184 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 190 | ····*·_\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 | 191 | ····*·_\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 | 192 | ····*·_\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* | 193 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_f\x8fo\x8on\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* |
188 | void·al_destroy_font(ALLEGRO_FONT·*f) | 194 | void·al_destroy_font(ALLEGRO_FONT·*f) |
195 | void·al_destroy_font(ALLEGRO_FONT·*f) | ||
189 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 196 | _\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. | 197 | 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_\x8t | 198 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8f_\x8o_\x8n_\x8t |
192 | Examples: | 199 | 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 | 200 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c |
194 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 201 | ····*·_\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 | 202 | ····*·_\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* | 203 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_f\x8fo\x8on\x8nt\x8t_\x8_l\x8lo\x8oa\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
197 | bool·al_register_font_loader(char·const·*extension, | 204 | bool·al_register_font_loader(char·const·*extension, |
198 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | 205 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) |
206 | bool·al_register_font_loader(char·const·*extension, | ||
207 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | ||
199 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 208 | _\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·this | 209 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this |
201 | format. | 210 | format. |
202 | The·extension·should·include·the·leading·dot·(‘.’)·character.·It·will·be | 211 | The·extension·should·include·the·leading·dot·(‘.’)·character.·It·will·be |
203 | matched·case-insensitively. | 212 | matched·case-insensitively. |
204 | The·load_font·argument·may·be·NULL·to·unregister·an·entry. | 213 | The·load_font·argument·may·be·NULL·to·unregister·an·entry. |
205 | Returns·true·on·success,·false·on·error.·Returns·false·if·unregistering·an | 214 | Returns·true·on·success,·false·on·error.·Returns·false·if·unregistering·an |
206 | entry·that·doesn’t·exist. | 215 | entry·that·doesn’t·exist. |
207 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 216 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
208 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_l\x8li\x8in\x8ne\x8e_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8* | 217 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_l\x8li\x8in\x8ne\x8e_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8* |
209 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) | 218 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) |
219 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) | ||
210 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 220 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
211 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font.·For·bitmap | 221 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font.·For·bitmap |
212 | fonts·this·is·simply·the·height·of·all·glyph·bitmaps.·For·truetype·fonts·it·is | 222 | fonts·this·is·simply·the·height·of·all·glyph·bitmaps.·For·truetype·fonts·it·is |
213 | whatever·the·font·file·specifies.·In·particular,·some·special·glyphs·may·be | 223 | whatever·the·font·file·specifies.·In·particular,·some·special·glyphs·may·be |
214 | higher·than·the·height·returned·here. | 224 | higher·than·the·height·returned·here. |
215 | If·the·X·is·the·position·you·specify·to·draw·text,·the·meaning·of·ascent·and | 225 | If·the·X·is·the·position·you·specify·to·draw·text,·the·meaning·of·ascent·and |
216 | descent·and·the·line·height·is·like·in·the·figure·below. | 226 | descent·and·the·line·height·is·like·in·the·figure·below. |
Offset 228, 46 lines modified | Offset 238, 53 lines modified | ||
228 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s | 238 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s |
229 | Examples: | 239 | Examples: |
230 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 240 | ····*·_\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 | 241 | ····*·_\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 | 242 | ····*·_\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* | 243 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8as\x8sc\x8ce\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* |
234 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) | 244 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) |
245 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) | ||
235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 246 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
236 | Returns·the·ascent·of·the·specified·font. | 247 | 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_\x8t | 248 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8d_\x8e_\x8s_\x8c_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t |
238 | Examples: | 249 | Examples: |
239 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | 250 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c |
Max diff block lines reached; 29572/37355 bytes (79.16%) of diff not shown. |
Offset 242, 15 lines modified | Offset 242, 16 lines modified | ||
242 | </nav> | 242 | </nav> |
243 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 243 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
244 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 244 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
245 | <p>These·functions·allow·access·to·the·filesystem.·This·can·either·be | 245 | <p>These·functions·allow·access·to·the·filesystem.·This·can·either·be |
246 | the·real·filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a | 246 | the·real·filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a |
247 | .zip·archive·(or·whatever·else·you·or·an·addon·makes·it·do).</p> | 247 | .zip·archive·(or·whatever·else·you·or·an·addon·makes·it·do).</p> |
248 | <h1·id="allegro_fs_entry">ALLEGRO_FS_ENTRY</h1> | 248 | <h1·id="allegro_fs_entry">ALLEGRO_FS_ENTRY</h1> |
249 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY<span·class="op">;</span></span> | 249 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY<span·class="op">;</span></span> |
250 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY<span·class="op">;</span></span></code></pre></div> | ||
250 | <p><a | 251 | <p><a |
251 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source | 252 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source |
252 | Code</a></p> | 253 | Code</a></p> |
253 | <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory | 254 | <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory |
254 | (check·with·<a | 255 | (check·with·<a |
255 | href="fshook.html#al_get_fs_entry_mode">al_get_fs_entry_mode</a>).·There | 256 | href="fshook.html#al_get_fs_entry_mode">al_get_fs_entry_mode</a>).·There |
256 | are·no·user·accessible·member·variables.</p> | 257 | are·no·user·accessible·member·variables.</p> |
Offset 258, 15 lines modified | Offset 259, 16 lines modified | ||
258 | <ul> | 259 | <ul> |
259 | <li><a | 260 | <li><a |
260 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L6">ex_dir.c</a></li> | 261 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L6">ex_dir.c</a></li> |
261 | <li><a | 262 | <li><a |
262 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L37">ex_physfs.c</a></li> | 263 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L37">ex_physfs.c</a></li> |
263 | </ul> | 264 | </ul> |
264 | <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1> | 265 | <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> | 266 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</span> |
267 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</span></code></pre></div> | ||
266 | <p><a | 268 | <p><a |
267 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source | 269 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source |
268 | Code</a></p> | 270 | Code</a></p> |
269 | <p>Filesystem·modes/types</p> | 271 | <p>Filesystem·modes/types</p> |
270 | <ul> | 272 | <ul> |
271 | <li>ALLEGRO_FILEMODE_READ·-·Readable</li> | 273 | <li>ALLEGRO_FILEMODE_READ·-·Readable</li> |
272 | <li>ALLEGRO_FILEMODE_WRITE·-·Writable</li> | 274 | <li>ALLEGRO_FILEMODE_WRITE·-·Writable</li> |
Offset 591, 15 lines modified | Offset 593, 16 lines modified | ||
591 | entry,·but·uses·the·appropriate·file·interface,·not·whatever·was·set | 593 | entry,·but·uses·the·appropriate·file·interface,·not·whatever·was·set |
592 | with·the·latest·call·to·<a | 594 | with·the·latest·call·to·<a |
593 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> | 595 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> |
594 | <p>Returns·the·handle·on·success,·NULL·on·error.</p> | 596 | <p>Returns·the·handle·on·success,·NULL·on·error.</p> |
595 | <p>See·also:·<a·href="file.html#al_fopen">al_fopen</a></p> | 597 | <p>See·also:·<a·href="file.html#al_fopen">al_fopen</a></p> |
596 | <h2 | 598 | <h2 |
597 | id="allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</h2> | 599 | id="allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</h2> |
598 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb24-1"><a·href="#cb24-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·<span·class="op">{</span></span> | 600 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb24-1"><a·href="#cb24-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·<span·class="op">{</span></span> |
601 | <span·id="cb24-2"><a·href="#cb24-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·<span·class="op">{</span></span></code></pre></div> | ||
599 | <p><a | 602 | <p><a |
600 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L124">Source | 603 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L124">Source |
601 | Code</a></p> | 604 | Code</a></p> |
602 | <p>Return·values·for·the·callbacks·of·<a | 605 | <p>Return·values·for·the·callbacks·of·<a |
603 | href="fshook.html#al_for_each_fs_entry">al_for_each_fs_entry</a>·and·for | 606 | href="fshook.html#al_for_each_fs_entry">al_for_each_fs_entry</a>·and·for |
604 | that·function·itself.</p> | 607 | that·function·itself.</p> |
605 | <ul> | 608 | <ul> |
Offset 678, 15 lines modified | Offset 681, 16 lines modified | ||
678 | <p>By·default,·Allegro·uses·platform·specific·filesystem·functions·for | 681 | <p>By·default,·Allegro·uses·platform·specific·filesystem·functions·for |
679 | things·like·directory·access.·However·if·for·example·the·files·of·your | 682 | things·like·directory·access.·However·if·for·example·the·files·of·your |
680 | game·are·not·in·the·local·filesystem·but·inside·some·file·archive,·you | 683 | game·are·not·in·the·local·filesystem·but·inside·some·file·archive,·you |
681 | can·provide·your·own·set·of·functions·(or·use·an·addon·which·does·this | 684 | can·provide·your·own·set·of·functions·(or·use·an·addon·which·does·this |
682 | for·you,·for·example·our·physfs·addon·allows·access·to·the·most·common | 685 | for·you,·for·example·our·physfs·addon·allows·access·to·the·most·common |
683 | archive·formats).</p> | 686 | archive·formats).</p> |
684 | <h2·id="allegro_fs_interface">ALLEGRO_FS_INTERFACE</h2> | 687 | <h2·id="allegro_fs_interface">ALLEGRO_FS_INTERFACE</h2> |
685 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb26-1"><a·href="#cb26-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE<span·class="op">;</span></span> | 688 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb26-1"><a·href="#cb26-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE<span·class="op">;</span></span> |
689 | <span·id="cb26-2"><a·href="#cb26-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE<span·class="op">;</span></span></code></pre></div> | ||
686 | <p><a | 690 | <p><a |
687 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L64">Source | 691 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L64">Source |
688 | Code</a></p> | 692 | Code</a></p> |
689 | <p>The·available·functions·you·can·provide·for·a·filesystem.·They | 693 | <p>The·available·functions·you·can·provide·for·a·filesystem.·They |
690 | are:</p> | 694 | are:</p> |
691 | <pre><code>···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); | 695 | <pre><code>···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); |
692 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); | 696 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); |
Offset 76, 22 lines modified | Offset 76, 24 lines modified | ||
76 | These·functions·are·declared·in·the·main·Allegro·header·file: | 76 | These·functions·are·declared·in·the·main·Allegro·header·file: |
77 | ·#include·<allegro5/allegro.h> | 77 | ·#include·<allegro5/allegro.h> |
78 | These·functions·allow·access·to·the·filesystem.·This·can·either·be·the·real | 78 | These·functions·allow·access·to·the·filesystem.·This·can·either·be·the·real |
79 | filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a·.zip·archive·(or | 79 | filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a·.zip·archive·(or |
80 | whatever·else·you·or·an·addon·makes·it·do). | 80 | whatever·else·you·or·an·addon·makes·it·do). |
81 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FS\x8S_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8* | 81 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FS\x8S_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8* |
82 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; | 82 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; |
83 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; | ||
83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 84 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
84 | Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory·(check·with | 85 | 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. | 86 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8__\x8m_\x8o_\x8d_\x8e).·There·are·no·user·accessible·member·variables. |
86 | Examples: | 87 | Examples: |
87 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c | 88 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c |
88 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c | 89 | ····*·_\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* | 90 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
90 | typedef·enum·ALLEGRO_FILE_MODE | 91 | typedef·enum·ALLEGRO_FILE_MODE |
92 | typedef·enum·ALLEGRO_FILE_MODE | ||
91 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 93 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
92 | Filesystem·modes/types | 94 | Filesystem·modes/types |
93 | ····*·ALLEGRO_FILEMODE_READ·-·Readable | 95 | ····*·ALLEGRO_FILEMODE_READ·-·Readable |
94 | ····*·ALLEGRO_FILEMODE_WRITE·-·Writable | 96 | ····*·ALLEGRO_FILEMODE_WRITE·-·Writable |
95 | ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable | 97 | ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable |
96 | ····*·ALLEGRO_FILEMODE_HIDDEN·-·Hidden | 98 | ····*·ALLEGRO_FILEMODE_HIDDEN·-·Hidden |
97 | ····*·ALLEGRO_FILEMODE_ISFILE·-·Regular·file | 99 | ····*·ALLEGRO_FILEMODE_ISFILE·-·Regular·file |
Offset 279, 14 lines modified | Offset 281, 15 lines modified | ||
279 | This·is·like·calling·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·with·the·name·of·the·filesystem·entry,·but·uses | 281 | This·is·like·calling·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·with·the·name·of·the·filesystem·entry,·but·uses |
280 | the·appropriate·file·interface,·not·whatever·was·set·with·the·latest·call·to | 282 | the·appropriate·file·interface,·not·whatever·was·set·with·the·latest·call·to |
281 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e. | 283 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e. |
282 | Returns·the·handle·on·success,·NULL·on·error. | 284 | Returns·the·handle·on·success,·NULL·on·error. |
283 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n | 285 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n |
284 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FO\x8OR\x8R_\x8_E\x8EA\x8AC\x8CH\x8H_\x8_F\x8FS\x8S_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y_\x8_R\x8RE\x8ES\x8SU\x8UL\x8LT\x8T·*\x8**\x8**\x8**\x8**\x8* | 286 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FO\x8OR\x8R_\x8_E\x8EA\x8AC\x8CH\x8H_\x8_F\x8FS\x8S_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y_\x8_R\x8RE\x8ES\x8SU\x8UL\x8LT\x8T·*\x8**\x8**\x8**\x8**\x8* |
285 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ | 287 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ |
288 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ | ||
286 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 289 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
287 | Return·values·for·the·callbacks·of·_\x8a_\x8l_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8a_\x8c_\x8h_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y·and·for·that·function | 290 | Return·values·for·the·callbacks·of·_\x8a_\x8l_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8a_\x8c_\x8h_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y·and·for·that·function |
288 | itself. | 291 | itself. |
289 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·-·An·error·ocurred. | 292 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·-·An·error·ocurred. |
290 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_OK·-·Continue·normally·and·recurse·into | 293 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_OK·-·Continue·normally·and·recurse·into |
291 | ······directories. | 294 | ······directories. |
292 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_SKIP·-·Continue·but·do·NOT·recusively·descend. | 295 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_SKIP·-·Continue·but·do·NOT·recusively·descend. |
Offset 333, 14 lines modified | Offset 336, 15 lines modified | ||
333 | By·default,·Allegro·uses·platform·specific·filesystem·functions·for·things·like | 336 | By·default,·Allegro·uses·platform·specific·filesystem·functions·for·things·like |
334 | directory·access.·However·if·for·example·the·files·of·your·game·are·not·in·the | 337 | directory·access.·However·if·for·example·the·files·of·your·game·are·not·in·the |
335 | local·filesystem·but·inside·some·file·archive,·you·can·provide·your·own·set·of | 338 | local·filesystem·but·inside·some·file·archive,·you·can·provide·your·own·set·of |
336 | functions·(or·use·an·addon·which·does·this·for·you,·for·example·our·physfs | 339 | functions·(or·use·an·addon·which·does·this·for·you,·for·example·our·physfs |
337 | addon·allows·access·to·the·most·common·archive·formats). | 340 | addon·allows·access·to·the·most·common·archive·formats). |
338 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FS\x8S_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8* | 341 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FS\x8S_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8* |
339 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; | 342 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; |
343 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; | ||
340 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 344 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
341 | The·available·functions·you·can·provide·for·a·filesystem.·They·are: | 345 | The·available·functions·you·can·provide·for·a·filesystem.·They·are: |
342 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); | 346 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); |
343 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); | 347 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); |
344 | ···const·char·*········fs_entry_name·····(ALLEGRO_FS_ENTRY·*e); | 348 | ···const·char·*········fs_entry_name·····(ALLEGRO_FS_ENTRY·*e); |
345 | ···bool················fs_update_entry···(ALLEGRO_FS_ENTRY·*e); | 349 | ···bool················fs_update_entry···(ALLEGRO_FS_ENTRY·*e); |
346 | ···uint32_t············fs_entry_mode·····(ALLEGRO_FS_ENTRY·*e); | 350 | ···uint32_t············fs_entry_mode·····(ALLEGRO_FS_ENTRY·*e); |
Offset 180, 15 lines modified | Offset 180, 16 lines modified | ||
180 | <li><a·href="#al_get_num_display_modes" | 180 | <li><a·href="#al_get_num_display_modes" |
181 | id="toc-al_get_num_display_modes">al_get_num_display_modes</a></li> | 181 | id="toc-al_get_num_display_modes">al_get_num_display_modes</a></li> |
182 | </ul> | 182 | </ul> |
183 | </nav> | 183 | </nav> |
184 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 184 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
185 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 185 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
186 | <h1·id="allegro_display_mode">ALLEGRO_DISPLAY_MODE</h1> | 186 | <h1·id="allegro_display_mode">ALLEGRO_DISPLAY_MODE</h1> |
187 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE</span> | 187 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE</span> |
188 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE</span></code></pre></div> | ||
188 | <p><a | 189 | <p><a |
189 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fullscreen_mode.h#L13">Source | 190 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fullscreen_mode.h#L13">Source |
190 | Code</a></p> | 191 | Code</a></p> |
191 | <p>Used·for·fullscreen·mode·queries.·Contains·information·about·a | 192 | <p>Used·for·fullscreen·mode·queries.·Contains·information·about·a |
192 | supported·fullscreen·modes.</p> | 193 | supported·fullscreen·modes.</p> |
193 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE·<span·class="op">{</span></span> | 194 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE·<span·class="op">{</span></span> |
194 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·width<span·class="op">;</span>··········<span·class="co">//·Screen·width</span></span> | 195 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·width<span·class="op">;</span>··········<span·class="co">//·Screen·width</span></span> |
Offset 46, 14 lines modified | Offset 46, 15 lines modified | ||
46 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8M_\x8O_\x8D_\x8E | 46 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8M_\x8O_\x8D_\x8E |
47 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e | 47 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e |
48 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s | 48 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s |
49 | These·functions·are·declared·in·the·main·Allegro·header·file: | 49 | These·functions·are·declared·in·the·main·Allegro·header·file: |
50 | ·#include·<allegro5/allegro.h> | 50 | ·#include·<allegro5/allegro.h> |
51 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 51 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
52 | typedef·struct·ALLEGRO_DISPLAY_MODE | 52 | typedef·struct·ALLEGRO_DISPLAY_MODE |
53 | typedef·struct·ALLEGRO_DISPLAY_MODE | ||
53 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 54 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
54 | Used·for·fullscreen·mode·queries.·Contains·information·about·a·supported | 55 | Used·for·fullscreen·mode·queries.·Contains·information·about·a·supported |
55 | fullscreen·modes. | 56 | fullscreen·modes. |
56 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ | 57 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ |
57 | ···int·width;··········//·Screen·width | 58 | ···int·width;··········//·Screen·width |
58 | ···int·height;·········//·Screen·height | 59 | ···int·height;·········//·Screen·height |
59 | ···int·format;·········//·The·pixel·format·of·the·mode | 60 | ···int·format;·········//·The·pixel·format·of·the·mode |
Offset 441, 15 lines modified | Offset 441, 16 lines modified | ||
441 | </ul></li> | 441 | </ul></li> |
442 | </ul> | 442 | </ul> |
443 | </nav> | 443 | </nav> |
444 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 444 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
445 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 445 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
446 | <h1·id="colors">Colors</h1> | 446 | <h1·id="colors">Colors</h1> |
447 | <h2·id="allegro_color">ALLEGRO_COLOR</h2> | 447 | <h2·id="allegro_color">ALLEGRO_COLOR</h2> |
448 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COLOR·ALLEGRO_COLOR<span·class="op">;</span></span> | 448 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COLOR·ALLEGRO_COLOR<span·class="op">;</span></span> |
449 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COLOR·ALLEGRO_COLOR<span·class="op">;</span></span></code></pre></div> | ||
449 | <p><a | 450 | <p><a |
450 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source | 451 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source |
451 | Code</a></p> | 452 | Code</a></p> |
452 | <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent | 453 | <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent |
453 | way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a | 454 | way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a |
454 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate | 455 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate |
455 | from·and·to·various·color·representations.</p> | 456 | from·and·to·various·color·representations.</p> |
Offset 677, 15 lines modified | Offset 678, 16 lines modified | ||
677 | <li><a | 678 | <li><a |
678 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_test.c#L16">ex_blend_test.c</a></li> | 679 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_test.c#L16">ex_blend_test.c</a></li> |
679 | <li><a | 680 | <li><a |
680 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_logo.c#L138">ex_logo.c</a></li> | 681 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_logo.c#L138">ex_logo.c</a></li> |
681 | </ul> | 682 | </ul> |
682 | <h1·id="locking-and-pixel-formats">Locking·and·pixel·formats</h1> | 683 | <h1·id="locking-and-pixel-formats">Locking·and·pixel·formats</h1> |
683 | <h2·id="allegro_locked_region">ALLEGRO_LOCKED_REGION</h2> | 684 | <h2·id="allegro_locked_region">ALLEGRO_LOCKED_REGION</h2> |
684 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION<span·class="op">;</span></span> | 685 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION<span·class="op">;</span></span> |
686 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION<span·class="op">;</span></span></code></pre></div> | ||
685 | <p><a | 687 | <p><a |
686 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap_lock.h#L23">Source | 688 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap_lock.h#L23">Source |
687 | Code</a></p> | 689 | Code</a></p> |
688 | <p>Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to | 690 | <p>Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to |
689 | lock·it·first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked | 691 | lock·it·first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked |
690 | region·of·the·bitmap.·This·call·will·work·with·any·bitmap,·including | 692 | region·of·the·bitmap.·This·call·will·work·with·any·bitmap,·including |
691 | memory·bitmaps.</p> | 693 | memory·bitmaps.</p> |
Offset 722, 15 lines modified | Offset 724, 16 lines modified | ||
722 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L21">ex_lockbitmap.c</a></li> | 724 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L21">ex_lockbitmap.c</a></li> |
723 | <li><a | 725 | <li><a |
724 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_premulalpha.c#L16">ex_premulalpha.c</a></li> | 726 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_premulalpha.c#L16">ex_premulalpha.c</a></li> |
725 | <li><a | 727 | <li><a |
726 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L52">ex_multisample.c</a></li> | 728 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L52">ex_multisample.c</a></li> |
727 | </ul> | 729 | </ul> |
728 | <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2> | 730 | <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> | 731 | <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> |
732 | <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</span></code></pre></div> | ||
730 | <p><a | 733 | <p><a |
731 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source | 734 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source |
732 | Code</a></p> | 735 | Code</a></p> |
733 | <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit | 736 | <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·to | 737 | layout·of·a·pixel·in·memory.·Components·are·specified·from·high·bits·to |
735 | low·bits,·so·for·example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is | 738 | low·bits,·so·for·example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is |
736 | 0xFFFF0000.</p> | 739 | 0xFFFF0000.</p> |
Offset 1083, 15 lines modified | Offset 1086, 16 lines modified | ||
1083 | <p>Examples:</p> | 1086 | <p>Examples:</p> |
1084 | <ul> | 1087 | <ul> |
1085 | <li><a | 1088 | <li><a |
1086 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_compressed.c#L114">ex_compressed.c</a></li> | 1089 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_compressed.c#L114">ex_compressed.c</a></li> |
1087 | </ul> | 1090 | </ul> |
1088 | <h1·id="bitmap-creation">Bitmap·creation</h1> | 1091 | <h1·id="bitmap-creation">Bitmap·creation</h1> |
1089 | <h2·id="allegro_bitmap">ALLEGRO_BITMAP</h2> | 1092 | <h2·id="allegro_bitmap">ALLEGRO_BITMAP</h2> |
1090 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb30-1"><a·href="#cb30-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP<span·class="op">;</span></span> | 1093 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb30-1"><a·href="#cb30-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP<span·class="op">;</span></span> |
1094 | <span·id="cb30-2"><a·href="#cb30-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP<span·class="op">;</span></span></code></pre></div> | ||
1091 | <p><a | 1095 | <p><a |
1092 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L12">Source | 1096 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L12">Source |
1093 | Code</a></p> | 1097 | Code</a></p> |
1094 | <p>Abstract·type·representing·a·bitmap·(2D·image).</p> | 1098 | <p>Abstract·type·representing·a·bitmap·(2D·image).</p> |
1095 | <p>Examples:</p> | 1099 | <p>Examples:</p> |
1096 | <ul> | 1100 | <ul> |
1097 | <li><a | 1101 | <li><a |
Offset 1605, 15 lines modified | Offset 1609, 16 lines modified | ||
1605 | <blockquote> | 1609 | <blockquote> |
1606 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 1610 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
1607 | API</a>:</em>·This·is·an·experimental·feature.</p> | 1611 | API</a>:</em>·This·is·an·experimental·feature.</p> |
1608 | </blockquote> | 1612 | </blockquote> |
1609 | <p>See·also:·<a | 1613 | <p>See·also:·<a |
1610 | href="graphics.html#allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</a></p> | 1614 | href="graphics.html#allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</a></p> |
1611 | <h2·id="allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</h2> | 1615 | <h2·id="allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</h2> |
1612 | <div·class="sourceCode"·id="cb49"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb49-1"><a·href="#cb49-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_BITMAP_WRAP·<span·class="op">{</span></span> | 1616 | <div·class="sourceCode"·id="cb49"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb49-1"><a·href="#cb49-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_BITMAP_WRAP·<span·class="op">{</span></span> |
1617 | <span·id="cb49-2"><a·href="#cb49-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_BITMAP_WRAP·<span·class="op">{</span></span></code></pre></div> | ||
1613 | <p><a | 1618 | <p><a |
1614 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L17">Source | 1619 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L17">Source |
1615 | Code</a></p> | 1620 | Code</a></p> |
1616 | <p>Controls·the·how·the·pixel·color·is·determined·from·a·texture | 1621 | <p>Controls·the·how·the·pixel·color·is·determined·from·a·texture |
1617 | querying·the·texture·coordinates·are·outside·the·usual·bounds.</p> | 1622 | querying·the·texture·coordinates·are·outside·the·usual·bounds.</p> |
1618 | <ul> | 1623 | <ul> |
1619 | <li><p>ALLEGRO_BITMAP_WRAP_DEFAULT·-·The·default·behavior.·This | 1624 | <li><p>ALLEGRO_BITMAP_WRAP_DEFAULT·-·The·default·behavior.·This |
Offset 3297, 15 lines modified | Offset 3302, 16 lines modified | ||
3297 | <p>See·also:·<a | 3302 | <p>See·also:·<a |
3298 | href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a | 3303 | href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a |
3299 | href="graphics.html#al_identify_bitmap">al_identify_bitmap</a>,·<a | 3304 | href="graphics.html#al_identify_bitmap">al_identify_bitmap</a>,·<a |
3300 | href="graphics.html#al_register_bitmap_identifier">al_register_bitmap_identifier</a></p> | 3305 | href="graphics.html#al_register_bitmap_identifier">al_register_bitmap_identifier</a></p> |
3301 | <h1·id="render-state">Render·State</h1> | 3306 | <h1·id="render-state">Render·State</h1> |
3302 | <h2·id="allegro_render_state">ALLEGRO_RENDER_STATE</h2> | 3307 | <h2·id="allegro_render_state">ALLEGRO_RENDER_STATE</h2> |
3303 | <div·class="sourceCode"·id="cb150"><pre | 3308 | <div·class="sourceCode"·id="cb150"><pre |
3304 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb150-1"><a·href="#cb150-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·<span·class="op">{</span></span> | 3309 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb150-1"><a·href="#cb150-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·<span·class="op">{</span></span> |
3310 | <span·id="cb150-2"><a·href="#cb150-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·<span·class="op">{</span></span></code></pre></div> | ||
3305 | <p><a | 3311 | <p><a |
3306 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L12">Source | 3312 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L12">Source |
3307 | Code</a></p> | 3313 | Code</a></p> |
3308 | <p>Possible·render·states·which·can·be·set·with·<a | 3314 | <p>Possible·render·states·which·can·be·set·with·<a |
3309 | href="graphics.html#al_set_render_state">al_set_render_state</a>:</p> | 3315 | href="graphics.html#al_set_render_state">al_set_render_state</a>:</p> |
3310 | <dl> | 3316 | <dl> |
3311 | <dt>ALLEGRO_ALPHA_TEST</dt> | 3317 | <dt>ALLEGRO_ALPHA_TEST</dt> |
Offset 3353, 15 lines modified | Offset 3359, 16 lines modified | ||
3353 | <p>See·also:·<a | 3359 | <p>See·also:·<a |
3354 | href="graphics.html#al_set_render_state">al_set_render_state</a>,·<a | 3360 | href="graphics.html#al_set_render_state">al_set_render_state</a>,·<a |
3355 | href="graphics.html#allegro_render_function">ALLEGRO_RENDER_FUNCTION</a>, | 3361 | href="graphics.html#allegro_render_function">ALLEGRO_RENDER_FUNCTION</a>, |
3356 | <a | 3362 | <a |
3357 | href="graphics.html#allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</a></p> | 3363 | href="graphics.html#allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</a></p> |
3358 | <h2·id="allegro_render_function">ALLEGRO_RENDER_FUNCTION</h2> | 3364 | <h2·id="allegro_render_function">ALLEGRO_RENDER_FUNCTION</h2> |
3359 | <div·class="sourceCode"·id="cb151"><pre | 3365 | <div·class="sourceCode"·id="cb151"><pre |
3360 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb151-1"><a·href="#cb151-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·<span·class="op">{</span></span> | 3366 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb151-1"><a·href="#cb151-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·<span·class="op">{</span></span> |
3367 | <span·id="cb151-2"><a·href="#cb151-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·<span·class="op">{</span></span></code></pre></div> | ||
3361 | <p><a | 3368 | <p><a |
3362 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L26">Source | 3369 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L26">Source |
3363 | Code</a></p> | 3370 | Code</a></p> |
3364 | <p>Possible·functions·are:</p> | 3371 | <p>Possible·functions·are:</p> |
3365 | <ul> | 3372 | <ul> |
3366 | <li>ALLEGRO_RENDER_NEVER</li> | 3373 | <li>ALLEGRO_RENDER_NEVER</li> |
3367 | <li>ALLEGRO_RENDER_ALWAYS</li> | 3374 | <li>ALLEGRO_RENDER_ALWAYS</li> |
Offset 3375, 15 lines modified | Offset 3382, 16 lines modified | ||
3375 | <li>ALLEGRO_RENDER_GREATER_EQUAL</li> | 3382 | <li>ALLEGRO_RENDER_GREATER_EQUAL</li> |
3376 | </ul> | 3383 | </ul> |
3377 | <p>Since:·5.1.2</p> | 3384 | <p>Since:·5.1.2</p> |
3378 | <p>See·also:·<a | 3385 | <p>See·also:·<a |
3379 | href="graphics.html#al_set_render_state">al_set_render_state</a></p> | 3386 | href="graphics.html#al_set_render_state">al_set_render_state</a></p> |
3380 | <h2·id="allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</h2> | 3387 | <h2·id="allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</h2> |
3381 | <div·class="sourceCode"·id="cb152"><pre | 3388 | <div·class="sourceCode"·id="cb152"><pre |
3382 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb152-1"><a·href="#cb152-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_WRITE_MASK_FLAGS·<span·class="op">{</span></span> | 3389 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb152-1"><a·href="#cb152-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_WRITE_MASK_FLAGS·<span·class="op">{</span></span> |
Max diff block lines reached; 247/11359 bytes (2.17%) of diff not shown. |
Offset 171, 14 lines modified | Offset 171, 15 lines modified | ||
171 | ··········o·_\x8a_\x8l_\x8__\x8b_\x8a_\x8c_\x8k_\x8u_\x8p_\x8__\x8d_\x8i_\x8r_\x8t_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p | 171 | ··········o·_\x8a_\x8l_\x8__\x8b_\x8a_\x8c_\x8k_\x8u_\x8p_\x8__\x8d_\x8i_\x8r_\x8t_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p |
172 | ··········o·_\x8a_\x8l_\x8__\x8b_\x8a_\x8c_\x8k_\x8u_\x8p_\x8__\x8d_\x8i_\x8r_\x8t_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8s | 172 | ··········o·_\x8a_\x8l_\x8__\x8b_\x8a_\x8c_\x8k_\x8u_\x8p_\x8__\x8d_\x8i_\x8r_\x8t_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8s |
173 | These·functions·are·declared·in·the·main·Allegro·header·file: | 173 | These·functions·are·declared·in·the·main·Allegro·header·file: |
174 | ·#include·<allegro5/allegro.h> | 174 | ·#include·<allegro5/allegro.h> |
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 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; | ||
178 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 179 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
179 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use | 180 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use |
180 | _\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. and·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. to·translate·from·and·to·various | 181 | _\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. | 182 | color·representations. |
182 | Examples: | 183 | 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__\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__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c |
Offset 307, 14 lines modified | Offset 308, 15 lines modified | ||
307 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 308 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
308 | Examples: | 309 | Examples: |
309 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | 310 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c |
310 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8g_\x8o_\x8._\x8c | 311 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8g_\x8o_\x8._\x8c |
311 | *\x8**\x8**\x8**\x8**\x8**\x8*·L\x8Lo\x8oc\x8ck\x8ki\x8in\x8ng\x8g·a\x8an\x8nd\x8d·p\x8pi\x8ix\x8xe\x8el\x8l·f\x8fo\x8or\x8rm\x8ma\x8at\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 312 | *\x8**\x8**\x8**\x8**\x8**\x8*·L\x8Lo\x8oc\x8ck\x8ki\x8in\x8ng\x8g·a\x8an\x8nd\x8d·p\x8pi\x8ix\x8xe\x8el\x8l·f\x8fo\x8or\x8rm\x8ma\x8at\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
312 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_L\x8LO\x8OC\x8CK\x8KE\x8ED\x8D_\x8_R\x8RE\x8EG\x8GI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8* | 313 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_L\x8LO\x8OC\x8CK\x8KE\x8ED\x8D_\x8_R\x8RE\x8EG\x8GI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8* |
313 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; | 314 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; |
315 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; | ||
314 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 316 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
315 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to·lock·it | 317 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to·lock·it |
316 | first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the | 318 | first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the |
317 | bitmap.·This·call·will·work·with·any·bitmap,·including·memory·bitmaps. | 319 | bitmap.·This·call·will·work·with·any·bitmap,·including·memory·bitmaps. |
318 | typedef·struct·ALLEGRO_LOCKED_REGION·{ | 320 | typedef·struct·ALLEGRO_LOCKED_REGION·{ |
319 | ···void·*data; | 321 | ···void·*data; |
320 | ···int·format; | 322 | ···int·format; |
Offset 339, 14 lines modified | Offset 341, 15 lines modified | ||
339 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T | 341 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T |
340 | Examples: | 342 | Examples: |
341 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | 343 | ····*·_\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 | 344 | ····*·_\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 | 345 | ····*·_\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* | 346 | *\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_FORMAT | 347 | typedef·enum·ALLEGRO_PIXEL_FORMAT |
348 | typedef·enum·ALLEGRO_PIXEL_FORMAT | ||
346 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 349 | _\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·a | 350 | 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·for | 351 | 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. | 352 | example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. |
350 | ·····N\x8No\x8ot\x8te\x8e:\x8: | 353 | ·····N\x8No\x8ot\x8te\x8e:\x8: |
351 | ·····The·pixel·format·is·independent·of·endianness.·That·is,·in·the·above | 354 | ·····The·pixel·format·is·independent·of·endianness.·That·is,·in·the·above |
352 | ·····example·you·can·always·get·the·red·component·with | 355 | ·····example·you·can·always·get·the·red·component·with |
Offset 581, 14 lines modified | Offset 584, 15 lines modified | ||
581 | Since:·5.1.9 | 584 | Since:·5.1.9 |
582 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8e_\x8d | 585 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8e_\x8d |
583 | Examples: | 586 | Examples: |
584 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8m_\x8p_\x8r_\x8e_\x8s_\x8s_\x8e_\x8d_\x8._\x8c | 587 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8m_\x8p_\x8r_\x8e_\x8s_\x8s_\x8e_\x8d_\x8._\x8c |
585 | *\x8**\x8**\x8**\x8**\x8**\x8*·B\x8Bi\x8it\x8tm\x8ma\x8ap\x8p·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 588 | *\x8**\x8**\x8**\x8**\x8**\x8*·B\x8Bi\x8it\x8tm\x8ma\x8ap\x8p·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
586 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BI\x8IT\x8TM\x8MA\x8AP\x8P·*\x8**\x8**\x8**\x8**\x8* | 589 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BI\x8IT\x8TM\x8MA\x8AP\x8P·*\x8**\x8**\x8**\x8**\x8* |
587 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | 590 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; |
591 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | ||
588 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 592 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
589 | Abstract·type·representing·a·bitmap·(2D·image). | 593 | Abstract·type·representing·a·bitmap·(2D·image). |
590 | Examples: | 594 | Examples: |
591 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | 595 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c |
592 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | 596 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c |
593 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | 597 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c |
594 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p·*\x8**\x8**\x8**\x8**\x8* | 598 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p·*\x8**\x8**\x8**\x8**\x8* |
Offset 906, 14 lines modified | Offset 910, 15 lines modified | ||
906 | Returns·the·value·currently·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8w_\x8r_\x8a_\x8p·on·the·current | 910 | Returns·the·value·currently·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8w_\x8r_\x8a_\x8p·on·the·current |
907 | thread. | 911 | thread. |
908 | Since:·5.2.8 | 912 | Since:·5.2.8 |
909 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature. | 913 | ·····_\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. |
910 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8P_\x8__\x8W_\x8R_\x8A_\x8P | 914 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8P_\x8__\x8W_\x8R_\x8A_\x8P |
911 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BI\x8IT\x8TM\x8MA\x8AP\x8P_\x8_W\x8WR\x8RA\x8AP\x8P·*\x8**\x8**\x8**\x8**\x8* | 915 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BI\x8IT\x8TM\x8MA\x8AP\x8P_\x8_W\x8WR\x8RA\x8AP\x8P·*\x8**\x8**\x8**\x8**\x8* |
912 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ | 916 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ |
917 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ | ||
913 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 918 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
914 | Controls·the·how·the·pixel·color·is·determined·from·a·texture·querying·the | 919 | Controls·the·how·the·pixel·color·is·determined·from·a·texture·querying·the |
915 | texture·coordinates·are·outside·the·usual·bounds. | 920 | texture·coordinates·are·outside·the·usual·bounds. |
916 | ····*·ALLEGRO_BITMAP_WRAP_DEFAULT·-·The·default·behavior.·This·corresponds·to | 921 | ····*·ALLEGRO_BITMAP_WRAP_DEFAULT·-·The·default·behavior.·This·corresponds·to |
917 | ······ALLEGRO_BITMAP_WRAP_REPEAT·when·using·the·primitives·addon·and | 922 | ······ALLEGRO_BITMAP_WRAP_REPEAT·when·using·the·primitives·addon·and |
918 | ······ALLEGRO_BITMAP_WRAP_CLAMP·otherwise. | 923 | ······ALLEGRO_BITMAP_WRAP_CLAMP·otherwise. |
919 | ····*·ALLEGRO_BITMAP_WRAP_REPEAT·-·The·texture·coordinates·get·shifted·to·the | 924 | ····*·ALLEGRO_BITMAP_WRAP_REPEAT·-·The·texture·coordinates·get·shifted·to·the |
Offset 1936, 14 lines modified | Offset 1941, 15 lines modified | ||
1936 | bitmap·type·cannot·be·determined. | 1941 | bitmap·type·cannot·be·determined. |
1937 | Since:·5.1.12 | 1942 | Since:·5.1.12 |
1938 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p, | 1943 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p, |
1939 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8i_\x8e_\x8r | 1944 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8i_\x8e_\x8r |
1940 | *\x8**\x8**\x8**\x8**\x8**\x8*·R\x8Re\x8en\x8nd\x8de\x8er\x8r·S\x8St\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 1945 | *\x8**\x8**\x8**\x8**\x8**\x8*·R\x8Re\x8en\x8nd\x8de\x8er\x8r·S\x8St\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
1941 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_R\x8RE\x8EN\x8ND\x8DE\x8ER\x8R_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8* | 1946 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_R\x8RE\x8EN\x8ND\x8DE\x8ER\x8R_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8* |
1942 | typedef·enum·ALLEGRO_RENDER_STATE·{ | 1947 | typedef·enum·ALLEGRO_RENDER_STATE·{ |
1948 | typedef·enum·ALLEGRO_RENDER_STATE·{ | ||
1943 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 1949 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
1944 | Possible·render·states·which·can·be·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e: | 1950 | Possible·render·states·which·can·be·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e: |
1945 | ··ALLEGRO_ALPHA_TEST | 1951 | ··ALLEGRO_ALPHA_TEST |
1946 | ······If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and | 1952 | ······If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and |
1947 | ······ALLEGRO_ALPHA_TEST_VALUE·define·a·comparison·function·which·is·performed | 1953 | ······ALLEGRO_ALPHA_TEST_VALUE·define·a·comparison·function·which·is·performed |
1948 | ······on·the·alpha·component·of·each·pixel.·Only·if·it·evaluates·to·true·the | 1954 | ······on·the·alpha·component·of·each·pixel.·Only·if·it·evaluates·to·true·the |
1949 | ······pixel·is·written.·Otherwise·no·subsequent·processing·(like·depth·test·or | 1955 | ······pixel·is·written.·Otherwise·no·subsequent·processing·(like·depth·test·or |
Offset 1966, 28 lines modified | Offset 1972, 30 lines modified | ||
1966 | ··ALLEGRO_DEPTH_FUNCTION | 1972 | ··ALLEGRO_DEPTH_FUNCTION |
1967 | ······One·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8R_\x8E_\x8N_\x8D_\x8E_\x8R_\x8__\x8F_\x8U_\x8N_\x8C_\x8T_\x8I_\x8O_\x8N,·only·used·when·ALLEGRO_DEPTH_TEST·is·1. | 1973 | ······One·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8R_\x8E_\x8N_\x8D_\x8E_\x8R_\x8__\x8F_\x8U_\x8N_\x8C_\x8T_\x8I_\x8O_\x8N,·only·used·when·ALLEGRO_DEPTH_TEST·is·1. |
1968 | Since:·5.1.2 | 1974 | Since:·5.1.2 |
1969 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8R_\x8E_\x8N_\x8D_\x8E_\x8R_\x8__\x8F_\x8U_\x8N_\x8C_\x8T_\x8I_\x8O_\x8N, | 1975 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8R_\x8E_\x8N_\x8D_\x8E_\x8R_\x8__\x8F_\x8U_\x8N_\x8C_\x8T_\x8I_\x8O_\x8N, |
1970 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8W_\x8R_\x8I_\x8T_\x8E_\x8__\x8M_\x8A_\x8S_\x8K_\x8__\x8F_\x8L_\x8A_\x8G_\x8S | 1976 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8W_\x8R_\x8I_\x8T_\x8E_\x8__\x8M_\x8A_\x8S_\x8K_\x8__\x8F_\x8L_\x8A_\x8G_\x8S |
1971 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_R\x8RE\x8EN\x8ND\x8DE\x8ER\x8R_\x8_F\x8FU\x8UN\x8NC\x8CT\x8TI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8* | 1977 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_R\x8RE\x8EN\x8ND\x8DE\x8ER\x8R_\x8_F\x8FU\x8UN\x8NC\x8CT\x8TI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8* |
1972 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ | 1978 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ |
1979 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ | ||
1973 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 1980 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
1974 | Possible·functions·are: | 1981 | Possible·functions·are: |
1975 | ····*·ALLEGRO_RENDER_NEVER | 1982 | ····*·ALLEGRO_RENDER_NEVER |
1976 | ····*·ALLEGRO_RENDER_ALWAYS | 1983 | ····*·ALLEGRO_RENDER_ALWAYS |
1977 | ····*·ALLEGRO_RENDER_LESS | 1984 | ····*·ALLEGRO_RENDER_LESS |
1978 | ····*·ALLEGRO_RENDER_EQUAL | 1985 | ····*·ALLEGRO_RENDER_EQUAL |
1979 | ····*·ALLEGRO_RENDER_LESS_EQUAL | 1986 | ····*·ALLEGRO_RENDER_LESS_EQUAL |
1980 | ····*·ALLEGRO_RENDER_GREATER | 1987 | ····*·ALLEGRO_RENDER_GREATER |
1981 | ····*·ALLEGRO_RENDER_NOT_EQUAL | 1988 | ····*·ALLEGRO_RENDER_NOT_EQUAL |
1982 | ····*·ALLEGRO_RENDER_GREATER_EQUAL | 1989 | ····*·ALLEGRO_RENDER_GREATER_EQUAL |
1983 | Since:·5.1.2 | 1990 | Since:·5.1.2 |
1984 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e | 1991 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e |
1985 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_W\x8WR\x8RI\x8IT\x8TE\x8E_\x8_M\x8MA\x8AS\x8SK\x8K_\x8_F\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8* | 1992 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_W\x8WR\x8RI\x8IT\x8TE\x8E_\x8_M\x8MA\x8AS\x8SK\x8K_\x8_F\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8* |
1986 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ | 1993 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ |
1994 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ | ||
1987 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 1995 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
1988 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled·bit·means | 1996 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled·bit·means |
1989 | it·is·not. | 1997 | it·is·not. |
1990 | ····*·ALLEGRO_MASK_RED | 1998 | ····*·ALLEGRO_MASK_RED |
1991 | ····*·ALLEGRO_MASK_GREEN | 1999 | ····*·ALLEGRO_MASK_GREEN |
1992 | ····*·ALLEGRO_MASK_BLUE | 2000 | ····*·ALLEGRO_MASK_BLUE |
1993 | ····*·ALLEGRO_MASK_ALPHA | 2001 | ····*·ALLEGRO_MASK_ALPHA |
Offset 250, 15 lines modified | Offset 250, 16 lines modified | ||
250 | file:</p> | 250 | file:</p> |
251 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 251 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
252 | <p>Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows | 252 | <p>Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows |
253 | for·DirectInput·compatible·devices.·There·is·also·minimal·support·for | 253 | for·DirectInput·compatible·devices.·There·is·also·minimal·support·for |
254 | Android.·It·is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput | 254 | Android.·It·is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput |
255 | compatible·devices.</p> | 255 | compatible·devices.</p> |
256 | <h1·id="allegro_haptic">ALLEGRO_HAPTIC</h1> | 256 | <h1·id="allegro_haptic">ALLEGRO_HAPTIC</h1> |
257 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC<span·class="op">;</span></span> | 257 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC<span·class="op">;</span></span> |
258 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC<span·class="op">;</span></span></code></pre></div> | ||
258 | <p><a | 259 | <p><a |
259 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L64">Source | 260 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L64">Source |
260 | Code</a></p> | 261 | Code</a></p> |
261 | <p>This·is·an·abstract·data·type·representing·a·haptic·device·that | 262 | <p>This·is·an·abstract·data·type·representing·a·haptic·device·that |
262 | supports·force·feedback·or·vibration.</p> | 263 | supports·force·feedback·or·vibration.</p> |
263 | <p>Since:·5.1.8</p> | 264 | <p>Since:·5.1.8</p> |
264 | <blockquote> | 265 | <blockquote> |
Offset 273, 15 lines modified | Offset 274, 16 lines modified | ||
273 | <ul> | 274 | <ul> |
274 | <li><a | 275 | <li><a |
275 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> | 276 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> |
276 | <li><a | 277 | <li><a |
277 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L21">ex_haptic2.cpp</a></li> | 278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L21">ex_haptic2.cpp</a></li> |
278 | </ul> | 279 | </ul> |
279 | <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1> | 280 | <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> | 281 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span> |
282 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span></code></pre></div> | ||
281 | <p><a | 283 | <p><a |
282 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source | 284 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source |
283 | Code</a></p> | 285 | Code</a></p> |
284 | <p>This·enum·contains·flags·that·are·used·to·define·haptic·effects·and | 286 | <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·<a | 287 | capabilities.·If·the·flag·is·set·in·the·return·value·of·<a |
286 | href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>, | 288 | href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>, |
287 | it·means·the·device·supports·the·given·effect.·The·value·of·these·flags | 289 | it·means·the·device·supports·the·given·effect.·The·value·of·these·flags |
Offset 320, 15 lines modified | Offset 322, 16 lines modified | ||
320 | users.</p> | 322 | users.</p> |
321 | </blockquote> | 323 | </blockquote> |
322 | <p>See·also:·<a | 324 | <p>See·also:·<a |
323 | href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>, | 325 | href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>, |
324 | <a | 326 | <a |
325 | href="haptic.html#allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</a></p> | 327 | href="haptic.html#allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</a></p> |
326 | <h1·id="allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</h1> | 328 | <h1·id="allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</h1> |
327 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT</span> | 329 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT</span> |
330 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT</span></code></pre></div> | ||
328 | <p><a | 331 | <p><a |
329 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L169">Source | 332 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L169">Source |
330 | Code</a></p> | 333 | Code</a></p> |
331 | <p>This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs | 334 | <p>This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs |
332 | to·be·filled·in·correctly·and·uploaded·to·a·haptic·device·before·the | 335 | to·be·filled·in·correctly·and·uploaded·to·a·haptic·device·before·the |
333 | device·can·play·it·back.</p> | 336 | device·can·play·it·back.</p> |
334 | <p><em>Fields:</em></p> | 337 | <p><em>Fields:</em></p> |
Offset 531, 15 lines modified | Offset 534, 16 lines modified | ||
531 | <ul> | 534 | <ul> |
532 | <li><a | 535 | <li><a |
533 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> | 536 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> |
534 | <li><a | 537 | <li><a |
535 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L22">ex_haptic2.cpp</a></li> | 538 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L22">ex_haptic2.cpp</a></li> |
536 | </ul> | 539 | </ul> |
537 | <h1·id="allegro_haptic_effect_id">ALLEGRO_HAPTIC_EFFECT_ID</h1> | 540 | <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> | 541 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID<span·class="op">;</span></span> |
542 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID<span·class="op">;</span></span></code></pre></div> | ||
539 | <p><a | 543 | <p><a |
540 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L183">Source | 544 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L183">Source |
541 | Code</a></p> | 545 | Code</a></p> |
542 | <p>This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic | 546 | <p>This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic |
543 | effect·and·should·be·considered·opaque.·Its·implementation·is·visible | 547 | effect·and·should·be·considered·opaque.·Its·implementation·is·visible |
544 | merely·to·allow·allocation·by·the·users·of·the·Allegro·library.</p> | 548 | merely·to·allow·allocation·by·the·users·of·the·Allegro·library.</p> |
545 | <p>Since:·5.1.8</p> | 549 | <p>Since:·5.1.8</p> |
Offset 82, 27 lines modified | Offset 82, 29 lines modified | ||
82 | functions·are·declared·in·the·main·Allegro·header·file: | 82 | functions·are·declared·in·the·main·Allegro·header·file: |
83 | ·#include·<allegro5/allegro.h> | 83 | ·#include·<allegro5/allegro.h> |
84 | Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows·for | 84 | Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows·for |
85 | DirectInput·compatible·devices.·There·is·also·minimal·support·for·Android.·It | 85 | DirectInput·compatible·devices.·There·is·also·minimal·support·for·Android.·It |
86 | is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput·compatible·devices. | 86 | is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput·compatible·devices. |
87 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C·*\x8**\x8**\x8**\x8**\x8**\x8* | 87 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C·*\x8**\x8**\x8**\x8**\x8**\x8* |
88 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; | 88 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; |
89 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; | ||
89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 90 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
90 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force | 91 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force |
91 | feedback·or·vibration. | 92 | feedback·or·vibration. |
92 | Since:·5.1.8 | 93 | Since:·5.1.8 |
93 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for | 94 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for |
94 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 95 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
95 | ·····feedback·from·users. | 96 | ·····feedback·from·users. |
96 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k | 97 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k |
97 | Examples: | 98 | Examples: |
98 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | 99 | ····*·_\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 | ····*·_\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* | 101 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_C\x8CO\x8ON\x8NS\x8ST\x8TA\x8AN\x8NT\x8TS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
101 | enum·ALLEGRO_HAPTIC_CONSTANTS | 102 | enum·ALLEGRO_HAPTIC_CONSTANTS |
103 | enum·ALLEGRO_HAPTIC_CONSTANTS | ||
102 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 104 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
103 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and | 105 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and |
104 | capabilities.·If·the·flag·is·set·in·the·return·value·of | 106 | 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.·The | 107 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8c_\x8a_\x8p_\x8a_\x8b_\x8i_\x8l_\x8i_\x8t_\x8i_\x8e_\x8s,·it·means·the·device·supports·the·given·effect.·The |
106 | value·of·these·flags·should·be·set·into·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8H_\x8A_\x8P_\x8T_\x8I_\x8C_\x8__\x8E_\x8F_\x8F_\x8E_\x8C_\x8T·struct·to | 108 | value·of·these·flags·should·be·set·into·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8H_\x8A_\x8P_\x8T_\x8I_\x8C_\x8__\x8E_\x8F_\x8F_\x8E_\x8C_\x8T·struct·to |
107 | determine·what·kind·of·haptic·effect·should·be·played. | 109 | determine·what·kind·of·haptic·effect·should·be·played. |
108 | ····*·ALLEGRO_HAPTIC_RUMBLE·-·simple·vibration·effects | 110 | ····*·ALLEGRO_HAPTIC_RUMBLE·-·simple·vibration·effects |
Offset 127, 14 lines modified | Offset 129, 15 lines modified | ||
127 | Since:·5.1.8 | 129 | Since:·5.1.8 |
128 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for | 130 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for |
129 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 131 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
130 | ·····feedback·from·users. | 132 | ·····feedback·from·users. |
131 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8c_\x8a_\x8p_\x8a_\x8b_\x8i_\x8l_\x8i_\x8t_\x8i_\x8e_\x8s,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8H_\x8A_\x8P_\x8T_\x8I_\x8C_\x8__\x8E_\x8F_\x8F_\x8E_\x8C_\x8T | 133 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8c_\x8a_\x8p_\x8a_\x8b_\x8i_\x8l_\x8i_\x8t_\x8i_\x8e_\x8s,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8H_\x8A_\x8P_\x8T_\x8I_\x8C_\x8__\x8E_\x8F_\x8F_\x8E_\x8C_\x8T |
132 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_E\x8EF\x8FF\x8FE\x8EC\x8CT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 134 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_E\x8EF\x8FF\x8FE\x8EC\x8CT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
133 | struct·ALLEGRO_HAPTIC_EFFECT | 135 | struct·ALLEGRO_HAPTIC_EFFECT |
136 | struct·ALLEGRO_HAPTIC_EFFECT | ||
134 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
135 | This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs·to·be | 138 | This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs·to·be |
136 | filled·in·correctly·and·uploaded·to·a·haptic·device·before·the·device·can·play | 139 | filled·in·correctly·and·uploaded·to·a·haptic·device·before·the·device·can·play |
137 | it·back. | 140 | it·back. |
138 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: | 141 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: |
139 | ··type | 142 | ··type |
140 | ······The·type·of·the·haptic·effect.·May·be·one·of·the·ALLEGRO_HAPTIC_CONSTANTS | 143 | ······The·type·of·the·haptic·effect.·May·be·one·of·the·ALLEGRO_HAPTIC_CONSTANTS |
Offset 291, 14 lines modified | Offset 294, 15 lines modified | ||
291 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 294 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
292 | ·····feedback·from·users. | 295 | ·····feedback·from·users. |
293 | Examples: | 296 | Examples: |
294 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | 297 | ····*·_\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 | 298 | ····*·_\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* | 299 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_E\x8EF\x8FF\x8FE\x8EC\x8CT\x8T_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* |
297 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; | 300 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; |
301 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; | ||
298 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 302 | _\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·and | 303 | 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·allow | 304 | should·be·considered·opaque.·Its·implementation·is·visible·merely·to·allow |
301 | allocation·by·the·users·of·the·Allegro·library. | 305 | allocation·by·the·users·of·the·Allegro·library. |
302 | Since:·5.1.8 | 306 | 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·for | 307 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for |
304 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 308 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
Offset 187, 15 lines modified | Offset 187, 16 lines modified | ||
187 | allegro_image.</p> | 187 | allegro_image.</p> |
188 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_image.h></span></span></code></pre></div> | 188 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_image.h></span></span></code></pre></div> |
189 | <p>Some·of·the·format·handlers·define·configuration·options·for | 189 | <p>Some·of·the·format·handlers·define·configuration·options·for |
190 | specifying·things·like·compression·level·or·gamma·handling.·Refer·to·<a | 190 | specifying·things·like·compression·level·or·gamma·handling.·Refer·to·<a |
191 | href="system.html#al_get_system_config">al_get_system_config</a>·for | 191 | href="system.html#al_get_system_config">al_get_system_config</a>·for |
192 | their·documentation.</p> | 192 | their·documentation.</p> |
193 | <h1·id="al_init_image_addon">al_init_image_addon</h1> | 193 | <h1·id="al_init_image_addon">al_init_image_addon</h1> |
194 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 194 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
195 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
195 | <p><a | 196 | <p><a |
196 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L14">Source | 197 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L14">Source |
197 | Code</a></p> | 198 | Code</a></p> |
198 | <p>Initializes·the·image·addon.·This·registers·bitmap·format·handlers | 199 | <p>Initializes·the·image·addon.·This·registers·bitmap·format·handlers |
199 | for·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>,·<a | 200 | for·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>,·<a |
200 | href="graphics.html#al_load_bitmap_f">al_load_bitmap_f</a>,·<a | 201 | href="graphics.html#al_load_bitmap_f">al_load_bitmap_f</a>,·<a |
201 | href="graphics.html#al_save_bitmap">al_save_bitmap</a>,·<a | 202 | href="graphics.html#al_save_bitmap">al_save_bitmap</a>,·<a |
Offset 218, 32 lines modified | Offset 219, 38 lines modified | ||
218 | <li><a | 219 | <li><a |
219 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L22">ex_nodisplay.c</a></li> | 220 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L22">ex_nodisplay.c</a></li> |
220 | <li><a | 221 | <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 | 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 | </ul> |
223 | <h1 | 224 | <h1 |
224 | id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1> | 225 | 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> | 226 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_image_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
227 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_image_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
226 | <p><a | 228 | <p><a |
227 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source | 229 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source |
228 | Code</a></p> | 230 | Code</a></p> |
229 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns | 231 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns |
230 | false.</p> | 232 | false.</p> |
231 | <p>Since:·5.2.6</p> | 233 | <p>Since:·5.2.6</p> |
232 | <h1·id="al_shutdown_image_addon">al_shutdown_image_addon</h1> | 234 | <h1·id="al_shutdown_image_addon">al_shutdown_image_addon</h1> |
233 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 235 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
236 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
234 | <p><a | 237 | <p><a |
235 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L177">Source | 238 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L177">Source |
236 | Code</a></p> | 239 | Code</a></p> |
237 | <p>Shut·down·the·image·addon.·This·is·done·automatically·at·program | 240 | <p>Shut·down·the·image·addon.·This·is·done·automatically·at·program |
238 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> | 241 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> |
239 | <h1·id="al_get_allegro_image_version">al_get_allegro_image_version</h1> | 242 | <h1·id="al_get_allegro_image_version">al_get_allegro_image_version</h1> |
240 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_image_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 243 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_image_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
244 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_image_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
241 | <p><a | 245 | <p><a |
242 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L185">Source | 246 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L185">Source |
243 | Code</a></p> | 247 | Code</a></p> |
244 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 248 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
245 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 249 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
250 | <p·class="timestamp"> | ||
251 | Allegro·version·5.2.10 | ||
252 | ·-·Last·updated:·2024-11-29·14:21:22·UTC | ||
253 | </p> | ||
246 | </div> | 254 | </div> |
247 | </body> | 255 | </body> |
248 | </html> | 256 | </html> |
Offset 51, 14 lines modified | Offset 51, 15 lines modified | ||
51 | allegro_image. | 51 | allegro_image. |
52 | ·#include·<allegro5/allegro_image.h> | 52 | ·#include·<allegro5/allegro_image.h> |
53 | Some·of·the·format·handlers·define·configuration·options·for·specifying·things | 53 | Some·of·the·format·handlers·define·configuration·options·for·specifying·things |
54 | like·compression·level·or·gamma·handling.·Refer·to·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g·for | 54 | like·compression·level·or·gamma·handling.·Refer·to·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g·for |
55 | their·documentation. | 55 | their·documentation. |
56 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 56 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
57 | bool·al_init_image_addon(void) | 57 | bool·al_init_image_addon(void) |
58 | bool·al_init_image_addon(void) | ||
58 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 59 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
59 | Initializes·the·image·addon.·This·registers·bitmap·format·handlers·for | 60 | Initializes·the·image·addon.·This·registers·bitmap·format·handlers·for |
60 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f. | 61 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f. |
61 | The·following·types·are·built·into·the·Allegro·image·addon·and·guaranteed·to·be | 62 | The·following·types·are·built·into·the·Allegro·image·addon·and·guaranteed·to·be |
62 | available:·BMP,·DDS,·PCX,·TGA.·Every·platform·also·supports·JPEG·and·PNG·via | 63 | available:·BMP,·DDS,·PCX,·TGA.·Every·platform·also·supports·JPEG·and·PNG·via |
63 | external·dependencies. | 64 | external·dependencies. |
64 | Other·formats·may·be·available·depending·on·the·operating·system·and·installed | 65 | Other·formats·may·be·available·depending·on·the·operating·system·and·installed |
Offset 70, 20 lines modified | Offset 71, 24 lines modified | ||
70 | have·the·pixel·format·matching·the·format·in·the·file. | 71 | have·the·pixel·format·matching·the·format·in·the·file. |
71 | Examples: | 72 | Examples: |
72 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | 73 | ····*·_\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__\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 | ····*·_\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* | 76 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
76 | bool·al_is_image_addon_initialized(void) | 77 | bool·al_is_image_addon_initialized(void) |
78 | bool·al_is_image_addon_initialized(void) | ||
77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
78 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. | 80 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. |
79 | Since:·5.2.6 | 81 | 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* | 82 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
81 | void·al_shutdown_image_addon(void) | 83 | void·al_shutdown_image_addon(void) |
84 | void·al_shutdown_image_addon(void) | ||
82 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 85 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
83 | Shut·down·the·image·addon.·This·is·done·automatically·at·program·exit,·but·can | 86 | Shut·down·the·image·addon.·This·is·done·automatically·at·program·exit,·but·can |
84 | be·called·any·time·the·user·wishes·as·well. | 87 | be·called·any·time·the·user·wishes·as·well. |
85 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 88 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | uint32_t·al_get_allegro_image_version(void) | 89 | uint32_t·al_get_allegro_image_version(void) |
90 | uint32_t·al_get_allegro_image_version(void) | ||
87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 91 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
88 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 92 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
89 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 93 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
94 | Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC |
Offset 223, 15 lines modified | Offset 223, 16 lines modified | ||
223 | Xinput·one.·If·support·for·XInput·was·compiled·in,·then·it·can·be | 223 | Xinput·one.·If·support·for·XInput·was·compiled·in,·then·it·can·be |
224 | enabled·by·calling·al_set_config_value(al_get_system_config(), | 224 | enabled·by·calling·al_set_config_value(al_get_system_config(), |
225 | “joystick”,·“driver”,·“xinput”)·before·calling·al_install_joystick,·or | 225 | “joystick”,·“driver”,·“xinput”)·before·calling·al_install_joystick,·or |
226 | by·setting·the·same·option·in·the·allegro5.cfg·configuration·file.·The | 226 | by·setting·the·same·option·in·the·allegro5.cfg·configuration·file.·The |
227 | Xinput·and·DirectInput·drivers·are·mutually·exclusive.·The·haptics | 227 | Xinput·and·DirectInput·drivers·are·mutually·exclusive.·The·haptics |
228 | subsystem·will·use·the·same·driver·as·the·joystick·system·does.</p> | 228 | subsystem·will·use·the·same·driver·as·the·joystick·system·does.</p> |
229 | <h1·id="allegro_joystick">ALLEGRO_JOYSTICK</h1> | 229 | <h1·id="allegro_joystick">ALLEGRO_JOYSTICK</h1> |
230 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK<span·class="op">;</span></span> | 230 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK<span·class="op">;</span></span> |
231 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK<span·class="op">;</span></span></code></pre></div> | ||
231 | <p><a | 232 | <p><a |
232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L39">Source | 233 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L39">Source |
233 | Code</a></p> | 234 | Code</a></p> |
234 | <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p> | 235 | <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p> |
235 | <p>See·also:·<a | 236 | <p>See·also:·<a |
236 | href="joystick.html#al_get_joystick">al_get_joystick</a></p> | 237 | href="joystick.html#al_get_joystick">al_get_joystick</a></p> |
237 | <p>Examples:</p> | 238 | <p>Examples:</p> |
Offset 240, 15 lines modified | Offset 241, 16 lines modified | ||
240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L14">ex_haptic.c</a></li> | 241 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L14">ex_haptic.c</a></li> |
241 | <li><a | 242 | <li><a |
242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L7">ex_joystick_hotplugging.c</a></li> | 243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L7">ex_joystick_hotplugging.c</a></li> |
243 | <li><a | 244 | <li><a |
244 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L32">ex_joystick_events.c</a></li> | 245 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L32">ex_joystick_events.c</a></li> |
245 | </ul> | 246 | </ul> |
246 | <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1> | 247 | <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> | 248 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE<span·class="op">;</span></span> |
249 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE<span·class="op">;</span></span></code></pre></div> | ||
248 | <p><a | 250 | <p><a |
249 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L45">Source | 251 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L45">Source |
250 | Code</a></p> | 252 | Code</a></p> |
251 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s | 253 | <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·and | 254 | axes·and·buttons·at·a·particular·instant.·All·fields·public·and |
253 | read-only.</p> | 255 | 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> | 256 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">struct</span>·<span·class="op">{</span></span> |
Offset 261, 15 lines modified | Offset 263, 16 lines modified | ||
261 | <ul> | 263 | <ul> |
262 | <li><a | 264 | <li><a |
263 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L38">ex_joystick_hotplugging.c</a></li> | 265 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L38">ex_joystick_hotplugging.c</a></li> |
264 | <li><a | 266 | <li><a |
265 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L34">ex_joystick_events.c</a></li> | 267 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L34">ex_joystick_events.c</a></li> |
266 | </ul> | 268 | </ul> |
267 | <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1> | 269 | <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> | 270 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</span> |
271 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</span></code></pre></div> | ||
269 | <p><a | 272 | <p><a |
270 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L58">Source | 273 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L58">Source |
271 | Code</a></p> | 274 | Code</a></p> |
272 | <ul> | 275 | <ul> |
273 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> | 276 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> |
274 | <li>ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input</li> | 277 | <li>ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input</li> |
275 | </ul> | 278 | </ul> |
Offset 71, 36 lines modified | Offset 71, 39 lines modified | ||
71 | al_set_config_value(al_get_system_config(),·“joystick”,·“driver”,·“xinput”) | 71 | al_set_config_value(al_get_system_config(),·“joystick”,·“driver”,·“xinput”) |
72 | before·calling·al_install_joystick,·or·by·setting·the·same·option·in·the | 72 | before·calling·al_install_joystick,·or·by·setting·the·same·option·in·the |
73 | allegro5.cfg·configuration·file.·The·Xinput·and·DirectInput·drivers·are | 73 | allegro5.cfg·configuration·file.·The·Xinput·and·DirectInput·drivers·are |
74 | mutually·exclusive.·The·haptics·subsystem·will·use·the·same·driver·as·the | 74 | mutually·exclusive.·The·haptics·subsystem·will·use·the·same·driver·as·the |
75 | joystick·system·does. | 75 | joystick·system·does. |
76 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8* | 76 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8* |
77 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; | 77 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; |
78 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; | ||
78 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
79 | This·is·an·abstract·data·type·representing·a·physical·joystick. | 80 | This·is·an·abstract·data·type·representing·a·physical·joystick. |
80 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k | 81 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k |
81 | Examples: | 82 | Examples: |
82 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | 83 | ····*·_\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__\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 | ····*·_\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* | 86 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | 87 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; |
88 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | ||
87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 89 | _\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·and | 90 | 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. | 91 | buttons·at·a·particular·instant.·All·fields·public·and·read-only. |
90 | struct·{ | 92 | struct·{ |
91 | ···float·axis[num_axes];·············//·-1.0·to·1.0 | 93 | ···float·axis[num_axes];·············//·-1.0·to·1.0 |
92 | }·stick[num_sticks]; | 94 | }·stick[num_sticks]; |
93 | int·button[num_buttons];·············//·0·to·32767 | 95 | 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_\x8e | 96 | 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: | 97 | 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 | 98 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c |
97 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 99 | ····*·_\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* | 100 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YF\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
99 | enum·ALLEGRO_JOYFLAGS | 101 | enum·ALLEGRO_JOYFLAGS |
102 | enum·ALLEGRO_JOYFLAGS | ||
100 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
101 | ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input | 104 | ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input |
102 | ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input | 105 | ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input |
103 | (this·enum·is·a·holdover·from·the·old·API·and·may·be·removed) | 106 | (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_\x8s | 107 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8f_\x8l_\x8a_\x8g_\x8s |
105 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* | 108 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* |
106 | bool·al_install_joystick(void) | 109 | bool·al_install_joystick(void) |
Offset 198, 15 lines modified | Offset 198, 16 lines modified | ||
198 | <li><a·href="#al_get_keyboard_event_source" | 198 | <li><a·href="#al_get_keyboard_event_source" |
199 | id="toc-al_get_keyboard_event_source">al_get_keyboard_event_source</a></li> | 199 | id="toc-al_get_keyboard_event_source">al_get_keyboard_event_source</a></li> |
200 | </ul> | 200 | </ul> |
201 | </nav> | 201 | </nav> |
202 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 202 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
203 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 203 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
204 | <h1·id="allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</h1> | 204 | <h1·id="allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</h1> |
205 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE<span·class="op">;</span></span> | 205 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE<span·class="op">;</span></span> |
206 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE<span·class="op">;</span></span></code></pre></div> | ||
206 | <p><a | 207 | <p><a |
207 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/keyboard.h#L33">Source | 208 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/keyboard.h#L33">Source |
208 | Code</a></p> | 209 | Code</a></p> |
209 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s | 210 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s |
210 | state·at·a·particular·instant.·It·contains·the·following·publically | 211 | state·at·a·particular·instant.·It·contains·the·following·publically |
211 | readable·fields:</p> | 212 | readable·fields:</p> |
212 | <ul> | 213 | <ul> |
Offset 56, 14 lines modified | Offset 56, 15 lines modified | ||
56 | ····*·_\x8a_\x8l_\x8__\x8c_\x8a_\x8n_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s | 56 | ····*·_\x8a_\x8l_\x8__\x8c_\x8a_\x8n_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s |
57 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s | 57 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s |
58 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 58 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
59 | These·functions·are·declared·in·the·main·Allegro·header·file: | 59 | These·functions·are·declared·in·the·main·Allegro·header·file: |
60 | ·#include·<allegro5/allegro.h> | 60 | ·#include·<allegro5/allegro.h> |
61 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_K\x8KE\x8EY\x8YB\x8BO\x8OA\x8AR\x8RD\x8D_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 61 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_K\x8KE\x8EY\x8YB\x8BO\x8OA\x8AR\x8RD\x8D_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
62 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | 62 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; |
63 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | ||
63 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 64 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
64 | This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s·state·at | 65 | 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: | 66 | a·particular·instant.·It·contains·the·following·publically·readable·fields: |
66 | ····*·display·-·points·to·the·display·that·had·keyboard·focus·at·the·time·the | 67 | ····*·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. | 68 | ······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. | 69 | 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 | Examples: |
Offset 181, 15 lines modified | Offset 181, 16 lines modified | ||
181 | </nav> | 181 | </nav> |
182 | <p>The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous | 182 | <p>The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous |
183 | memory·as·a·file·that·can·be·used·with·Allegro’s·I/O·functions.</p> | 183 | memory·as·a·file·that·can·be·used·with·Allegro’s·I/O·functions.</p> |
184 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 184 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
185 | allegro_memfile.</p> | 185 | allegro_memfile.</p> |
186 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_memfile.h></span></span></code></pre></div> | 186 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_memfile.h></span></span></code></pre></div> |
187 | <h1·id="al_open_memfile">al_open_memfile</h1> | 187 | <h1·id="al_open_memfile">al_open_memfile</h1> |
188 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_open_memfile<span·class="op">(</span><span·class="dt">void</span>·<span·class="op">*</span>mem<span·class="op">,</span>·<span·class="dt">int64_t</span>·size<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span> | 188 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_open_memfile<span·class="op">(</span><span·class="dt">void</span>·<span·class="op">*</span>mem<span·class="op">,</span>·<span·class="dt">int64_t</span>·size<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span> |
189 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_open_memfile<span·class="op">(</span><span·class="dt">void</span>·<span·class="op">*</span>mem<span·class="op">,</span>·<span·class="dt">int64_t</span>·size<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div> | ||
189 | <p><a | 190 | <p><a |
190 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L169">Source | 191 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L169">Source |
191 | Code</a></p> | 192 | Code</a></p> |
192 | <p>Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write | 193 | <p>Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write |
193 | operations·act·upon·the·memory·directly,·so·it·must·not·be·freed·while | 194 | operations·act·upon·the·memory·directly,·so·it·must·not·be·freed·while |
194 | the·file·remains·open.</p> | 195 | the·file·remains·open.</p> |
195 | <p>The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable). | 196 | <p>The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable). |
Offset 203, 15 lines modified | Offset 204, 16 lines modified | ||
203 | <p>Examples:</p> | 204 | <p>Examples:</p> |
204 | <ul> | 205 | <ul> |
205 | <li><a | 206 | <li><a |
206 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L36">ex_memfile.c</a></li> | 207 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L36">ex_memfile.c</a></li> |
207 | </ul> | 208 | </ul> |
208 | <h1 | 209 | <h1 |
209 | id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> | 210 | 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> | 211 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
212 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
211 | <p><a | 213 | <p><a |
212 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source | 214 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source |
213 | Code</a></p> | 215 | Code</a></p> |
214 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 216 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
215 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 217 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
216 | <p·class="timestamp"> | 218 | <p·class="timestamp"> |
217 | Allegro·version·5.2.10 | 219 | Allegro·version·5.2.10 |
Offset 48, 24 lines modified | Offset 48, 26 lines modified | ||
48 | The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous·memory·as | 48 | The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous·memory·as |
49 | a·file·that·can·be·used·with·Allegro’s·I/O·functions. | 49 | a·file·that·can·be·used·with·Allegro’s·I/O·functions. |
50 | These·functions·are·declared·in·the·following·header·file.·Link·with | 50 | These·functions·are·declared·in·the·following·header·file.·Link·with |
51 | allegro_memfile. | 51 | allegro_memfile. |
52 | ·#include·<allegro5/allegro_memfile.h> | 52 | ·#include·<allegro5/allegro_memfile.h> |
53 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_m\x8me\x8em\x8mf\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 53 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_m\x8me\x8em\x8mf\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
54 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) | 54 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) |
55 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) | ||
55 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 56 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
56 | Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write·operations·act | 57 | Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write·operations·act |
57 | upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open. | 58 | 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). | 59 | The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable). |
59 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is | 60 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is |
60 | fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary | 61 | 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. | 62 | mode,·which·means·that·no·newline·translation·is·performed. |
62 | It·should·be·closed·with·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e.·After·the·file·is·closed,·you·are | 63 | 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). | 64 | responsible·for·freeing·the·memory·(if·needed). |
64 | Examples: | 65 | Examples: |
65 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 66 | ····*·_\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* | 67 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_m\x8me\x8em\x8mf\x8fi\x8il\x8le\x8e_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
67 | uint32_t·al_get_allegro_memfile_version(void) | 68 | uint32_t·al_get_allegro_memfile_version(void) |
69 | uint32_t·al_get_allegro_memfile_version(void) | ||
68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 70 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
69 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 71 | 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. | 72 | _\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·UTC | 73 | Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC |
Offset 191, 15 lines modified | Offset 191, 17 lines modified | ||
191 | id="toc-al_set_memory_interface">al_set_memory_interface</a></li> | 191 | id="toc-al_set_memory_interface">al_set_memory_interface</a></li> |
192 | </ul> | 192 | </ul> |
193 | </nav> | 193 | </nav> |
194 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 194 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
195 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 195 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
196 | <h1·id="al_malloc">al_malloc</h1> | 196 | <h1·id="al_malloc">al_malloc</h1> |
197 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_malloc</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | 197 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_malloc</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> |
198 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_malloc_with_context</span><span·class="op">((</span><span·class="pp">n</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span> | ||
199 | <span·id="cb2-3"><a·href="#cb2-3"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_malloc</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | ||
198 | <span·id="cb2- | 200 | <span·id="cb2-4"><a·href="#cb2-4"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_malloc_with_context</span><span·class="op">((</span><span·class="pp">n</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span></code></pre></div> |
199 | <p><a | 201 | <p><a |
200 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L42">Source | 202 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L42">Source |
201 | Code</a></p> | 203 | Code</a></p> |
202 | <p>Like·malloc()·in·the·C·standard·library,·but·the·implementation·may | 204 | <p>Like·malloc()·in·the·C·standard·library,·but·the·implementation·may |
203 | be·overridden.</p> | 205 | be·overridden.</p> |
204 | <p>This·is·a·macro.</p> | 206 | <p>This·is·a·macro.</p> |
205 | <p>See·also:·<a·href="memory.html#al_free">al_free</a>,·<a | 207 | <p>See·also:·<a·href="memory.html#al_free">al_free</a>,·<a |
Offset 212, 15 lines modified | Offset 214, 17 lines modified | ||
212 | <li><a | 214 | <li><a |
213 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L27">ex_audio_timer.c</a></li> | 215 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L27">ex_audio_timer.c</a></li> |
214 | <li><a | 216 | <li><a |
215 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L134">ex_vertex_buffer.c</a></li> | 217 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L134">ex_vertex_buffer.c</a></li> |
216 | </ul> | 218 | </ul> |
217 | <h1·id="al_free">al_free</h1> | 219 | <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> | 220 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_free</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> |
221 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_free_with_context</span><span·class="op">((</span><span·class="pp">p</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span> | ||
222 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_free</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | ||
219 | <span·id="cb3- | 223 | <span·id="cb3-4"><a·href="#cb3-4"·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><a | 224 | <p><a |
221 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source | 225 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source |
222 | Code</a></p> | 226 | Code</a></p> |
223 | <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be | 227 | <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be |
224 | overridden.</p> | 228 | overridden.</p> |
225 | <p>Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be | 229 | <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·function | 230 | freed·from·the·same·DLL.·In·the·few·places·where·an·Allegro·function |
Offset 236, 26 lines modified | Offset 240, 30 lines modified | ||
236 | <li><a | 240 | <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> | 241 | 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 | 242 | <li><a |
239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L254">ex_record_name.c</a></li> | 243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L254">ex_record_name.c</a></li> |
240 | </ul> | 244 | </ul> |
241 | <h1·id="al_realloc">al_realloc</h1> | 245 | <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> | 246 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_realloc</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> |
247 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_realloc_with_context</span><span·class="op">((</span><span·class="pp">p</span><span·class="op">),</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span> | ||
248 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_realloc</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | ||
243 | <span·id="cb4- | 249 | <span·id="cb4-4"><a·href="#cb4-4"·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><a | 250 | <p><a |
245 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source | 251 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source |
246 | Code</a></p> | 252 | Code</a></p> |
247 | <p>Like·realloc()·in·the·C·standard·library,·but·the·implementation·may | 253 | <p>Like·realloc()·in·the·C·standard·library,·but·the·implementation·may |
248 | be·overridden.</p> | 254 | be·overridden.</p> |
249 | <p>This·is·a·macro.</p> | 255 | <p>This·is·a·macro.</p> |
250 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a | 256 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a |
251 | href="memory.html#al_realloc_with_context">al_realloc_with_context</a></p> | 257 | href="memory.html#al_realloc_with_context">al_realloc_with_context</a></p> |
252 | <h1·id="al_calloc">al_calloc</h1> | 258 | <h1·id="al_calloc">al_calloc</h1> |
253 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_calloc</span><span·class="op">(</span><span·class="pp">c</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | 259 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_calloc</span><span·class="op">(</span><span·class="pp">c</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> |
260 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_calloc_with_context</span><span·class="op">((</span><span·class="pp">c</span><span·class="op">),</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span> | ||
261 | <span·id="cb5-3"><a·href="#cb5-3"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_calloc</span><span·class="op">(</span><span·class="pp">c</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | ||
254 | <span·id="cb5- | 262 | <span·id="cb5-4"><a·href="#cb5-4"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_calloc_with_context</span><span·class="op">((</span><span·class="pp">c</span><span·class="op">),</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span></code></pre></div> |
255 | <p><a | 263 | <p><a |
256 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L57">Source | 264 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L57">Source |
257 | Code</a></p> | 265 | Code</a></p> |
258 | <p>Like·calloc()·in·the·C·standard·library,·but·the·implementation·may | 266 | <p>Like·calloc()·in·the·C·standard·library,·but·the·implementation·may |
259 | be·overridden.</p> | 267 | be·overridden.</p> |
260 | <p>This·is·a·macro.</p> | 268 | <p>This·is·a·macro.</p> |
261 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a | 269 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a |
Offset 306, 15 lines modified | Offset 314, 16 lines modified | ||
306 | Code</a></p> | 314 | Code</a></p> |
307 | <p>This·calls·calloc()·from·the·Allegro·library·(this·matters·on | 315 | <p>This·calls·calloc()·from·the·Allegro·library·(this·matters·on |
308 | Windows),·unless·overridden·with·<a | 316 | Windows),·unless·overridden·with·<a |
309 | href="memory.html#al_set_memory_interface">al_set_memory_interface</a>,</p> | 317 | href="memory.html#al_set_memory_interface">al_set_memory_interface</a>,</p> |
310 | <p>Generally·you·should·use·the·<a | 318 | <p>Generally·you·should·use·the·<a |
311 | href="memory.html#al_calloc">al_calloc</a>·macro.</p> | 319 | href="memory.html#al_calloc">al_calloc</a>·macro.</p> |
312 | <h1·id="allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</h1> | 320 | <h1·id="allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</h1> |
313 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE<span·class="op">;</span></span> | 321 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE<span·class="op">;</span></span> |
322 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE<span·class="op">;</span></span></code></pre></div> | ||
314 | <p><a | 323 | <p><a |
315 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L28">Source | 324 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L28">Source |
316 | Code</a></p> | 325 | Code</a></p> |
317 | <p>This·structure·has·the·following·fields.</p> | 326 | <p>This·structure·has·the·following·fields.</p> |
318 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*(*</span>mi_malloc<span·class="op">)(</span><span·class="dt">size_t</span>·n<span·class="op">,</span>·<span·class="dt">int</span>·line<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>file<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>func<span·class="op">);</span></span> | 327 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*(*</span>mi_malloc<span·class="op">)(</span><span·class="dt">size_t</span>·n<span·class="op">,</span>·<span·class="dt">int</span>·line<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>file<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>func<span·class="op">);</span></span> |
319 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">(*</span>mi_free<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">int</span>·line<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>file<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>func<span·class="op">);</span></span> | 328 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">(*</span>mi_free<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">int</span>·line<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>file<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>func<span·class="op">);</span></span> |
320 | <span·id="cb11-3"><a·href="#cb11-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*(*</span>mi_realloc<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">size_t</span>·n<span·class="op">,</span>·<span·class="dt">int</span>·line<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>file<span·class="op">,</span></span> | 329 | <span·id="cb11-3"><a·href="#cb11-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*(*</span>mi_realloc<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">size_t</span>·n<span·class="op">,</span>·<span·class="dt">int</span>·line<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>file<span·class="op">,</span></span> |
Offset 54, 26 lines modified | Offset 54, 30 lines modified | ||
54 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8E_\x8M_\x8O_\x8R_\x8Y_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E | 54 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8E_\x8M_\x8O_\x8R_\x8Y_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E |
55 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 55 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e |
56 | These·functions·are·declared·in·the·main·Allegro·header·file: | 56 | These·functions·are·declared·in·the·main·Allegro·header·file: |
57 | ·#include·<allegro5/allegro.h> | 57 | ·#include·<allegro5/allegro.h> |
58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* | 58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* |
59 | #define·al_malloc(n)·\ | 59 | #define·al_malloc(n)·\ |
60 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | 60 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) |
61 | #define·al_malloc(n)·\ | ||
62 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | ||
61 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 63 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
62 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be | 64 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be |
63 | overridden. | 65 | overridden. |
64 | This·is·a·macro. | 66 | 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, | 67 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t, |
66 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 68 | _\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: | 69 | Examples: |
68 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | 70 | ····*·_\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 | 71 | ····*·_\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* | 72 | *\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)·\ | 73 | #define·al_free(p)·\ |
72 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | 74 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) |
75 | #define·al_free(p)·\ | ||
76 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | ||
73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
74 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be | 78 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be |
75 | overridden. | 79 | overridden. |
76 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed | 80 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed |
77 | from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a | 81 | from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a |
78 | pointer·that·must·be·freed,·you·must·use·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e·for·portability·to·Windows. | 82 | pointer·that·must·be·freed,·you·must·use·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e·for·portability·to·Windows. |
79 | This·is·a·macro. | 83 | This·is·a·macro. |
Offset 81, 22 lines modified | Offset 85, 26 lines modified | ||
81 | Examples: | 85 | Examples: |
82 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8b_\x8o_\x8a_\x8r_\x8d_\x8._\x8c | 86 | ····*·_\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 | 87 | ····*·_\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 | 88 | ····*·_\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* | 89 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ea\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | #define·al_realloc(p,·n)·\ | 90 | #define·al_realloc(p,·n)·\ |
87 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | 91 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) |
92 | #define·al_realloc(p,·n)·\ | ||
93 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | ||
88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
89 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be | 95 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be |
90 | overridden. | 96 | overridden. |
91 | This·is·a·macro. | 97 | This·is·a·macro. |
92 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | 98 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t |
93 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8ca\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* | 99 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8ca\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* |
94 | #define·al_calloc(c,·n)·\ | 100 | #define·al_calloc(c,·n)·\ |
95 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | 101 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) |
102 | #define·al_calloc(c,·n)·\ | ||
103 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | ||
96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 104 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
97 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be | 105 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be |
98 | overridden. | 106 | overridden. |
99 | This·is·a·macro. | 107 | 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_\x8t | 108 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t |
101 | Examples: | 109 | Examples: |
102 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c | 110 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c |
Offset 126, 14 lines modified | Offset 134, 15 lines modified | ||
126 | ···int·line,·const·char·*file,·const·char·*func) | 134 | ···int·line,·const·char·*file,·const·char·*func) |
127 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 135 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
128 | This·calls·calloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless | 136 | This·calls·calloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless |
129 | overridden·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e, | 137 | overridden·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e, |
130 | Generally·you·should·use·the·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c·macro. | 138 | Generally·you·should·use·the·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c·macro. |
131 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8ME\x8EM\x8MO\x8OR\x8RY\x8Y_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 139 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8ME\x8EM\x8MO\x8OR\x8RY\x8Y_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
132 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; | 140 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; |
141 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; | ||
133 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 142 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
134 | This·structure·has·the·following·fields. | 143 | This·structure·has·the·following·fields. |
135 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); | 144 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); |
136 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); | 145 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); |
137 | void·*(*mi_realloc)(void·*ptr,·size_t·n,·int·line,·const·char·*file, | 146 | void·*(*mi_realloc)(void·*ptr,·size_t·n,·int·line,·const·char·*file, |
138 | ····················const·char·*func); | 147 | ····················const·char·*func); |
139 | void·*(*mi_calloc)(size_t·count,·size_t·n,·int·line,·const·char·*file, | 148 | void·*(*mi_calloc)(size_t·count,·size_t·n,·int·line,·const·char·*file, |
Offset 176, 15 lines modified | Offset 176, 16 lines modified | ||
176 | <li><a·href="#allegro_pi"·id="toc-allegro_pi">ALLEGRO_PI</a></li> | 176 | <li><a·href="#allegro_pi"·id="toc-allegro_pi">ALLEGRO_PI</a></li> |
177 | <li><a·href="#al_run_main"·id="toc-al_run_main">al_run_main</a></li> | 177 | <li><a·href="#al_run_main"·id="toc-al_run_main">al_run_main</a></li> |
178 | </ul> | 178 | </ul> |
179 | </nav> | 179 | </nav> |
180 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 180 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
181 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 181 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
182 | <h1·id="allegro_pi">ALLEGRO_PI</h1> | 182 | <h1·id="allegro_pi">ALLEGRO_PI</h1> |
183 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_PI········</span><span·class="fl">3.14159265358979323846</span></span> | 183 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_PI········</span><span·class="fl">3.14159265358979323846</span></span> |
184 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_PI········</span><span·class="fl">3.14159265358979323846</span></span></code></pre></div> | ||
184 | <p><a | 185 | <p><a |
185 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L96">Source | 186 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L96">Source |
186 | Code</a></p> | 187 | Code</a></p> |
187 | <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π, | 188 | <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π, |
188 | but·you·can·use·this·one·instead.</p> | 189 | but·you·can·use·this·one·instead.</p> |
189 | <p>Examples:</p> | 190 | <p>Examples:</p> |
190 | <ul> | 191 | <ul> |
Offset 45, 14 lines modified | Offset 45, 15 lines modified | ||
45 | *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mi\x8is\x8sc\x8ce\x8el\x8ll\x8la\x8an\x8ne\x8eo\x8ou\x8us\x8s·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 45 | *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mi\x8is\x8sc\x8ce\x8el\x8ll\x8la\x8an\x8ne\x8eo\x8ou\x8us\x8s·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
46 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I | 46 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I |
47 | ····*·_\x8a_\x8l_\x8__\x8r_\x8u_\x8n_\x8__\x8m_\x8a_\x8i_\x8n | 47 | ····*·_\x8a_\x8l_\x8__\x8r_\x8u_\x8n_\x8__\x8m_\x8a_\x8i_\x8n |
48 | These·functions·are·declared·in·the·main·Allegro·header·file: | 48 | These·functions·are·declared·in·the·main·Allegro·header·file: |
49 | ·#include·<allegro5/allegro.h> | 49 | ·#include·<allegro5/allegro.h> |
50 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8I·*\x8**\x8**\x8**\x8**\x8**\x8* | 50 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8I·*\x8**\x8**\x8**\x8**\x8**\x8* |
51 | #define·ALLEGRO_PI········3.14159265358979323846 | 51 | #define·ALLEGRO_PI········3.14159265358979323846 |
52 | #define·ALLEGRO_PI········3.14159265358979323846 | ||
52 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 53 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
53 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but·you | 54 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but·you |
54 | can·use·this·one·instead. | 55 | can·use·this·one·instead. |
55 | Examples: | 56 | Examples: |
56 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | 57 | ····*·_\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__\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 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c |
Offset 184, 15 lines modified | Offset 184, 16 lines modified | ||
184 | <li><a·href="#al_get_monitor_refresh_rate" | 184 | <li><a·href="#al_get_monitor_refresh_rate" |
185 | id="toc-al_get_monitor_refresh_rate">al_get_monitor_refresh_rate</a></li> | 185 | id="toc-al_get_monitor_refresh_rate">al_get_monitor_refresh_rate</a></li> |
186 | </ul> | 186 | </ul> |
187 | </nav> | 187 | </nav> |
188 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 188 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
189 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 189 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
190 | <h1·id="allegro_monitor_info">ALLEGRO_MONITOR_INFO</h1> | 190 | <h1·id="allegro_monitor_info">ALLEGRO_MONITOR_INFO</h1> |
191 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</span> | 191 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</span> |
192 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</span></code></pre></div> | ||
192 | <p><a | 193 | <p><a |
193 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/monitor.h#L13">Source | 194 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/monitor.h#L13">Source |
194 | Code</a></p> | 195 | Code</a></p> |
195 | <p>Describes·a·monitor’s·size·and·position·relative·to·other·monitors. | 196 | <p>Describes·a·monitor’s·size·and·position·relative·to·other·monitors. |
196 | x1,·y1·will·be·0,·0·on·the·primary·display.·Other·monitors·can·have | 197 | x1,·y1·will·be·0,·0·on·the·primary·display.·Other·monitors·can·have |
197 | negative·values·if·they·are·to·the·left·or·above·the·primary·display. | 198 | negative·values·if·they·are·to·the·left·or·above·the·primary·display. |
198 | x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that | 199 | x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that |
Offset 48, 14 lines modified | Offset 48, 15 lines modified | ||
48 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8d_\x8p_\x8i | 48 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8d_\x8p_\x8i |
49 | ····*·_\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 | 49 | ····*·_\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 |
50 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e | 50 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e |
51 | These·functions·are·declared·in·the·main·Allegro·header·file: | 51 | These·functions·are·declared·in·the·main·Allegro·header·file: |
52 | ·#include·<allegro5/allegro.h> | 52 | ·#include·<allegro5/allegro.h> |
53 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MO\x8ON\x8NI\x8IT\x8TO\x8OR\x8R_\x8_I\x8IN\x8NF\x8FO\x8O·*\x8**\x8**\x8**\x8**\x8**\x8* | 53 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MO\x8ON\x8NI\x8IT\x8TO\x8OR\x8R_\x8_I\x8IN\x8NF\x8FO\x8O·*\x8**\x8**\x8**\x8**\x8**\x8* |
54 | typedef·struct·ALLEGRO_MONITOR_INFO | 54 | typedef·struct·ALLEGRO_MONITOR_INFO |
55 | typedef·struct·ALLEGRO_MONITOR_INFO | ||
55 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 56 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
56 | Describes·a·monitor’s·size·and·position·relative·to·other·monitors.·x1,·y1·will | 57 | Describes·a·monitor’s·size·and·position·relative·to·other·monitors.·x1,·y1·will |
57 | be·0,·0·on·the·primary·display.·Other·monitors·can·have·negative·values·if·they | 58 | be·0,·0·on·the·primary·display.·Other·monitors·can·have·negative·values·if·they |
58 | are·to·the·left·or·above·the·primary·display.·x2,·y2·are·the·coordinates·one | 59 | are·to·the·left·or·above·the·primary·display.·x2,·y2·are·the·coordinates·one |
59 | beyond·the·bottom·right·pixel,·so·that·x2-x1·gives·the·width·and·y2-y1·gives | 60 | beyond·the·bottom·right·pixel,·so·that·x2-x1·gives·the·width·and·y2-y1·gives |
60 | the·height·of·the·display. | 61 | the·height·of·the·display. |
61 | typedef·struct·ALLEGRO_MONITOR_INFO | 62 | typedef·struct·ALLEGRO_MONITOR_INFO |
Offset 231, 15 lines modified | Offset 231, 16 lines modified | ||
231 | id="toc-al_ungrab_mouse">al_ungrab_mouse</a></li> | 231 | id="toc-al_ungrab_mouse">al_ungrab_mouse</a></li> |
232 | </ul></li> | 232 | </ul></li> |
233 | </ul> | 233 | </ul> |
234 | </nav> | 234 | </nav> |
235 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 235 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
236 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 236 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
237 | <h1·id="allegro_mouse_state">ALLEGRO_MOUSE_STATE</h1> | 237 | <h1·id="allegro_mouse_state">ALLEGRO_MOUSE_STATE</h1> |
238 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE<span·class="op">;</span></span> | 238 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE<span·class="op">;</span></span> |
239 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE<span·class="op">;</span></span></code></pre></div> | ||
239 | <p><a | 240 | <p><a |
240 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/mouse.h#L35">Source | 241 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/mouse.h#L35">Source |
241 | Code</a></p> | 242 | Code</a></p> |
242 | <p>Public·fields·(read·only):</p> | 243 | <p>Public·fields·(read·only):</p> |
243 | <ul> | 244 | <ul> |
244 | <li><p>x·-·mouse·x·position</p></li> | 245 | <li><p>x·-·mouse·x·position</p></li> |
245 | <li><p>y·-·mouse·y·position</p></li> | 246 | <li><p>y·-·mouse·y·position</p></li> |
Offset 71, 14 lines modified | Offset 71, 15 lines modified | ||
71 | ··········o·_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8c_\x8u_\x8r_\x8s_\x8o_\x8r | 71 | ··········o·_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8c_\x8u_\x8r_\x8s_\x8o_\x8r |
72 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e | 72 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e |
73 | ··········o·_\x8a_\x8l_\x8__\x8u_\x8n_\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e | 73 | ··········o·_\x8a_\x8l_\x8__\x8u_\x8n_\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e |
74 | These·functions·are·declared·in·the·main·Allegro·header·file: | 74 | These·functions·are·declared·in·the·main·Allegro·header·file: |
75 | ·#include·<allegro5/allegro.h> | 75 | ·#include·<allegro5/allegro.h> |
76 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MO\x8OU\x8US\x8SE\x8E_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 76 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MO\x8OU\x8US\x8SE\x8E_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
77 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; | 77 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; |
78 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; | ||
78 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
79 | Public·fields·(read·only): | 80 | Public·fields·(read·only): |
80 | ····*·x·-·mouse·x·position | 81 | ····*·x·-·mouse·x·position |
81 | ····*·y·-·mouse·y·position | 82 | ····*·y·-·mouse·y·position |
82 | ····*·w,·z·-·mouse·wheel·position·(2D·‘ball’) | 83 | ····*·w,·z·-·mouse·wheel·position·(2D·‘ball’) |
83 | ····*·buttons·-·mouse·buttons·bitfield | 84 | ····*·buttons·-·mouse·buttons·bitfield |
84 | ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first | 85 | ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first |
Offset 262, 39 lines modified | Offset 262, 42 lines modified | ||
262 | </ul></li> | 262 | </ul></li> |
263 | </ul> | 263 | </ul> |
264 | </nav> | 264 | </nav> |
265 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 265 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
266 | allegro_dialog.</p> | 266 | allegro_dialog.</p> |
267 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_native_dialog.h></span></span></code></pre></div> | 267 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_native_dialog.h></span></span></code></pre></div> |
268 | <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1> | 268 | <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1> |
269 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER<span·class="op">;</span></span> | 269 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER<span·class="op">;</span></span> |
270 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER<span·class="op">;</span></span></code></pre></div> | ||
270 | <p><a | 271 | <p><a |
271 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source | 272 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source |
272 | Code</a></p> | 273 | Code</a></p> |
273 | <p>Opaque·handle·to·a·native·file·dialog.</p> | 274 | <p>Opaque·handle·to·a·native·file·dialog.</p> |
274 | <p>Examples:</p> | 275 | <p>Examples:</p> |
275 | <ul> | 276 | <ul> |
276 | <li><a | 277 | <li><a |
277 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L31">ex_native_filechooser.c</a></li> | 278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L31">ex_native_filechooser.c</a></li> |
278 | </ul> | 279 | </ul> |
279 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> | 280 | <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> | 281 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG<span·class="op">;</span></span> |
282 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG<span·class="op">;</span></span></code></pre></div> | ||
281 | <p><a | 283 | <p><a |
282 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source | 284 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source |
283 | Code</a></p> | 285 | Code</a></p> |
284 | <p>Opaque·handle·to·a·text·log·window.</p> | 286 | <p>Opaque·handle·to·a·text·log·window.</p> |
285 | <p>Examples:</p> | 287 | <p>Examples:</p> |
286 | <ul> | 288 | <ul> |
287 | <li><a | 289 | <li><a |
288 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L27">common.c</a></li> | 290 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L27">common.c</a></li> |
289 | <li><a | 291 | <li><a |
290 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L36">ex_native_filechooser.c</a></li> | 292 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L36">ex_native_filechooser.c</a></li> |
291 | </ul> | 293 | </ul> |
292 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> | 294 | <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> | 295 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
296 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
294 | <p><a | 297 | <p><a |
295 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L18">Source | 298 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L18">Source |
296 | Code</a></p> | 299 | Code</a></p> |
297 | <p>Initialise·the·native·dialog·addon.</p> | 300 | <p>Initialise·the·native·dialog·addon.</p> |
298 | <p>Returns·true·on·success,·false·on·error.</p> | 301 | <p>Returns·true·on·success,·false·on·error.</p> |
299 | <p>Since:·5.0.9,·5.1.0</p> | 302 | <p>Since:·5.0.9,·5.1.0</p> |
300 | <blockquote> | 303 | <blockquote> |
Offset 315, 37 lines modified | Offset 318, 44 lines modified | ||
315 | <li><a | 318 | <li><a |
316 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L58">ex_window_maximized.c</a></li> | 319 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L58">ex_window_maximized.c</a></li> |
317 | <li><a | 320 | <li><a |
318 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_menu.c#L83">ex_menu.c</a></li> | 321 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_menu.c#L83">ex_menu.c</a></li> |
319 | </ul> | 322 | </ul> |
320 | <h1 | 323 | <h1 |
321 | id="al_is_native_dialog_addon_initialized">al_is_native_dialog_addon_initialized</h1> | 324 | 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> | 325 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_native_dialog_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
326 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_native_dialog_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
323 | <p><a | 327 | <p><a |
324 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L35">Source | 328 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L35">Source |
325 | Code</a></p> | 329 | Code</a></p> |
326 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise | 330 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise |
327 | returns·false.</p> | 331 | returns·false.</p> |
328 | <p>Since:·5.2.6</p> | 332 | <p>Since:·5.2.6</p> |
329 | <h1 | 333 | <h1 |
330 | id="al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</h1> | 334 | id="al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</h1> |
331 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 335 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
336 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
332 | <p><a | 337 | <p><a |
333 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L42">Source | 338 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L42">Source |
334 | Code</a></p> | 339 | Code</a></p> |
335 | <p>Shut·down·the·native·dialog·addon.</p> | 340 | <p>Shut·down·the·native·dialog·addon.</p> |
336 | <p>Since:·5.0.9,·5.1.5</p> | 341 | <p>Since:·5.0.9,·5.1.5</p> |
337 | <p>See·also:·<a | 342 | <p>See·also:·<a |
338 | href="native_dialog.html#al_init_native_dialog_addon">al_init_native_dialog_addon</a></p> | 343 | href="native_dialog.html#al_init_native_dialog_addon">al_init_native_dialog_addon</a></p> |
339 | <h1·id="al_create_native_file_dialog">al_create_native_file_dialog</h1> | 344 | <h1·id="al_create_native_file_dialog">al_create_native_file_dialog</h1> |
340 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILECHOOSER·<span·class="op">*</span>al_create_native_file_dialog<span·class="op">(</span></span> | 345 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILECHOOSER·<span·class="op">*</span>al_create_native_file_dialog<span·class="op">(</span></span> |
341 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>initial_path<span·class="op">,</span></span> | 346 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>initial_path<span·class="op">,</span></span> |
342 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>title<span·class="op">,</span></span> | 347 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>title<span·class="op">,</span></span> |
343 | <span·id="cb7-4"><a·href="#cb7-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>patterns<span·class="op">,</span></span> | 348 | <span·id="cb7-4"><a·href="#cb7-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>patterns<span·class="op">,</span></span> |
349 | <span·id="cb7-5"><a·href="#cb7-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·mode<span·class="op">)</span></span> | ||
350 | <span·id="cb7-6"><a·href="#cb7-6"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILECHOOSER·<span·class="op">*</span>al_create_native_file_dialog<span·class="op">(</span></span> | ||
351 | <span·id="cb7-7"><a·href="#cb7-7"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>initial_path<span·class="op">,</span></span> | ||
352 | <span·id="cb7-8"><a·href="#cb7-8"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>title<span·class="op">,</span></span> | ||
353 | <span·id="cb7-9"><a·href="#cb7-9"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>patterns<span·class="op">,</span></span> | ||
344 | <span·id="cb7- | 354 | <span·id="cb7-10"><a·href="#cb7-10"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·mode<span·class="op">)</span></span></code></pre></div> |
345 | <p><a | 355 | <p><a |
346 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L53">Source | 356 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L53">Source |
347 | Code</a></p> | 357 | Code</a></p> |
348 | <p>Creates·a·new·native·file·dialog.·You·should·only·have·one·such | 358 | <p>Creates·a·new·native·file·dialog.·You·should·only·have·one·such |
349 | dialog·opened·at·a·time.</p> | 359 | dialog·opened·at·a·time.</p> |
350 | <p>Parameters:</p> | 360 | <p>Parameters:</p> |
351 | <ul> | 361 | <ul> |
Offset 434, 15 lines modified | Offset 444, 17 lines modified | ||
434 | <p>Examples:</p> | 444 | <p>Examples:</p> |
435 | <ul> | 445 | <ul> |
436 | <li><a | 446 | <li><a |
437 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L105">ex_native_filechooser.c</a></li> | 447 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L105">ex_native_filechooser.c</a></li> |
438 | </ul> | 448 | </ul> |
439 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> | 449 | <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> | 450 | <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> |
451 | <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> | ||
452 | <span·id="cb8-3"><a·href="#cb8-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_show_native_file_dialog<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span></span> | ||
441 | <span·id="cb8- | 453 | <span·id="cb8-4"><a·href="#cb8-4"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div> |
442 | <p><a | 454 | <p><a |
443 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L78">Source | 455 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L78">Source |
444 | Code</a></p> | 456 | Code</a></p> |
445 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given | 457 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given |
446 | display·is·treated·as·the·parent·if·possible.</p> | 458 | display·is·treated·as·the·parent·if·possible.</p> |
447 | <p>This·function·blocks·the·calling·thread·until·it·returns,·so·you·may | 459 | <p>This·function·blocks·the·calling·thread·until·it·returns,·so·you·may |
448 | want·to·spawn·a·thread·with·<a | 460 | want·to·spawn·a·thread·with·<a |
Offset 460, 29 lines modified | Offset 472, 32 lines modified | ||
460 | <p>Examples:</p> | 472 | <p>Examples:</p> |
461 | <ul> | 473 | <ul> |
462 | <li><a | 474 | <li><a |
463 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L59">ex_native_filechooser.c</a></li> | 475 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L59">ex_native_filechooser.c</a></li> |
464 | </ul> | 476 | </ul> |
465 | <h1 | 477 | <h1 |
466 | id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> | 478 | 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> | 479 | <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> |
480 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_native_file_dialog_count<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div> | ||
468 | <p><a | 481 | <p><a |
469 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L87">Source | 482 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L87">Source |
470 | Code</a></p> | 483 | Code</a></p> |
471 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was | 484 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was |
472 | cancelled.</p> | 485 | cancelled.</p> |
473 | <p>Examples:</p> | 486 | <p>Examples:</p> |
474 | <ul> | 487 | <ul> |
475 | <li><a | 488 | <li><a |
476 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L148">ex_native_filechooser.c</a></li> | 489 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L148">ex_native_filechooser.c</a></li> |
477 | </ul> | 490 | </ul> |
478 | <h1 | 491 | <h1 |
479 | id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> | 492 | id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> |
Max diff block lines reached; 60269/73273 bytes (82.25%) of diff not shown. |
Offset 88, 27 lines modified | Offset 88, 30 lines modified | ||
88 | ··········o·_\x8a_\x8l_\x8__\x8p_\x8o_\x8p_\x8u_\x8p_\x8__\x8m_\x8e_\x8n_\x8u | 88 | ··········o·_\x8a_\x8l_\x8__\x8p_\x8o_\x8p_\x8u_\x8p_\x8__\x8m_\x8e_\x8n_\x8u |
89 | ··········o·_\x8a_\x8l_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8e_\x8n_\x8u | 89 | ··········o·_\x8a_\x8l_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8e_\x8n_\x8u |
90 | These·functions·are·declared·in·the·following·header·file.·Link·with | 90 | These·functions·are·declared·in·the·following·header·file.·Link·with |
91 | allegro_dialog. | 91 | allegro_dialog. |
92 | ·#include·<allegro5/allegro_native_dialog.h> | 92 | ·#include·<allegro5/allegro_native_dialog.h> |
93 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8EC\x8CH\x8HO\x8OO\x8OS\x8SE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* | 93 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8EC\x8CH\x8HO\x8OO\x8OS\x8SE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* |
94 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; | 94 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; |
95 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; | ||
95 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
96 | Opaque·handle·to·a·native·file·dialog. | 97 | Opaque·handle·to·a·native·file·dialog. |
97 | Examples: | 98 | 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 | ····*·_\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* | 100 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TE\x8EX\x8XT\x8TL\x8LO\x8OG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8* |
100 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | 101 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; |
102 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | ||
101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
102 | Opaque·handle·to·a·text·log·window. | 104 | Opaque·handle·to·a·text·log·window. |
103 | Examples: | 105 | Examples: |
104 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | 106 | ····*·_\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 | 107 | ····*·_\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* | 108 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
107 | bool·al_init_native_dialog_addon(void) | 109 | bool·al_init_native_dialog_addon(void) |
110 | bool·al_init_native_dialog_addon(void) | ||
108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 111 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
109 | Initialise·the·native·dialog·addon. | 112 | Initialise·the·native·dialog·addon. |
110 | Returns·true·on·success,·false·on·error. | 113 | Returns·true·on·success,·false·on·error. |
111 | Since:·5.0.9,·5.1.0 | 114 | 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·called | 115 | ·····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.·Future | 116 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future |
114 | ·····functionality·may·require·explicit·initialisation.·An·exception·is | 117 | ·····functionality·may·require·explicit·initialisation.·An·exception·is |
Offset 117, 30 lines modified | Offset 120, 37 lines modified | ||
117 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 120 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
118 | Examples: | 121 | Examples: |
119 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | 122 | ····*·_\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 | 123 | ····*·_\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 | 124 | ····*·_\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* | 125 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
123 | bool·al_is_native_dialog_addon_initialized(void) | 126 | bool·al_is_native_dialog_addon_initialized(void) |
127 | bool·al_is_native_dialog_addon_initialized(void) | ||
124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 128 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
125 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns | 129 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns |
126 | false. | 130 | false. |
127 | Since:·5.2.6 | 131 | 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* | 132 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
129 | void·al_shutdown_native_dialog_addon(void) | 133 | void·al_shutdown_native_dialog_addon(void) |
134 | void·al_shutdown_native_dialog_addon(void) | ||
130 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 135 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
131 | Shut·down·the·native·dialog·addon. | 136 | Shut·down·the·native·dialog·addon. |
132 | Since:·5.0.9,·5.1.5 | 137 | Since:·5.0.9,·5.1.5 |
133 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 138 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
134 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 139 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
135 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( | 140 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( |
136 | ···char·const·*initial_path, | 141 | ···char·const·*initial_path, |
137 | ···char·const·*title, | 142 | ···char·const·*title, |
138 | ···char·const·*patterns, | 143 | ···char·const·*patterns, |
139 | ···int·mode) | 144 | ···int·mode) |
145 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( | ||
146 | ···char·const·*initial_path, | ||
147 | ···char·const·*title, | ||
148 | ···char·const·*patterns, | ||
149 | ···int·mode) | ||
140 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 150 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
141 | Creates·a·new·native·file·dialog.·You·should·only·have·one·such·dialog·opened | 151 | Creates·a·new·native·file·dialog.·You·should·only·have·one·such·dialog·opened |
142 | at·a·time. | 152 | at·a·time. |
143 | Parameters: | 153 | Parameters: |
144 | ····*·initial_path:·The·initial·search·path·and·filename.·Can·be·NULL.·To·start | 154 | ····*·initial_path:·The·initial·search·path·and·filename.·Can·be·NULL.·To·start |
145 | ······with·a·blank·file·name·the·string·should·end·with·a·directory·separator | 155 | ······with·a·blank·file·name·the·string·should·end·with·a·directory·separator |
146 | ······(this·should·be·the·common·case). | 156 | ······(this·should·be·the·common·case). |
Offset 194, 54 lines modified | Offset 204, 63 lines modified | ||
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. | 204 | 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. | 205 | If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL. |
196 | Examples: | 206 | 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 | 207 | ····*·_\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* | 208 | *\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, | 209 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, |
200 | ···ALLEGRO_FILECHOOSER·*dialog) | 210 | ···ALLEGRO_FILECHOOSER·*dialog) |
211 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | ||
212 | ···ALLEGRO_FILECHOOSER·*dialog) | ||
201 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 213 | _\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·is | 214 | Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is |
203 | treated·as·the·parent·if·possible. | 215 | treated·as·the·parent·if·possible. |
204 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to | 216 | 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. | 217 | 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. | 218 | 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·and | 219 | ·····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·this | 220 | ·····_\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·different | 221 | ·····function·returns.·This·means·that·you·must·call·it·from·a·different |
210 | ·····thread. | 222 | ·····thread. |
211 | Examples: | 223 | 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 | 224 | ····*·_\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* | 225 | *\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) | 226 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) |
227 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | ||
215 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 228 | _\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. | 229 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. |
217 | Examples: | 230 | 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 | 231 | ····*·_\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* | 232 | *\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( | 233 | const·char·*al_get_native_file_dialog_path( |
221 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | 234 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) |
235 | const·char·*al_get_native_file_dialog_path( | ||
236 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | ||
222 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 237 | _\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·0 | 238 | 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. | 239 | 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://·Universal | 240 | ·····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·of | 241 | ·····Resource·Identifier·instead·of·a·file·path·due·to·the·constraints·of |
227 | ·····Scoped·Storage.·Selected·files·may·be·accessed·using | 242 | ·····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. | 243 | ·····_\x8a_\x8l_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8__\x8o_\x8p_\x8e_\x8n_\x8__\x8f_\x8d. |
229 | Examples: | 244 | 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 | 245 | ····*·_\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* | 246 | *\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) | 247 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) |
248 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | ||
233 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 249 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
234 | Frees·up·all·resources·used·by·the·file·dialog. | 250 | Frees·up·all·resources·used·by·the·file·dialog. |
235 | Examples: | 251 | 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 | 252 | ····*·_\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* | 253 | *\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, | 254 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, |
239 | ···char·const·*title,·char·const·*heading,·char·const·*text, | 255 | ···char·const·*title,·char·const·*heading,·char·const·*text, |
240 | ···char·const·*buttons,·int·flags) | 256 | ···char·const·*buttons,·int·flags) |
257 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | ||
258 | ···char·const·*title,·char·const·*heading,·char·const·*text, | ||
259 | ···char·const·*buttons,·int·flags) | ||
241 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 260 | _\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·error | 261 | Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error |
Max diff block lines reached; 22883/30186 bytes (75.81%) of diff not shown. |
Offset 191, 15 lines modified | Offset 191, 16 lines modified | ||
191 | href="physfs.html#al_set_physfs_file_interface">al_set_physfs_file_interface</a>, | 191 | href="physfs.html#al_set_physfs_file_interface">al_set_physfs_file_interface</a>, |
192 | then·<a·href="file.html#al_fopen">al_fopen</a>·or·another·function·that | 192 | then·<a·href="file.html#al_fopen">al_fopen</a>·or·another·function·that |
193 | calls·<a·href="file.html#al_fopen">al_fopen</a>.</p> | 193 | calls·<a·href="file.html#al_fopen">al_fopen</a>.</p> |
194 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 194 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
195 | allegro_physfs.</p> | 195 | allegro_physfs.</p> |
196 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_physfs.h></span></span></code></pre></div> | 196 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_physfs.h></span></span></code></pre></div> |
197 | <h1·id="al_set_physfs_file_interface">al_set_physfs_file_interface</h1> | 197 | <h1·id="al_set_physfs_file_interface">al_set_physfs_file_interface</h1> |
198 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_physfs_file_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 198 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_physfs_file_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
199 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_physfs_file_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
199 | <p><a | 200 | <p><a |
200 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L301">Source | 201 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L301">Source |
201 | Code</a></p> | 202 | Code</a></p> |
202 | <p>This·function·sets·<em>both</em>·the·<a | 203 | <p>This·function·sets·<em>both</em>·the·<a |
203 | href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>·and | 204 | href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>·and |
204 | <a·href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·for | 205 | <a·href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·for |
205 | the·calling·thread.</p> | 206 | the·calling·thread.</p> |
Offset 231, 15 lines modified | Offset 232, 16 lines modified | ||
231 | <p>Examples:</p> | 232 | <p>Examples:</p> |
232 | <ul> | 233 | <ul> |
233 | <li><a | 234 | <li><a |
234 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L149">ex_physfs.c</a></li> | 235 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L149">ex_physfs.c</a></li> |
235 | </ul> | 236 | </ul> |
236 | <h1 | 237 | <h1 |
237 | id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> | 238 | 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> | 239 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
240 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
239 | <p><a | 241 | <p><a |
240 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source | 242 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source |
241 | Code</a></p> | 243 | Code</a></p> |
242 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 244 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
243 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 245 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
244 | <p·class="timestamp"> | 246 | <p·class="timestamp"> |
245 | Allegro·version·5.2.10 | 247 | Allegro·version·5.2.10 |
Offset 54, 14 lines modified | Offset 54, 15 lines modified | ||
54 | ALLEGRO_FILE·using·PhysicsFS,·first·call·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·then | 54 | ALLEGRO_FILE·using·PhysicsFS,·first·call·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·then |
55 | _\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·or·another·function·that·calls·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. | 55 | _\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·or·another·function·that·calls·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. |
56 | These·functions·are·declared·in·the·following·header·file.·Link·with | 56 | These·functions·are·declared·in·the·following·header·file.·Link·with |
57 | allegro_physfs. | 57 | allegro_physfs. |
58 | ·#include·<allegro5/allegro_physfs.h> | 58 | ·#include·<allegro5/allegro_physfs.h> |
59 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_p\x8ph\x8hy\x8ys\x8sf\x8fs\x8s_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 59 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_p\x8ph\x8hy\x8ys\x8sf\x8fs\x8s_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
60 | void·al_set_physfs_file_interface(void) | 60 | void·al_set_physfs_file_interface(void) |
61 | void·al_set_physfs_file_interface(void) | ||
61 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 62 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
62 | This·function·sets·b\x8bo\x8ot\x8th\x8h·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8S_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·for | 63 | This·function·sets·b\x8bo\x8ot\x8th\x8h·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8S_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·for |
63 | the·calling·thread. | 64 | the·calling·thread. |
64 | Subsequent·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·on·the·calling·thread·will·be·handled·by | 65 | Subsequent·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·on·the·calling·thread·will·be·handled·by |
65 | PHYSFS_open().·Operations·on·the·files·returned·by·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·will·then·be | 66 | PHYSFS_open().·Operations·on·the·files·returned·by·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·will·then·be |
66 | performed·through·PhysicsFS.·Calls·to·the·Allegro·filesystem·functions,·such·as | 67 | performed·through·PhysicsFS.·Calls·to·the·Allegro·filesystem·functions,·such·as |
67 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y·or·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y,·on·the·calling·thread·will·be·diverted | 68 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y·or·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y,·on·the·calling·thread·will·be·diverted |
Offset 74, 11 lines modified | Offset 75, 12 lines modified | ||
74 | ·····N\x8No\x8ot\x8te\x8e:\x8:·PhysFS·does·not·support·the·text-mode·reading·and·writing, | 75 | ·····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. | 76 | ·····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. | 77 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e. |
77 | Examples: | 78 | Examples: |
78 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c | 79 | ····*·_\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* | 80 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_p\x8ph\x8hy\x8ys\x8sf\x8fs\x8s_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
80 | uint32_t·al_get_allegro_physfs_version(void) | 81 | uint32_t·al_get_allegro_physfs_version(void) |
82 | uint32_t·al_get_allegro_physfs_version(void) | ||
81 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
82 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 84 | 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. | 85 | _\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·UTC | 86 | Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC |
Offset 328, 22 lines modified | Offset 328, 24 lines modified | ||
328 | </nav> | 328 | </nav> |
329 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 329 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
330 | allegro_primitives.</p> | 330 | allegro_primitives.</p> |
331 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_primitives.h></span></span></code></pre></div> | 331 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_primitives.h></span></span></code></pre></div> |
332 | <h1·id="general">General</h1> | 332 | <h1·id="general">General</h1> |
333 | <h2 | 333 | <h2 |
334 | id="al_get_allegro_primitives_version">al_get_allegro_primitives_version</h2> | 334 | id="al_get_allegro_primitives_version">al_get_allegro_primitives_version</h2> |
335 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_primitives_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 335 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_primitives_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
336 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_primitives_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
336 | <p><a | 337 | <p><a |
337 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L160">Source | 338 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L160">Source |
338 | Code</a></p> | 339 | Code</a></p> |
339 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 340 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
340 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 341 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
341 | <h2·id="al_init_primitives_addon">al_init_primitives_addon</h2> | 342 | <h2·id="al_init_primitives_addon">al_init_primitives_addon</h2> |
342 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 343 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
344 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
343 | <p><a | 345 | <p><a |
344 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L48">Source | 346 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L48">Source |
345 | Code</a></p> | 347 | Code</a></p> |
346 | <p>Initializes·the·primitives·addon.</p> | 348 | <p>Initializes·the·primitives·addon.</p> |
347 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> | 349 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> |
348 | <p>See·also:·<a | 350 | <p>See·also:·<a |
349 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> | 351 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> |
Offset 354, 27 lines modified | Offset 356, 29 lines modified | ||
354 | <li><a | 356 | <li><a |
355 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L154">ex_blend_bench.c</a></li> | 357 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L154">ex_blend_bench.c</a></li> |
356 | <li><a | 358 | <li><a |
357 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_client.c#L157">ex_enet_client.c</a></li> | 359 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_client.c#L157">ex_enet_client.c</a></li> |
358 | </ul> | 360 | </ul> |
359 | <h2 | 361 | <h2 |
360 | id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2> | 362 | 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> | 363 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_primitives_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
364 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_primitives_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
362 | <p><a | 365 | <p><a |
363 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source | 366 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source |
364 | Code</a></p> | 367 | Code</a></p> |
365 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise | 368 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise |
366 | returns·false.</p> | 369 | returns·false.</p> |
367 | <p>Since:·5.2.6</p> | 370 | <p>Since:·5.2.6</p> |
368 | <p>See·also:·<a | 371 | <p>See·also:·<a |
369 | href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a>, | 372 | href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a>, |
370 | <a | 373 | <a |
371 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> | 374 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> |
372 | <h2·id="al_shutdown_primitives_addon">al_shutdown_primitives_addon</h2> | 375 | <h2·id="al_shutdown_primitives_addon">al_shutdown_primitives_addon</h2> |
373 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 376 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
377 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
374 | <p><a | 378 | <p><a |
375 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L69">Source | 379 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L69">Source |
376 | Code</a></p> | 380 | Code</a></p> |
377 | <p>Shut·down·the·primitives·addon.·This·is·done·automatically·at·program | 381 | <p>Shut·down·the·primitives·addon.·This·is·done·automatically·at·program |
378 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> | 382 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> |
379 | <p>See·also:·<a | 383 | <p>See·also:·<a |
380 | href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a></p> | 384 | href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a></p> |
Offset 469, 15 lines modified | Offset 473, 17 lines modified | ||
469 | completely·covered·by·a·shape·or·completely·not·covered,·then·the·shape | 473 | completely·covered·by·a·shape·or·completely·not·covered,·then·the·shape |
470 | edges·will·be·sharp.·The·offsets·used·in·the·second·diagram·were·chosen | 474 | edges·will·be·sharp.·The·offsets·used·in·the·second·diagram·were·chosen |
471 | so·that·this·is·the·case:·if·you·use·those·offsets,·your·shapes·(if·they | 475 | so·that·this·is·the·case:·if·you·use·those·offsets,·your·shapes·(if·they |
472 | are·oriented·the·same·way·as·they·are·on·the·diagram)·should·look·the | 476 | are·oriented·the·same·way·as·they·are·on·the·diagram)·should·look·the |
473 | same·whether·multisampling·is·turned·on·or·off.</p> | 477 | same·whether·multisampling·is·turned·on·or·off.</p> |
474 | <h2·id="al_draw_line">al_draw_line</h2> | 478 | <h2·id="al_draw_line">al_draw_line</h2> |
475 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_line<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> | 479 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_line<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> |
480 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·thickness<span·class="op">)</span></span> | ||
481 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_line<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> | ||
476 | <span·id="cb7- | 482 | <span·id="cb7-4"><a·href="#cb7-4"·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> |
477 | <p><a | 483 | <p><a |
478 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L81">Source | 484 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L81">Source |
479 | Code</a></p> | 485 | Code</a></p> |
480 | <p>Draws·a·line·segment·between·two·points.</p> | 486 | <p>Draws·a·line·segment·between·two·points.</p> |
481 | <p><em>Parameters:</em></p> | 487 | <p><em>Parameters:</em></p> |
482 | <ul> | 488 | <ul> |
483 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> | 489 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> |
Offset 494, 15 lines modified | Offset 500, 17 lines modified | ||
494 | <li><a | 500 | <li><a |
495 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L17">ex_resize.c</a></li> | 501 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L17">ex_resize.c</a></li> |
496 | <li><a | 502 | <li><a |
497 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L59">ex_mouse_warp.c</a></li> | 503 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L59">ex_mouse_warp.c</a></li> |
498 | </ul> | 504 | </ul> |
499 | <h2·id="al_draw_triangle">al_draw_triangle</h2> | 505 | <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> | 506 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> |
507 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·x3<span·class="op">,</span>·<span·class="dt">float</span>·y3<span·class="op">,</span>·ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·thickness<span·class="op">)</span></span> | ||
508 | <span·id="cb8-3"><a·href="#cb8-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> | ||
501 | <span·id="cb8- | 509 | <span·id="cb8-4"><a·href="#cb8-4"·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><a | 510 | <p><a |
503 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L126">Source | 511 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L126">Source |
504 | Code</a></p> | 512 | Code</a></p> |
505 | <p>Draws·an·outlined·triangle.</p> | 513 | <p>Draws·an·outlined·triangle.</p> |
506 | <p><em>Parameters:</em></p> | 514 | <p><em>Parameters:</em></p> |
507 | <ul> | 515 | <ul> |
508 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> | 516 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> |
Offset 517, 15 lines modified | Offset 525, 17 lines modified | ||
517 | <p>Examples:</p> | 525 | <p>Examples:</p> |
518 | <ul> | 526 | <ul> |
519 | <li><a | 527 | <li><a |
520 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L321">ex_prim.c</a></li> | 528 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L321">ex_prim.c</a></li> |
521 | </ul> | 529 | </ul> |
522 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> | 530 | <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> | 531 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_filled_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> |
532 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·x3<span·class="op">,</span>·<span·class="dt">float</span>·y3<span·class="op">,</span>·ALLEGRO_COLOR·color<span·class="op">)</span></span> | ||
533 | <span·id="cb9-3"><a·href="#cb9-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_filled_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> | ||
524 | <span·id="cb9- | 534 | <span·id="cb9-4"><a·href="#cb9-4"·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><a | 535 | <p><a |
526 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L339">Source | 536 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L339">Source |
527 | Code</a></p> | 537 | Code</a></p> |
528 | <p>Draws·a·filled·triangle.</p> | 538 | <p>Draws·a·filled·triangle.</p> |
529 | <p><em>Parameters:</em></p> | 539 | <p><em>Parameters:</em></p> |
530 | <ul> | 540 | <ul> |
531 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> | 541 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> |
Offset 536, 15 lines modified | Offset 546, 17 lines modified | ||
536 | <p>Examples:</p> | 546 | <p>Examples:</p> |
537 | <ul> | 547 | <ul> |
538 | <li><a | 548 | <li><a |
539 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L350">ex_prim.c</a></li> | 549 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L350">ex_prim.c</a></li> |
540 | </ul> | 550 | </ul> |
541 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> | 551 | <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> | 552 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> |
553 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·thickness<span·class="op">)</span></span> | ||
554 | <span·id="cb10-3"><a·href="#cb10-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> | ||
543 | <span·id="cb10- | 555 | <span·id="cb10-4"><a·href="#cb10-4"·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><a | 556 | <p><a |
545 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L361">Source | 557 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L361">Source |
546 | Code</a></p> | 558 | Code</a></p> |
547 | <p>Draws·an·outlined·rectangle.</p> | 559 | <p>Draws·an·outlined·rectangle.</p> |
548 | <p><em>Parameters:</em></p> | 560 | <p><em>Parameters:</em></p> |
549 | <ul> | 561 | <ul> |
550 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the | 562 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the |
Offset 564, 15 lines modified | Offset 576, 17 lines modified | ||
Max diff block lines reached; 104227/118664 bytes (87.83%) of diff not shown. |
Offset 114, 35 lines modified | Offset 114, 39 lines modified | ||
114 | ··········o·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8R_\x8I_\x8M_\x8__\x8B_\x8U_\x8F_\x8F_\x8E_\x8R_\x8__\x8F_\x8L_\x8A_\x8G_\x8S | 114 | ··········o·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8R_\x8I_\x8M_\x8__\x8B_\x8U_\x8F_\x8F_\x8E_\x8R_\x8__\x8F_\x8L_\x8A_\x8G_\x8S |
115 | These·functions·are·declared·in·the·following·header·file.·Link·with | 115 | These·functions·are·declared·in·the·following·header·file.·Link·with |
116 | allegro_primitives. | 116 | allegro_primitives. |
117 | ·#include·<allegro5/allegro_primitives.h> | 117 | ·#include·<allegro5/allegro_primitives.h> |
118 | *\x8**\x8**\x8**\x8**\x8**\x8*·G\x8Ge\x8en\x8ne\x8er\x8ra\x8al\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 118 | *\x8**\x8**\x8**\x8**\x8**\x8*·G\x8Ge\x8en\x8ne\x8er\x8ra\x8al\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
119 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 119 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
120 | uint32_t·al_get_allegro_primitives_version(void) | 120 | uint32_t·al_get_allegro_primitives_version(void) |
121 | uint32_t·al_get_allegro_primitives_version(void) | ||
121 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 122 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
122 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 123 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
123 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 124 | _\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* | 125 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
125 | bool·al_init_primitives_addon(void) | 126 | bool·al_init_primitives_addon(void) |
127 | bool·al_init_primitives_addon(void) | ||
126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 128 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
127 | Initializes·the·primitives·addon. | 129 | Initializes·the·primitives·addon. |
128 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·True·on·success,·false·on·failure. | 130 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·True·on·success,·false·on·failure. |
129 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 131 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
130 | Examples: | 132 | Examples: |
131 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | 133 | ····*·_\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 | 134 | ····*·_\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 | 135 | ····*·_\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* | 136 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* |
135 | bool·al_is_primitives_addon_initialized(void) | 137 | bool·al_is_primitives_addon_initialized(void) |
138 | bool·al_is_primitives_addon_initialized(void) | ||
136 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 139 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
137 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. | 140 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. |
138 | Since:·5.2.6 | 141 | 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_\x8n | 142 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
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* | 143 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
141 | void·al_shutdown_primitives_addon(void) | 144 | void·al_shutdown_primitives_addon(void) |
145 | void·al_shutdown_primitives_addon(void) | ||
142 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 146 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
143 | Shut·down·the·primitives·addon.·This·is·done·automatically·at·program·exit,·but | 147 | Shut·down·the·primitives·addon.·This·is·done·automatically·at·program·exit,·but |
144 | can·be·called·any·time·the·user·wishes·as·well. | 148 | can·be·called·any·time·the·user·wishes·as·well. |
145 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 149 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
146 | *\x8**\x8**\x8**\x8**\x8**\x8*·H\x8Hi\x8ig\x8gh\x8h·l\x8le\x8ev\x8ve\x8el\x8l·d\x8dr\x8ra\x8aw\x8wi\x8in\x8ng\x8g·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 150 | *\x8**\x8**\x8**\x8**\x8**\x8*·H\x8Hi\x8ig\x8gh\x8h·l\x8le\x8ev\x8ve\x8el\x8l·d\x8dr\x8ra\x8aw\x8wi\x8in\x8ng\x8g·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
147 | High·level·drawing·routines·encompass·the·most·common·usage·of·this·addon:·to | 151 | High·level·drawing·routines·encompass·the·most·common·usage·of·this·addon:·to |
148 | draw·geometric·primitives,·both·smooth·(variations·on·the·circle·theme)·and | 152 | draw·geometric·primitives,·both·smooth·(variations·on·the·circle·theme)·and |
Offset 222, 78 lines modified | Offset 226, 90 lines modified | ||
222 | sharp.·The·offsets·used·in·the·second·diagram·were·chosen·so·that·this·is·the | 226 | sharp.·The·offsets·used·in·the·second·diagram·were·chosen·so·that·this·is·the |
223 | case:·if·you·use·those·offsets,·your·shapes·(if·they·are·oriented·the·same·way | 227 | case:·if·you·use·those·offsets,·your·shapes·(if·they·are·oriented·the·same·way |
224 | as·they·are·on·the·diagram)·should·look·the·same·whether·multisampling·is | 228 | as·they·are·on·the·diagram)·should·look·the·same·whether·multisampling·is |
225 | turned·on·or·off. | 229 | turned·on·or·off. |
226 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_l\x8li\x8in\x8ne\x8e·*\x8**\x8**\x8**\x8**\x8* | 230 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_l\x8li\x8in\x8ne\x8e·*\x8**\x8**\x8**\x8**\x8* |
227 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, | 231 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, |
228 | ···ALLEGRO_COLOR·color,·float·thickness) | 232 | ···ALLEGRO_COLOR·color,·float·thickness) |
233 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, | ||
234 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
229 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
230 | Draws·a·line·segment·between·two·points. | 236 | Draws·a·line·segment·between·two·points. |
231 | 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: |
232 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line | 238 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line |
233 | ····*·color·-·Color·of·the·line | 239 | ····*·color·-·Color·of·the·line |
234 | ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines | 240 | ····*·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_\x8e | 241 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8l_\x8i_\x8n_\x8e |
236 | Examples: | 242 | Examples: |
237 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 243 | ····*·_\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 | 244 | ····*·_\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 | 245 | ····*·_\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* | 246 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_t\x8tr\x8ri\x8ia\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
241 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 247 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
242 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | 248 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) |
249 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
250 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | ||
243 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 251 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
244 | Draws·an·outlined·triangle. | 252 | Draws·an·outlined·triangle. |
245 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 253 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
246 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 254 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
247 | ····*·color·-·Color·of·the·triangle | 255 | ····*·color·-·Color·of·the·triangle |
248 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 256 | ····*·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_\x8e | 257 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e |
250 | Examples: | 258 | Examples: |
251 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | 259 | ····*·_\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* | 260 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_t\x8tr\x8ri\x8ia\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
253 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 261 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
254 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | 262 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) |
263 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
264 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | ||
255 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 265 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
256 | Draws·a·filled·triangle. | 266 | Draws·a·filled·triangle. |
257 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 267 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
258 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 268 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
259 | ····*·color·-·Color·of·the·triangle | 269 | ····*·color·-·Color·of·the·triangle |
260 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e | 270 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e |
261 | Examples: | 271 | Examples: |
262 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | 272 | ····*·_\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* | 273 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
264 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 274 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
265 | ···ALLEGRO_COLOR·color,·float·thickness) | 275 | ···ALLEGRO_COLOR·color,·float·thickness) |
276 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
277 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
266 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 278 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
267 | Draws·an·outlined·rectangle. | 279 | Draws·an·outlined·rectangle. |
268 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 280 | 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·rectangle | 281 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
270 | ····*·color·-·Color·of·the·rectangle | 282 | ····*·color·-·Color·of·the·rectangle |
271 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 283 | ····*·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_\x8e | 284 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e |
273 | Examples: | 285 | Examples: |
274 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | 286 | ····*·_\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 | 287 | ····*·_\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 | 288 | ····*·_\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* | 289 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
278 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 290 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
279 | ···ALLEGRO_COLOR·color) | 291 | ···ALLEGRO_COLOR·color) |
292 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
293 | ···ALLEGRO_COLOR·color) | ||
280 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 294 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
281 | Draws·a·filled·rectangle. | 295 | Draws·a·filled·rectangle. |
282 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 296 | 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·rectangle | 297 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
284 | ····*·color·-·Color·of·the·rectangle | 298 | ····*·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_\x8e | 299 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e |
286 | Examples: | 300 | Examples: |
287 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | 301 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c |
288 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | 302 | ····*·_\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 | 303 | ····*·_\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* | 304 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_r\x8ro\x8ou\x8un\x8nd\x8de\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
291 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 305 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
292 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | 306 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) |
307 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
308 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | ||
293 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 309 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
294 | Draws·an·outlined·rounded·rectangle. | 310 | Draws·an·outlined·rounded·rectangle. |
295 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 311 | 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·rectangle | 312 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
Max diff block lines reached; 42698/50066 bytes (85.28%) of diff not shown. |
Offset 214, 15 lines modified | Offset 214, 16 lines modified | ||
214 | <li><a·href="#al_get_default_shader_source" | 214 | <li><a·href="#al_get_default_shader_source" |
215 | id="toc-al_get_default_shader_source">al_get_default_shader_source</a></li> | 215 | id="toc-al_get_default_shader_source">al_get_default_shader_source</a></li> |
216 | </ul> | 216 | </ul> |
217 | </nav> | 217 | </nav> |
218 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 218 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
219 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 219 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
220 | <h1·id="allegro_shader">ALLEGRO_SHADER</h1> | 220 | <h1·id="allegro_shader">ALLEGRO_SHADER</h1> |
221 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SHADER·ALLEGRO_SHADER<span·class="op">;</span></span> | 221 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SHADER·ALLEGRO_SHADER<span·class="op">;</span></span> |
222 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SHADER·ALLEGRO_SHADER<span·class="op">;</span></span></code></pre></div> | ||
222 | <p><a | 223 | <p><a |
223 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L14">Source | 224 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L14">Source |
224 | Code</a></p> | 225 | Code</a></p> |
225 | <p>An·<a·href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·a | 226 | <p>An·<a·href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·a |
226 | program·that·runs·on·the·GPU.·It·combines·both·a·vertex·and·a·pixel | 227 | program·that·runs·on·the·GPU.·It·combines·both·a·vertex·and·a·pixel |
227 | shader.·(In·OpenGL·terms,·an·<a | 228 | shader.·(In·OpenGL·terms,·an·<a |
228 | href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·actually·a | 229 | href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·actually·a |
Offset 239, 15 lines modified | Offset 240, 16 lines modified | ||
239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L39">ex_shader.cpp</a></li> | 240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L39">ex_shader.cpp</a></li> |
240 | <li><a | 241 | <li><a |
241 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L22">ex_shader_target.c</a></li> | 242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L22">ex_shader_target.c</a></li> |
242 | <li><a | 243 | <li><a |
243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L60">ex_prim_shader.c</a></li> | 244 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L60">ex_prim_shader.c</a></li> |
244 | </ul> | 245 | </ul> |
245 | <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1> | 246 | <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> | 247 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE<span·class="op">;</span></span> |
248 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE<span·class="op">;</span></span></code></pre></div> | ||
247 | <p><a | 249 | <p><a |
248 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source | 250 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source |
249 | Code</a></p> | 251 | Code</a></p> |
250 | <p>Used·with·<a | 252 | <p>Used·with·<a |
251 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a> | 253 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a> |
252 | and·<a | 254 | and·<a |
253 | href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a> | 255 | href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a> |
Offset 273, 15 lines modified | Offset 275, 16 lines modified | ||
273 | one·final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only | 275 | one·final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only |
274 | a·single·output·but·of·multiple·fragments·(for·example·when | 276 | a·single·output·but·of·multiple·fragments·(for·example·when |
275 | multi-sampling·is·being·used).</p> | 277 | multi-sampling·is·being·used).</p> |
276 | </dd> | 278 | </dd> |
277 | </dl> | 279 | </dl> |
278 | <p>Since:·5.1.0</p> | 280 | <p>Since:·5.1.0</p> |
279 | <h1·id="allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</h1> | 281 | <h1·id="allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</h1> |
280 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM<span·class="op">;</span></span> | 282 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM<span·class="op">;</span></span> |
283 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM<span·class="op">;</span></span></code></pre></div> | ||
281 | <p><a | 284 | <p><a |
282 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L37">Source | 285 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L37">Source |
283 | Code</a></p> | 286 | Code</a></p> |
284 | <p>The·underlying·platform·which·the·<a | 287 | <p>The·underlying·platform·which·the·<a |
285 | href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·built·on·top·of, | 288 | href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·built·on·top·of, |
286 | which·dictates·the·language·used·to·program·the·shader.</p> | 289 | which·dictates·the·language·used·to·program·the·shader.</p> |
287 | <ul> | 290 | <ul> |
Offset 63, 28 lines modified | Offset 63, 30 lines modified | ||
63 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8i_\x8n_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r | 63 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8i_\x8n_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r |
64 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8f_\x8l_\x8o_\x8a_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r | 64 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8f_\x8l_\x8o_\x8a_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r |
65 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 65 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
66 | These·functions·are·declared·in·the·main·Allegro·header·file: | 66 | These·functions·are·declared·in·the·main·Allegro·header·file: |
67 | ·#include·<allegro5/allegro.h> | 67 | ·#include·<allegro5/allegro.h> |
68 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* | 68 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* |
69 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; | 69 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; |
70 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; | ||
70 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 71 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
71 | An·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex | 72 | An·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex |
72 | and·a·pixel·shader.·(In·OpenGL·terms,·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·actually·a·p\x8pr\x8ro\x8og\x8gr\x8ra\x8am\x8m | 73 | and·a·pixel·shader.·(In·OpenGL·terms,·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·actually·a·p\x8pr\x8ro\x8og\x8gr\x8ra\x8am\x8m |
73 | which·has·one·or·more·s\x8sh\x8ha\x8ad\x8de\x8er\x8rs\x8s·attached.·This·can·be·confusing.) | 74 | which·has·one·or·more·s\x8sh\x8ha\x8ad\x8de\x8er\x8rs\x8s·attached.·This·can·be·confusing.) |
74 | The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be·provided | 75 | The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be·provided |
75 | either·as·GLSL·or·HLSL,·depending·on·the·value·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M·used | 76 | either·as·GLSL·or·HLSL,·depending·on·the·value·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M·used |
76 | when·creating·it. | 77 | when·creating·it. |
77 | Since:·5.1.0 | 78 | Since:·5.1.0 |
78 | Examples: | 79 | 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._\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__\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 | ····*·_\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* | 83 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
83 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | 84 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; |
85 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | ||
84 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 86 | _\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·specify | 87 | Used·with·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·and·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e·to·specify |
86 | how·to·interpret·the·attached·source. | 88 | how·to·interpret·the·attached·source. |
87 | ··ALLEGRO_VERTEX_SHADER | 89 | ··ALLEGRO_VERTEX_SHADER |
88 | ······A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program | 90 | ······A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program |
89 | ······will·output·exactly·one·vertex·at·a·time. | 91 | ······will·output·exactly·one·vertex·at·a·time. |
90 | ······When·Allegro’s·graphics·are·being·used·then·in·addition·to·all·vertices | 92 | ······When·Allegro’s·graphics·are·being·used·then·in·addition·to·all·vertices |
Offset 100, 14 lines modified | Offset 102, 15 lines modified | ||
100 | ······A·more·accurate·term·for·pixel·shader·would·be·fragment·shader·since·one | 102 | ······A·more·accurate·term·for·pixel·shader·would·be·fragment·shader·since·one |
101 | ······final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only·a | 103 | ······final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only·a |
102 | ······single·output·but·of·multiple·fragments·(for·example·when·multi-sampling | 104 | ······single·output·but·of·multiple·fragments·(for·example·when·multi-sampling |
103 | ······is·being·used). | 105 | ······is·being·used). |
104 | Since:·5.1.0 | 106 | Since:·5.1.0 |
105 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R_\x8_P\x8PL\x8LA\x8AT\x8TF\x8FO\x8OR\x8RM\x8M·*\x8**\x8**\x8**\x8**\x8**\x8* | 107 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R_\x8_P\x8PL\x8LA\x8AT\x8TF\x8FO\x8OR\x8RM\x8M·*\x8**\x8**\x8**\x8**\x8**\x8* |
106 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; | 108 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; |
109 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; | ||
107 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 110 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
108 | The·underlying·platform·which·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·built·on·top·of,·which | 111 | The·underlying·platform·which·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·built·on·top·of,·which |
109 | dictates·the·language·used·to·program·the·shader. | 112 | dictates·the·language·used·to·program·the·shader. |
110 | ····*·ALLEGRO_SHADER_AUTO·-·Pick·a·platform·automatically·given·the·current | 113 | ····*·ALLEGRO_SHADER_AUTO·-·Pick·a·platform·automatically·given·the·current |
111 | ······display·flags. | 114 | ······display·flags. |
112 | ····*·ALLEGRO_SHADER_GLSL·-·OpenGL·Shading·Language | 115 | ····*·ALLEGRO_SHADER_GLSL·-·OpenGL·Shading·Language |
113 | ····*·ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D) | 116 | ····*·ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D) |
Offset 184, 15 lines modified | Offset 184, 16 lines modified | ||
184 | <li><a·href="#al_get_errno"·id="toc-al_get_errno">al_get_errno</a></li> | 184 | <li><a·href="#al_get_errno"·id="toc-al_get_errno">al_get_errno</a></li> |
185 | <li><a·href="#al_set_errno"·id="toc-al_set_errno">al_set_errno</a></li> | 185 | <li><a·href="#al_set_errno"·id="toc-al_set_errno">al_set_errno</a></li> |
186 | </ul> | 186 | </ul> |
187 | </nav> | 187 | </nav> |
188 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 188 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
189 | <pre><code>·#include·<allegro5/allegro.h></code></pre> | 189 | <pre><code>·#include·<allegro5/allegro.h></code></pre> |
190 | <h1·id="allegro_state">ALLEGRO_STATE</h1> | 190 | <h1·id="allegro_state">ALLEGRO_STATE</h1> |
191 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_STATE·ALLEGRO_STATE<span·class="op">;</span></span> | 191 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_STATE·ALLEGRO_STATE<span·class="op">;</span></span> |
192 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_STATE·ALLEGRO_STATE<span·class="op">;</span></span></code></pre></div> | ||
192 | <p><a | 193 | <p><a |
193 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L49">Source | 194 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L49">Source |
194 | Code</a></p> | 195 | Code</a></p> |
195 | <p>Opaque·type·which·is·passed·to·<a | 196 | <p>Opaque·type·which·is·passed·to·<a |
196 | href="state.html#al_store_state">al_store_state</a>/<a | 197 | href="state.html#al_store_state">al_store_state</a>/<a |
197 | href="state.html#al_restore_state">al_restore_state</a>.</p> | 198 | href="state.html#al_restore_state">al_restore_state</a>.</p> |
198 | <p>The·various·state·kept·internally·by·Allegro·can·be·displayed·like | 199 | <p>The·various·state·kept·internally·by·Allegro·can·be·displayed·like |
Offset 228, 15 lines modified | Offset 229, 16 lines modified | ||
228 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L65">ex_blend_bench.c</a></li> | 229 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L65">ex_blend_bench.c</a></li> |
229 | <li><a | 230 | <li><a |
230 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L298">ex_blend2.cpp</a></li> | 231 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L298">ex_blend2.cpp</a></li> |
231 | <li><a | 232 | <li><a |
232 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L24">nihgui.cpp</a></li> | 233 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L24">nihgui.cpp</a></li> |
233 | </ul> | 234 | </ul> |
234 | <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1> | 235 | <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> | 236 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</span> |
237 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</span></code></pre></div> | ||
236 | <p><a | 238 | <p><a |
237 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source | 239 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source |
238 | Code</a></p> | 240 | Code</a></p> |
239 | <p>Flags·which·can·be·passed·to·<a | 241 | <p>Flags·which·can·be·passed·to·<a |
240 | href="state.html#al_store_state">al_store_state</a>/<a | 242 | href="state.html#al_store_state">al_store_state</a>/<a |
241 | href="state.html#al_restore_state">al_restore_state</a>·as·bit | 243 | href="state.html#al_restore_state">al_restore_state</a>·as·bit |
242 | combinations.·See·<a·href="state.html#al_store_state">al_store_state</a> | 244 | combinations.·See·<a·href="state.html#al_store_state">al_store_state</a> |
Offset 49, 14 lines modified | Offset 49, 15 lines modified | ||
49 | ····*·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e | 49 | ····*·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e |
50 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o | 50 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o |
51 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o | 51 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o |
52 | These·functions·are·declared·in·the·main·Allegro·header·file: | 52 | These·functions·are·declared·in·the·main·Allegro·header·file: |
53 | ·#include·<allegro5/allegro.h> | 53 | ·#include·<allegro5/allegro.h> |
54 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 54 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
55 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; | 55 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; |
56 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; | ||
56 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 57 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
57 | Opaque·type·which·is·passed·to·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e/_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e. | 58 | Opaque·type·which·is·passed·to·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e/_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e. |
58 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: | 59 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: |
59 | ··global | 60 | ··global |
60 | ······active·system·driver | 61 | ······active·system·driver |
61 | ··········current·config | 62 | ··········current·config |
62 | ··per·thread | 63 | ··per·thread |
Offset 82, 14 lines modified | Offset 83, 15 lines modified | ||
82 | thread·communication.) | 83 | thread·communication.) |
83 | Examples: | 84 | 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_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c |
85 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x82_\x8._\x8c_\x8p_\x8p | 86 | ····*·_\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 | ····*·_\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* | 88 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E_\x8_F\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
88 | typedef·enum·ALLEGRO_STATE_FLAGS | 89 | typedef·enum·ALLEGRO_STATE_FLAGS |
90 | typedef·enum·ALLEGRO_STATE_FLAGS | ||
89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 91 | _\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·bit | 92 | Flags·which·can·be·passed·to·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e/_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·as·bit |
91 | combinations.·See·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·for·the·list·of·flags. | 93 | 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* | 94 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
93 | void·al_restore_state(ALLEGRO_STATE·const·*state) | 95 | void·al_restore_state(ALLEGRO_STATE·const·*state) |
94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
95 | Restores·part·of·the·state·of·the·current·thread·from·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 97 | Restores·part·of·the·state·of·the·current·thread·from·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
Offset 232, 15 lines modified | Offset 232, 16 lines modified | ||
232 | be·the·version·of·Allegro·you·compiled·with,·and·B·=·xb.yb.zb.*·be·the | 232 | be·the·version·of·Allegro·you·compiled·with,·and·B·=·xb.yb.zb.*·be·the |
233 | version·of·Allegro·found·in·the·system·shared·library.</p> | 233 | version·of·Allegro·found·in·the·system·shared·library.</p> |
234 | <p>If·you·defined·<code>ALLEGRO_UNSTABLE</code>·before·including·Allegro | 234 | <p>If·you·defined·<code>ALLEGRO_UNSTABLE</code>·before·including·Allegro |
235 | headers,·then·version·A·is·compatible·with·B·only·if·xa.ya.za·= | 235 | headers,·then·version·A·is·compatible·with·B·only·if·xa.ya.za·= |
236 | xb.yb.zb.·Otherwise,·A·is·compatible·with·B·only·if·xa.ya·=·xb.yb.</p> | 236 | xb.yb.zb.·Otherwise,·A·is·compatible·with·B·only·if·xa.ya·=·xb.yb.</p> |
237 | <p>See·also:·<a·href="system.html#al_init">al_init</a></p> | 237 | <p>See·also:·<a·href="system.html#al_init">al_init</a></p> |
238 | <h1·id="al_init">al_init</h1> | 238 | <h1·id="al_init">al_init</h1> |
239 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_init</span><span·class="op">()</span><span·class="pp">····</span><span·class="op">(</span><span·class="pp">al_install_system</span><span·class="op">(</span><span·class="pp">ALLEGRO_VERSION_INT</span><span·class="op">,</span><span·class="pp">·atexit</span><span·class="op">))</span></span> | 239 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_init</span><span·class="op">()</span><span·class="pp">····</span><span·class="op">(</span><span·class="pp">al_install_system</span><span·class="op">(</span><span·class="pp">ALLEGRO_VERSION_INT</span><span·class="op">,</span><span·class="pp">·atexit</span><span·class="op">))</span></span> |
240 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_init</span><span·class="op">()</span><span·class="pp">····</span><span·class="op">(</span><span·class="pp">al_install_system</span><span·class="op">(</span><span·class="pp">ALLEGRO_VERSION_INT</span><span·class="op">,</span><span·class="pp">·atexit</span><span·class="op">))</span></span></code></pre></div> | ||
240 | <p><a | 241 | <p><a |
241 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L30">Source | 242 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L30">Source |
242 | Code</a></p> | 243 | Code</a></p> |
243 | <p>Like·<a·href="system.html#al_install_system">al_install_system</a>, | 244 | <p>Like·<a·href="system.html#al_install_system">al_install_system</a>, |
244 | but·automatically·passes·in·the·version·and·uses·the·atexit·function | 245 | but·automatically·passes·in·the·version·and·uses·the·atexit·function |
245 | visible·in·the·current·binary.</p> | 246 | visible·in·the·current·binary.</p> |
246 | <blockquote> | 247 | <blockquote> |
Offset 848, 15 lines modified | Offset 849, 16 lines modified | ||
848 | <p>Since:·5.1.12</p> | 849 | <p>Since:·5.1.12</p> |
849 | <p>Examples:</p> | 850 | <p>Examples:</p> |
850 | <ul> | 851 | <ul> |
851 | <li><a | 852 | <li><a |
852 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L1">ex_cpu.c</a></li> | 853 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L1">ex_cpu.c</a></li> |
853 | </ul> | 854 | </ul> |
854 | <h1·id="allegro_system_id">ALLEGRO_SYSTEM_ID</h1> | 855 | <h1·id="allegro_system_id">ALLEGRO_SYSTEM_ID</h1> |
855 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_SYSTEM_ID·<span·class="op">{</span></span> | 856 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_SYSTEM_ID·<span·class="op">{</span></span> |
857 | <span·id="cb21-2"><a·href="#cb21-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_SYSTEM_ID·<span·class="op">{</span></span></code></pre></div> | ||
856 | <p><a | 858 | <p><a |
857 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L15">Source | 859 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L15">Source |
858 | Code</a></p> | 860 | Code</a></p> |
859 | <p>The·system·Allegro·is·running·on.</p> | 861 | <p>The·system·Allegro·is·running·on.</p> |
860 | <ul> | 862 | <ul> |
861 | <li>ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system.</li> | 863 | <li>ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system.</li> |
862 | <li>ALLEGRO_SYSTEM_ID_XGLX·-·Xglx</li> | 864 | <li>ALLEGRO_SYSTEM_ID_XGLX·-·Xglx</li> |
Offset 81, 14 lines modified | Offset 81, 15 lines modified | ||
81 | Allegro·found·in·the·system·shared·library. | 81 | Allegro·found·in·the·system·shared·library. |
82 | If·you·defined·ALLEGRO_UNSTABLE·before·including·Allegro·headers,·then·version | 82 | If·you·defined·ALLEGRO_UNSTABLE·before·including·Allegro·headers,·then·version |
83 | A·is·compatible·with·B·only·if·xa.ya.za·=·xb.yb.zb.·Otherwise,·A·is·compatible | 83 | A·is·compatible·with·B·only·if·xa.ya.za·=·xb.yb.zb.·Otherwise,·A·is·compatible |
84 | with·B·only·if·xa.ya·=·xb.yb. | 84 | with·B·only·if·xa.ya·=·xb.yb. |
85 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t | 85 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t |
86 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 86 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
87 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) | 87 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) |
88 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) | ||
88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
89 | Like·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m,·but·automatically·passes·in·the·version·and·uses·the | 90 | Like·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m,·but·automatically·passes·in·the·version·and·uses·the |
90 | atexit·function·visible·in·the·current·binary. | 91 | atexit·function·visible·in·the·current·binary. |
91 | ·····Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final | 92 | ·····Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final |
92 | ·····game·binary.·In·particular,·do·not·call·it·inside·a·shared·library | 93 | ·····game·binary.·In·particular,·do·not·call·it·inside·a·shared·library |
93 | ·····unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to | 94 | ·····unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to |
94 | ·····call·al_install_system·either·with·a·NULL·atexit_ptr,·or·with·a | 95 | ·····call·al_install_system·either·with·a·NULL·atexit_ptr,·or·with·a |
Offset 581, 14 lines modified | Offset 582, 15 lines modified | ||
581 | returns·a·certain·“desirable”·number. | 582 | returns·a·certain·“desirable”·number. |
582 | This·function·may·be·called·prior·to·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t. | 583 | This·function·may·be·called·prior·to·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t. |
583 | Since:·5.1.12 | 584 | Since:·5.1.12 |
584 | Examples: | 585 | Examples: |
585 | ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c | 586 | ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c |
586 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SY\x8YS\x8ST\x8TE\x8EM\x8M_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* | 587 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SY\x8YS\x8ST\x8TE\x8EM\x8M_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* |
587 | enum·ALLEGRO_SYSTEM_ID·{ | 588 | enum·ALLEGRO_SYSTEM_ID·{ |
589 | enum·ALLEGRO_SYSTEM_ID·{ | ||
588 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 590 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
589 | The·system·Allegro·is·running·on. | 591 | The·system·Allegro·is·running·on. |
590 | ····*·ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system. | 592 | ····*·ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system. |
591 | ····*·ALLEGRO_SYSTEM_ID_XGLX·-·Xglx | 593 | ····*·ALLEGRO_SYSTEM_ID_XGLX·-·Xglx |
592 | ····*·ALLEGRO_SYSTEM_ID_WINDOWS·-·Windows | 594 | ····*·ALLEGRO_SYSTEM_ID_WINDOWS·-·Windows |
593 | ····*·ALLEGRO_SYSTEM_ID_MACOSX·-·macOS | 595 | ····*·ALLEGRO_SYSTEM_ID_MACOSX·-·macOS |
594 | ····*·ALLEGRO_SYSTEM_ID_ANDROID·-·Android | 596 | ····*·ALLEGRO_SYSTEM_ID_ANDROID·-·Android |
Offset 223, 43 lines modified | Offset 223, 46 lines modified | ||
223 | would·be·difficult·at·best,·hence·the·behaviour·of·the·following | 223 | would·be·difficult·at·best,·hence·the·behaviour·of·the·following |
224 | functions·will·differ·subtly·on·different·platforms·(more·so·than | 224 | functions·will·differ·subtly·on·different·platforms·(more·so·than |
225 | usual).·Your·best·bet·is·to·be·aware·of·this·and·code·to·the | 225 | usual).·Your·best·bet·is·to·be·aware·of·this·and·code·to·the |
226 | intersection·of·the·semantics·and·avoid·edge·cases.</p> | 226 | intersection·of·the·semantics·and·avoid·edge·cases.</p> |
227 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 227 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
228 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 228 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
229 | <h1·id="allegro_thread">ALLEGRO_THREAD</h1> | 229 | <h1·id="allegro_thread">ALLEGRO_THREAD</h1> |
230 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD<span·class="op">;</span></span> | 230 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD<span·class="op">;</span></span> |
231 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD<span·class="op">;</span></span></code></pre></div> | ||
231 | <p><a | 232 | <p><a |
232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source | 233 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source |
233 | Code</a></p> | 234 | Code</a></p> |
234 | <p>An·opaque·structure·representing·a·thread.</p> | 235 | <p>An·opaque·structure·representing·a·thread.</p> |
235 | <p>Examples:</p> | 236 | <p>Examples:</p> |
236 | <ul> | 237 | <ul> |
237 | <li><a | 238 | <li><a |
238 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L97">ex_threads.c</a></li> | 239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L97">ex_threads.c</a></li> |
239 | <li><a | 240 | <li><a |
240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L150">ex_threads2.c</a></li> | 241 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L150">ex_threads2.c</a></li> |
241 | <li><a | 242 | <li><a |
242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L16">ex_loading_thread.c</a></li> | 243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L16">ex_loading_thread.c</a></li> |
243 | </ul> | 244 | </ul> |
244 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> | 245 | <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> | 246 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX<span·class="op">;</span></span> |
247 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX<span·class="op">;</span></span></code></pre></div> | ||
246 | <p><a | 248 | <p><a |
247 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source | 249 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source |
248 | Code</a></p> | 250 | Code</a></p> |
249 | <p>An·opaque·structure·representing·a·mutex.</p> | 251 | <p>An·opaque·structure·representing·a·mutex.</p> |
250 | <p>Examples:</p> | 252 | <p>Examples:</p> |
251 | <ul> | 253 | <ul> |
252 | <li><a | 254 | <li><a |
253 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L27">ex_threads2.c</a></li> | 255 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L27">ex_threads2.c</a></li> |
254 | <li><a | 256 | <li><a |
255 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L14">ex_loading_thread.c</a></li> | 257 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L14">ex_loading_thread.c</a></li> |
256 | </ul> | 258 | </ul> |
257 | <h1·id="allegro_cond">ALLEGRO_COND</h1> | 259 | <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> | 260 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND<span·class="op">;</span></span> |
261 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND<span·class="op">;</span></span></code></pre></div> | ||
259 | <p><a | 262 | <p><a |
260 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source | 263 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source |
261 | Code</a></p> | 264 | Code</a></p> |
262 | <p>An·opaque·structure·representing·a·condition·variable.</p> | 265 | <p>An·opaque·structure·representing·a·condition·variable.</p> |
263 | <p>Examples:</p> | 266 | <p>Examples:</p> |
264 | <ul> | 267 | <ul> |
265 | <li><a | 268 | <li><a |
Offset 72, 29 lines modified | Offset 72, 32 lines modified | ||
72 | subtly·on·different·platforms·(more·so·than·usual).·Your·best·bet·is·to·be | 72 | subtly·on·different·platforms·(more·so·than·usual).·Your·best·bet·is·to·be |
73 | aware·of·this·and·code·to·the·intersection·of·the·semantics·and·avoid·edge | 73 | aware·of·this·and·code·to·the·intersection·of·the·semantics·and·avoid·edge |
74 | cases. | 74 | cases. |
75 | These·functions·are·declared·in·the·main·Allegro·header·file: | 75 | These·functions·are·declared·in·the·main·Allegro·header·file: |
76 | ·#include·<allegro5/allegro.h> | 76 | ·#include·<allegro5/allegro.h> |
77 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TH\x8HR\x8RE\x8EA\x8AD\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* | 77 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TH\x8HR\x8RE\x8EA\x8AD\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* |
78 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | 78 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; |
79 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | ||
79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 80 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
80 | An·opaque·structure·representing·a·thread. | 81 | An·opaque·structure·representing·a·thread. |
81 | Examples: | 82 | 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_\x8._\x8c |
83 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | 84 | ····*·_\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 | ····*·_\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* | 86 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MU\x8UT\x8TE\x8EX\x8X·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | 87 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; |
88 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | ||
87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
88 | An·opaque·structure·representing·a·mutex. | 90 | An·opaque·structure·representing·a·mutex. |
89 | Examples: | 91 | Examples: |
90 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | 92 | ····*·_\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 | 93 | ····*·_\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* | 94 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8ND\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* |
93 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | 95 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; |
96 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | ||
94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 97 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
95 | An·opaque·structure·representing·a·condition·variable. | 98 | An·opaque·structure·representing·a·condition·variable. |
96 | Examples: | 99 | Examples: |
97 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | 100 | ····*·_\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* | 101 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
99 | ALLEGRO_THREAD·*al_create_thread( | 102 | ALLEGRO_THREAD·*al_create_thread( |
100 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) | 103 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) |
Offset 208, 53 lines modified | Offset 208, 58 lines modified | ||
208 | <li><a·href="#al_get_timer_event_source" | 208 | <li><a·href="#al_get_timer_event_source" |
209 | id="toc-al_get_timer_event_source">al_get_timer_event_source</a></li> | 209 | id="toc-al_get_timer_event_source">al_get_timer_event_source</a></li> |
210 | </ul> | 210 | </ul> |
211 | </nav> | 211 | </nav> |
212 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 212 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
213 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 213 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
214 | <h1·id="allegro_timer">ALLEGRO_TIMER</h1> | 214 | <h1·id="allegro_timer">ALLEGRO_TIMER</h1> |
215 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER<span·class="op">;</span></span> | 215 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER<span·class="op">;</span></span> |
216 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER<span·class="op">;</span></span></code></pre></div> | ||
216 | <p><a | 217 | <p><a |
217 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source | 218 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source |
218 | Code</a></p> | 219 | Code</a></p> |
219 | <p>This·is·an·abstract·data·type·representing·a·timer·object.</p> | 220 | <p>This·is·an·abstract·data·type·representing·a·timer·object.</p> |
220 | <p>Examples:</p> | 221 | <p>Examples:</p> |
221 | <ul> | 222 | <ul> |
222 | <li><a | 223 | <li><a |
223 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L188">ex_enet_server.c</a></li> | 224 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L188">ex_enet_server.c</a></li> |
224 | <li><a | 225 | <li><a |
225 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L22">ex_timer_pause.c</a></li> | 226 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L22">ex_timer_pause.c</a></li> |
226 | <li><a | 227 | <li><a |
227 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L46">ex_user_events.c</a></li> | 228 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L46">ex_user_events.c</a></li> |
228 | </ul> | 229 | </ul> |
229 | <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1> | 230 | <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> | 231 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_USECS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">······</span><span·class="op">((</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="fl">1000000.0</span><span·class="op">)</span></span> |
232 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_USECS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">······</span><span·class="op">((</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="fl">1000000.0</span><span·class="op">)</span></span></code></pre></div> | ||
231 | <p><a | 233 | <p><a |
232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source | 234 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source |
233 | Code</a></p> | 235 | Code</a></p> |
234 | <p>Convert·microseconds·to·seconds.</p> | 236 | <p>Convert·microseconds·to·seconds.</p> |
235 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> | 237 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> |
236 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_MSECS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">······</span><span·class="op">((</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="fl">1000.0</span><span·class="op">)</span></span> | 238 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_MSECS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">······</span><span·class="op">((</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="fl">1000.0</span><span·class="op">)</span></span> |
239 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_MSECS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">······</span><span·class="op">((</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="fl">1000.0</span><span·class="op">)</span></span></code></pre></div> | ||
237 | <p><a | 240 | <p><a |
238 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L33">Source | 241 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L33">Source |
239 | Code</a></p> | 242 | Code</a></p> |
240 | <p>Convert·milliseconds·to·seconds.</p> | 243 | <p>Convert·milliseconds·to·seconds.</p> |
241 | <h1·id="allegro_bps_to_secs">ALLEGRO_BPS_TO_SECS</h1> | 244 | <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> | 245 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_BPS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">1.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span> |
246 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_BPS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">1.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span></code></pre></div> | ||
243 | <p><a | 247 | <p><a |
244 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L37">Source | 248 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L37">Source |
245 | Code</a></p> | 249 | Code</a></p> |
246 | <p>Convert·beats·per·second·to·seconds.</p> | 250 | <p>Convert·beats·per·second·to·seconds.</p> |
247 | <p>Examples:</p> | 251 | <p>Examples:</p> |
248 | <ul> | 252 | <ul> |
249 | <li><a | 253 | <li><a |
250 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L719">ex_prim.c</a></li> | 254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L719">ex_prim.c</a></li> |
251 | </ul> | 255 | </ul> |
252 | <h1·id="allegro_bpm_to_secs">ALLEGRO_BPM_TO_SECS</h1> | 256 | <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> | 257 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_BPM_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">60.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span> |
258 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_BPM_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">60.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span></code></pre></div> | ||
254 | <p><a | 259 | <p><a |
255 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L41">Source | 260 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L41">Source |
256 | Code</a></p> | 261 | Code</a></p> |
257 | <p>Convert·beats·per·minute·to·seconds.</p> | 262 | <p>Convert·beats·per·minute·to·seconds.</p> |
258 | <h1·id="al_create_timer">al_create_timer</h1> | 263 | <h1·id="al_create_timer">al_create_timer</h1> |
259 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_TIMER·<span·class="op">*</span>al_create_timer<span·class="op">(</span><span·class="dt">double</span>·speed_secs<span·class="op">)</span></span></code></pre></div> | 264 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_TIMER·<span·class="op">*</span>al_create_timer<span·class="op">(</span><span·class="dt">double</span>·speed_secs<span·class="op">)</span></span></code></pre></div> |
260 | <p><a | 265 | <p><a |
Offset 60, 36 lines modified | Offset 60, 41 lines modified | ||
60 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d | 60 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d |
61 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d | 61 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d |
62 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 62 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
63 | These·functions·are·declared·in·the·main·Allegro·header·file: | 63 | These·functions·are·declared·in·the·main·Allegro·header·file: |
64 | ·#include·<allegro5/allegro.h> | 64 | ·#include·<allegro5/allegro.h> |
65 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* | 65 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* |
66 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; | 66 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; |
67 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; | ||
67 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
68 | This·is·an·abstract·data·type·representing·a·timer·object. | 69 | This·is·an·abstract·data·type·representing·a·timer·object. |
69 | Examples: | 70 | Examples: |
70 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | 71 | ····*·_\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__\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 | ····*·_\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* | 74 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
74 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | 75 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) |
76 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | ||
75 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
76 | Convert·microseconds·to·seconds. | 78 | 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* | 79 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MS\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
78 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | 80 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) |
81 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | ||
79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 82 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
80 | Convert·milliseconds·to·seconds. | 83 | 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* | 84 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
82 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | 85 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) |
86 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | ||
83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
84 | Convert·beats·per·second·to·seconds. | 88 | Convert·beats·per·second·to·seconds. |
85 | Examples: | 89 | Examples: |
86 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | 90 | ····*·_\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* | 91 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PM\x8M_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
88 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | 92 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) |
93 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | ||
89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
90 | Convert·beats·per·minute·to·seconds. | 95 | 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* | 96 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
92 | ALLEGRO_TIMER·*al_create_timer(double·speed_secs) | 97 | ALLEGRO_TIMER·*al_create_timer(double·speed_secs) |
93 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 98 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
94 | Allocates·and·initializes·a·timer.·If·successful,·a·pointer·to·a·new·timer | 99 | Allocates·and·initializes·a·timer.·If·successful,·a·pointer·to·a·new·timer |
95 | object·is·returned,·otherwise·NULL·is·returned.·s\x8sp\x8pe\x8ee\x8ed\x8d_\x8_s\x8se\x8ec\x8cs\x8s·is·in·seconds·per | 100 | object·is·returned,·otherwise·NULL·is·returned.·s\x8sp\x8pe\x8ee\x8ed\x8d_\x8_s\x8se\x8ec\x8cs\x8s·is·in·seconds·per |
Offset 200, 31 lines modified | Offset 200, 34 lines modified | ||
200 | <li><a·href="#al_get_touch_input_mouse_emulation_event_source" | 200 | <li><a·href="#al_get_touch_input_mouse_emulation_event_source" |
201 | id="toc-al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</a></li> | 201 | id="toc-al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</a></li> |
202 | </ul> | 202 | </ul> |
203 | </nav> | 203 | </nav> |
204 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 204 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
205 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 205 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
206 | <h1·id="allegro_touch_input">ALLEGRO_TOUCH_INPUT</h1> | 206 | <h1·id="allegro_touch_input">ALLEGRO_TOUCH_INPUT</h1> |
207 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT<span·class="op">;</span></span> | 207 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT<span·class="op">;</span></span> |
208 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT<span·class="op">;</span></span></code></pre></div> | ||
208 | <p><a | 209 | <p><a |
209 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L34">Source | 210 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L34">Source |
210 | Code</a></p> | 211 | Code</a></p> |
211 | <p>An·abstract·data·type·representing·a·physical·touch·screen·or·touch | 212 | <p>An·abstract·data·type·representing·a·physical·touch·screen·or·touch |
212 | pad.</p> | 213 | pad.</p> |
213 | <p>Since:·5.1.0</p> | 214 | <p>Since:·5.1.0</p> |
214 | <h1 | 215 | <h1 |
215 | id="allegro_touch_input_max_touch_count">ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT</h1> | 216 | id="allegro_touch_input_max_touch_count">ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT</h1> |
216 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········</span><span·class="dv">16</span></span> | 217 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········</span><span·class="dv">16</span></span> |
218 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········</span><span·class="dv">16</span></span></code></pre></div> | ||
217 | <p><a | 219 | <p><a |
218 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L29">Source | 220 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L29">Source |
219 | Code</a></p> | 221 | Code</a></p> |
220 | <p>The·maximum·amount·of·simultaneous·touches·that·can·be·detected.</p> | 222 | <p>The·maximum·amount·of·simultaneous·touches·that·can·be·detected.</p> |
221 | <p>Since:·5.1.0</p> | 223 | <p>Since:·5.1.0</p> |
222 | <h1·id="allegro_touch_state">ALLEGRO_TOUCH_STATE</h1> | 224 | <h1·id="allegro_touch_state">ALLEGRO_TOUCH_STATE</h1> |
223 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE<span·class="op">;</span></span> | 225 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE<span·class="op">;</span></span> |
226 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE<span·class="op">;</span></span></code></pre></div> | ||
224 | <p><a | 227 | <p><a |
225 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L44">Source | 228 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L44">Source |
226 | Code</a></p> | 229 | Code</a></p> |
227 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a | 230 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a |
228 | particular·instant.</p> | 231 | particular·instant.</p> |
229 | <p>Public·fields·(read·only):</p> | 232 | <p>Public·fields·(read·only):</p> |
230 | <ul> | 233 | <ul> |
Offset 238, 28 lines modified | Offset 241, 30 lines modified | ||
238 | one).</li> | 241 | one).</li> |
239 | <li>display·-·The·<a | 242 | <li>display·-·The·<a |
240 | href="display.html#allegro_display">ALLEGRO_DISPLAY</a>·that·was | 243 | href="display.html#allegro_display">ALLEGRO_DISPLAY</a>·that·was |
241 | touched.</li> | 244 | touched.</li> |
242 | </ul> | 245 | </ul> |
243 | <p>Since:·5.1.0</p> | 246 | <p>Since:·5.1.0</p> |
244 | <h1·id="allegro_touch_input_state">ALLEGRO_TOUCH_INPUT_STATE</h1> | 247 | <h1·id="allegro_touch_input_state">ALLEGRO_TOUCH_INPUT_STATE</h1> |
245 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE<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><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE<span·class="op">;</span></span> |
249 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE<span·class="op">;</span></span></code></pre></div> | ||
246 | <p><a | 250 | <p><a |
247 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L39">Source | 251 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L39">Source |
248 | Code</a></p> | 252 | Code</a></p> |
249 | <p>This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches | 253 | <p>This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches |
250 | at·a·particular·instant.</p> | 254 | at·a·particular·instant.</p> |
251 | <p>Public·fields·(read·only):</p> | 255 | <p>Public·fields·(read·only):</p> |
252 | <ul> | 256 | <ul> |
253 | <li>touches·-·an·array·of·<a | 257 | <li>touches·-·an·array·of·<a |
254 | href="touch.html#allegro_touch_state">ALLEGRO_TOUCH_STATE</a></li> | 258 | href="touch.html#allegro_touch_state">ALLEGRO_TOUCH_STATE</a></li> |
255 | </ul> | 259 | </ul> |
256 | <p>Since:·5.1.0</p> | 260 | <p>Since:·5.1.0</p> |
257 | <h1·id="allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</h1> | 261 | <h1·id="allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</h1> |
258 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</span> | 262 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</span> |
263 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</span></code></pre></div> | ||
259 | <p><a | 264 | <p><a |
260 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L71">Source | 265 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L71">Source |
261 | Code</a></p> | 266 | Code</a></p> |
262 | <p>Type·of·mouse·emulation·to·apply.</p> | 267 | <p>Type·of·mouse·emulation·to·apply.</p> |
263 | <dl> | 268 | <dl> |
264 | <dt>ALLEGRO_MOUSE_EMULATION_NONE</dt> | 269 | <dt>ALLEGRO_MOUSE_EMULATION_NONE</dt> |
265 | <dd> | 270 | <dd> |
Offset 56, 46 lines modified | Offset 56, 51 lines modified | ||
56 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8m_\x8o_\x8d_\x8e | 56 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8m_\x8o_\x8d_\x8e |
57 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 57 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
58 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 58 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
59 | These·functions·are·declared·in·the·main·Allegro·header·file: | 59 | These·functions·are·declared·in·the·main·Allegro·header·file: |
60 | ·#include·<allegro5/allegro.h> | 60 | ·#include·<allegro5/allegro.h> |
61 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_I\x8IN\x8NP\x8PU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 61 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_I\x8IN\x8NP\x8PU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
62 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; | 62 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; |
63 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; | ||
63 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 64 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
64 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. | 65 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. |
65 | Since:·5.1.0 | 66 | Since:·5.1.0 |
66 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_I\x8IN\x8NP\x8PU\x8UT\x8T_\x8_M\x8MA\x8AX\x8X_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_C\x8CO\x8OU\x8UN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 67 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_I\x8IN\x8NP\x8PU\x8UT\x8T_\x8_M\x8MA\x8AX\x8X_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_C\x8CO\x8OU\x8UN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
67 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 | 68 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 |
69 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 | ||
68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 70 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
69 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. | 71 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. |
70 | Since:·5.1.0 | 72 | Since:·5.1.0 |
71 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 73 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
72 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; | 74 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; |
75 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; | ||
73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 76 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
74 | This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a | 77 | This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a |
75 | particular·instant. | 78 | particular·instant. |
76 | Public·fields·(read·only): | 79 | Public·fields·(read·only): |
77 | ····*·id·-·identifier·of·the·touch.·If·the·touch·is·valid,·this·is·positive. | 80 | ····*·id·-·identifier·of·the·touch.·If·the·touch·is·valid,·this·is·positive. |
78 | ····*·x·-·touch·x·position | 81 | ····*·x·-·touch·x·position |
79 | ····*·y·-·touch·y·position | 82 | ····*·y·-·touch·y·position |
80 | ····*·dx·-·touch·relative·x·position | 83 | ····*·dx·-·touch·relative·x·position |
81 | ····*·dy·-·touch·relative·y·position | 84 | ····*·dy·-·touch·relative·y·position |
82 | ····*·primary·-·TRUE·if·this·touch·is·the·primary·one·(usually·the·first·one). | 85 | ····*·primary·-·TRUE·if·this·touch·is·the·primary·one·(usually·the·first·one). |
83 | ····*·display·-·The·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y·that·was·touched. | 86 | ····*·display·-·The·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y·that·was·touched. |
84 | Since:·5.1.0 | 87 | Since:·5.1.0 |
85 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_I\x8IN\x8NP\x8PU\x8UT\x8T_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 88 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_I\x8IN\x8NP\x8PU\x8UT\x8T_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; | 89 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; |
90 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; | ||
87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 91 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
88 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at·a | 92 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at·a |
89 | particular·instant. | 93 | particular·instant. |
90 | Public·fields·(read·only): | 94 | Public·fields·(read·only): |
91 | ····*·touches·-·an·array·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8O_\x8U_\x8C_\x8H_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 95 | ····*·touches·-·an·array·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8O_\x8U_\x8C_\x8H_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
92 | Since:·5.1.0 | 96 | Since:·5.1.0 |
93 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MO\x8OU\x8US\x8SE\x8E_\x8_E\x8EM\x8MU\x8UL\x8LA\x8AT\x8TI\x8IO\x8ON\x8N_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 97 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MO\x8OU\x8US\x8SE\x8E_\x8_E\x8EM\x8MU\x8UL\x8LA\x8AT\x8TI\x8IO\x8ON\x8N_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
94 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE | 98 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE |
99 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE | ||
95 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 100 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
96 | Type·of·mouse·emulation·to·apply. | 101 | Type·of·mouse·emulation·to·apply. |
97 | ··ALLEGRO_MOUSE_EMULATION_NONE | 102 | ··ALLEGRO_MOUSE_EMULATION_NONE |
98 | ······Disables·mouse·emulation. | 103 | ······Disables·mouse·emulation. |
99 | ··ALLEGRO_MOUSE_EMULATION_TRANSPARENT | 104 | ··ALLEGRO_MOUSE_EMULATION_TRANSPARENT |
100 | ······Enables·transparent·mouse·emulation. | 105 | ······Enables·transparent·mouse·emulation. |
101 | ··ALLEGRO_MOUSE_EMULATION_INCLUSIVE | 106 | ··ALLEGRO_MOUSE_EMULATION_INCLUSIVE |
Offset 301, 15 lines modified | Offset 301, 16 lines modified | ||
301 | <span·id="cb4-11"><a·href="#cb4-11"·aria-hidden="true"·tabindex="-1"></a>al_use_transform<span·class="op">(&</span>T<span·class="op">);</span></span></code></pre></div> | 301 | <span·id="cb4-11"><a·href="#cb4-11"·aria-hidden="true"·tabindex="-1"></a>al_use_transform<span·class="op">(&</span>T<span·class="op">);</span></span></code></pre></div> |
302 | <p>it·does·exactly·the·same·as:</p> | 302 | <p>it·does·exactly·the·same·as:</p> |
303 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>al_identity_transform<span·class="op">(&</span>T<span·class="op">);</span></span> | 303 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>al_identity_transform<span·class="op">(&</span>T<span·class="op">);</span></span> |
304 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>al_scale_transform<span·class="op">(&</span>T<span·class="op">,</span>·<span·class="dv">2</span><span·class="op">,</span>·<span·class="dv">2</span><span·class="op">);</span></span> | 304 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>al_scale_transform<span·class="op">(&</span>T<span·class="op">,</span>·<span·class="dv">2</span><span·class="op">,</span>·<span·class="dv">2</span><span·class="op">);</span></span> |
305 | <span·id="cb5-3"><a·href="#cb5-3"·aria-hidden="true"·tabindex="-1"></a>al_translate_transform<span·class="op">(&</span>T<span·class="op">,</span>·<span·class="dv">100</span><span·class="op">,</span>·<span·class="dv">0</span><span·class="op">);</span></span> | 305 | <span·id="cb5-3"><a·href="#cb5-3"·aria-hidden="true"·tabindex="-1"></a>al_translate_transform<span·class="op">(&</span>T<span·class="op">,</span>·<span·class="dv">100</span><span·class="op">,</span>·<span·class="dv">0</span><span·class="op">);</span></span> |
306 | <span·id="cb5-4"><a·href="#cb5-4"·aria-hidden="true"·tabindex="-1"></a>al_use_transform<span·class="op">(&</span>T<span·class="op">);</span></span></code></pre></div> | 306 | <span·id="cb5-4"><a·href="#cb5-4"·aria-hidden="true"·tabindex="-1"></a>al_use_transform<span·class="op">(&</span>T<span·class="op">);</span></span></code></pre></div> |
307 | <h1·id="allegro_transform">ALLEGRO_TRANSFORM</h1> | 307 | <h1·id="allegro_transform">ALLEGRO_TRANSFORM</h1> |
308 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM<span·class="op">;</span></span> | 308 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM<span·class="op">;</span></span> |
309 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM<span·class="op">;</span></span></code></pre></div> | ||
309 | <p><a | 310 | <p><a |
310 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/transformations.h#L12">Source | 311 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/transformations.h#L12">Source |
311 | Code</a></p> | 312 | Code</a></p> |
312 | <p>Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms | 313 | <p>Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms |
313 | use·only·a·small·subsection·of·this·matrix,·namely·the·top·left·2x2 | 314 | 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> | 315 | matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values.</p> |
315 | <p><em>Fields:</em></p> | 316 | <p><em>Fields:</em></p> |
Offset 130, 14 lines modified | Offset 130, 15 lines modified | ||
130 | it·does·exactly·the·same·as: | 130 | it·does·exactly·the·same·as: |
131 | al_identity_transform(&T); | 131 | al_identity_transform(&T); |
132 | al_scale_transform(&T,·2,·2); | 132 | al_scale_transform(&T,·2,·2); |
133 | al_translate_transform(&T,·100,·0); | 133 | al_translate_transform(&T,·100,·0); |
134 | al_use_transform(&T); | 134 | al_use_transform(&T); |
135 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TR\x8RA\x8AN\x8NS\x8SF\x8FO\x8OR\x8RM\x8M·*\x8**\x8**\x8**\x8**\x8**\x8* | 135 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TR\x8RA\x8AN\x8NS\x8SF\x8FO\x8OR\x8RM\x8M·*\x8**\x8**\x8**\x8**\x8**\x8* |
136 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | 136 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; |
137 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | ||
137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 138 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
138 | Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms·use·only·a | 139 | Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms·use·only·a |
139 | small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right | 140 | small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right |
140 | most·2x1·matrix,·for·a·total·of·6·values. | 141 | most·2x1·matrix,·for·a·total·of·6·values. |
141 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: | 142 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: |
142 | ····*·m·-·A·4x4·float·matrix | 143 | ····*·m·-·A·4x4·float·matrix |
143 | Examples: | 144 | Examples: |
Offset 437, 15 lines modified | Offset 437, 16 lines modified | ||
437 | <p>For·actual·text·processing,·where·you·want·to·specify·positions·with | 437 | <p>For·actual·text·processing,·where·you·want·to·specify·positions·with |
438 | code·point·indices,·you·should·use·<a | 438 | code·point·indices,·you·should·use·<a |
439 | href="utf8.html#al_ustr_offset">al_ustr_offset</a>·to·find·the·code·unit | 439 | href="utf8.html#al_ustr_offset">al_ustr_offset</a>·to·find·the·code·unit |
440 | offset·position.·However,·most·of·the·time·you·would·probably·just·work | 440 | offset·position.·However,·most·of·the·time·you·would·probably·just·work |
441 | with·byte·offsets.</p> | 441 | with·byte·offsets.</p> |
442 | <h1·id="utf-8-string-types">UTF-8·string·types</h1> | 442 | <h1·id="utf-8-string-types">UTF-8·string·types</h1> |
443 | <h2·id="allegro_ustr">ALLEGRO_USTR</h2> | 443 | <h2·id="allegro_ustr">ALLEGRO_USTR</h2> |
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> | 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> |
445 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR<span·class="op">;</span></span></code></pre></div> | ||
445 | <p><a | 446 | <p><a |
446 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source | 447 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source |
447 | Code</a></p> | 448 | Code</a></p> |
448 | <p>An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain | 449 | <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, | 450 | UTF-8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences, |
450 | including·NULs.</p> | 451 | including·NULs.</p> |
451 | <p>Examples:</p> | 452 | <p>Examples:</p> |
Offset 454, 15 lines modified | Offset 455, 16 lines modified | ||
454 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L248">ex_font_multiline.cpp</a></li> | 455 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L248">ex_font_multiline.cpp</a></li> |
455 | <li><a | 456 | <li><a |
456 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L39">nihgui.cpp</a></li> | 457 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L39">nihgui.cpp</a></li> |
457 | <li><a | 458 | <li><a |
458 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L57">ex_blend.c</a></li> | 459 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L57">ex_blend.c</a></li> |
459 | </ul> | 460 | </ul> |
460 | <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2> | 461 | <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> | 462 | <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> |
463 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO<span·class="op">;</span></span></code></pre></div> | ||
462 | <p><a | 464 | <p><a |
463 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source | 465 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source |
464 | Code</a></p> | 466 | Code</a></p> |
465 | <p>A·type·that·holds·additional·information·for·an·<a | 467 | <p>A·type·that·holds·additional·information·for·an·<a |
466 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an | 468 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an |
467 | external·memory·buffer.·You·can·convert·it·back·to·<a | 469 | external·memory·buffer.·You·can·convert·it·back·to·<a |
468 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·via·<a | 470 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·via·<a |
Offset 191, 24 lines modified | Offset 191, 26 lines modified | ||
191 | actually·store·arbitrary·data·in·the·ALLEGRO_USTRs.) | 191 | actually·store·arbitrary·data·in·the·ALLEGRO_USTRs.) |
192 | For·actual·text·processing,·where·you·want·to·specify·positions·with·code·point | 192 | For·actual·text·processing,·where·you·want·to·specify·positions·with·code·point |
193 | indices,·you·should·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find·the·code·unit·offset·position. | 193 | indices,·you·should·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find·the·code·unit·offset·position. |
194 | However,·most·of·the·time·you·would·probably·just·work·with·byte·offsets. | 194 | However,·most·of·the·time·you·would·probably·just·work·with·byte·offsets. |
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 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; | ||
198 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 199 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
199 | An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF- | 200 | An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF- |
200 | 8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including | 201 | 8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including |
201 | NULs. | 202 | NULs. |
202 | Examples: | 203 | Examples: |
203 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | 204 | ····*·_\x8e_\x8x_\x8__\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 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p |
205 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c | 206 | ····*·_\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* | 207 | *\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; | 208 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; |
209 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; | ||
208 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 210 | _\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·an | 211 | 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·via | 212 | 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. | 213 | _\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. | 214 | 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: | 215 | Examples: |
214 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | 216 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p |
Offset 229, 15 lines modified | Offset 229, 16 lines modified | ||
229 | allegro_video.</p> | 229 | allegro_video.</p> |
230 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_video.h></span></span></code></pre></div> | 230 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_video.h></span></span></code></pre></div> |
231 | <p>Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·<a | 231 | <p>Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·<a |
232 | href="http://xiph.org/"·class="uri">http://xiph.org/</a>·for | 232 | href="http://xiph.org/"·class="uri">http://xiph.org/</a>·for |
233 | installation·instructions,·licensing·information·and·supported·video | 233 | installation·instructions,·licensing·information·and·supported·video |
234 | formats.</p> | 234 | formats.</p> |
235 | <h1·id="allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</h1> | 235 | <h1·id="allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</h1> |
236 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</span> | 236 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</span> |
237 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</span></code></pre></div> | ||
237 | <p><a | 238 | <p><a |
238 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L35">Source | 239 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L35">Source |
239 | Code</a></p> | 240 | Code</a></p> |
240 | <p>Events·sent·by·<a | 241 | <p>Events·sent·by·<a |
241 | href="video.html#al_get_video_event_source">al_get_video_event_source</a>.</p> | 242 | href="video.html#al_get_video_event_source">al_get_video_event_source</a>.</p> |
242 | <h2 | 243 | <h2 |
243 | id="allegro_event_video_frame_show">ALLEGRO_EVENT_VIDEO_FRAME_SHOW</h2> | 244 | id="allegro_event_video_frame_show">ALLEGRO_EVENT_VIDEO_FRAME_SHOW</h2> |
Offset 262, 15 lines modified | Offset 263, 16 lines modified | ||
262 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> | 263 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> |
263 | <dd> | 264 | <dd> |
264 | The·video·which·generated·the·event. | 265 | The·video·which·generated·the·event. |
265 | </dd> | 266 | </dd> |
266 | </dl> | 267 | </dl> |
267 | <p>Since:·5.1.0</p> | 268 | <p>Since:·5.1.0</p> |
268 | <h1·id="allegro_video_position_type">ALLEGRO_VIDEO_POSITION_TYPE</h1> | 269 | <h1·id="allegro_video_position_type">ALLEGRO_VIDEO_POSITION_TYPE</h1> |
269 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE<span·class="op">;</span></span> | 270 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE<span·class="op">;</span></span> |
271 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE<span·class="op">;</span></span></code></pre></div> | ||
270 | <p><a | 272 | <p><a |
271 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L51">Source | 273 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L51">Source |
272 | Code</a></p> | 274 | Code</a></p> |
273 | <p>Used·with·<a | 275 | <p>Used·with·<a |
274 | href="video.html#al_get_video_position">al_get_video_position</a>·to | 276 | href="video.html#al_get_video_position">al_get_video_position</a>·to |
275 | specify·which·position·to·retrieve.·If·these·get·out·of·sync,·audio·and | 277 | specify·which·position·to·retrieve.·If·these·get·out·of·sync,·audio·and |
276 | video·may·be·out·of·sync·in·the·display·of·the·video.</p> | 278 | video·may·be·out·of·sync·in·the·display·of·the·video.</p> |
Offset 284, 79 lines modified | Offset 286, 86 lines modified | ||
284 | <li><p>ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that | 286 | <li><p>ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that |
285 | has·been·decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL | 287 | has·been·decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL |
286 | if·audio·decode·is·driving·the·position,·which·is·common·to·keep·audio | 288 | if·audio·decode·is·driving·the·position,·which·is·common·to·keep·audio |
287 | and·video·in·sync.</p></li> | 289 | and·video·in·sync.</p></li> |
288 | </ul> | 290 | </ul> |
289 | <p>Since:·5.1.11</p> | 291 | <p>Since:·5.1.11</p> |
290 | <h1·id="al_init_video_addon">al_init_video_addon</h1> | 292 | <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> | 293 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
294 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
292 | <p><a | 295 | <p><a |
293 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L275">Source | 296 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L275">Source |
294 | Code</a></p> | 297 | Code</a></p> |
295 | <p>Initializes·the·video·addon.</p> | 298 | <p>Initializes·the·video·addon.</p> |
296 | <p>Since:·5.1.12</p> | 299 | <p>Since:·5.1.12</p> |
297 | <p>Examples:</p> | 300 | <p>Examples:</p> |
298 | <ul> | 301 | <ul> |
299 | <li><a | 302 | <li><a |
300 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L114">ex_video.c</a></li> | 303 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L114">ex_video.c</a></li> |
301 | </ul> | 304 | </ul> |
302 | <h1 | 305 | <h1 |
303 | id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1> | 306 | 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> | 307 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_video_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
308 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_video_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
305 | <p><a | 309 | <p><a |
306 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L297">Source | 310 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L297">Source |
307 | Code</a></p> | 311 | Code</a></p> |
308 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns | 312 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns |
309 | false.</p> | 313 | false.</p> |
310 | <p>Since:·5.2.6</p> | 314 | <p>Since:·5.2.6</p> |
311 | <h1·id="al_shutdown_video_addon">al_shutdown_video_addon</h1> | 315 | <h1·id="al_shutdown_video_addon">al_shutdown_video_addon</h1> |
312 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 316 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
317 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
313 | <p><a | 318 | <p><a |
314 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L305">Source | 319 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L305">Source |
315 | Code</a></p> | 320 | Code</a></p> |
316 | <p>Shut·down·the·video·addon.·This·is·done·automatically·at·program | 321 | <p>Shut·down·the·video·addon.·This·is·done·automatically·at·program |
317 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> | 322 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> |
318 | <p>Since:·5.1.12</p> | 323 | <p>Since:·5.1.12</p> |
319 | <h1·id="al_get_allegro_video_version">al_get_allegro_video_version</h1> | 324 | <h1·id="al_get_allegro_video_version">al_get_allegro_video_version</h1> |
320 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_video_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 325 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_video_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
326 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_video_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
321 | <p><a | 327 | <p><a |
322 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L318">Source | 328 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L318">Source |
323 | Code</a></p> | 329 | Code</a></p> |
324 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 330 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
325 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 331 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
326 | <p>Since:·5.1.12</p> | 332 | <p>Since:·5.1.12</p> |
327 | <h1·id="al_open_video">al_open_video</h1> | 333 | <h1·id="al_open_video">al_open_video</h1> |
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> | 334 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_VIDEO·<span·class="op">*</span>al_open_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span> |
335 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_VIDEO·<span·class="op">*</span>al_open_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> | ||
329 | <p><a | 336 | <p><a |
330 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L100">Source | 337 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L100">Source |
331 | Code</a></p> | 338 | Code</a></p> |
332 | <p>Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the | 339 | <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> | 340 | meta·info·so·you·can·query·e.g. the·size·or·audio·rate.</p> |
334 | <p>Since:·5.1.0</p> | 341 | <p>Since:·5.1.0</p> |
335 | <p>Examples:</p> | 342 | <p>Examples:</p> |
336 | <ul> | 343 | <ul> |
337 | <li><a | 344 | <li><a |
338 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L141">ex_video.c</a></li> | 345 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L141">ex_video.c</a></li> |
339 | </ul> | 346 | </ul> |
340 | <h1·id="al_identify_video">al_identify_video</h1> | 347 | <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> | 348 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span> |
349 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> | ||
342 | <p><a | 350 | <p><a |
343 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L334">Source | 351 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L334">Source |
344 | Code</a></p> | 352 | Code</a></p> |
345 | <p>This·works·exactly·as·<a | 353 | <p>This·works·exactly·as·<a |
346 | href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you | 354 | href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you |
347 | specify·the·filename·of·the·file·for·which·to·detect·the·type·and·not·a | 355 | specify·the·filename·of·the·file·for·which·to·detect·the·type·and·not·a |
348 | file·handle.·The·extension,·if·any,·of·the·passed·filename·is·not·taken | 356 | file·handle.·The·extension,·if·any,·of·the·passed·filename·is·not·taken |
349 | into·account·-·only·the·file·contents.</p> | 357 | into·account·-·only·the·file·contents.</p> |
350 | <p>Since:·5.2.8</p> | 358 | <p>Since:·5.2.8</p> |
351 | <p>See·also:·<a | 359 | <p>See·also:·<a |
352 | href="video.html#al_init_video_addon">al_init_video_addon</a>,·<a | 360 | href="video.html#al_init_video_addon">al_init_video_addon</a>,·<a |
353 | href="video.html#al_identify_video_f">al_identify_video_f</a></p> | 361 | href="video.html#al_identify_video_f">al_identify_video_f</a></p> |
354 | <h1·id="al_identify_video_f">al_identify_video_f</h1> | 362 | <h1·id="al_identify_video_f">al_identify_video_f</h1> |
355 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>fp<span·class="op">)</span></span> | 363 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>fp<span·class="op">)</span></span> |
364 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>fp<span·class="op">)</span></span></code></pre></div> | ||
356 | <p><a | 365 | <p><a |
357 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L326">Source | 366 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L326">Source |
358 | Code</a></p> | 367 | Code</a></p> |
359 | <p>Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by | 368 | <p>Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by |
360 | reading·the·first·few·bytes.·By·default·Allegro·cannot·recognize·any | 369 | reading·the·first·few·bytes.·By·default·Allegro·cannot·recognize·any |
361 | file·types,·but·calling·<a | 370 | file·types,·but·calling·<a |
362 | href="video.html#al_init_video_addon">al_init_video_addon</a>·will·add | 371 | href="video.html#al_init_video_addon">al_init_video_addon</a>·will·add |
Offset 365, 111 lines modified | Offset 374, 120 lines modified | ||
365 | type,·including·the·leading·dot.·For·example·“.ogv”.·Returns·NULL·if·the | 374 | type,·including·the·leading·dot.·For·example·“.ogv”.·Returns·NULL·if·the |
366 | video·type·cannot·be·determined.</p> | 375 | video·type·cannot·be·determined.</p> |
367 | <p>Since:·5.2.8</p> | 376 | <p>Since:·5.2.8</p> |
368 | <p>See·also:·<a | 377 | <p>See·also:·<a |
369 | href="video.html#al_init_video_addon">al_init_video_addon</a>,·<a | 378 | href="video.html#al_init_video_addon">al_init_video_addon</a>,·<a |
370 | href="video.html#al_identify_video">al_identify_video</a></p> | 379 | href="video.html#al_identify_video">al_identify_video</a></p> |
Max diff block lines reached; 18452/31488 bytes (58.60%) of diff not shown. |
Offset 70, 14 lines modified | Offset 70, 15 lines modified | ||
70 | These·functions·are·declared·in·the·following·header·file.·Link·with | 70 | These·functions·are·declared·in·the·following·header·file.·Link·with |
71 | allegro_video. | 71 | allegro_video. |
72 | ·#include·<allegro5/allegro_video.h> | 72 | ·#include·<allegro5/allegro_video.h> |
73 | Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·_\x8h_\x8t_\x8t_\x8p_\x8:_\x8/_\x8/_\x8x_\x8i_\x8p_\x8h_\x8._\x8o_\x8r_\x8g_\x8/·for | 73 | Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·_\x8h_\x8t_\x8t_\x8p_\x8:_\x8/_\x8/_\x8x_\x8i_\x8p_\x8h_\x8._\x8o_\x8r_\x8g_\x8/·for |
74 | installation·instructions,·licensing·information·and·supported·video·formats. | 74 | installation·instructions,·licensing·information·and·supported·video·formats. |
75 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 75 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
76 | enum·ALLEGRO_VIDEO_EVENT_TYPE | 76 | enum·ALLEGRO_VIDEO_EVENT_TYPE |
77 | enum·ALLEGRO_VIDEO_EVENT_TYPE | ||
77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 78 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
78 | Events·sent·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e. | 79 | Events·sent·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e. |
79 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_F\x8FR\x8RA\x8AM\x8ME\x8E_\x8_S\x8SH\x8HO\x8OW\x8W·*\x8**\x8**\x8**\x8**\x8* | 80 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_F\x8FR\x8RA\x8AM\x8ME\x8E_\x8_S\x8SH\x8HO\x8OW\x8W·*\x8**\x8**\x8**\x8**\x8* |
80 | This·event·is·sent·when·it·is·time·to·show·a·new·frame.·Once·you·receive·this | 81 | This·event·is·sent·when·it·is·time·to·show·a·new·frame.·Once·you·receive·this |
81 | event,·you·can·draw·the·current·frame·(as·returned·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e). | 82 | event,·you·can·draw·the·current·frame·(as·returned·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e). |
82 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e·will·continue·returning·the·same·frame·until·the·next | 83 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e·will·continue·returning·the·same·frame·until·the·next |
83 | ALLEGRO_EVENT_VIDEO_FRAME_SHOW·is·sent. | 84 | ALLEGRO_EVENT_VIDEO_FRAME_SHOW·is·sent. |
Offset 89, 14 lines modified | Offset 90, 15 lines modified | ||
89 | be·possible·to·seek·to·an·earlier·part·of·the·video·and·set·the·video·to·play | 90 | be·possible·to·seek·to·an·earlier·part·of·the·video·and·set·the·video·to·play |
90 | to·resume·playback. | 91 | to·resume·playback. |
91 | ··user.data1·(ALLEGRO_VIDEO·*) | 92 | ··user.data1·(ALLEGRO_VIDEO·*) |
92 | ······The·video·which·generated·the·event. | 93 | ······The·video·which·generated·the·event. |
93 | Since:·5.1.0 | 94 | Since:·5.1.0 |
94 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_P\x8PO\x8OS\x8SI\x8IT\x8TI\x8IO\x8ON\x8N_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 95 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_P\x8PO\x8OS\x8SI\x8IT\x8TI\x8IO\x8ON\x8N_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
95 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; | 96 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; |
97 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; | ||
96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 98 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
97 | Used·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n·to·specify·which·position·to·retrieve.·If·these | 99 | Used·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n·to·specify·which·position·to·retrieve.·If·these |
98 | get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the·display·of·the | 100 | get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the·display·of·the |
99 | video. | 101 | video. |
100 | ····*·ALLEGRO_VIDEO_POSITION_ACTUAL·-·The·amount·of·time·the·video·has·been | 102 | ····*·ALLEGRO_VIDEO_POSITION_ACTUAL·-·The·amount·of·time·the·video·has·been |
101 | ······playing.·If·the·video·has·audio·then·this·value·can·be·ahead·of | 103 | ······playing.·If·the·video·has·audio·then·this·value·can·be·ahead·of |
102 | ······ALLEGRO_VIDEO_POSITION_VIDEO_DECODE·when·video·decoding·lags. | 104 | ······ALLEGRO_VIDEO_POSITION_VIDEO_DECODE·when·video·decoding·lags. |
Offset 106, 142 lines modified | Offset 108, 160 lines modified | ||
106 | ····*·ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that·has·been | 108 | ····*·ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that·has·been |
107 | ······decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL·if·audio | 109 | ······decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL·if·audio |
108 | ······decode·is·driving·the·position,·which·is·common·to·keep·audio·and·video | 110 | ······decode·is·driving·the·position,·which·is·common·to·keep·audio·and·video |
109 | ······in·sync. | 111 | ······in·sync. |
110 | Since:·5.1.11 | 112 | 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* | 113 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
112 | bool·al_init_video_addon(void) | 114 | bool·al_init_video_addon(void) |
115 | bool·al_init_video_addon(void) | ||
113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
114 | Initializes·the·video·addon. | 117 | Initializes·the·video·addon. |
115 | Since:·5.1.12 | 118 | Since:·5.1.12 |
116 | Examples: | 119 | Examples: |
117 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | 120 | ····*·_\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* | 121 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
119 | bool·al_is_video_addon_initialized(void) | 122 | bool·al_is_video_addon_initialized(void) |
123 | bool·al_is_video_addon_initialized(void) | ||
120 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
121 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. | 125 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. |
122 | Since:·5.2.6 | 126 | 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* | 127 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
124 | void·al_shutdown_video_addon(void) | 128 | void·al_shutdown_video_addon(void) |
129 | void·al_shutdown_video_addon(void) | ||
125 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 130 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
126 | Shut·down·the·video·addon.·This·is·done·automatically·at·program·exit,·but·can | 131 | Shut·down·the·video·addon.·This·is·done·automatically·at·program·exit,·but·can |
127 | be·called·any·time·the·user·wishes·as·well. | 132 | be·called·any·time·the·user·wishes·as·well. |
128 | Since:·5.1.12 | 133 | Since:·5.1.12 |
129 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 134 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
130 | uint32_t·al_get_allegro_video_version(void) | 135 | uint32_t·al_get_allegro_video_version(void) |
136 | uint32_t·al_get_allegro_video_version(void) | ||
131 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
132 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 138 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
133 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 139 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
134 | Since:·5.1.12 | 140 | 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* | 141 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
136 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | 142 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) |
143 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | ||
137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 144 | _\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·so | 145 | 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. | 146 | you·can·query·e.g. the·size·or·audio·rate. |
140 | Since:·5.1.0 | 147 | Since:·5.1.0 |
141 | Examples: | 148 | Examples: |
142 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | 149 | ····*·_\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* | 150 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8id\x8de\x8en\x8nt\x8ti\x8if\x8fy\x8y_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
144 | char·const·*al_identify_video(char·const·*filename) | 151 | char·const·*al_identify_video(char·const·*filename) |
152 | char·const·*al_identify_video(char·const·*filename) | ||
145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 153 | _\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·the | 154 | This·works·exactly·as·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f·but·you·specify·the·filename·of·the |
147 | file·for·which·to·detect·the·type·and·not·a·file·handle.·The·extension,·if·any, | 155 | 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. | 156 | of·the·passed·filename·is·not·taken·into·account·-·only·the·file·contents. |
149 | Since:·5.2.8 | 157 | Since:·5.2.8 |
150 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f | 158 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f |
151 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8id\x8de\x8en\x8nt\x8ti\x8if\x8fy\x8y_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8**\x8* | 159 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8id\x8de\x8en\x8nt\x8ti\x8if\x8fy\x8y_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8**\x8* |
152 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) | 160 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) |
161 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) | ||
153 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 162 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
154 | Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by·reading·the | 163 | Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by·reading·the |
155 | first·few·bytes.·By·default·Allegro·cannot·recognize·any·file·types,·but | 164 | first·few·bytes.·By·default·Allegro·cannot·recognize·any·file·types,·but |
156 | calling·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n·will·add·detection·of·the·types·it·can·read. | 165 | calling·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n·will·add·detection·of·the·types·it·can·read. |
157 | Returns·a·pointer·to·a·static·string·with·a·file·extension·for·the·type, | 166 | Returns·a·pointer·to·a·static·string·with·a·file·extension·for·the·type, |
158 | including·the·leading·dot.·For·example·“.ogv”.·Returns·NULL·if·the·video·type | 167 | including·the·leading·dot.·For·example·“.ogv”.·Returns·NULL·if·the·video·type |
159 | cannot·be·determined. | 168 | cannot·be·determined. |
160 | Since:·5.2.8 | 169 | Since:·5.2.8 |
161 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o | 170 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o |
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* | 171 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8os\x8se\x8e_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
163 | void·al_close_video(ALLEGRO_VIDEO·*video) | 172 | void·al_close_video(ALLEGRO_VIDEO·*video) |
173 | void·al_close_video(ALLEGRO_VIDEO·*video) | ||
164 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 174 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
165 | Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is | 175 | Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is |
166 | invalid·after·the·function·returns. | 176 | invalid·after·the·function·returns. |
167 | Since:·5.1.0 | 177 | Since:·5.1.0 |
168 | Examples: | 178 | Examples: |
169 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | 179 | ····*·_\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* | 180 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
171 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | 181 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) |
182 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | ||
172 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 183 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
173 | Starts·playing·the·video·from·the·beginning. | 184 | Starts·playing·the·video·from·the·beginning. |
174 | Since:·5.1.0 | 185 | Since:·5.1.0 |
175 | Examples: | 186 | Examples: |
176 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | 187 | ····*·_\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* | 188 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_w\x8wi\x8it\x8th\x8h_\x8_v\x8vo\x8oi\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
178 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | 189 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) |
190 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | ||
179 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 191 | _\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. | 192 | 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.0 | 193 | 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* | 194 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
183 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | 195 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) |
196 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | ||
184 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 197 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
185 | Get·an·event·source·for·the·video.·The·possible·events·are·described·under | 198 | 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. | 199 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8V_\x8I_\x8D_\x8E_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E. |
187 | Since:·5.1.0 | 200 | Since:·5.1.0 |
188 | Examples: | 201 | Examples: |
189 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | 202 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c |
Max diff block lines reached; 4392/11705 bytes (37.52%) of diff not shown. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_AUDIO_DEPTH·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_DEPTH·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | enum·ALLEGRO_AUDIO_DEPTH | 10 | enum·ALLEGRO_AUDIO_DEPTH |
11 | enum·ALLEGRO_AUDIO_DEPTH | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Sample·depth·and·type·as·well·as·signedness. | 14 | Sample·depth·and·type·as·well·as·signedness. |
14 | Mixers·only·use·32\-bit·signed·float·(\-1..+1),·or·16\-bit·signed | 15 | Mixers·only·use·32\-bit·signed·float·(\-1..+1),·or·16\-bit·signed |
15 | integers. | 16 | integers. |
16 | Signedness·is·determined·by·an·\[lq]unsigned\[rq]·bit\-flag·applied·to | 17 | Signedness·is·determined·by·an·\[lq]unsigned\[rq]·bit\-flag·applied·to |
17 | the·depth·value. | 18 | the·depth·value. |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_AUDIO_DEVICE·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_DEVICE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_AUDIO_DEVICE·ALLEGRO_AUDIO_DEVICE; | 10 | typedef·struct·ALLEGRO_AUDIO_DEVICE·ALLEGRO_AUDIO_DEVICE; |
11 | typedef·struct·ALLEGRO_AUDIO_DEVICE·ALLEGRO_AUDIO_DEVICE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·opaque·datatype·that·represents·an·audio·device. | 14 | An·opaque·datatype·that·represents·an·audio·device. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_AUDIO_EVENT_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_EVENT_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | enum·ALLEGRO_AUDIO_EVENT_TYPE | 10 | enum·ALLEGRO_AUDIO_EVENT_TYPE |
11 | enum·ALLEGRO_AUDIO_EVENT_TYPE | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Events·sent·by·al_get_audio_stream_event_source(3alleg5)·or | 14 | Events·sent·by·al_get_audio_stream_event_source(3alleg5)·or |
14 | al_get_audio_recorder_event_source(3alleg5). | 15 | al_get_audio_recorder_event_source(3alleg5). |
15 | .SS·ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT | 16 | .SS·ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT |
16 | Sent·when·a·stream·fragment·is·ready·to·be·filled·in. | 17 | Sent·when·a·stream·fragment·is·ready·to·be·filled·in. |
17 | See·al_get_audio_stream_fragment(3alleg5). | 18 | See·al_get_audio_stream_fragment(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_AUDIO_PAN_NONE·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_PAN_NONE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | #define·ALLEGRO_AUDIO_PAN_NONE······(\-1000.0f) | 10 | #define·ALLEGRO_AUDIO_PAN_NONE······(\-1000.0f) |
11 | #define·ALLEGRO_AUDIO_PAN_NONE······(\-1000.0f) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·special·value·for·the·pan·property·of·sample·instances·and·audio | 14 | A·special·value·for·the·pan·property·of·sample·instances·and·audio |
14 | streams. | 15 | streams. |
15 | Use·this·value·to·disable·panning·on·sample·instances·and·audio·streams, | 16 | Use·this·value·to·disable·panning·on·sample·instances·and·audio·streams, |
16 | and·play·them·without·attentuation·implied·by·panning·support. | 17 | and·play·them·without·attentuation·implied·by·panning·support. |
17 | .PP | 18 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_AUDIO_RECORDER·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_RECORDER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_AUDIO_RECORDER·ALLEGRO_AUDIO_RECORDER; | 10 | typedef·struct·ALLEGRO_AUDIO_RECORDER·ALLEGRO_AUDIO_RECORDER; |
11 | typedef·struct·ALLEGRO_AUDIO_RECORDER·ALLEGRO_AUDIO_RECORDER; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·opaque·datatype·that·represents·a·recording·device. | 14 | An·opaque·datatype·that·represents·a·recording·device. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.1 | 16 | 5.1.1 |
16 | .RS | 17 | .RS |
17 | .PP | 18 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_AUDIO_RECORDER_EVENT·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_RECORDER_EVENT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_AUDIO_RECORDER_EVENT·ALLEGRO_AUDIO_RECORDER_EVENT; | 10 | typedef·struct·ALLEGRO_AUDIO_RECORDER_EVENT·ALLEGRO_AUDIO_RECORDER_EVENT; |
11 | typedef·struct·ALLEGRO_AUDIO_RECORDER_EVENT·ALLEGRO_AUDIO_RECORDER_EVENT; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Structure·that·holds·the·audio·recorder·event·data. | 14 | Structure·that·holds·the·audio·recorder·event·data. |
14 | Every·event·type·will·contain: | 15 | Every·event·type·will·contain: |
15 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
16 | \&.source:·pointer·to·the·audio·recorder | 17 | \&.source:·pointer·to·the·audio·recorder |
17 | .PP | 18 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_AUDIO_STREAM·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_STREAM·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM; | 10 | typedef·struct·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM; |
11 | typedef·struct·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the | 14 | An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the |
14 | sound·device,·in·real\-time. | 15 | sound·device,·in·real\-time. |
15 | This·is·done·by·reading·from·a·buffer,·which·is·split·into·a·number·of | 16 | This·is·done·by·reading·from·a·buffer,·which·is·split·into·a·number·of |
16 | fragments. | 17 | fragments. |
17 | Whenever·a·fragment·has·finished·playing,·the·user·can·refill·it·with | 18 | Whenever·a·fragment·has·finished·playing,·the·user·can·refill·it·with |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_BITMAP·\-·Allegro·5·API | 5 | ALLEGRO_BITMAP·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | 10 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; |
11 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Abstract·type·representing·a·bitmap·(2D·image). | 14 | Abstract·type·representing·a·bitmap·(2D·image). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_BITMAP_WRAP·\-·Allegro·5·API | 5 | ALLEGRO_BITMAP_WRAP·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ | 10 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ |
11 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Controls·the·how·the·pixel·color·is·determined·from·a·texture·querying | 14 | Controls·the·how·the·pixel·color·is·determined·from·a·texture·querying |
14 | the·texture·coordinates·are·outside·the·usual·bounds. | 15 | the·texture·coordinates·are·outside·the·usual·bounds. |
15 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
16 | ALLEGRO_BITMAP_WRAP_DEFAULT·\-·The·default·behavior. | 17 | ALLEGRO_BITMAP_WRAP_DEFAULT·\-·The·default·behavior. |
17 | This·corresponds·to·ALLEGRO_BITMAP_WRAP_REPEAT·when·using·the·primitives | 18 | This·corresponds·to·ALLEGRO_BITMAP_WRAP_REPEAT·when·using·the·primitives |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_BPM_TO_SECS·\-·Allegro·5·API | 5 | ALLEGRO_BPM_TO_SECS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | 10 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) |
11 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Convert·beats·per·minute·to·seconds. | 14 | Convert·beats·per·minute·to·seconds. |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_BPS_TO_SECS·\-·Allegro·5·API | 5 | ALLEGRO_BPS_TO_SECS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | 10 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) |
11 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Convert·beats·per·second·to·seconds. | 14 | Convert·beats·per·second·to·seconds. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_CHANNEL_CONF·\-·Allegro·5·API | 5 | ALLEGRO_CHANNEL_CONF·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | enum·ALLEGRO_CHANNEL_CONF | 10 | enum·ALLEGRO_CHANNEL_CONF |
11 | enum·ALLEGRO_CHANNEL_CONF | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Speaker·configuration·(mono,·stereo,·2.1,·etc). | 14 | Speaker·configuration·(mono,·stereo,·2.1,·etc). |
14 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
15 | ALLEGRO_CHANNEL_CONF_1 | 16 | ALLEGRO_CHANNEL_CONF_1 |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | ALLEGRO_CHANNEL_CONF_2 | 18 | ALLEGRO_CHANNEL_CONF_2 |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | ALLEGRO_COLOR·\-·Allegro·5·API | 5 | ALLEGRO_COLOR·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; | 10 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; |
11 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent | 14 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent |
14 | way. | 15 | way. |
15 | Use·al_map_rgb(3alleg5)·et·al.\·and·al_unmap_rgb(3alleg5)·et·al.\·to | 16 | Use·al_map_rgb(3alleg5)·et·al.\·and·al_unmap_rgb(3alleg5)·et·al.\·to |
16 | translate·from·and·to·various·color·representations. | 17 | translate·from·and·to·various·color·representations. |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_COND·\-·Allegro·5·API | 5 | ALLEGRO_COND·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | 10 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; |
11 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·opaque·structure·representing·a·condition·variable. | 14 | An·opaque·structure·representing·a·condition·variable. |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_CONFIG·\-·Allegro·5·API | 5 | ALLEGRO_CONFIG·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; | 10 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; |
11 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·abstract·configuration·structure. | 14 | An·abstract·configuration·structure. |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | ALLEGRO_CONFIG_ENTRY·\-·Allegro·5·API | 5 | ALLEGRO_CONFIG_ENTRY·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | 10 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; |
11 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration | 14 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration |
14 | section. | 15 | section. |
15 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
16 | al_get_first_config_entry(3alleg5),·al_get_next_config_entry(3alleg5) | 17 | al_get_first_config_entry(3alleg5),·al_get_next_config_entry(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_CONFIG_SECTION·\-·Allegro·5·API | 5 | ALLEGRO_CONFIG_SECTION·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | 10 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; |
11 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·opaque·structure·used·for·iterating·across·sections·in·a | 14 | An·opaque·structure·used·for·iterating·across·sections·in·a |
14 | configuration·structure. | 15 | configuration·structure. |
15 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
16 | al_get_first_config_section(3alleg5), | 17 | al_get_first_config_section(3alleg5), |
17 | al_get_next_config_section(3alleg5) | 18 | al_get_next_config_section(3alleg5) |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_DISPLAY·\-·Allegro·5·API | 5 | ALLEGRO_DISPLAY·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | 10 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; |
11 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·opaque·type·representing·an·open·display·or·window. | 14 | An·opaque·type·representing·an·open·display·or·window. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_DISPLAY_MODE·\-·Allegro·5·API | 5 | ALLEGRO_DISPLAY_MODE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_DISPLAY_MODE | 10 | typedef·struct·ALLEGRO_DISPLAY_MODE |
11 | typedef·struct·ALLEGRO_DISPLAY_MODE | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Used·for·fullscreen·mode·queries. | 14 | Used·for·fullscreen·mode·queries. |
14 | Contains·information·about·a·supported·fullscreen·modes. | 15 | Contains·information·about·a·supported·fullscreen·modes. |
15 | .IP | 16 | .IP |
16 | .EX | 17 | .EX |
17 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ | 18 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_EVENT·\-·Allegro·5·API | 5 | ALLEGRO_EVENT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; | 10 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; |
11 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e.\·it·is | 14 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e.\·it·is |
14 | an·object·large·enough·to·hold·the·data·of·any·event·type. | 15 | an·object·large·enough·to·hold·the·data·of·any·event·type. |
15 | All·events·have·the·following·fields·in·common: | 16 | All·events·have·the·following·fields·in·common: |
16 | .TP | 17 | .TP |
17 | type·(ALLEGRO_EVENT_TYPE) | 18 | type·(ALLEGRO_EVENT_TYPE) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_EVENT_QUEUE·\-·Allegro·5·API | 5 | ALLEGRO_EVENT_QUEUE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | 10 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; |
11 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·event·queue·holds·events·that·have·been·generated·by·event·sources | 14 | An·event·queue·holds·events·that·have·been·generated·by·event·sources |
14 | that·are·registered·with·the·queue. | 15 | that·are·registered·with·the·queue. |
15 | Events·are·stored·in·the·order·they·are·generated. | 16 | Events·are·stored·in·the·order·they·are·generated. |
16 | Access·is·in·a·strictly·FIFO·(first\-in\-first\-out)·order. | 17 | Access·is·in·a·strictly·FIFO·(first\-in\-first\-out)·order. |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_EVENT_SOURCE·\-·Allegro·5·API | 5 | ALLEGRO_EVENT_SOURCE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | 10 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; |
11 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·event·source·is·any·object·which·can·generate·events. | 14 | An·event·source·is·any·object·which·can·generate·events. |
14 | For·example,·an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the | 15 | For·example,·an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the |
15 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with | 16 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with |
16 | al_get_display_event_source(3alleg5). | 17 | al_get_display_event_source(3alleg5). |
17 | .PP | 18 | .PP |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | ALLEGRO_EVENT_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_EVENT_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; | 10 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; |
11 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·integer·used·to·distinguish·between·different·types·of·events. | 14 | An·integer·used·to·distinguish·between·different·types·of·events. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | ALLEGRO_EVENT(3alleg5),·ALLEGRO_GET_EVENT_TYPE(3alleg5), | 16 | ALLEGRO_EVENT(3alleg5),·ALLEGRO_GET_EVENT_TYPE(3alleg5), |
16 | ALLEGRO_EVENT_TYPE_IS_USER(3alleg5) | 17 | ALLEGRO_EVENT_TYPE_IS_USER(3alleg5) |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | ALLEGRO_EVENT_TYPE_IS_USER·\-·Allegro·5·API | 5 | ALLEGRO_EVENT_TYPE_IS_USER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) | 10 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) |
11 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event | 14 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event |
14 | type,·i.e.\·one·of·those·described·in·ALLEGRO_EVENT_TYPE(3alleg5). | 15 | type,·i.e.\·one·of·those·described·in·ALLEGRO_EVENT_TYPE(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | ALLEGRO_FILE·\-·Allegro·5·API | 5 | ALLEGRO_FILE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | 10 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; |
11 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·opaque·object·representing·an·open·file. | 14 | An·opaque·object·representing·an·open·file. |
14 | This·could·be·a·real·file·on·disk·or·a·virtual·file. | 15 | This·could·be·a·real·file·on·disk·or·a·virtual·file. |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_FILECHOOSER·\-·Allegro·5·API | 5 | ALLEGRO_FILECHOOSER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; | 10 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; |
11 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Opaque·handle·to·a·native·file·dialog. | 14 | Opaque·handle·to·a·native·file·dialog. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_FILE_INTERFACE·\-·Allegro·5·API | 5 | ALLEGRO_FILE_INTERFACE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_FILE_INTERFACE | 10 | typedef·struct·ALLEGRO_FILE_INTERFACE |
11 | typedef·struct·ALLEGRO_FILE_INTERFACE | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·structure·containing·function·pointers·to·handle·a·type·of | 14 | A·structure·containing·function·pointers·to·handle·a·type·of |
14 | \[lq]file\[rq],·real·or·virtual. | 15 | \[lq]file\[rq],·real·or·virtual. |
15 | See·the·full·discussion·in·al_set_new_file_interface(3alleg5). | 16 | See·the·full·discussion·in·al_set_new_file_interface(3alleg5). |
16 | .PP | 17 | .PP |
17 | The·fields·are: | 18 | The·fields·are: |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_FILE_MODE·\-·Allegro·5·API | 5 | ALLEGRO_FILE_MODE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_FILE_MODE | 10 | typedef·enum·ALLEGRO_FILE_MODE |
11 | typedef·enum·ALLEGRO_FILE_MODE | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Filesystem·modes/types | 14 | Filesystem·modes/types |
14 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
15 | ALLEGRO_FILEMODE_READ·\-·Readable | 16 | ALLEGRO_FILEMODE_READ·\-·Readable |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | ALLEGRO_FILEMODE_WRITE·\-·Writable | 18 | ALLEGRO_FILEMODE_WRITE·\-·Writable |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_FONT·\-·Allegro·5·API | 5 | ALLEGRO_FONT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | 10 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; |
11 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·handle·identifying·any·kind·of·font. | 14 | A·handle·identifying·any·kind·of·font. |
14 | Usually·you·will·create·it·with·al_load_font(3alleg5)·which·supports | 15 | Usually·you·will·create·it·with·al_load_font(3alleg5)·which·supports |
15 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. | 16 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. |
16 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded | 17 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded |
17 | with·al_load_bitmap(3alleg5)·and·a·font·in·Allegro\[cq]s·bitmap·font | 18 | with·al_load_bitmap(3alleg5)·and·a·font·in·Allegro\[cq]s·bitmap·font |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·\-·Allegro·5·API | 5 | ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ | 10 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ |
11 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·values·for·the·callbacks·of·al_for_each_fs_entry(3alleg5)·and·for | 14 | Return·values·for·the·callbacks·of·al_for_each_fs_entry(3alleg5)·and·for |
14 | that·function·itself. | 15 | that·function·itself. |
15 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
16 | ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·\-·An·error·ocurred. | 17 | ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·\-·An·error·ocurred. |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | ALLEGRO_FS_ENTRY·\-·Allegro·5·API | 5 | ALLEGRO_FS_ENTRY·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; | 10 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; |
11 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Opaque·filesystem·entry·object. | 14 | Opaque·filesystem·entry·object. |
14 | Represents·a·file·or·a·directory·(check·with | 15 | Represents·a·file·or·a·directory·(check·with |
15 | al_get_fs_entry_mode(3alleg5)). | 16 | al_get_fs_entry_mode(3alleg5)). |
16 | There·are·no·user·accessible·member·variables. | 17 | There·are·no·user·accessible·member·variables. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_FS_INTERFACE·\-·Allegro·5·API | 5 | ALLEGRO_FS_INTERFACE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; | 10 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; |
11 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | The·available·functions·you·can·provide·for·a·filesystem. | 14 | The·available·functions·you·can·provide·for·a·filesystem. |
14 | They·are: | 15 | They·are: |
15 | .IP | 16 | .IP |
16 | .EX | 17 | .EX |
17 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); | 18 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_GET_EVENT_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_GET_EVENT_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) | 10 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) |
11 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Make·an·event·type·identifier,·which·is·a·32\-bit·integer. | 14 | Make·an·event·type·identifier,·which·is·a·32\-bit·integer. |
14 | Usually,·but·not·necessarily,·this·will·be·made·from·four·8\-bit | 15 | Usually,·but·not·necessarily,·this·will·be·made·from·four·8\-bit |
15 | character·codes,·for·example: | 16 | character·codes,·for·example: |
16 | .IP | 17 | .IP |
17 | .EX | 18 | .EX |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_GLYPH·\-·Allegro·5·API | 5 | ALLEGRO_GLYPH·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | 10 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; |
11 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·structure·containing·the·properties·of·a·character·in·a·font. | 14 | A·structure·containing·the·properties·of·a·character·in·a·font. |
14 | .IP | 15 | .IP |
15 | .EX | 16 | .EX |
16 | typedef·struct·ALLEGRO_GLYPH·{ | 17 | typedef·struct·ALLEGRO_GLYPH·{ |
17 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on | 18 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_HAPTIC·\-·Allegro·5·API | 5 | ALLEGRO_HAPTIC·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; | 10 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; |
11 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports | 14 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports |
14 | force·feedback·or·vibration. | 15 | force·feedback·or·vibration. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.8 | 17 | 5.1.8 |
17 | .RS | 18 | .RS |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_HAPTIC_CONSTANTS·\-·Allegro·5·API | 5 | ALLEGRO_HAPTIC_CONSTANTS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | enum·ALLEGRO_HAPTIC_CONSTANTS | 10 | enum·ALLEGRO_HAPTIC_CONSTANTS |
11 | enum·ALLEGRO_HAPTIC_CONSTANTS | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and | 14 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and |
14 | capabilities. | 15 | capabilities. |
15 | If·the·flag·is·set·in·the·return·value·of | 16 | If·the·flag·is·set·in·the·return·value·of |
16 | al_get_haptic_capabilities(3alleg5),·it·means·the·device·supports·the | 17 | al_get_haptic_capabilities(3alleg5),·it·means·the·device·supports·the |
17 | given·effect. | 18 | given·effect. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_HAPTIC_EFFECT·\-·Allegro·5·API | 5 | ALLEGRO_HAPTIC_EFFECT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | struct·ALLEGRO_HAPTIC_EFFECT | 10 | struct·ALLEGRO_HAPTIC_EFFECT |
11 | struct·ALLEGRO_HAPTIC_EFFECT | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·struct·models·a·particular·haptic·or·vibration·effect. | 14 | This·struct·models·a·particular·haptic·or·vibration·effect. |
14 | It·needs·to·be·filled·in·correctly·and·uploaded·to·a·haptic·device | 15 | It·needs·to·be·filled·in·correctly·and·uploaded·to·a·haptic·device |
15 | before·the·device·can·play·it·back. | 16 | before·the·device·can·play·it·back. |
16 | .PP | 17 | .PP |
17 | \f[I]Fields:\f[R] | 18 | \f[I]Fields:\f[R] |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_HAPTIC_EFFECT_ID·\-·Allegro·5·API | 5 | ALLEGRO_HAPTIC_EFFECT_ID·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; | 10 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; |
11 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect | 14 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect |
14 | and·should·be·considered·opaque. | 15 | and·should·be·considered·opaque. |
15 | Its·implementation·is·visible·merely·to·allow·allocation·by·the·users·of | 16 | Its·implementation·is·visible·merely·to·allow·allocation·by·the·users·of |
16 | the·Allegro·library. | 17 | the·Allegro·library. |
17 | .SH·SINCE | 18 | .SH·SINCE |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_INDEX_BUFFER·\-·Allegro·5·API | 5 | ALLEGRO_INDEX_BUFFER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·struct·ALLEGRO_INDEX_BUFFER·ALLEGRO_INDEX_BUFFER; | 10 | typedef·struct·ALLEGRO_INDEX_BUFFER·ALLEGRO_INDEX_BUFFER; |
11 | typedef·struct·ALLEGRO_INDEX_BUFFER·ALLEGRO_INDEX_BUFFER; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·GPU·index·buffer·that·you·can·use·to·store·indices·of·vertices·in·a | 14 | A·GPU·index·buffer·that·you·can·use·to·store·indices·of·vertices·in·a |
14 | vertex·buffer·on·the·GPU·instead·of·uploading·them·afresh·during·every | 15 | vertex·buffer·on·the·GPU·instead·of·uploading·them·afresh·during·every |
15 | drawing·operation. | 16 | drawing·operation. |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.1.8 | 18 | 5.1.8 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_JOYFLAGS·\-·Allegro·5·API | 5 | ALLEGRO_JOYFLAGS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | enum·ALLEGRO_JOYFLAGS | 10 | enum·ALLEGRO_JOYFLAGS |
11 | enum·ALLEGRO_JOYFLAGS | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
14 | ALLEGRO_JOYFLAG_DIGITAL·\-·the·stick·provides·digital·input | 15 | ALLEGRO_JOYFLAG_DIGITAL·\-·the·stick·provides·digital·input |
15 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
16 | ALLEGRO_JOYFLAG_ANALOGUE·\-·the·stick·provides·analogue·input | 17 | ALLEGRO_JOYFLAG_ANALOGUE·\-·the·stick·provides·analogue·input |
17 | .PP | 18 | .PP |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | ALLEGRO_JOYSTICK·\-·Allegro·5·API | 5 | ALLEGRO_JOYSTICK·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; | 10 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; |
11 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·is·an·abstract·data·type·representing·a·physical·joystick. | 14 | This·is·an·abstract·data·type·representing·a·physical·joystick. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_get_joystick(3alleg5) | 16 | al_get_joystick(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_JOYSTICK_STATE·\-·Allegro·5·API | 5 | ALLEGRO_JOYSTICK_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | 10 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; |
11 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a | 14 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a |
14 | joystick\[cq]s·axes·and·buttons·at·a·particular·instant. | 15 | joystick\[cq]s·axes·and·buttons·at·a·particular·instant. |
15 | All·fields·public·and·read\-only. | 16 | All·fields·public·and·read\-only. |
16 | .IP | 17 | .IP |
17 | .EX | 18 | .EX |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_KEYBOARD_STATE·\-·Allegro·5·API | 5 | ALLEGRO_KEYBOARD_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | 10 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; |
11 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a | 14 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a |
14 | keyboard\[cq]s·state·at·a·particular·instant. | 15 | keyboard\[cq]s·state·at·a·particular·instant. |
15 | It·contains·the·following·publically·readable·fields: | 16 | It·contains·the·following·publically·readable·fields: |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | display·\-·points·to·the·display·that·had·keyboard·focus·at·the·time·the | 18 | display·\-·points·to·the·display·that·had·keyboard·focus·at·the·time·the |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_LINE_CAP·\-·Allegro·5·API | 5 | ALLEGRO_LINE_CAP·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_LINE_CAP | 10 | typedef·enum·ALLEGRO_LINE_CAP |
11 | typedef·enum·ALLEGRO_LINE_CAP | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
14 | ALLEGRO_LINE_CAP_NONE | 15 | ALLEGRO_LINE_CAP_NONE |
15 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
16 | ALLEGRO_LINE_CAP_SQUARE | 17 | ALLEGRO_LINE_CAP_SQUARE |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_LINE_JOIN·\-·Allegro·5·API | 5 | ALLEGRO_LINE_JOIN·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_LINE_JOIN | 10 | typedef·enum·ALLEGRO_LINE_JOIN |
11 | typedef·enum·ALLEGRO_LINE_JOIN | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
14 | ALLEGRO_LINE_JOIN_NONE | 15 | ALLEGRO_LINE_JOIN_NONE |
15 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
16 | ALLEGRO_LINE_JOIN_BEVEL | 17 | ALLEGRO_LINE_JOIN_BEVEL |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_LOCKED_REGION·\-·Allegro·5·API | 5 | ALLEGRO_LOCKED_REGION·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; | 10 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; |
11 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to | 14 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to |
14 | lock·it·first. | 15 | lock·it·first. |
15 | The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the | 16 | The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the |
16 | bitmap. | 17 | bitmap. |
17 | This·call·will·work·with·any·bitmap,·including·memory·bitmaps. | 18 | This·call·will·work·with·any·bitmap,·including·memory·bitmaps. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_MEMORY_INTERFACE·\-·Allegro·5·API | 5 | ALLEGRO_MEMORY_INTERFACE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; | 10 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; |
11 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·structure·has·the·following·fields. | 14 | This·structure·has·the·following·fields. |
14 | .IP | 15 | .IP |
15 | .EX | 16 | .EX |
16 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); | 17 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); |
17 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); | 18 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | ALLEGRO_MENU·\-·Allegro·5·API | 5 | ALLEGRO_MENU·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | typedef·struct·ALLEGRO_MENU·ALLEGRO_MENU; | 10 | typedef·struct·ALLEGRO_MENU·ALLEGRO_MENU; |
11 | typedef·struct·ALLEGRO_MENU·ALLEGRO_MENU; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·opaque·data·type·that·represents·a·menu·that·contains·menu·items. | 14 | An·opaque·data·type·that·represents·a·menu·that·contains·menu·items. |
14 | Each·of·the·menu·items·may·optionally·include·a·sub\-menu. | 15 | Each·of·the·menu·items·may·optionally·include·a·sub\-menu. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_MENU_INFO·\-·Allegro·5·API | 5 | ALLEGRO_MENU_INFO·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | typedef·struct·ALLEGRO_MENU_INFO·{ | 10 | typedef·struct·ALLEGRO_MENU_INFO·{ |
11 | typedef·struct·ALLEGRO_MENU_INFO·{ | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·structure·that·defines·how·to·create·a·complete·menu·system. | 14 | A·structure·that·defines·how·to·create·a·complete·menu·system. |
14 | For·standard·menu·items,·the·following·format·is·used: | 15 | For·standard·menu·items,·the·following·format·is·used: |
15 | .IP | 16 | .IP |
16 | .EX | 17 | .EX |
17 | ···{·caption,·id,·flags,·icon·} | 18 | ···{·caption,·id,·flags,·icon·} |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_MIXER·\-·Allegro·5·API | 5 | ALLEGRO_MIXER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_MIXER·ALLEGRO_MIXER; | 10 | typedef·struct·ALLEGRO_MIXER·ALLEGRO_MIXER; |
11 | typedef·struct·ALLEGRO_MIXER·ALLEGRO_MIXER; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·mixer·mixes·together·attached·streams·into·a·single·buffer. | 14 | A·mixer·mixes·together·attached·streams·into·a·single·buffer. |
14 | In·the·process,·it·converts·channel·configurations,·sample·frequencies | 15 | In·the·process,·it·converts·channel·configurations,·sample·frequencies |
15 | and·audio·depths·of·the·attached·sample·instances·and·audio·streams | 16 | and·audio·depths·of·the·attached·sample·instances·and·audio·streams |
16 | accordingly. | 17 | accordingly. |
17 | You·can·control·the·quality·of·this·conversion·using | 18 | You·can·control·the·quality·of·this·conversion·using |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_MIXER_QUALITY·\-·Allegro·5·API | 5 | ALLEGRO_MIXER_QUALITY·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | enum·ALLEGRO_MIXER_QUALITY | 10 | enum·ALLEGRO_MIXER_QUALITY |
11 | enum·ALLEGRO_MIXER_QUALITY | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
14 | ALLEGRO_MIXER_QUALITY_POINT·\-·point·sampling | 15 | ALLEGRO_MIXER_QUALITY_POINT·\-·point·sampling |
15 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
16 | ALLEGRO_MIXER_QUALITY_LINEAR·\-·linear·interpolation | 17 | ALLEGRO_MIXER_QUALITY_LINEAR·\-·linear·interpolation |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_MONITOR_INFO·\-·Allegro·5·API | 5 | ALLEGRO_MONITOR_INFO·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_MONITOR_INFO | 10 | typedef·struct·ALLEGRO_MONITOR_INFO |
11 | typedef·struct·ALLEGRO_MONITOR_INFO | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Describes·a·monitor\[cq]s·size·and·position·relative·to·other·monitors. | 14 | Describes·a·monitor\[cq]s·size·and·position·relative·to·other·monitors. |
14 | x1,·y1·will·be·0,·0·on·the·primary·display. | 15 | x1,·y1·will·be·0,·0·on·the·primary·display. |
15 | Other·monitors·can·have·negative·values·if·they·are·to·the·left·or·above | 16 | Other·monitors·can·have·negative·values·if·they·are·to·the·left·or·above |
16 | the·primary·display. | 17 | the·primary·display. |
17 | x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that | 18 | x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_MOUSE_EMULATION_MODE·\-·Allegro·5·API | 5 | ALLEGRO_MOUSE_EMULATION_MODE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE | 10 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE |
11 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Type·of·mouse·emulation·to·apply. | 14 | Type·of·mouse·emulation·to·apply. |
14 | .TP | 15 | .TP |
15 | ALLEGRO_MOUSE_EMULATION_NONE | 16 | ALLEGRO_MOUSE_EMULATION_NONE |
16 | Disables·mouse·emulation. | 17 | Disables·mouse·emulation. |
17 | .TP | 18 | .TP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_MOUSE_STATE·\-·Allegro·5·API | 5 | ALLEGRO_MOUSE_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; | 10 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; |
11 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Public·fields·(read·only): | 14 | Public·fields·(read·only): |
14 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
15 | x·\-·mouse·x·position | 16 | x·\-·mouse·x·position |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | y·\-·mouse·y·position | 18 | y·\-·mouse·y·position |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_MSECS_TO_SECS·\-·Allegro·5·API | 5 | ALLEGRO_MSECS_TO_SECS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | 10 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) |
11 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Convert·milliseconds·to·seconds. | 14 | Convert·milliseconds·to·seconds. |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_MUTEX·\-·Allegro·5·API | 5 | ALLEGRO_MUTEX·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | 10 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; |
11 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·opaque·structure·representing·a·mutex. | 14 | An·opaque·structure·representing·a·mutex. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·\-·Allegro·5·API | 5 | ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 | 10 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 |
11 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·is·the·maximum·size·of·the·title·that·can·be·set·with | 14 | This·is·the·maximum·size·of·the·title·that·can·be·set·with |
14 | al_set_new_window_title(3alleg5). | 15 | al_set_new_window_title(3alleg5). |
15 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
16 | al_set_new_window_title(3alleg5) | 17 | al_set_new_window_title(3alleg5) |
17 | .SH·SINCE | 18 | .SH·SINCE |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | ALLEGRO_PI·\-·Allegro·5·API | 5 | ALLEGRO_PI·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_PI········3.14159265358979323846 | 10 | #define·ALLEGRO_PI········3.14159265358979323846 |
11 | #define·ALLEGRO_PI········3.14159265358979323846 | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but | 14 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but |
14 | you·can·use·this·one·instead. | 15 | you·can·use·this·one·instead. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_PIXEL_FORMAT·\-·Allegro·5·API | 5 | ALLEGRO_PIXEL_FORMAT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_PIXEL_FORMAT | 10 | typedef·enum·ALLEGRO_PIXEL_FORMAT |
11 | typedef·enum·ALLEGRO_PIXEL_FORMAT | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Pixel·formats. | 14 | Pixel·formats. |
14 | Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a·pixel·in | 15 | Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a·pixel·in |
15 | memory. | 16 | memory. |
16 | Components·are·specified·from·high·bits·to·low·bits,·so·for·example·a | 17 | Components·are·specified·from·high·bits·to·low·bits,·so·for·example·a |
17 | fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. | 18 | fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_PLAYMODE·\-·Allegro·5·API | 5 | ALLEGRO_PLAYMODE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | enum·ALLEGRO_PLAYMODE | 10 | enum·ALLEGRO_PLAYMODE |
11 | enum·ALLEGRO_PLAYMODE | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Sample·and·stream·playback·mode. | 14 | Sample·and·stream·playback·mode. |
14 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
15 | ALLEGRO_PLAYMODE_ONCE·\-·the·sample/stream·is·played·from·start·to | 16 | ALLEGRO_PLAYMODE_ONCE·\-·the·sample/stream·is·played·from·start·to |
16 | finish·an·then·it·stops. | 17 | finish·an·then·it·stops. |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_PRIM_ATTR·\-·Allegro·5·API | 5 | ALLEGRO_PRIM_ATTR·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_PRIM_ATTR | 10 | typedef·enum·ALLEGRO_PRIM_ATTR |
11 | typedef·enum·ALLEGRO_PRIM_ATTR | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Enumerates·the·types·of·vertex·attributes·that·a·custom·vertex·may·have. | 14 | Enumerates·the·types·of·vertex·attributes·that·a·custom·vertex·may·have. |
14 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
15 | ALLEGRO_PRIM_POSITION·\-·Position·information,·can·be·stored·only·in | 16 | ALLEGRO_PRIM_POSITION·\-·Position·information,·can·be·stored·only·in |
16 | ALLEGRO_PRIM_SHORT_2,·ALLEGRO_PRIM_FLOAT_2·and·ALLEGRO_PRIM_FLOAT_3. | 17 | ALLEGRO_PRIM_SHORT_2,·ALLEGRO_PRIM_FLOAT_2·and·ALLEGRO_PRIM_FLOAT_3. |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_PRIM_BUFFER_FLAGS·\-·Allegro·5·API | 5 | ALLEGRO_PRIM_BUFFER_FLAGS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_PRIM_BUFFER_FLAGS | 10 | typedef·enum·ALLEGRO_PRIM_BUFFER_FLAGS |
11 | typedef·enum·ALLEGRO_PRIM_BUFFER_FLAGS | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Flags·to·specify·how·to·create·a·vertex·or·an·index·buffer. | 14 | Flags·to·specify·how·to·create·a·vertex·or·an·index·buffer. |
14 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
15 | ALLEGRO_PRIM_BUFFER_STREAM·\-·Hints·to·the·driver·that·the·buffer·is | 16 | ALLEGRO_PRIM_BUFFER_STREAM·\-·Hints·to·the·driver·that·the·buffer·is |
16 | written·to·often,·but·used·only·a·few·times·per·frame | 17 | written·to·often,·but·used·only·a·few·times·per·frame |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_PRIM_QUALITY·\-·Allegro·5·API | 5 | ALLEGRO_PRIM_QUALITY·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | #define·ALLEGRO_PRIM_QUALITY·10 | 10 | #define·ALLEGRO_PRIM_QUALITY·10 |
11 | #define·ALLEGRO_PRIM_QUALITY·10 | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Controls·the·quality·of·the·approximation·of·curved·primitives | 14 | Controls·the·quality·of·the·approximation·of·curved·primitives |
14 | (e.g.\·circles). | 15 | (e.g.\·circles). |
15 | Curved·primitives·are·drawn·by·approximating·them·with·a·sequence·of | 16 | Curved·primitives·are·drawn·by·approximating·them·with·a·sequence·of |
16 | line·segments. | 17 | line·segments. |
17 | By·default,·this·roughly·corresponds·to·error·of·less·than·half·of·a | 18 | By·default,·this·roughly·corresponds·to·error·of·less·than·half·of·a |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_PRIM_STORAGE·\-·Allegro·5·API | 5 | ALLEGRO_PRIM_STORAGE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_PRIM_STORAGE | 10 | typedef·enum·ALLEGRO_PRIM_STORAGE |
11 | typedef·enum·ALLEGRO_PRIM_STORAGE | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Enumerates·the·types·of·storage·an·attribute·of·a·custom·vertex·may·be | 14 | Enumerates·the·types·of·storage·an·attribute·of·a·custom·vertex·may·be |
14 | stored·in. | 15 | stored·in. |
15 | Many·of·these·can·only·be·used·for·ALLEGRO_PRIM_USER_ATTR·attributes·and | 16 | Many·of·these·can·only·be·used·for·ALLEGRO_PRIM_USER_ATTR·attributes·and |
16 | can·only·be·accessed·via·shaders. | 17 | can·only·be·accessed·via·shaders. |
17 | Usually·no·matter·what·the·storage·is·specified·the·attribute·gets | 18 | Usually·no·matter·what·the·storage·is·specified·the·attribute·gets |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_PRIM_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_PRIM_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_PRIM_TYPE | 10 | typedef·enum·ALLEGRO_PRIM_TYPE |
11 | typedef·enum·ALLEGRO_PRIM_TYPE | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Enumerates·the·types·of·primitives·this·addon·can·draw. | 14 | Enumerates·the·types·of·primitives·this·addon·can·draw. |
14 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
15 | ALLEGRO_PRIM_POINT_LIST·\-·A·list·of·points,·each·vertex·defines·a·point | 16 | ALLEGRO_PRIM_POINT_LIST·\-·A·list·of·points,·each·vertex·defines·a·point |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | ALLEGRO_PRIM_LINE_LIST·\-·A·list·of·lines,·sequential·pairs·of·vertices | 18 | ALLEGRO_PRIM_LINE_LIST·\-·A·list·of·lines,·sequential·pairs·of·vertices |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_RENDER_FUNCTION·\-·Allegro·5·API | 5 | ALLEGRO_RENDER_FUNCTION·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ | 10 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ |
11 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Possible·functions·are: | 14 | Possible·functions·are: |
14 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
15 | ALLEGRO_RENDER_NEVER | 16 | ALLEGRO_RENDER_NEVER |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | ALLEGRO_RENDER_ALWAYS | 18 | ALLEGRO_RENDER_ALWAYS |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_RENDER_STATE·\-·Allegro·5·API | 5 | ALLEGRO_RENDER_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_RENDER_STATE·{ | 10 | typedef·enum·ALLEGRO_RENDER_STATE·{ |
11 | typedef·enum·ALLEGRO_RENDER_STATE·{ | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Possible·render·states·which·can·be·set·with | 14 | Possible·render·states·which·can·be·set·with |
14 | al_set_render_state(3alleg5): | 15 | al_set_render_state(3alleg5): |
15 | .TP | 16 | .TP |
16 | ALLEGRO_ALPHA_TEST | 17 | ALLEGRO_ALPHA_TEST |
17 | If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and | 18 | If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_SAMPLE·\-·Allegro·5·API | 5 | ALLEGRO_SAMPLE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE; | 10 | typedef·struct·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE; |
11 | typedef·struct·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing | 14 | An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing |
14 | pre\-defined·digital·audio. | 15 | pre\-defined·digital·audio. |
15 | It·holds·a·user\-specified·PCM·data·buffer·and·information·about·its | 16 | It·holds·a·user\-specified·PCM·data·buffer·and·information·about·its |
16 | format·(data·length,·depth,·frequency,·channel·configuration). | 17 | format·(data·length,·depth,·frequency,·channel·configuration). |
17 | You·can·have·the·same·ALLEGRO_SAMPLE·playing·multiple·times | 18 | You·can·have·the·same·ALLEGRO_SAMPLE·playing·multiple·times |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_SAMPLE_ID·\-·Allegro·5·API | 5 | ALLEGRO_SAMPLE_ID·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; | 10 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; |
11 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via | 14 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via |
14 | al_play_sample(3alleg5). | 15 | al_play_sample(3alleg5). |
15 | It·can·be·used·to·later·stop·the·sample·with·al_stop_sample(3alleg5). | 16 | It·can·be·used·to·later·stop·the·sample·with·al_stop_sample(3alleg5). |
16 | The·underlying·ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using | 17 | The·underlying·ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using |
17 | al_lock_sample_id(3alleg5). | 18 | al_lock_sample_id(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_SAMPLE_INSTANCE·\-·Allegro·5·API | 5 | ALLEGRO_SAMPLE_INSTANCE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE; | 10 | typedef·struct·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE; |
11 | typedef·struct·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a | 14 | An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a |
14 | predefined·sound·effect. | 15 | predefined·sound·effect. |
15 | It·holds·information·about·how·the·effect·should·be·played:·These | 16 | It·holds·information·about·how·the·effect·should·be·played:·These |
16 | playback·parameters·consist·of·the·looping·mode,·loop·start/end·points, | 17 | playback·parameters·consist·of·the·looping·mode,·loop·start/end·points, |
17 | playing·position,·speed,·gain,·pan·and·the·playmode. | 18 | playing·position,·speed,·gain,·pan·and·the·playmode. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_SEEK·\-·Allegro·5·API | 5 | ALLEGRO_SEEK·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_SEEK | 10 | typedef·enum·ALLEGRO_SEEK |
11 | typedef·enum·ALLEGRO_SEEK | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
14 | ALLEGRO_SEEK_SET·\-·seek·relative·to·beginning·of·file | 15 | ALLEGRO_SEEK_SET·\-·seek·relative·to·beginning·of·file |
15 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
16 | ALLEGRO_SEEK_CUR·\-·seek·relative·to·current·file·position | 17 | ALLEGRO_SEEK_CUR·\-·seek·relative·to·current·file·position |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_SHADER·\-·Allegro·5·API | 5 | ALLEGRO_SHADER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; | 10 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; |
11 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·ALLEGRO_SHADER(3alleg5)·is·a·program·that·runs·on·the·GPU. | 14 | An·ALLEGRO_SHADER(3alleg5)·is·a·program·that·runs·on·the·GPU. |
14 | It·combines·both·a·vertex·and·a·pixel·shader. | 15 | It·combines·both·a·vertex·and·a·pixel·shader. |
15 | (In·OpenGL·terms,·an·ALLEGRO_SHADER(3alleg5)·is·actually·a | 16 | (In·OpenGL·terms,·an·ALLEGRO_SHADER(3alleg5)·is·actually·a |
16 | \f[I]program\f[R]·which·has·one·or·more·\f[I]shaders\f[R]·attached. | 17 | \f[I]program\f[R]·which·has·one·or·more·\f[I]shaders\f[R]·attached. |
17 | This·can·be·confusing.) | 18 | This·can·be·confusing.) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_SHADER_PLATFORM·\-·Allegro·5·API | 5 | ALLEGRO_SHADER_PLATFORM·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; | 10 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; |
11 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | The·underlying·platform·which·the·ALLEGRO_SHADER(3alleg5)·is·built·on | 14 | The·underlying·platform·which·the·ALLEGRO_SHADER(3alleg5)·is·built·on |
14 | top·of,·which·dictates·the·language·used·to·program·the·shader. | 15 | top·of,·which·dictates·the·language·used·to·program·the·shader. |
15 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
16 | ALLEGRO_SHADER_AUTO·\-·Pick·a·platform·automatically·given·the·current | 17 | ALLEGRO_SHADER_AUTO·\-·Pick·a·platform·automatically·given·the·current |
17 | display·flags. | 18 | display·flags. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_SHADER_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_SHADER_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | 10 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; |
11 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Used·with·al_attach_shader_source(3alleg5)·and | 14 | Used·with·al_attach_shader_source(3alleg5)·and |
14 | al_attach_shader_source_file(3alleg5)·to·specify·how·to·interpret·the | 15 | al_attach_shader_source_file(3alleg5)·to·specify·how·to·interpret·the |
15 | attached·source. | 16 | attached·source. |
16 | .TP | 17 | .TP |
17 | ALLEGRO_VERTEX_SHADER | 18 | ALLEGRO_VERTEX_SHADER |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_STATE·\-·Allegro·5·API | 5 | ALLEGRO_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; | 9 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; |
10 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; | ||
10 | .EE | 11 | .EE |
11 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
12 | Opaque·type·which·is·passed·to | 13 | Opaque·type·which·is·passed·to |
13 | al_store_state(3alleg5)/al_restore_state(3alleg5). | 14 | al_store_state(3alleg5)/al_restore_state(3alleg5). |
14 | .PP | 15 | .PP |
15 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: | 16 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: |
16 | .IP | 17 | .IP |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | ALLEGRO_STATE_FLAGS·\-·Allegro·5·API | 5 | ALLEGRO_STATE_FLAGS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | typedef·enum·ALLEGRO_STATE_FLAGS | 9 | typedef·enum·ALLEGRO_STATE_FLAGS |
10 | typedef·enum·ALLEGRO_STATE_FLAGS | ||
10 | .EE | 11 | .EE |
11 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
12 | Flags·which·can·be·passed·to | 13 | Flags·which·can·be·passed·to |
13 | al_store_state(3alleg5)/al_restore_state(3alleg5)·as·bit·combinations. | 14 | al_store_state(3alleg5)/al_restore_state(3alleg5)·as·bit·combinations. |
14 | See·al_store_state(3alleg5)·for·the·list·of·flags. | 15 | See·al_store_state(3alleg5)·for·the·list·of·flags. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_SYSTEM_ID·\-·Allegro·5·API | 5 | ALLEGRO_SYSTEM_ID·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | enum·ALLEGRO_SYSTEM_ID·{ | 10 | enum·ALLEGRO_SYSTEM_ID·{ |
11 | enum·ALLEGRO_SYSTEM_ID·{ | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | The·system·Allegro·is·running·on. | 14 | The·system·Allegro·is·running·on. |
14 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
15 | ALLEGRO_SYSTEM_ID_UNKNOWN·\-·Unknown·system. | 16 | ALLEGRO_SYSTEM_ID_UNKNOWN·\-·Unknown·system. |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | ALLEGRO_SYSTEM_ID_XGLX·\-·Xglx | 18 | ALLEGRO_SYSTEM_ID_XGLX·\-·Xglx |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_TEXTLOG·\-·Allegro·5·API | 5 | ALLEGRO_TEXTLOG·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | 10 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; |
11 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Opaque·handle·to·a·text·log·window. | 14 | Opaque·handle·to·a·text·log·window. |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_THREAD·\-·Allegro·5·API | 5 | ALLEGRO_THREAD·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | 10 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; |
11 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·opaque·structure·representing·a·thread. | 14 | An·opaque·structure·representing·a·thread. |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_TIMER·\-·Allegro·5·API | 5 | ALLEGRO_TIMER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; | 10 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; |
11 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·is·an·abstract·data·type·representing·a·timer·object. | 14 | This·is·an·abstract·data·type·representing·a·timer·object. |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | ALLEGRO_TOUCH_INPUT·\-·Allegro·5·API | 5 | ALLEGRO_TOUCH_INPUT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; | 10 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; |
11 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. | 14 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.0 | 16 | 5.1.0 |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT·\-·Allegro·5·API | 5 | ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 | 10 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 |
11 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. | 14 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.0 | 16 | 5.1.0 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_TOUCH_INPUT_STATE·\-·Allegro·5·API | 5 | ALLEGRO_TOUCH_INPUT_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; | 10 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; |
11 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at | 14 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at |
14 | a·particular·instant. | 15 | a·particular·instant. |
15 | .PP | 16 | .PP |
16 | Public·fields·(read·only): | 17 | Public·fields·(read·only): |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_TOUCH_STATE·\-·Allegro·5·API | 5 | ALLEGRO_TOUCH_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; | 10 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; |
11 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a·touch | 14 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a·touch |
14 | at·a·particular·instant. | 15 | at·a·particular·instant. |
15 | .PP | 16 | .PP |
16 | Public·fields·(read·only): | 17 | Public·fields·(read·only): |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_TRANSFORM·\-·Allegro·5·API | 5 | ALLEGRO_TRANSFORM·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | 10 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; |
11 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Defines·the·generic·transformation·type,·a·4x4·matrix. | 14 | Defines·the·generic·transformation·type,·a·4x4·matrix. |
14 | 2D·transforms·use·only·a·small·subsection·of·this·matrix,·namely·the·top | 15 | 2D·transforms·use·only·a·small·subsection·of·this·matrix,·namely·the·top |
15 | left·2x2·matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values. | 16 | left·2x2·matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values. |
16 | .PP | 17 | .PP |
17 | \f[I]Fields:\f[R] | 18 | \f[I]Fields:\f[R] |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | ALLEGRO_USECS_TO_SECS·\-·Allegro·5·API | 5 | ALLEGRO_USECS_TO_SECS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | 10 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) |
11 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Convert·microseconds·to·seconds. | 14 | Convert·microseconds·to·seconds. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_USER_EVENT·\-·Allegro·5·API | 5 | ALLEGRO_USER_EVENT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; | 10 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; |
11 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·event·structure·that·can·be·emitted·by·user·event·sources. | 14 | An·event·structure·that·can·be·emitted·by·user·event·sources. |
14 | These·are·the·public·fields: | 15 | These·are·the·public·fields: |
15 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
16 | ALLEGRO_EVENT_SOURCE·*source; | 17 | ALLEGRO_EVENT_SOURCE·*source; |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | ALLEGRO_USTR·\-·Allegro·5·API | 5 | ALLEGRO_USTR·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; | 10 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; |
11 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | An·opaque·type·representing·a·string. | 14 | An·opaque·type·representing·a·string. |
14 | ALLEGRO_USTRs·normally·contain·UTF\-8·encoded·strings,·but·they·may·be | 15 | ALLEGRO_USTRs·normally·contain·UTF\-8·encoded·strings,·but·they·may·be |
15 | used·to·hold·any·byte·sequences,·including·NULs. | 16 | used·to·hold·any·byte·sequences,·including·NULs. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_USTR_INFO·\-·Allegro·5·API | 5 | ALLEGRO_USTR_INFO·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; | 10 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; |
11 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·type·that·holds·additional·information·for·an·ALLEGRO_USTR(3alleg5) | 14 | A·type·that·holds·additional·information·for·an·ALLEGRO_USTR(3alleg5) |
14 | that·references·an·external·memory·buffer. | 15 | that·references·an·external·memory·buffer. |
15 | You·can·convert·it·back·to·ALLEGRO_USTR(3alleg5)·via | 16 | You·can·convert·it·back·to·ALLEGRO_USTR(3alleg5)·via |
16 | al_ref_info(3alleg5). | 17 | al_ref_info(3alleg5). |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_VERTEX·\-·Allegro·5·API | 5 | ALLEGRO_VERTEX·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·struct·ALLEGRO_VERTEX·ALLEGRO_VERTEX; | 10 | typedef·struct·ALLEGRO_VERTEX·ALLEGRO_VERTEX; |
11 | typedef·struct·ALLEGRO_VERTEX·ALLEGRO_VERTEX; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Defines·the·generic·vertex·type,·with·a·3D·position,·color·and·texture | 14 | Defines·the·generic·vertex·type,·with·a·3D·position,·color·and·texture |
14 | coordinates·for·a·single·texture. | 15 | coordinates·for·a·single·texture. |
15 | Note·that·at·this·time,·the·software·driver·for·this·addon·cannot·render | 16 | Note·that·at·this·time,·the·software·driver·for·this·addon·cannot·render |
16 | 3D·primitives. | 17 | 3D·primitives. |
17 | If·you·want·a·2D·only·primitive,·set·z·to·0. | 18 | If·you·want·a·2D·only·primitive,·set·z·to·0. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_VERTEX_BUFFER·\-·Allegro·5·API | 5 | ALLEGRO_VERTEX_BUFFER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·struct·ALLEGRO_VERTEX_BUFFER·ALLEGRO_VERTEX_BUFFER; | 10 | typedef·struct·ALLEGRO_VERTEX_BUFFER·ALLEGRO_VERTEX_BUFFER; |
11 | typedef·struct·ALLEGRO_VERTEX_BUFFER·ALLEGRO_VERTEX_BUFFER; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·GPU·vertex·buffer·that·you·can·use·to·store·vertices·on·the·GPU | 14 | A·GPU·vertex·buffer·that·you·can·use·to·store·vertices·on·the·GPU |
14 | instead·of·uploading·them·afresh·during·every·drawing·operation. | 15 | instead·of·uploading·them·afresh·during·every·drawing·operation. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.3 | 17 | 5.1.3 |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_VERTEX_CACHE_SIZE·\-·Allegro·5·API | 5 | ALLEGRO_VERTEX_CACHE_SIZE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | #define·ALLEGRO_VERTEX_CACHE_SIZE·256 | 10 | #define·ALLEGRO_VERTEX_CACHE_SIZE·256 |
11 | #define·ALLEGRO_VERTEX_CACHE_SIZE·256 | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Defines·the·size·of·the·transformation·vertex·cache·for·the·software | 14 | Defines·the·size·of·the·transformation·vertex·cache·for·the·software |
14 | renderer. | 15 | renderer. |
15 | If·you·pass·less·than·this·many·vertices·to·the·primitive·rendering | 16 | If·you·pass·less·than·this·many·vertices·to·the·primitive·rendering |
16 | functions·you·will·get·a·speed·boost. | 17 | functions·you·will·get·a·speed·boost. |
17 | This·also·defines·the·size·of·the·cache·vertex·buffer,·used·for·the | 18 | This·also·defines·the·size·of·the·cache·vertex·buffer,·used·for·the |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_VERTEX_DECL·\-·Allegro·5·API | 5 | ALLEGRO_VERTEX_DECL·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·struct·ALLEGRO_VERTEX_DECL·ALLEGRO_VERTEX_DECL; | 10 | typedef·struct·ALLEGRO_VERTEX_DECL·ALLEGRO_VERTEX_DECL; |
11 | typedef·struct·ALLEGRO_VERTEX_DECL·ALLEGRO_VERTEX_DECL; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·vertex·declaration. | 14 | A·vertex·declaration. |
14 | This·opaque·structure·is·responsible·for·describing·the·format·and | 15 | This·opaque·structure·is·responsible·for·describing·the·format·and |
15 | layout·of·a·user·defined·custom·vertex. | 16 | layout·of·a·user·defined·custom·vertex. |
16 | It·is·created·and·destroyed·by·specialized·functions. | 17 | It·is·created·and·destroyed·by·specialized·functions. |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_VERTEX_ELEMENT·\-·Allegro·5·API | 5 | ALLEGRO_VERTEX_ELEMENT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·struct·ALLEGRO_VERTEX_ELEMENT·ALLEGRO_VERTEX_ELEMENT; | 10 | typedef·struct·ALLEGRO_VERTEX_ELEMENT·ALLEGRO_VERTEX_ELEMENT; |
11 | typedef·struct·ALLEGRO_VERTEX_ELEMENT·ALLEGRO_VERTEX_ELEMENT; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·small·structure·describing·a·certain·element·of·a·vertex. | 14 | A·small·structure·describing·a·certain·element·of·a·vertex. |
14 | E.g. | 15 | E.g. |
15 | the·position·of·the·vertex,·or·its·color. | 16 | the·position·of·the·vertex,·or·its·color. |
16 | These·structures·are·used·by·the·al_create_vertex_decl(3alleg5)·function | 17 | These·structures·are·used·by·the·al_create_vertex_decl(3alleg5)·function |
17 | to·create·the·vertex·declaration. | 18 | to·create·the·vertex·declaration. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_VIDEO_EVENT_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_VIDEO_EVENT_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | enum·ALLEGRO_VIDEO_EVENT_TYPE | 10 | enum·ALLEGRO_VIDEO_EVENT_TYPE |
11 | enum·ALLEGRO_VIDEO_EVENT_TYPE | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Events·sent·by·al_get_video_event_source(3alleg5). | 14 | Events·sent·by·al_get_video_event_source(3alleg5). |
14 | .SS·ALLEGRO_EVENT_VIDEO_FRAME_SHOW | 15 | .SS·ALLEGRO_EVENT_VIDEO_FRAME_SHOW |
15 | This·event·is·sent·when·it·is·time·to·show·a·new·frame. | 16 | This·event·is·sent·when·it·is·time·to·show·a·new·frame. |
16 | Once·you·receive·this·event,·you·can·draw·the·current·frame·(as·returned | 17 | Once·you·receive·this·event,·you·can·draw·the·current·frame·(as·returned |
17 | by·al_get_video_frame(3alleg5)). | 18 | by·al_get_video_frame(3alleg5)). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_VIDEO_POSITION_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_VIDEO_POSITION_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; | 10 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; |
11 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Used·with·al_get_video_position(3alleg5)·to·specify·which·position·to | 14 | Used·with·al_get_video_position(3alleg5)·to·specify·which·position·to |
14 | retrieve. | 15 | retrieve. |
15 | If·these·get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the | 16 | If·these·get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the |
16 | display·of·the·video. | 17 | display·of·the·video. |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_VOICE·\-·Allegro·5·API | 5 | ALLEGRO_VOICE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_VOICE·ALLEGRO_VOICE; | 10 | typedef·struct·ALLEGRO_VOICE·ALLEGRO_VOICE; |
11 | typedef·struct·ALLEGRO_VOICE·ALLEGRO_VOICE; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·voice·represents·an·audio·device·on·the·system,·which·may·be·a·real | 14 | A·voice·represents·an·audio·device·on·the·system,·which·may·be·a·real |
14 | device,·or·an·abstract·device·provided·by·the·operating·system. | 15 | device,·or·an·abstract·device·provided·by·the·operating·system. |
15 | To·play·back·audio,·you·would·attach·a·mixer,·sample·instance·or·audio | 16 | To·play·back·audio,·you·would·attach·a·mixer,·sample·instance·or·audio |
16 | stream·to·a·voice. | 17 | stream·to·a·voice. |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | ALLEGRO_WRITE_MASK_FLAGS·\-·Allegro·5·API | 5 | ALLEGRO_WRITE_MASK_FLAGS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ | 10 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ |
11 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled | 14 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled |
14 | bit·means·it·is·not. | 15 | bit·means·it·is·not. |
15 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
16 | ALLEGRO_MASK_RED | 17 | ALLEGRO_MASK_RED |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_append_menu_item(ALLEGRO_MENU·*parent,·char·const·*title,·uint16_t·id, | 10 | int·al_append_menu_item(ALLEGRO_MENU·*parent,·char·const·*title,·uint16_t·id, |
11 | ···int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) | 11 | ···int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) |
12 | int·al_append_menu_item(ALLEGRO_MENU·*parent,·char·const·*title,·uint16_t·id, | ||
13 | ···int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Appends·a·menu·item·to·the·end·of·the·menu. | 16 | Appends·a·menu·item·to·the·end·of·the·menu. |
15 | See·al_insert_menu_item(3alleg5)·for·more·information. | 17 | See·al_insert_menu_item(3alleg5)·for·more·information. |
16 | .SH·SINCE | 18 | .SH·SINCE |
17 | 5.1.0 | 19 | 5.1.0 |
18 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_append_native_text_log(ALLEGRO_TEXTLOG·*textlog, | 10 | void·al_append_native_text_log(ALLEGRO_TEXTLOG·*textlog, |
11 | ···char·const·*format,·...) | 11 | ···char·const·*format,·...) |
12 | void·al_append_native_text_log(ALLEGRO_TEXTLOG·*textlog, | ||
13 | ···char·const·*format,·...) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Appends·a·line·of·text·to·the·message·log·window·and·scrolls·to·the | 16 | Appends·a·line·of·text·to·the·message·log·window·and·scrolls·to·the |
15 | bottom·(if·the·line·would·not·be·visible·otherwise). | 17 | bottom·(if·the·line·would·not·be·visible·otherwise). |
16 | This·works·like·printf. | 18 | This·works·like·printf. |
17 | A·line·is·continued·until·you·add·a·newline·character. | 19 | A·line·is·continued·until·you·add·a·newline·character. |
18 | .PP | 20 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_attach_audio_stream_to_mixer·\-·Allegro·5·API | 5 | al_attach_audio_stream_to_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM·*stream,·ALLEGRO_MIXER·*mixer) | 10 | bool·al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM·*stream,·ALLEGRO_MIXER·*mixer) |
11 | bool·al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM·*stream,·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Attach·an·audio·stream·to·a·mixer. | 14 | Attach·an·audio·stream·to·a·mixer. |
14 | The·stream·must·not·already·be·attached·to·anything. | 15 | The·stream·must·not·already·be·attached·to·anything. |
15 | .PP | 16 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 17 | Returns·true·on·success,·false·on·failure. |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM·*stream, | 10 | bool·al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM·*stream, |
11 | ···ALLEGRO_VOICE·*voice) | 11 | ···ALLEGRO_VOICE·*voice) |
12 | bool·al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM·*stream, | ||
13 | ···ALLEGRO_VOICE·*voice) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Attaches·an·audio·stream·to·a·voice. | 16 | Attaches·an·audio·stream·to·a·voice. |
15 | The·same·rules·as·al_attach_sample_instance_to_voice(3alleg5)·apply. | 17 | The·same·rules·as·al_attach_sample_instance_to_voice(3alleg5)·apply. |
16 | This·may·fail·if·the·driver·can\[cq]t·create·a·voice·with·the·buffer | 18 | This·may·fail·if·the·driver·can\[cq]t·create·a·voice·with·the·buffer |
17 | count·and·buffer·size·the·stream·uses. | 19 | count·and·buffer·size·the·stream·uses. |
18 | .PP | 20 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_attach_mixer_to_mixer·\-·Allegro·5·API | 5 | al_attach_mixer_to_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_mixer_to_mixer(ALLEGRO_MIXER·*stream,·ALLEGRO_MIXER·*mixer) | 10 | bool·al_attach_mixer_to_mixer(ALLEGRO_MIXER·*stream,·ALLEGRO_MIXER·*mixer) |
11 | bool·al_attach_mixer_to_mixer(ALLEGRO_MIXER·*stream,·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Attaches·the·mixer·passed·as·the·first·argument·onto·the·mixer·passed·as | 14 | Attaches·the·mixer·passed·as·the·first·argument·onto·the·mixer·passed·as |
14 | the·second·argument. | 15 | the·second·argument. |
15 | The·first·mixer·(that·is·going·to·be·attached)·must·not·already·be | 16 | The·first·mixer·(that·is·going·to·be·attached)·must·not·already·be |
16 | attached·to·anything. | 17 | attached·to·anything. |
17 | Both·mixers·must·use·the·same·frequency,·audio·depth·and·channel | 18 | Both·mixers·must·use·the·same·frequency,·audio·depth·and·channel |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_attach_mixer_to_voice·\-·Allegro·5·API | 5 | al_attach_mixer_to_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_mixer_to_voice(ALLEGRO_MIXER·*mixer,·ALLEGRO_VOICE·*voice) | 10 | bool·al_attach_mixer_to_voice(ALLEGRO_MIXER·*mixer,·ALLEGRO_VOICE·*voice) |
11 | bool·al_attach_mixer_to_voice(ALLEGRO_MIXER·*mixer,·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Attaches·a·mixer·to·a·voice. | 14 | Attaches·a·mixer·to·a·voice. |
14 | It·must·have·the·same·frequency·and·channel·configuration,·but·the·depth | 15 | It·must·have·the·same·frequency·and·channel·configuration,·but·the·depth |
15 | may·be·different. | 16 | may·be·different. |
16 | .PP | 17 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 18 | Returns·true·on·success,·false·on·failure. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE·*spl, | 10 | bool·al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE·*spl, |
11 | ···ALLEGRO_MIXER·*mixer) | 11 | ···ALLEGRO_MIXER·*mixer) |
12 | bool·al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
13 | ···ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Attach·a·sample·instance·to·a·mixer. | 16 | Attach·a·sample·instance·to·a·mixer. |
15 | The·instance·must·not·already·be·attached·to·anything. | 17 | The·instance·must·not·already·be·attached·to·anything. |
16 | .PP | 18 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 19 | Returns·true·on·success,·false·on·failure. |
18 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE·*spl, | 10 | bool·al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE·*spl, |
11 | ···ALLEGRO_VOICE·*voice) | 11 | ···ALLEGRO_VOICE·*voice) |
12 | bool·al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
13 | ···ALLEGRO_VOICE·*voice) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Attaches·a·sample·instance·to·a·voice,·and·allows·it·to·play. | 16 | Attaches·a·sample·instance·to·a·voice,·and·allows·it·to·play. |
15 | The·instance\[cq]s·gain·and·loop·mode·will·be·ignored,·and·it·must·have | 17 | The·instance\[cq]s·gain·and·loop·mode·will·be·ignored,·and·it·must·have |
16 | the·same·frequency,·channel·configuration·and·depth·(including | 18 | the·same·frequency,·channel·configuration·and·depth·(including |
17 | signed\-ness)·as·the·voice. | 19 | signed\-ness)·as·the·voice. |
18 | This·function·may·fail·if·the·selected·driver·doesn\[cq]t·support | 20 | This·function·may·fail·if·the·selected·driver·doesn\[cq]t·support |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_build_menu·\-·Allegro·5·API | 5 | al_build_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_build_menu(ALLEGRO_MENU_INFO·*info) | 10 | ALLEGRO_MENU·*al_build_menu(ALLEGRO_MENU_INFO·*info) |
11 | ALLEGRO_MENU·*al_build_menu(ALLEGRO_MENU_INFO·*info) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Builds·a·menu·based·on·the·specifications·of·a·sequence·of | 14 | Builds·a·menu·based·on·the·specifications·of·a·sequence·of |
14 | \f[CR]ALLEGRO_MENU_INFO\f[R]·elements. | 15 | \f[CR]ALLEGRO_MENU_INFO\f[R]·elements. |
15 | .PP | 16 | .PP |
16 | Returns·a·pointer·to·the·root·\f[CR]ALLEGRO_MENU\f[R],·or | 17 | Returns·a·pointer·to·the·root·\f[CR]ALLEGRO_MENU\f[R],·or |
17 | \f[CR]NULL\f[R]·on·failure. | 18 | \f[CR]NULL\f[R]·on·failure. |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, | 10 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, |
11 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, | 11 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, |
12 | ···int·num_points) | 12 | ···int·num_points) |
13 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, | ||
14 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, | ||
15 | ···int·num_points) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | When·\f[CR]thickness·<=·0\f[R]·this·function·computes·positions·of | 18 | When·\f[CR]thickness·<=·0\f[R]·this·function·computes·positions·of |
16 | \f[CR]num_points\f[R]·regularly·spaced·points·on·an·elliptical·arc. | 19 | \f[CR]num_points\f[R]·regularly·spaced·points·on·an·elliptical·arc. |
17 | When·\f[CR]thickness·>·0\f[R]·this·function·computes·two·sets·of·points, | 20 | When·\f[CR]thickness·>·0\f[R]·this·function·computes·two·sets·of·points, |
18 | obtained·as·follows:·the·first·set·is·obtained·by·taking·the·points | 21 | obtained·as·follows:·the·first·set·is·obtained·by·taking·the·points |
19 | computed·in·the·\f[CR]thickness·<=·0\f[R]·case·and·shifting·them·by | 22 | computed·in·the·\f[CR]thickness·<=·0\f[R]·case·and·shifting·them·by |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_calculate_ribbon(float*·dest,·int·dest_stride,·const·float·*points, | 10 | void·al_calculate_ribbon(float*·dest,·int·dest_stride,·const·float·*points, |
11 | ···int·points_stride,·float·thickness,·int·num_segments) | 11 | ···int·points_stride,·float·thickness,·int·num_segments) |
12 | void·al_calculate_ribbon(float*·dest,·int·dest_stride,·const·float·*points, | ||
13 | ···int·points_stride,·float·thickness,·int·num_segments) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Calculates·a·ribbon·given·an·array·of·points. | 16 | Calculates·a·ribbon·given·an·array·of·points. |
15 | The·ribbon·will·go·through·all·of·the·passed·points. | 17 | The·ribbon·will·go·through·all·of·the·passed·points. |
16 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are | 18 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are |
17 | required·in·the·destination·buffer,·otherwise·twice·as·many·are·needed. | 19 | required·in·the·destination·buffer,·otherwise·twice·as·many·are·needed. |
18 | The·destination·and·the·points·buffer·should·consist·of·regularly·spaced | 20 | The·destination·and·the·points·buffer·should·consist·of·regularly·spaced |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_calculate_spline(float*·dest,·int·stride,·const·float·points[8], | 10 | void·al_calculate_spline(float*·dest,·int·stride,·const·float·points[8], |
11 | ···float·thickness,·int·num_segments) | 11 | ···float·thickness,·int·num_segments) |
12 | void·al_calculate_spline(float*·dest,·int·stride,·const·float·points[8], | ||
13 | ···float·thickness,·int·num_segments) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Calculates·a·Bézier·spline·given·4·control·points. | 16 | Calculates·a·Bézier·spline·given·4·control·points. |
15 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are | 17 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are |
16 | required·in·the·destination,·otherwise·twice·as·many·are·needed. | 18 | required·in·the·destination,·otherwise·twice·as·many·are·needed. |
17 | The·destination·buffer·should·consist·of·regularly·spaced·(by·distance | 19 | The·destination·buffer·should·consist·of·regularly·spaced·(by·distance |
18 | of·stride·bytes)·doublets·of·floats,·corresponding·to·x·and·y | 20 | of·stride·bytes)·doublets·of·floats,·corresponding·to·x·and·y |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·al_calloc(c,·n)·\[rs] | 10 | #define·al_calloc(c,·n)·\[rs] |
11 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | 11 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) |
12 | #define·al_calloc(c,·n)·\[rs] | ||
13 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be | 16 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be |
15 | overridden. | 17 | overridden. |
16 | .PP | 18 | .PP |
17 | This·is·a·macro. | 19 | This·is·a·macro. |
18 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_clone_menu·\-·Allegro·5·API | 5 | al_clone_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_clone_menu(ALLEGRO_MENU·*menu) | 10 | ALLEGRO_MENU·*al_clone_menu(ALLEGRO_MENU·*menu) |
11 | ALLEGRO_MENU·*al_clone_menu(ALLEGRO_MENU·*menu) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Makes·a·copy·of·a·menu·so·that·it·can·be·reused·on·another·display. | 14 | Makes·a·copy·of·a·menu·so·that·it·can·be·reused·on·another·display. |
14 | The·menu·being·cloned·can·be·anything:·a·regular·menu,·a·popup·menu,·or | 15 | The·menu·being·cloned·can·be·anything:·a·regular·menu,·a·popup·menu,·or |
15 | a·sub\-menu. | 16 | a·sub\-menu. |
16 | .PP | 17 | .PP |
17 | Returns·the·cloned·menu. | 18 | Returns·the·cloned·menu. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_clone_menu_for_popup·\-·Allegro·5·API | 5 | al_clone_menu_for_popup·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_clone_menu_for_popup(ALLEGRO_MENU·*menu) | 10 | ALLEGRO_MENU·*al_clone_menu_for_popup(ALLEGRO_MENU·*menu) |
11 | ALLEGRO_MENU·*al_clone_menu_for_popup(ALLEGRO_MENU·*menu) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Exactly·like·al_clone_menu(3alleg5),·except·that·the·copy·is·for·a·popup | 14 | Exactly·like·al_clone_menu(3alleg5),·except·that·the·copy·is·for·a·popup |
14 | menu. | 15 | menu. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.0 | 17 | 5.1.0 |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_close_native_text_log·\-·Allegro·5·API | 5 | al_close_native_text_log·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) | 10 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) |
11 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Closes·a·message·log·window·opened·with·al_open_native_text_log(3alleg5) | 14 | Closes·a·message·log·window·opened·with·al_open_native_text_log(3alleg5) |
14 | earlier. | 15 | earlier. |
15 | .PP | 16 | .PP |
16 | Does·nothing·if·passed·NULL. | 17 | Does·nothing·if·passed·NULL. |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_close_video·\-·Allegro·5·API | 5 | al_close_video·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | void·al_close_video(ALLEGRO_VIDEO·*video) | 10 | void·al_close_video(ALLEGRO_VIDEO·*video) |
11 | void·al_close_video(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Closes·the·video·and·frees·all·allocated·resources. | 14 | Closes·the·video·and·frees·all·allocated·resources. |
14 | The·video·pointer·is·invalid·after·the·function·returns. | 15 | The·video·pointer·is·invalid·after·the·function·returns. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.0 | 17 | 5.1.0 |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_color_cmyk·\-·Allegro·5·API | 5 | al_color_cmyk·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) | 10 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) |
11 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CMYK·values·(cyan, | 14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CMYK·values·(cyan, |
14 | magenta,·yellow,·black). | 15 | magenta,·yellow,·black). |
15 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
16 | al_color_cmyk_to_rgb(3alleg5),·al_color_rgb_to_cmyk(3alleg5) | 17 | al_color_cmyk_to_rgb(3alleg5),·al_color_rgb_to_cmyk(3alleg5) |
Offset 6, 12 lines modified | Offset 6, 14 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, | 10 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, |
11 | ····float·key,·float·*red,·float·*green,·float·*blue) | 11 | ····float·key,·float·*red,·float·*green,·float·*blue) |
12 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, | ||
13 | ····float·key,·float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·CMYK·values·to·RGB·values. | 16 | Convert·CMYK·values·to·RGB·values. |
15 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
16 | al_color_cmyk(3alleg5),·al_color_rgb_to_cmyk(3alleg5) | 18 | al_color_cmyk(3alleg5),·al_color_rgb_to_cmyk(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | double·al_color_distance_ciede2000(ALLEGRO_COLOR·color1, | 10 | double·al_color_distance_ciede2000(ALLEGRO_COLOR·color1, |
11 | ······ALLEGRO_COLOR·color2)·{ | 11 | ······ALLEGRO_COLOR·color2)·{ |
12 | double·al_color_distance_ciede2000(ALLEGRO_COLOR·color1, | ||
13 | ······ALLEGRO_COLOR·color2)·{ | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | This·function·computes·the·CIEDE2000·color·difference·between·two·RGB | 16 | This·function·computes·the·CIEDE2000·color·difference·between·two·RGB |
15 | colors. | 17 | colors. |
16 | This·is·a·visually·uniform·color·difference,·unlike·for·example·the·RGB | 18 | This·is·a·visually·uniform·color·difference,·unlike·for·example·the·RGB |
17 | distance. | 19 | distance. |
18 | .PP | 20 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_color_hsl·\-·Allegro·5·API | 5 | al_color_hsl·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | 10 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) |
11 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSL·(hue,·saturation, | 14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSL·(hue,·saturation, |
14 | lightness)·values. | 15 | lightness)·values. |
15 | .PP | 16 | .PP |
16 | Parameters: | 17 | Parameters: |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, | 10 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, |
11 | ···float·*red,·float·*green,·float·*blue) | 11 | ···float·*red,·float·*green,·float·*blue) |
12 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, | ||
13 | ···float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·values·in·HSL·color·model·to·RGB·color·model. | 16 | Convert·values·in·HSL·color·model·to·RGB·color·model. |
15 | .PP | 17 | .PP |
16 | Parameters: | 18 | Parameters: |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | hue·\-·Color·hue·angle·in·the·range·0..360 | 20 | hue·\-·Color·hue·angle·in·the·range·0..360 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_color_hsv·\-·Allegro·5·API | 5 | al_color_hsv·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | 10 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) |
11 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSV·(hue,·saturation, | 14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSV·(hue,·saturation, |
14 | value)·values. | 15 | value)·values. |
15 | .PP | 16 | .PP |
16 | Parameters: | 17 | Parameters: |
17 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, | 10 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, |
11 | ···float·*red,·float·*green,·float·*blue) | 11 | ···float·*red,·float·*green,·float·*blue) |
12 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, | ||
13 | ···float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·values·in·HSV·color·model·to·RGB·color·model. | 16 | Convert·values·in·HSV·color·model·to·RGB·color·model. |
15 | .PP | 17 | .PP |
16 | Parameters: | 18 | Parameters: |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | hue·\-·Color·hue·angle·in·the·range·0..360 | 20 | hue·\-·Color·hue·angle·in·the·range·0..360 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_color_html·\-·Allegro·5·API | 5 | al_color_html·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_html(char·const·*string) | 10 | ALLEGRO_COLOR·al_color_html(char·const·*string) |
11 | ALLEGRO_COLOR·al_color_html(char·const·*string) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. | 14 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. |
14 | The·accepted·format·is·the·same·as·al_color_html_to_rgb(3alleg5). | 15 | The·accepted·format·is·the·same·as·al_color_html_to_rgb(3alleg5). |
15 | .PP | 16 | .PP |
16 | Returns·the·interpreted·color,·or·\f[CR]al_map_rgba(0,·0,·0,·0)\f[R]·if | 17 | Returns·the·interpreted·color,·or·\f[CR]al_map_rgba(0,·0,·0,·0)\f[R]·if |
17 | the·string·could·not·be·parsed. | 18 | the·string·could·not·be·parsed. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | bool·al_color_html_to_rgb(char·const·*string, | 10 | bool·al_color_html_to_rgb(char·const·*string, |
11 | ···float·*red,·float·*green,·float·*blue) | 11 | ···float·*red,·float·*green,·float·*blue) |
12 | bool·al_color_html_to_rgb(char·const·*string, | ||
13 | ···float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. | 16 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. |
15 | The·only·accepted·formats·are·\[lq]#RRGGBB\[rq]·and·\[lq]RRGGBB\[rq] | 17 | The·only·accepted·formats·are·\[lq]#RRGGBB\[rq]·and·\[lq]RRGGBB\[rq] |
16 | where·R,·G,·B·are·hexadecimal·digits·[0\-9A\-Fa\-f]. | 18 | where·R,·G,·B·are·hexadecimal·digits·[0\-9A\-Fa\-f]. |
17 | .PP | 19 | .PP |
18 | Returns·true·on·success,·false·on·failure. | 20 | Returns·true·on·success,·false·on·failure. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_color_lab·\-·Allegro·5·API | 5 | al_color_lab·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_lab(float·l,·float·a,·float·b) | 10 | ALLEGRO_COLOR·al_color_lab(float·l,·float·a,·float·b) |
11 | ALLEGRO_COLOR·al_color_lab(float·l,·float·a,·float·b) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·L*a*b*·values. | 14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·L*a*b*·values. |
14 | The·L*·component·corresponds·to·luminance·from·0..1. | 15 | The·L*·component·corresponds·to·luminance·from·0..1. |
15 | The·a*·and·b*·components·are·in·the·range·\-1..+1. | 16 | The·a*·and·b*·components·are·in·the·range·\-1..+1. |
16 | .RS | 17 | .RS |
17 | .PP | 18 | .PP |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_lab_to_rgb(float·l,·float·a,·float·b, | 10 | void·al_color_lab_to_rgb(float·l,·float·a,·float·b, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_lab_to_rgb(float·l,·float·a,·float·b, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·CIE·L*a*b*·color·values·to·RGB·color·space. | 16 | Convert·CIE·L*a*b*·color·values·to·RGB·color·space. |
15 | .SH·SINCE | 17 | .SH·SINCE |
16 | 5.2.3 | 18 | 5.2.3 |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | al_color_lab(3alleg5),·al_color_rgb_to_lab(3alleg5) | 20 | al_color_lab(3alleg5),·al_color_rgb_to_lab(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_color_lch·\-·Allegro·5·API | 5 | al_color_lch·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_lch(float·l,·float·c,·float·h) | 10 | ALLEGRO_COLOR·al_color_lch(float·l,·float·c,·float·h) |
11 | ALLEGRO_COLOR·al_color_lch(float·l,·float·c,·float·h) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·LCH·values. | 14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·LCH·values. |
14 | LCH·colors·are·very·similar·to·HSL,·with·the·same·meaning·of·L·and·H·and | 15 | LCH·colors·are·very·similar·to·HSL,·with·the·same·meaning·of·L·and·H·and |
15 | C·corresponding·to·S.·However·LCH·is·more·visually·uniform. | 16 | C·corresponding·to·S.·However·LCH·is·more·visually·uniform. |
16 | Furthermore,·this·function·expects·the·angle·for·H·in·radians·and·not·in | 17 | Furthermore,·this·function·expects·the·angle·for·H·in·radians·and·not·in |
17 | degree. | 18 | degree. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_lch_to_rgb(float·l,·float·c,·float·h, | 10 | void·al_color_lch_to_rgb(float·l,·float·c,·float·h, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_lch_to_rgb(float·l,·float·c,·float·h, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·CIE·LCH·color·values·to·RGB·color·space. | 16 | Convert·CIE·LCH·color·values·to·RGB·color·space. |
15 | .SH·SINCE | 17 | .SH·SINCE |
16 | 5.2.3 | 18 | 5.2.3 |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | al_color_lch(3alleg5),·al_color_rgb_to_lch(3alleg5) | 20 | al_color_lch(3alleg5),·al_color_rgb_to_lch(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_color_linear·\-·Allegro·5·API | 5 | al_color_linear·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_linear(float·r,·float·g,·float·b) | 10 | ALLEGRO_COLOR·al_color_linear(float·r,·float·g,·float·b) |
11 | ALLEGRO_COLOR·al_color_linear(float·r,·float·g,·float·b) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·linear·sRGB·values. | 14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·linear·sRGB·values. |
14 | Allegro·RGB·values·are·assumed·to·be·sRGB. | 15 | Allegro·RGB·values·are·assumed·to·be·sRGB. |
15 | The·sRGB·standard·is·in·wide·use·by·various·display·devices. | 16 | The·sRGB·standard·is·in·wide·use·by·various·display·devices. |
16 | It·accounts·for·a·standard·gamma·correction·applied·to·RGB·colors·before | 17 | It·accounts·for·a·standard·gamma·correction·applied·to·RGB·colors·before |
17 | they·get·displayed. | 18 | they·get·displayed. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_linear_to_rgb(float·r,·float·g,·float·b, | 10 | void·al_color_linear_to_rgb(float·r,·float·g,·float·b, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_linear_to_rgb(float·r,·float·g,·float·b, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·linear·sRGB·color·values·to·gamma·corrected·(i.e.\·normal)·RGB | 16 | Convert·linear·sRGB·color·values·to·gamma·corrected·(i.e.\·normal)·RGB |
15 | values. | 17 | values. |
16 | .SH·SINCE | 18 | .SH·SINCE |
17 | 5.2.8 | 19 | 5.2.8 |
18 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_color_name·\-·Allegro·5·API | 5 | al_color_name·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_name(char·const·*name) | 10 | ALLEGRO_COLOR·al_color_name(char·const·*name) |
11 | ALLEGRO_COLOR·al_color_name(char·const·*name) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·with·the·given·name. | 14 | Return·an·ALLEGRO_COLOR(3alleg5)·with·the·given·name. |
14 | If·the·color·is·not·found·then·black·is·returned. | 15 | If·the·color·is·not·found·then·black·is·returned. |
15 | .PP | 16 | .PP |
16 | See·al_color_name_to_rgb(3alleg5)·for·the·list·of·names. | 17 | See·al_color_name_to_rgb(3alleg5)·for·the·list·of·names. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_color_name_to_rgb·\-·Allegro·5·API | 5 | al_color_name_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) | 10 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) |
11 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Parameters: | 14 | Parameters: |
14 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
15 | name·\-·The·(lowercase)·name·of·the·color. | 16 | name·\-·The·(lowercase)·name·of·the·color. |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | r,·g,·b·\-·If·one·of·the·recognized·color·names·below·is·passed,·the | 18 | r,·g,·b·\-·If·one·of·the·recognized·color·names·below·is·passed,·the |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_color_oklab·\-·Allegro·5·API | 5 | al_color_oklab·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_oklab(float·l,·float·a,·float·b) | 10 | ALLEGRO_COLOR·al_color_oklab(float·l,·float·a,·float·b) |
11 | ALLEGRO_COLOR·al_color_oklab(float·l,·float·a,·float·b) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·Oklab·values. | 14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·Oklab·values. |
14 | The·L·component·corresponds·to·luminance·from·0..1. | 15 | The·L·component·corresponds·to·luminance·from·0..1. |
15 | The·a·and·b·components·are·in·the·range·\-1..+1. | 16 | The·a·and·b·components·are·in·the·range·\-1..+1. |
16 | .RS | 17 | .RS |
17 | .PP | 18 | .PP |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_oklab_to_rgb(float·ol,·float·oa,·float·ob, | 10 | void·al_color_oklab_to_rgb(float·ol,·float·oa,·float·ob, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_oklab_to_rgb(float·ol,·float·oa,·float·ob, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·Oklab·color·values·to·RGB. | 16 | Convert·Oklab·color·values·to·RGB. |
15 | .SH·SINCE | 17 | .SH·SINCE |
16 | 5.2.8 | 18 | 5.2.8 |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | al_color_oklab(3alleg5),·al_color_rgb_to_oklab(3alleg5) | 20 | al_color_oklab(3alleg5),·al_color_rgb_to_oklab(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_cmyk(float·red,·float·green,·float·blue, | 10 | void·al_color_rgb_to_cmyk(float·red,·float·green,·float·blue, |
11 | ···float·*cyan,·float·*magenta,·float·*yellow,·float·*key) | 11 | ···float·*cyan,·float·*magenta,·float·*yellow,·float·*key) |
12 | void·al_color_rgb_to_cmyk(float·red,·float·green,·float·blue, | ||
13 | ···float·*cyan,·float·*magenta,·float·*yellow,·float·*key) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Each·RGB·color·can·be·represented·in·CMYK·with·a·K·component·of·0·with | 16 | Each·RGB·color·can·be·represented·in·CMYK·with·a·K·component·of·0·with |
15 | the·following·formula: | 17 | the·following·formula: |
16 | .IP | 18 | .IP |
17 | .EX | 19 | .EX |
18 | C·=·1·\-·R | 20 | C·=·1·\-·R |
Offset 6, 13 lines modified | Offset 6, 15 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_hsl(float·red,·float·green,·float·blue, | 10 | void·al_color_rgb_to_hsl(float·red,·float·green,·float·blue, |
11 | ···float·*hue,·float·*saturation,·float·*lightness) | 11 | ···float·*hue,·float·*saturation,·float·*lightness) |
12 | void·al_color_rgb_to_hsl(float·red,·float·green,·float·blue, | ||
13 | ···float·*hue,·float·*saturation,·float·*lightness) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue | 16 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue |
15 | in·degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1. | 17 | in·degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1. |
16 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
17 | al_color_hsl_to_rgb(3alleg5),·al_color_hsl(3alleg5) | 19 | al_color_hsl_to_rgb(3alleg5),·al_color_hsl(3alleg5) |
Offset 6, 13 lines modified | Offset 6, 15 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_hsv(float·red,·float·green,·float·blue, | 10 | void·al_color_rgb_to_hsv(float·red,·float·green,·float·blue, |
11 | ···float·*hue,·float·*saturation,·float·*value) | 11 | ···float·*hue,·float·*saturation,·float·*value) |
12 | void·al_color_rgb_to_hsv(float·red,·float·green,·float·blue, | ||
13 | ···float·*hue,·float·*saturation,·float·*value) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue | 16 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue |
15 | in·degrees·from·0..360·and·saturation·and·value·in·the·range·0..1. | 17 | in·degrees·from·0..360·and·saturation·and·value·in·the·range·0..1. |
16 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
17 | al_color_hsv_to_rgb(3alleg5),·al_color_hsv(3alleg5) | 19 | al_color_hsv_to_rgb(3alleg5),·al_color_hsv(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, | 10 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, |
11 | ····char·*string) | 11 | ····char·*string) |
12 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, | ||
13 | ····char·*string) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Create·an·HTML\-style·string·representation·of·an | 16 | Create·an·HTML\-style·string·representation·of·an |
15 | ALLEGRO_COLOR(3alleg5),·e.g.\·#00faff. | 17 | ALLEGRO_COLOR(3alleg5),·e.g.\·#00faff. |
16 | .PP | 18 | .PP |
17 | Parameters: | 19 | Parameters: |
18 | .IP·\[bu]·2 | 20 | .IP·\[bu]·2 |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_lab(float·red,·float·green,·float·blue, | 10 | void·al_color_rgb_to_lab(float·red,·float·green,·float·blue, |
11 | ···float·*l,·float·*a,·float·*b) | 11 | ···float·*l,·float·*a,·float·*b) |
12 | void·al_color_rgb_to_lab(float·red,·float·green,·float·blue, | ||
13 | ···float·*l,·float·*a,·float·*b) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·L*a*b*·color·space. | 16 | Convert·RGB·values·to·L*a*b*·color·space. |
15 | .SH·SINCE | 17 | .SH·SINCE |
16 | 5.2.3 | 18 | 5.2.3 |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | al_color_lab(3alleg5),·al_color_lab_to_rgb(3alleg5) | 20 | al_color_lab(3alleg5),·al_color_lab_to_rgb(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_lch(float·red,·float·green,·float·blue, | 10 | void·al_color_rgb_to_lch(float·red,·float·green,·float·blue, |
11 | ···float·*l,·float·*c,·float·*h) | 11 | ···float·*l,·float·*c,·float·*h) |
12 | void·al_color_rgb_to_lch(float·red,·float·green,·float·blue, | ||
13 | ···float·*l,·float·*c,·float·*h) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·CIE·LCH·color·space. | 16 | Convert·RGB·values·to·CIE·LCH·color·space. |
15 | .SH·SINCE | 17 | .SH·SINCE |
16 | 5.2.3 | 18 | 5.2.3 |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | al_color_lch(3alleg5),·al_color_lch_to_rgb(3alleg5) | 20 | al_color_lch(3alleg5),·al_color_lch_to_rgb(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_linear(float·red,·float·green,·float·blue, | 10 | void·al_color_rgb_to_linear(float·red,·float·green,·float·blue, |
11 | ···float·*r,·float·*g,·float·*b) | 11 | ···float·*r,·float·*g,·float·*b) |
12 | void·al_color_rgb_to_linear(float·red,·float·green,·float·blue, | ||
13 | ···float·*r,·float·*g,·float·*b) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·gamma·corrected·sRGB·values·(i.e.\·normal·RGB)·to·linear·sRGB | 16 | Convert·gamma·corrected·sRGB·values·(i.e.\·normal·RGB)·to·linear·sRGB |
15 | space. | 17 | space. |
16 | .SH·SINCE | 18 | .SH·SINCE |
17 | 5.2.8 | 19 | 5.2.8 |
18 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_color_rgb_to_name·\-·Allegro·5·API | 5 | al_color_rgb_to_name·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | char·const·*al_color_rgb_to_name(float·r,·float·g,·float·b) | 10 | char·const·*al_color_rgb_to_name(float·r,·float·g,·float·b) |
11 | char·const·*al_color_rgb_to_name(float·r,·float·g,·float·b) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·find·a·color | 14 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·find·a·color |
14 | name·describing·it·approximately. | 15 | name·describing·it·approximately. |
15 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
16 | al_color_name_to_rgb(3alleg5),·al_color_name(3alleg5) | 17 | al_color_name_to_rgb(3alleg5),·al_color_name(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_oklab(float·red,·float·green,·float·blue, | 10 | void·al_color_rgb_to_oklab(float·red,·float·green,·float·blue, |
11 | ···float·*ol,·float·*oa,·float·*ob) | 11 | ···float·*ol,·float·*oa,·float·*ob) |
12 | void·al_color_rgb_to_oklab(float·red,·float·green,·float·blue, | ||
13 | ···float·*ol,·float·*oa,·float·*ob) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·the·Oklab·color·space. | 16 | Convert·RGB·values·to·the·Oklab·color·space. |
15 | .SH·SINCE | 17 | .SH·SINCE |
16 | 5.2.8 | 18 | 5.2.8 |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | al_color_oklab(3alleg5),·al_color_oklab_to_rgb(3alleg5) | 20 | al_color_oklab(3alleg5),·al_color_oklab_to_rgb(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_xyy(float·red,·float·green,·float·blue, | 10 | void·al_color_rgb_to_xyy(float·red,·float·green,·float·blue, |
11 | ···float·*x,·float·*y,·float·*y2) | 11 | ···float·*x,·float·*y,·float·*y2) |
12 | void·al_color_rgb_to_xyy(float·red,·float·green,·float·blue, | ||
13 | ···float·*x,·float·*y,·float·*y2) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·xyY·color·space. | 16 | Convert·RGB·values·to·xyY·color·space. |
15 | .SH·SINCE | 17 | .SH·SINCE |
16 | 5.2.3 | 18 | 5.2.3 |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | al_color_xyy(3alleg5),·al_color_xyy_to_rgb(3alleg5) | 20 | al_color_xyy(3alleg5),·al_color_xyy_to_rgb(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_xyz(float·red,·float·green,·float·blue, | 10 | void·al_color_rgb_to_xyz(float·red,·float·green,·float·blue, |
11 | ···float·*x,·float·*y,·float·*z) | 11 | ···float·*x,·float·*y,·float·*z) |
12 | void·al_color_rgb_to_xyz(float·red,·float·green,·float·blue, | ||
13 | ···float·*x,·float·*y,·float·*z) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·XYZ·color·space. | 16 | Convert·RGB·values·to·XYZ·color·space. |
15 | .SH·SINCE | 17 | .SH·SINCE |
16 | 5.2.3 | 18 | 5.2.3 |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | al_color_xyz(3alleg5),·al_color_xyz_to_rgb(3alleg5) | 20 | al_color_xyz(3alleg5),·al_color_xyz_to_rgb(3alleg5) |
Offset 6, 12 lines modified | Offset 6, 14 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_yuv(float·red,·float·green,·float·blue, | 10 | void·al_color_rgb_to_yuv(float·red,·float·green,·float·blue, |
11 | ···float·*y,·float·*u,·float·*v) | 11 | ···float·*y,·float·*u,·float·*v) |
12 | void·al_color_rgb_to_yuv(float·red,·float·green,·float·blue, | ||
13 | ···float·*y,·float·*u,·float·*v) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·YUV·color·space. | 16 | Convert·RGB·values·to·YUV·color·space. |
15 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
16 | al_color_yuv(3alleg5),·al_color_yuv_to_rgb(3alleg5) | 18 | al_color_yuv(3alleg5),·al_color_yuv_to_rgb(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_color_xyy·\-·Allegro·5·API | 5 | al_color_xyy·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_xyy(float·x,·float·y,·float·y2) | 10 | ALLEGRO_COLOR·al_color_xyy(float·x,·float·y,·float·y2) |
11 | ALLEGRO_COLOR·al_color_xyy(float·x,·float·y,·float·y2) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·xyY·values. | 14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·xyY·values. |
14 | The·Y·component·in·the·xyY·color·space·is·the·same·as·the·Y·in·XYZ. | 15 | The·Y·component·in·the·xyY·color·space·is·the·same·as·the·Y·in·XYZ. |
15 | .PP | 16 | .PP |
16 | However·the·x·and·y·values·are·computed·from·XYZ·like·this: | 17 | However·the·x·and·y·values·are·computed·from·XYZ·like·this: |
17 | .IP | 18 | .IP |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_xyy_to_rgb(float·x,·float·y,·float·y2, | 10 | void·al_color_xyy_to_rgb(float·x,·float·y,·float·y2, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_xyy_to_rgb(float·x,·float·y,·float·y2, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·xyY·color·values·to·RGB·color·space. | 16 | Convert·xyY·color·values·to·RGB·color·space. |
15 | .SH·SINCE | 17 | .SH·SINCE |
16 | 5.2.3 | 18 | 5.2.3 |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | al_color_xyy(3alleg5),·al_color_rgb_to_xyy(3alleg5) | 20 | al_color_xyy(3alleg5),·al_color_rgb_to_xyy(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_color_xyz·\-·Allegro·5·API | 5 | al_color_xyz·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_xyz(float·x,·float·y,·float·z) | 10 | ALLEGRO_COLOR·al_color_xyz(float·x,·float·y,·float·z) |
11 | ALLEGRO_COLOR·al_color_xyz(float·x,·float·y,·float·z) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·XYZ·values. | 14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·XYZ·values. |
14 | The·CIE·1931·XYZ·color·space·consists·of·three·components·in·the·range | 15 | The·CIE·1931·XYZ·color·space·consists·of·three·components·in·the·range |
15 | 0..1. | 16 | 0..1. |
16 | The·Y·component·corresponds·to·luminance·and·the·X·and·Z·components | 17 | The·Y·component·corresponds·to·luminance·and·the·X·and·Z·components |
17 | define·the·color. | 18 | define·the·color. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_xyz_to_rgb(float·x,·float·y,·float·z, | 10 | void·al_color_xyz_to_rgb(float·x,·float·y,·float·z, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_xyz_to_rgb(float·x,·float·y,·float·z, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·XYZ·color·values·to·RGB·color·space. | 16 | Convert·XYZ·color·values·to·RGB·color·space. |
15 | .SH·SINCE | 17 | .SH·SINCE |
16 | 5.2.3 | 18 | 5.2.3 |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | al_color_xyz(3alleg5),·al_color_rgb_to_xyz(3alleg5) | 20 | al_color_xyz(3alleg5),·al_color_rgb_to_xyz(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_color_yuv·\-·Allegro·5·API | 5 | al_color_yuv·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_yuv(float·y,·float·u,·float·v) | 10 | ALLEGRO_COLOR·al_color_yuv(float·y,·float·u,·float·v) |
11 | ALLEGRO_COLOR·al_color_yuv(float·y,·float·u,·float·v) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·YUV·values. | 14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·YUV·values. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_color_yuv_to_rgb(3alleg5),·al_color_rgb_to_yuv(3alleg5) | 16 | al_color_yuv_to_rgb(3alleg5),·al_color_rgb_to_yuv(3alleg5) |
Offset 6, 12 lines modified | Offset 6, 14 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_yuv_to_rgb(float·y,·float·u,·float·v, | 10 | void·al_color_yuv_to_rgb(float·y,·float·u,·float·v, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_yuv_to_rgb(float·y,·float·u,·float·v, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Convert·YUV·color·values·to·RGB·color·space. | 16 | Convert·YUV·color·values·to·RGB·color·space. |
15 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
16 | al_color_yuv(3alleg5),·al_color_rgb_to_yuv(3alleg5) | 18 | al_color_yuv(3alleg5),·al_color_rgb_to_yuv(3alleg5) |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_RECORDER·*al_create_audio_recorder(size_t·fragment_count, | 10 | ALLEGRO_AUDIO_RECORDER·*al_create_audio_recorder(size_t·fragment_count, |
11 | ···unsigned·int·samples,·unsigned·int·frequency, | 11 | ···unsigned·int·samples,·unsigned·int·frequency, |
12 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | 12 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) |
13 | ALLEGRO_AUDIO_RECORDER·*al_create_audio_recorder(size_t·fragment_count, | ||
14 | ···unsigned·int·samples,·unsigned·int·frequency, | ||
15 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Creates·an·audio·recorder·using·the·system\[cq]s·default·recording | 18 | Creates·an·audio·recorder·using·the·system\[cq]s·default·recording |
16 | device. | 19 | device. |
17 | (So·if·the·returned·device·does·not·work,·try·updating·the·system\[cq]s | 20 | (So·if·the·returned·device·does·not·work,·try·updating·the·system\[cq]s |
18 | default·recording·device.) | 21 | default·recording·device.) |
19 | .PP | 22 | .PP |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_STREAM·*al_create_audio_stream(size_t·fragment_count, | 10 | ALLEGRO_AUDIO_STREAM·*al_create_audio_stream(size_t·fragment_count, |
11 | ···unsigned·int·frag_samples,·unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, | 11 | ···unsigned·int·frag_samples,·unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, |
12 | ···ALLEGRO_CHANNEL_CONF·chan_conf) | 12 | ···ALLEGRO_CHANNEL_CONF·chan_conf) |
13 | ALLEGRO_AUDIO_STREAM·*al_create_audio_stream(size_t·fragment_count, | ||
14 | ···unsigned·int·frag_samples,·unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, | ||
15 | ···ALLEGRO_CHANNEL_CONF·chan_conf) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Creates·an·ALLEGRO_AUDIO_STREAM(3alleg5). | 18 | Creates·an·ALLEGRO_AUDIO_STREAM(3alleg5). |
16 | The·stream·will·be·set·to·play·by·default. | 19 | The·stream·will·be·set·to·play·by·default. |
17 | It·will·feed·audio·data·from·a·buffer,·which·is·split·into·a·number·of | 20 | It·will·feed·audio·data·from·a·buffer,·which·is·split·into·a·number·of |
18 | fragments. | 21 | fragments. |
19 | .PP | 22 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_create_builtin_font·\-·Allegro·5·API | 5 | al_create_builtin_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_create_builtin_font(void) | 10 | ALLEGRO_FONT·*al_create_builtin_font(void) |
11 | ALLEGRO_FONT·*al_create_builtin_font(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Creates·a·monochrome·bitmap·font·(8x8·pixels·per·character). | 14 | Creates·a·monochrome·bitmap·font·(8x8·pixels·per·character). |
14 | .PP | 15 | .PP |
15 | This·font·is·primarily·intended·to·be·used·for·displaying·information·in | 16 | This·font·is·primarily·intended·to·be·used·for·displaying·information·in |
16 | environments·or·during·early·runtime·states·where·no·external·font·data | 17 | environments·or·during·early·runtime·states·where·no·external·font·data |
17 | is·available·or·loaded·(e.g.\·for·debugging). | 18 | is·available·or·loaded·(e.g.\·for·debugging). |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | ALLEGRO_INDEX_BUFFER*·al_create_index_buffer(int·index_size, | 10 | ALLEGRO_INDEX_BUFFER*·al_create_index_buffer(int·index_size, |
11 | ····const·void*·initial_data,·int·num_indices,·int·flags) | 11 | ····const·void*·initial_data,·int·num_indices,·int·flags) |
12 | ALLEGRO_INDEX_BUFFER*·al_create_index_buffer(int·index_size, | ||
13 | ····const·void*·initial_data,·int·num_indices,·int·flags) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Creates·a·index·buffer. | 16 | Creates·a·index·buffer. |
15 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system | 17 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system |
16 | only·supports·write\-only·buffers). | 18 | only·supports·write\-only·buffers). |
17 | .RS | 19 | .RS |
18 | .PP | 20 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_create_menu·\-·Allegro·5·API | 5 | al_create_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_create_menu(void) | 10 | ALLEGRO_MENU·*al_create_menu(void) |
11 | ALLEGRO_MENU·*al_create_menu(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Creates·a·menu·container·that·can·hold·menu·items. | 14 | Creates·a·menu·container·that·can·hold·menu·items. |
14 | .PP | 15 | .PP |
15 | Returns·\f[CR]NULL\f[R]·on·failure. | 16 | Returns·\f[CR]NULL\f[R]·on·failure. |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.1.0 | 18 | 5.1.0 |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_MIXER·*al_create_mixer(unsigned·int·freq, | 10 | ALLEGRO_MIXER·*al_create_mixer(unsigned·int·freq, |
11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | 11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) |
12 | ALLEGRO_MIXER·*al_create_mixer(unsigned·int·freq, | ||
13 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Creates·a·mixer·to·attach·sample·instances,·audio·streams,·or·other | 16 | Creates·a·mixer·to·attach·sample·instances,·audio·streams,·or·other |
15 | mixers·to. | 17 | mixers·to. |
16 | It·will·mix·into·a·buffer·at·the·requested·frequency·(in·Hz)·and·channel | 18 | It·will·mix·into·a·buffer·at·the·requested·frequency·(in·Hz)·and·channel |
17 | count. | 19 | count. |
18 | .PP | 20 | .PP |
Offset 9, 14 lines modified | Offset 9, 19 lines modified | ||
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( | 10 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( |
11 | ···char·const·*initial_path, | 11 | ···char·const·*initial_path, |
12 | ···char·const·*title, | 12 | ···char·const·*title, |
13 | ···char·const·*patterns, | 13 | ···char·const·*patterns, |
14 | ···int·mode) | 14 | ···int·mode) |
15 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( | ||
16 | ···char·const·*initial_path, | ||
17 | ···char·const·*title, | ||
18 | ···char·const·*patterns, | ||
19 | ···int·mode) | ||
15 | .EE | 20 | .EE |
16 | .SH·DESCRIPTION | 21 | .SH·DESCRIPTION |
17 | Creates·a·new·native·file·dialog. | 22 | Creates·a·new·native·file·dialog. |
18 | You·should·only·have·one·such·dialog·opened·at·a·time. | 23 | You·should·only·have·one·such·dialog·opened·at·a·time. |
19 | .PP | 24 | .PP |
20 | Parameters: | 25 | Parameters: |
21 | .IP·\[bu]·2 | 26 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_create_popup_menu·\-·Allegro·5·API | 5 | al_create_popup_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_create_popup_menu(void) | 10 | ALLEGRO_MENU·*al_create_popup_menu(void) |
11 | ALLEGRO_MENU·*al_create_popup_menu(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Creates·a·menu·container·for·popup·menus. | 14 | Creates·a·menu·container·for·popup·menus. |
14 | Only·the·root·(outermost)·menu·should·be·created·with·this·function. | 15 | Only·the·root·(outermost)·menu·should·be·created·with·this·function. |
15 | Sub·menus·of·popups·should·be·created·with·al_create_menu(3alleg5). | 16 | Sub·menus·of·popups·should·be·created·with·al_create_menu(3alleg5). |
16 | .PP | 17 | .PP |
17 | Returns·\f[CR]NULL\f[R]·on·failure. | 18 | Returns·\f[CR]NULL\f[R]·on·failure. |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE·*al_create_sample(void·*buf,·unsigned·int·samples, | 10 | ALLEGRO_SAMPLE·*al_create_sample(void·*buf,·unsigned·int·samples, |
11 | ···unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, | 11 | ···unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, |
12 | ···ALLEGRO_CHANNEL_CONF·chan_conf,·bool·free_buf) | 12 | ···ALLEGRO_CHANNEL_CONF·chan_conf,·bool·free_buf) |
13 | ALLEGRO_SAMPLE·*al_create_sample(void·*buf,·unsigned·int·samples, | ||
14 | ···unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, | ||
15 | ···ALLEGRO_CHANNEL_CONF·chan_conf,·bool·free_buf) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Create·a·sample·data·structure·from·the·supplied·buffer. | 18 | Create·a·sample·data·structure·from·the·supplied·buffer. |
16 | If·\f[CR]free_buf\f[R]·is·true·then·the·buffer·will·be·freed·with | 19 | If·\f[CR]free_buf\f[R]·is·true·then·the·buffer·will·be·freed·with |
17 | al_free(3alleg5)·when·the·sample·data·structure·is·destroyed. | 20 | al_free(3alleg5)·when·the·sample·data·structure·is·destroyed. |
18 | For·portability·(especially·Windows),·the·buffer·should·have·been | 21 | For·portability·(especially·Windows),·the·buffer·should·have·been |
19 | allocated·with·al_malloc(3alleg5). | 22 | allocated·with·al_malloc(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_create_sample_instance·\-·Allegro·5·API | 5 | al_create_sample_instance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE_INSTANCE·*al_create_sample_instance(ALLEGRO_SAMPLE·*sample_data) | 10 | ALLEGRO_SAMPLE_INSTANCE·*al_create_sample_instance(ALLEGRO_SAMPLE·*sample_data) |
11 | ALLEGRO_SAMPLE_INSTANCE·*al_create_sample_instance(ALLEGRO_SAMPLE·*sample_data) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Creates·a·sample·instance,·using·the·supplied·sample·data. | 14 | Creates·a·sample·instance,·using·the·supplied·sample·data. |
14 | The·instance·must·be·attached·to·a·mixer·(or·voice)·in·order·to·actually | 15 | The·instance·must·be·attached·to·a·mixer·(or·voice)·in·order·to·actually |
15 | produce·output. | 16 | produce·output. |
16 | .PP | 17 | .PP |
17 | The·argument·may·be·NULL. | 18 | The·argument·may·be·NULL. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | ALLEGRO_VERTEX_BUFFER*·al_create_vertex_buffer(ALLEGRO_VERTEX_DECL*·decl, | 10 | ALLEGRO_VERTEX_BUFFER*·al_create_vertex_buffer(ALLEGRO_VERTEX_DECL*·decl, |
11 | ···const·void*·initial_data,·int·num_vertices,·int·flags) | 11 | ···const·void*·initial_data,·int·num_vertices,·int·flags) |
12 | ALLEGRO_VERTEX_BUFFER*·al_create_vertex_buffer(ALLEGRO_VERTEX_DECL*·decl, | ||
13 | ···const·void*·initial_data,·int·num_vertices,·int·flags) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Creates·a·vertex·buffer. | 16 | Creates·a·vertex·buffer. |
15 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system | 17 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system |
16 | only·supports·write\-only·buffers). | 18 | only·supports·write\-only·buffers). |
17 | .RS | 19 | .RS |
18 | .PP | 20 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_create_vertex_decl·\-·Allegro·5·API | 5 | al_create_vertex_decl·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | ALLEGRO_VERTEX_DECL*·al_create_vertex_decl(const·ALLEGRO_VERTEX_ELEMENT*·elements,·int·stride) | 10 | ALLEGRO_VERTEX_DECL*·al_create_vertex_decl(const·ALLEGRO_VERTEX_ELEMENT*·elements,·int·stride) |
11 | ALLEGRO_VERTEX_DECL*·al_create_vertex_decl(const·ALLEGRO_VERTEX_ELEMENT*·elements,·int·stride) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Creates·a·vertex·declaration,·which·describes·a·custom·vertex·format. | 14 | Creates·a·vertex·declaration,·which·describes·a·custom·vertex·format. |
14 | .PP | 15 | .PP |
15 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | elements·\-·An·array·of·ALLEGRO_VERTEX_ELEMENT(3alleg5)·structures. | 18 | elements·\-·An·array·of·ALLEGRO_VERTEX_ELEMENT(3alleg5)·structures. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_VOICE·*al_create_voice(unsigned·int·freq, | 10 | ALLEGRO_VOICE·*al_create_voice(unsigned·int·freq, |
11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | 11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) |
12 | ALLEGRO_VOICE·*al_create_voice(unsigned·int·freq, | ||
13 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Creates·a·voice·structure·and·allocates·a·voice·from·the·digital·sound | 16 | Creates·a·voice·structure·and·allocates·a·voice·from·the·digital·sound |
15 | driver. | 17 | driver. |
16 | The·passed·frequency·(in·Hz),·sample·format·and·channel·configuration | 18 | The·passed·frequency·(in·Hz),·sample·format·and·channel·configuration |
17 | are·used·as·a·hint·to·what·kind·of·data·will·be·sent·to·the·voice. | 19 | are·used·as·a·hint·to·what·kind·of·data·will·be·sent·to·the·voice. |
18 | However,·the·underlying·sound·driver·is·free·to·use·non\-matching | 20 | However,·the·underlying·sound·driver·is·free·to·use·non\-matching |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_destroy_audio_recorder·\-·Allegro·5·API | 5 | al_destroy_audio_recorder·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | 10 | void·al_destroy_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) |
11 | void·al_destroy_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Destroys·the·audio·recorder·and·frees·all·resources·associated·with·it. | 14 | Destroys·the·audio·recorder·and·frees·all·resources·associated·with·it. |
14 | It·is·safe·to·destroy·a·recorder·that·is·recording. | 15 | It·is·safe·to·destroy·a·recorder·that·is·recording. |
15 | .PP | 16 | .PP |
16 | You·may·receive·events·after·the·recorder·has·been·destroyed. | 17 | You·may·receive·events·after·the·recorder·has·been·destroyed. |
17 | They·must·be·ignored,·as·the·fragment·buffer·will·no·longer·be·valid. | 18 | They·must·be·ignored,·as·the·fragment·buffer·will·no·longer·be·valid. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_destroy_audio_stream·\-·Allegro·5·API | 5 | al_destroy_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | 10 | void·al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) |
11 | void·al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Destroy·an·audio·stream·which·was·created·with | 14 | Destroy·an·audio·stream·which·was·created·with |
14 | al_create_audio_stream(3alleg5)·or·al_load_audio_stream(3alleg5). | 15 | al_create_audio_stream(3alleg5)·or·al_load_audio_stream(3alleg5). |
15 | .RS | 16 | .RS |
16 | .PP | 17 | .PP |
17 | \f[I]Note:\f[R]·If·the·stream·is·still·attached·to·a·mixer·or·voice, | 18 | \f[I]Note:\f[R]·If·the·stream·is·still·attached·to·a·mixer·or·voice, |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_destroy_font·\-·Allegro·5·API | 5 | al_destroy_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_destroy_font(ALLEGRO_FONT·*f) | 10 | void·al_destroy_font(ALLEGRO_FONT·*f) |
11 | void·al_destroy_font(ALLEGRO_FONT·*f) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Frees·the·memory·being·used·by·a·font·structure. | 14 | Frees·the·memory·being·used·by·a·font·structure. |
14 | Does·nothing·if·passed·NULL. | 15 | Does·nothing·if·passed·NULL. |
15 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
16 | al_load_font(3alleg5) | 17 | al_load_font(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_destroy_index_buffer·\-·Allegro·5·API | 5 | al_destroy_index_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_destroy_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) | 10 | void·al_destroy_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) |
11 | void·al_destroy_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Destroys·a·index·buffer. | 14 | Destroys·a·index·buffer. |
14 | Does·nothing·if·passed·NULL. | 15 | Does·nothing·if·passed·NULL. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.8 | 17 | 5.1.8 |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_destroy_menu·\-·Allegro·5·API | 5 | al_destroy_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_destroy_menu(ALLEGRO_MENU·*menu) | 10 | void·al_destroy_menu(ALLEGRO_MENU·*menu) |
11 | void·al_destroy_menu(ALLEGRO_MENU·*menu) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Destroys·an·entire·menu,·including·its·sub\-menus. | 14 | Destroys·an·entire·menu,·including·its·sub\-menus. |
14 | Any·references·to·it·or·a·sub\-menu·are·no·longer·valid. | 15 | Any·references·to·it·or·a·sub\-menu·are·no·longer·valid. |
15 | It·is·safe·to·call·this·on·a·menu·that·is·currently·being·displayed. | 16 | It·is·safe·to·call·this·on·a·menu·that·is·currently·being·displayed. |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.1.0 | 18 | 5.1.0 |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_destroy_mixer·\-·Allegro·5·API | 5 | al_destroy_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_mixer(ALLEGRO_MIXER·*mixer) | 10 | void·al_destroy_mixer(ALLEGRO_MIXER·*mixer) |
11 | void·al_destroy_mixer(ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Destroys·the·mixer. | 14 | Destroys·the·mixer. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_create_mixer(3alleg5) | 16 | al_create_mixer(3alleg5) |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | al_destroy_native_file_dialog·\-·Allegro·5·API | 5 | al_destroy_native_file_dialog·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | 10 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) |
11 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Frees·up·all·resources·used·by·the·file·dialog. | 14 | Frees·up·all·resources·used·by·the·file·dialog. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_destroy_sample·\-·Allegro·5·API | 5 | al_destroy_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_sample(ALLEGRO_SAMPLE·*spl) | 10 | void·al_destroy_sample(ALLEGRO_SAMPLE·*spl) |
11 | void·al_destroy_sample(ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Free·the·sample·data·structure. | 14 | Free·the·sample·data·structure. |
14 | If·it·was·created·with·the·\f[CR]free_buf\f[R]·parameter·set·to·true, | 15 | If·it·was·created·with·the·\f[CR]free_buf\f[R]·parameter·set·to·true, |
15 | then·the·buffer·will·be·freed·with·al_free(3alleg5). | 16 | then·the·buffer·will·be·freed·with·al_free(3alleg5). |
16 | .PP | 17 | .PP |
17 | This·function·will·stop·any·sample·instances·which·may·be·playing·the | 18 | This·function·will·stop·any·sample·instances·which·may·be·playing·the |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_destroy_sample_instance·\-·Allegro·5·API | 5 | al_destroy_sample_instance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | void·al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | void·al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Detaches·the·sample·instance·from·anything·it·may·be·attached·to·and | 14 | Detaches·the·sample·instance·from·anything·it·may·be·attached·to·and |
14 | frees·it·(the·sample·data,·i.e.\·its·ALLEGRO_SAMPLE,·is·\f[I]not\f[R] | 15 | frees·it·(the·sample·data,·i.e.\·its·ALLEGRO_SAMPLE,·is·\f[I]not\f[R] |
15 | freed!). | 16 | freed!). |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_create_sample_instance(3alleg5) | 18 | al_create_sample_instance(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_destroy_vertex_buffer·\-·Allegro·5·API | 5 | al_destroy_vertex_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_destroy_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) | 10 | void·al_destroy_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) |
11 | void·al_destroy_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Destroys·a·vertex·buffer. | 14 | Destroys·a·vertex·buffer. |
14 | Does·nothing·if·passed·NULL. | 15 | Does·nothing·if·passed·NULL. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.3 | 17 | 5.1.3 |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_destroy_vertex_decl·\-·Allegro·5·API | 5 | al_destroy_vertex_decl·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL*·decl) | 10 | void·al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL*·decl) |
11 | void·al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL*·decl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Destroys·a·vertex·declaration. | 14 | Destroys·a·vertex·declaration. |
14 | .PP | 15 | .PP |
15 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | decl·\-·Vertex·declaration·to·destroy | 18 | decl·\-·Vertex·declaration·to·destroy |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_destroy_voice·\-·Allegro·5·API | 5 | al_destroy_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_voice(ALLEGRO_VOICE·*voice) | 10 | void·al_destroy_voice(ALLEGRO_VOICE·*voice) |
11 | void·al_destroy_voice(ALLEGRO_VOICE·*voice) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Destroys·the·voice·and·deallocates·it·from·the·digital·driver. | 14 | Destroys·the·voice·and·deallocates·it·from·the·digital·driver. |
14 | Does·nothing·if·the·voice·is·NULL. | 15 | Does·nothing·if·the·voice·is·NULL. |
15 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
16 | al_create_voice(3alleg5) | 17 | al_create_voice(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_detach_audio_stream·\-·Allegro·5·API | 5 | al_detach_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_detach_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | 10 | bool·al_detach_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) |
11 | bool·al_detach_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Detach·the·stream·from·whatever·it\[cq]s·attached·to,·if·anything. | 14 | Detach·the·stream·from·whatever·it\[cq]s·attached·to,·if·anything. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_attach_audio_stream_to_mixer(3alleg5), | 16 | al_attach_audio_stream_to_mixer(3alleg5), |
16 | al_attach_audio_stream_to_voice(3alleg5), | 17 | al_attach_audio_stream_to_voice(3alleg5), |
17 | al_get_audio_stream_attached(3alleg5). | 18 | al_get_audio_stream_attached(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_detach_mixer·\-·Allegro·5·API | 5 | al_detach_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_detach_mixer(ALLEGRO_MIXER·*mixer) | 10 | bool·al_detach_mixer(ALLEGRO_MIXER·*mixer) |
11 | bool·al_detach_mixer(ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Detach·the·mixer·from·whatever·it·is·attached·to,·if·anything. | 14 | Detach·the·mixer·from·whatever·it·is·attached·to,·if·anything. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_attach_mixer_to_mixer(3alleg5). | 16 | al_attach_mixer_to_mixer(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_detach_sample_instance·\-·Allegro·5·API | 5 | al_detach_sample_instance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | bool·al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | bool·al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Detach·the·sample·instance·from·whatever·it\[cq]s·attached·to,·if | 14 | Detach·the·sample·instance·from·whatever·it\[cq]s·attached·to,·if |
14 | anything. | 15 | anything. |
15 | .PP | 16 | .PP |
16 | Returns·true·on·success. | 17 | Returns·true·on·success. |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_detach_voice·\-·Allegro·5·API | 5 | al_detach_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_detach_voice(ALLEGRO_VOICE·*voice) | 10 | void·al_detach_voice(ALLEGRO_VOICE·*voice) |
11 | void·al_detach_voice(ALLEGRO_VOICE·*voice) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Detaches·the·mixer,·sample·instance·or·audio·stream·from·the·voice. | 14 | Detaches·the·mixer,·sample·instance·or·audio·stream·from·the·voice. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_attach_mixer_to_voice(3alleg5), | 16 | al_attach_mixer_to_voice(3alleg5), |
16 | al_attach_sample_instance_to_voice(3alleg5), | 17 | al_attach_sample_instance_to_voice(3alleg5), |
17 | al_attach_audio_stream_to_voice(3alleg5) | 18 | al_attach_audio_stream_to_voice(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_disable_menu_event_source·\-·Allegro·5·API | 5 | al_disable_menu_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_disable_menu_event_source(ALLEGRO_MENU·*menu) | 10 | void·al_disable_menu_event_source(ALLEGRO_MENU·*menu) |
11 | void·al_disable_menu_event_source(ALLEGRO_MENU·*menu) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Disables·a·unique·event·source·for·the·menu,·causing·it·to·use·the | 14 | Disables·a·unique·event·source·for·the·menu,·causing·it·to·use·the |
14 | default·event·source. | 15 | default·event·source. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.0 | 17 | 5.1.0 |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 8, 14 lines modified | Offset 8, 18 lines modified | ||
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_do_multiline_text(const·ALLEGRO_FONT·*font, | 10 | void·al_do_multiline_text(const·ALLEGRO_FONT·*font, |
11 | ···float·max_width,·const·char·*text, | 11 | ···float·max_width,·const·char·*text, |
12 | ···bool·(*cb)(int·line_num,·const·char·*line,·int·size,·void·*extra), | 12 | ···bool·(*cb)(int·line_num,·const·char·*line,·int·size,·void·*extra), |
13 | ···void·*extra) | 13 | ···void·*extra) |
14 | void·al_do_multiline_text(const·ALLEGRO_FONT·*font, | ||
15 | ···float·max_width,·const·char·*text, | ||
16 | ···bool·(*cb)(int·line_num,·const·char·*line,·int·size,·void·*extra), | ||
17 | ···void·*extra) | ||
14 | .EE | 18 | .EE |
15 | .SH·DESCRIPTION | 19 | .SH·DESCRIPTION |
16 | This·function·processes·the·\f[CR]text\f[R]·and·splits·it·into·lines·as | 20 | This·function·processes·the·\f[CR]text\f[R]·and·splits·it·into·lines·as |
17 | al_draw_multiline_text(3alleg5)·would,·and·then·calls·the·callback | 21 | al_draw_multiline_text(3alleg5)·would,·and·then·calls·the·callback |
18 | \f[CR]cb\f[R]·once·for·every·line. | 22 | \f[CR]cb\f[R]·once·for·every·line. |
19 | This·is·useful·for·custom·drawing·of·multiline·text,·or·for·calculating | 23 | This·is·useful·for·custom·drawing·of·multiline·text,·or·for·calculating |
20 | the·size·of·multiline·text·ahead·of·time. | 24 | the·size·of·multiline·text·ahead·of·time. |
Offset 8, 14 lines modified | Offset 8, 18 lines modified | ||
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_do_multiline_ustr(const·ALLEGRO_FONT·*font,·float·max_width, | 10 | void·al_do_multiline_ustr(const·ALLEGRO_FONT·*font,·float·max_width, |
11 | ···const·ALLEGRO_USTR·*ustr, | 11 | ···const·ALLEGRO_USTR·*ustr, |
12 | ···bool·(*cb)(int·line_num,·const·ALLEGRO_USTR·*·line,·void·*extra), | 12 | ···bool·(*cb)(int·line_num,·const·ALLEGRO_USTR·*·line,·void·*extra), |
13 | ···void·*extra) | 13 | ···void·*extra) |
14 | void·al_do_multiline_ustr(const·ALLEGRO_FONT·*font,·float·max_width, | ||
15 | ···const·ALLEGRO_USTR·*ustr, | ||
16 | ···bool·(*cb)(int·line_num,·const·ALLEGRO_USTR·*·line,·void·*extra), | ||
17 | ···void·*extra) | ||
14 | .EE | 18 | .EE |
15 | .SH·DESCRIPTION | 19 | .SH·DESCRIPTION |
16 | Like·al_do_multiline_text(3alleg5),·but·using·ALLEGRO_USTR·instead·of·a | 20 | Like·al_do_multiline_text(3alleg5),·but·using·ALLEGRO_USTR·instead·of·a |
17 | NUL\-terminated·char·array·for·text. | 21 | NUL\-terminated·char·array·for·text. |
18 | .SH·SINCE | 22 | .SH·SINCE |
19 | 5.1.9 | 23 | 5.1.9 |
20 | .SH·SEE·ALSO | 24 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_drain_audio_stream·\-·Allegro·5·API | 5 | al_drain_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_drain_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | 10 | void·al_drain_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) |
11 | void·al_drain_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | You·should·call·this·to·finalise·an·audio·stream·that·you·will·no·longer | 14 | You·should·call·this·to·finalise·an·audio·stream·that·you·will·no·longer |
14 | be·feeding,·to·wait·for·all·pending·buffers·to·finish·playing. | 15 | be·feeding,·to·wait·for·all·pending·buffers·to·finish·playing. |
15 | The·stream\[cq]s·playing·state·will·change·to·false. | 16 | The·stream\[cq]s·playing·state·will·change·to·false. |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_destroy_audio_stream(3alleg5) | 18 | al_destroy_audio_stream(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_arc(float·cx,·float·cy,·float·r,·float·start_theta, | 10 | void·al_draw_arc(float·cx,·float·cy,·float·r,·float·start_theta, |
11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | 11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_arc(float·cx,·float·cy,·float·r,·float·start_theta, | ||
13 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·an·arc. | 16 | Draws·an·arc. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·arc | 20 | cx,·cy·\-·Center·of·the·arc |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color, | 10 | void·al_draw_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color, |
11 | ···float·thickness) | 11 | ···float·thickness) |
12 | void·al_draw_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color, | ||
13 | ···float·thickness) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·an·outlined·circle. | 16 | Draws·an·outlined·circle. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·circle | 20 | cx,·cy·\-·Center·of·the·circle |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_ellipse(float·cx,·float·cy,·float·rx,·float·ry, | 10 | void·al_draw_ellipse(float·cx,·float·cy,·float·rx,·float·ry, |
11 | ···ALLEGRO_COLOR·color,·float·thickness) | 11 | ···ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_ellipse(float·cx,·float·cy,·float·rx,·float·ry, | ||
13 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·an·outlined·ellipse. | 16 | Draws·an·outlined·ellipse. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·ellipse | 20 | cx,·cy·\-·Center·of·the·ellipse |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_elliptical_arc(float·cx,·float·cy,·float·rx,·float·ry,·float·start_theta, | 10 | void·al_draw_elliptical_arc(float·cx,·float·cy,·float·rx,·float·ry,·float·start_theta, |
11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | 11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_elliptical_arc(float·cx,·float·cy,·float·rx,·float·ry,·float·start_theta, | ||
13 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·an·elliptical·arc. | 16 | Draws·an·elliptical·arc. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·arc | 20 | cx,·cy·\-·Center·of·the·arc |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_draw_filled_circle·\-·Allegro·5·API | 5 | al_draw_filled_circle·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color) | 10 | void·al_draw_filled_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color) |
11 | void·al_draw_filled_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Draws·a·filled·circle. | 14 | Draws·a·filled·circle. |
14 | .PP | 15 | .PP |
15 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | cx,·cy·\-·Center·of·the·circle | 18 | cx,·cy·\-·Center·of·the·circle |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_ellipse(float·cx,·float·cy,·float·rx,·float·ry, | 10 | void·al_draw_filled_ellipse(float·cx,·float·cy,·float·rx,·float·ry, |
11 | ···ALLEGRO_COLOR·color) | 11 | ···ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_ellipse(float·cx,·float·cy,·float·rx,·float·ry, | ||
13 | ···ALLEGRO_COLOR·color) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·a·filled·ellipse. | 16 | Draws·a·filled·ellipse. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·ellipse | 20 | cx,·cy·\-·Center·of·the·ellipse |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, | 10 | void·al_draw_filled_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, |
11 | ···float·delta_theta,·ALLEGRO_COLOR·color) | 11 | ···float·delta_theta,·ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, | ||
13 | ···float·delta_theta,·ALLEGRO_COLOR·color) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·a·filled·pieslice·(filled·circular·sector). | 16 | Draws·a·filled·pieslice·(filled·circular·sector). |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·pieslice | 20 | cx,·cy·\-·Center·of·the·pieslice |
Offset 4, 14 lines modified | Offset 4, 15 lines modified | ||
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_filled_polygon·\-·Allegro·5·API | 5 | al_draw_filled_polygon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | ···ALLEGRO_COLOR·color) | ||
10 | void·al_draw_filled_polygon(const·float·*vertices,·int·vertex_count, | 11 | void·al_draw_filled_polygon(const·float·*vertices,·int·vertex_count, |
11 | ···ALLEGRO_COLOR·color) | 12 | ···ALLEGRO_COLOR·color) |
12 | .EE | 13 | .EE |
13 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
14 | Draw·a·filled,·simple·polygon. | 15 | Draw·a·filled,·simple·polygon. |
15 | Simple·means·it·does·not·have·to·be·convex·but·must·not·be | 16 | Simple·means·it·does·not·have·to·be·convex·but·must·not·be |
16 | self\-overlapping. | 17 | self\-overlapping. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_polygon_with_holes(const·float·*vertices, | 10 | void·al_draw_filled_polygon_with_holes(const·float·*vertices, |
11 | ···const·int·*vertex_counts,·ALLEGRO_COLOR·color) | 11 | ···const·int·*vertex_counts,·ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_polygon_with_holes(const·float·*vertices, | ||
13 | ···const·int·*vertex_counts,·ALLEGRO_COLOR·color) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·a·filled·simple·polygon·with·zero·or·more·other·simple·polygons | 16 | Draws·a·filled·simple·polygon·with·zero·or·more·other·simple·polygons |
15 | subtracted·from·it·\-·the·holes. | 17 | subtracted·from·it·\-·the·holes. |
16 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·filled | 18 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·filled |
17 | polygon. | 19 | polygon. |
18 | .IP·\[bu]·2 | 20 | .IP·\[bu]·2 |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 10 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···ALLEGRO_COLOR·color) | 11 | ···ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···ALLEGRO_COLOR·color) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·a·filled·rectangle. | 16 | Draws·a·filled·rectangle. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 20 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 10 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) | 11 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·an·filled·rounded·rectangle. | 16 | Draws·an·filled·rounded·rectangle. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 20 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 10 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | 11 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·a·filled·triangle. | 16 | Draws·a·filled·triangle. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle | 20 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_glyph(const·ALLEGRO_FONT·*f,·ALLEGRO_COLOR·color,·float·x,·float·y, | 10 | void·al_draw_glyph(const·ALLEGRO_FONT·*f,·ALLEGRO_COLOR·color,·float·x,·float·y, |
11 | ···int·codepoint) | 11 | ···int·codepoint) |
12 | void·al_draw_glyph(const·ALLEGRO_FONT·*f,·ALLEGRO_COLOR·color,·float·x,·float·y, | ||
13 | ···int·codepoint) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·the·glyph·that·corresponds·with·\f[CR]codepoint\f[R]·in·the·given | 16 | Draws·the·glyph·that·corresponds·with·\f[CR]codepoint\f[R]·in·the·given |
15 | \f[CR]color\f[R]·using·the·given·\f[CR]font\f[R]. | 17 | \f[CR]color\f[R]·using·the·given·\f[CR]font\f[R]. |
16 | If·\f[CR]font\f[R]·does·not·have·such·a·glyph,·nothing·will·be·drawn. | 18 | If·\f[CR]font\f[R]·does·not·have·such·a·glyph,·nothing·will·be·drawn. |
17 | .PP | 19 | .PP |
18 | To·draw·a·string·as·left·to·right·horizontal·text·you·will·need·to·use | 20 | To·draw·a·string·as·left·to·right·horizontal·text·you·will·need·to·use |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, | 10 | int·al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, |
11 | ···ALLEGRO_BITMAP*·texture,·ALLEGRO_INDEX_BUFFER*·index_buffer, | 11 | ···ALLEGRO_BITMAP*·texture,·ALLEGRO_INDEX_BUFFER*·index_buffer, |
12 | ···int·start,·int·end,·int·type) | 12 | ···int·start,·int·end,·int·type) |
13 | int·al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, | ||
14 | ···ALLEGRO_BITMAP*·texture,·ALLEGRO_INDEX_BUFFER*·index_buffer, | ||
15 | ···int·start,·int·end,·int·type) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Draws·a·subset·of·the·passed·vertex·buffer. | 18 | Draws·a·subset·of·the·passed·vertex·buffer. |
16 | This·function·uses·an·index·buffer·to·specify·which·vertices·to·use. | 19 | This·function·uses·an·index·buffer·to·specify·which·vertices·to·use. |
17 | Both·buffers·must·not·be·locked. | 20 | Both·buffers·must·not·be·locked. |
18 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures | 21 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures |
19 | both·buffers·must·support·reading·(i.e.\·they·must·be·created·with·the | 22 | both·buffers·must·support·reading·(i.e.\·they·must·be·created·with·the |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_draw_indexed_prim(const·void*·vtxs,·const·ALLEGRO_VERTEX_DECL*·decl, | 10 | int·al_draw_indexed_prim(const·void*·vtxs,·const·ALLEGRO_VERTEX_DECL*·decl, |
11 | ···ALLEGRO_BITMAP*·texture,·const·int*·indices,·int·num_vtx,·int·type) | 11 | ···ALLEGRO_BITMAP*·texture,·const·int*·indices,·int·num_vtx,·int·type) |
12 | int·al_draw_indexed_prim(const·void*·vtxs,·const·ALLEGRO_VERTEX_DECL*·decl, | ||
13 | ···ALLEGRO_BITMAP*·texture,·const·int*·indices,·int·num_vtx,·int·type) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·a·subset·of·the·passed·vertex·array. | 16 | Draws·a·subset·of·the·passed·vertex·array. |
15 | This·function·uses·an·index·array·to·specify·which·vertices·to·use. | 17 | This·function·uses·an·index·array·to·specify·which·vertices·to·use. |
16 | .PP | 18 | .PP |
17 | \f[I]Parameters:\f[R] | 19 | \f[I]Parameters:\f[R] |
18 | .IP·\[bu]·2 | 20 | .IP·\[bu]·2 |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_justified_text(const·ALLEGRO_FONT·*font, | 10 | void·al_draw_justified_text(const·ALLEGRO_FONT·*font, |
11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, | 11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, |
12 | ···float·y,·float·diff,·int·flags,·const·char·*text) | 12 | ···float·y,·float·diff,·int·flags,·const·char·*text) |
13 | void·al_draw_justified_text(const·ALLEGRO_FONT·*font, | ||
14 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, | ||
15 | ···float·y,·float·diff,·int·flags,·const·char·*text) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Like·al_draw_text(3alleg5),·but·justifies·the·string·to·the·region | 18 | Like·al_draw_text(3alleg5),·but·justifies·the·string·to·the·region |
16 | x1\-x2. | 19 | x1\-x2. |
17 | .PP | 20 | .PP |
18 | The·\f[CR]diff\f[R]·parameter·is·the·maximum·amount·of·horizontal·space | 21 | The·\f[CR]diff\f[R]·parameter·is·the·maximum·amount·of·horizontal·space |
19 | to·allow·between·words. | 22 | to·allow·between·words. |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_justified_textf(const·ALLEGRO_FONT·*f, | 10 | void·al_draw_justified_textf(const·ALLEGRO_FONT·*f, |
11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2,·float·y, | 11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2,·float·y, |
12 | ···float·diff,·int·flags,·const·char·*format,·...) | 12 | ···float·diff,·int·flags,·const·char·*format,·...) |
13 | void·al_draw_justified_textf(const·ALLEGRO_FONT·*f, | ||
14 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2,·float·y, | ||
15 | ···float·diff,·int·flags,·const·char·*format,·...) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Formatted·text·output,·using·a·printf()·style·format·string. | 18 | Formatted·text·output,·using·a·printf()·style·format·string. |
16 | All·parameters·have·the·same·meaning·as·with | 19 | All·parameters·have·the·same·meaning·as·with |
17 | al_draw_justified_text(3alleg5)·otherwise. | 20 | al_draw_justified_text(3alleg5)·otherwise. |
18 | .SH·SEE·ALSO | 21 | .SH·SEE·ALSO |
19 | al_draw_justified_text(3alleg5),·al_draw_justified_ustr(3alleg5). | 22 | al_draw_justified_text(3alleg5),·al_draw_justified_ustr(3alleg5). |
Offset 7, 13 lines modified | Offset 7, 16 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_justified_ustr(const·ALLEGRO_FONT·*font, | 10 | void·al_draw_justified_ustr(const·ALLEGRO_FONT·*font, |
11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, | 11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, |
12 | ···float·y,·float·diff,·int·flags,·const·ALLEGRO_USTR·*ustr) | 12 | ···float·y,·float·diff,·int·flags,·const·ALLEGRO_USTR·*ustr) |
13 | void·al_draw_justified_ustr(const·ALLEGRO_FONT·*font, | ||
14 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, | ||
15 | ···float·y,·float·diff,·int·flags,·const·ALLEGRO_USTR·*ustr) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Like·al_draw_justified_text(3alleg5),·except·the·text·is·passed·as·an | 18 | Like·al_draw_justified_text(3alleg5),·except·the·text·is·passed·as·an |
16 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 19 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
17 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
18 | al_draw_justified_text(3alleg5),·al_draw_justified_textf(3alleg5). | 21 | al_draw_justified_text(3alleg5),·al_draw_justified_textf(3alleg5). |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, | 10 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···ALLEGRO_COLOR·color,·float·thickness) | 11 | ···ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·a·line·segment·between·two·points. | 16 | Draws·a·line·segment·between·two·points. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2·\-·Start·and·end·points·of·the·line | 20 | x1,·y1,·x2,·y2·\-·Start·and·end·points·of·the·line |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_multiline_text(const·ALLEGRO_FONT·*font, | 10 | void·al_draw_multiline_text(const·ALLEGRO_FONT·*font, |
11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | 11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, |
12 | ·····int·flags,·const·char·*text) | 12 | ·····int·flags,·const·char·*text) |
13 | void·al_draw_multiline_text(const·ALLEGRO_FONT·*font, | ||
14 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | ||
15 | ·····int·flags,·const·char·*text) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Like·al_draw_text(3alleg5),·but·this·function·supports·drawing·multiple | 18 | Like·al_draw_text(3alleg5),·but·this·function·supports·drawing·multiple |
16 | lines·of·text. | 19 | lines·of·text. |
17 | It·will·break·\f[CR]text\f[R]·in·lines·based·on·its·contents·and·the | 20 | It·will·break·\f[CR]text\f[R]·in·lines·based·on·its·contents·and·the |
18 | \f[CR]max_width\f[R]·parameter. | 21 | \f[CR]max_width\f[R]·parameter. |
19 | The·lines·are·then·layed·out·vertically·depending·on·the | 22 | The·lines·are·then·layed·out·vertically·depending·on·the |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_multiline_textf(const·ALLEGRO_FONT·*font, | 10 | void·al_draw_multiline_textf(const·ALLEGRO_FONT·*font, |
11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | 11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, |
12 | ·····int·flags,·const·char·*format,·...) | 12 | ·····int·flags,·const·char·*format,·...) |
13 | void·al_draw_multiline_textf(const·ALLEGRO_FONT·*font, | ||
14 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | ||
15 | ·····int·flags,·const·char·*format,·...) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Formatted·text·output,·using·a·printf()·style·format·string. | 18 | Formatted·text·output,·using·a·printf()·style·format·string. |
16 | All·parameters·have·the·same·meaning·as·with | 19 | All·parameters·have·the·same·meaning·as·with |
17 | al_draw_multiline_text(3alleg5)·otherwise. | 20 | al_draw_multiline_text(3alleg5)·otherwise. |
18 | .SH·SINCE | 21 | .SH·SINCE |
19 | 5.1.9 | 22 | 5.1.9 |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_multiline_ustr(const·ALLEGRO_FONT·*font, | 10 | void·al_draw_multiline_ustr(const·ALLEGRO_FONT·*font, |
11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | 11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, |
12 | ·····int·flags,·const·ALLEGRO_USTR·*ustr) | 12 | ·····int·flags,·const·ALLEGRO_USTR·*ustr) |
13 | void·al_draw_multiline_ustr(const·ALLEGRO_FONT·*font, | ||
14 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | ||
15 | ·····int·flags,·const·ALLEGRO_USTR·*ustr) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Like·al_draw_multiline_text(3alleg5),·except·the·text·is·passed·as·an | 18 | Like·al_draw_multiline_text(3alleg5),·except·the·text·is·passed·as·an |
16 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 19 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
17 | .SH·SINCE | 20 | .SH·SINCE |
18 | 5.1.9 | 21 | 5.1.9 |
19 | .SH·SEE·ALSO | 22 | .SH·SEE·ALSO |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, | 10 | void·al_draw_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, |
11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | 11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, | ||
13 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·a·pieslice·(outlined·circular·sector). | 16 | Draws·a·pieslice·(outlined·circular·sector). |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·pieslice | 20 | cx,·cy·\-·Center·of·the·pieslice |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_polygon(const·float·*vertices,·int·vertex_count, | 10 | void·al_draw_polygon(const·float·*vertices,·int·vertex_count, |
11 | ···int·join_style,·ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) | 11 | ···int·join_style,·ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) |
12 | void·al_draw_polygon(const·float·*vertices,·int·vertex_count, | ||
13 | ···int·join_style,·ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draw·an·unfilled·polygon. | 16 | Draw·an·unfilled·polygon. |
15 | This·is·the·same·as·passing·\f[CR]ALLEGRO_LINE_CAP_CLOSED\f[R]·to | 17 | This·is·the·same·as·passing·\f[CR]ALLEGRO_LINE_CAP_CLOSED\f[R]·to |
16 | al_draw_polyline(3alleg5). | 18 | al_draw_polyline(3alleg5). |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | vertex·\-·Interleaved·array·of·(x,·y)·vertex·coordinates | 20 | vertex·\-·Interleaved·array·of·(x,·y)·vertex·coordinates |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_polyline(const·float*·vertices,·int·vertex_stride, | 10 | void·al_draw_polyline(const·float*·vertices,·int·vertex_stride, |
11 | ···int·vertex_count,·int·join_style,·int·cap_style, | 11 | ···int·vertex_count,·int·join_style,·int·cap_style, |
12 | ···ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) | 12 | ···ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) |
13 | void·al_draw_polyline(const·float*·vertices,·int·vertex_stride, | ||
14 | ···int·vertex_count,·int·join_style,·int·cap_style, | ||
15 | ···ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Draw·a·series·of·line·segments. | 18 | Draw·a·series·of·line·segments. |
16 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
17 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates | 20 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates |
18 | .IP·\[bu]·2 | 21 | .IP·\[bu]·2 |
19 | vertex_stride·\-·the·number·of·bytes·between·pairs·of·vertices·(the | 22 | vertex_stride·\-·the·number·of·bytes·between·pairs·of·vertices·(the |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_draw_prim(const·void*·vtxs,·const·ALLEGRO_VERTEX_DECL*·decl, | 10 | int·al_draw_prim(const·void*·vtxs,·const·ALLEGRO_VERTEX_DECL*·decl, |
11 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) | 11 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) |
12 | int·al_draw_prim(const·void*·vtxs,·const·ALLEGRO_VERTEX_DECL*·decl, | ||
13 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·a·subset·of·the·passed·vertex·array. | 16 | Draws·a·subset·of·the·passed·vertex·array. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | texture·\-·Texture·to·use,·pass·NULL·to·use·only·color·shaded·primitves | 20 | texture·\-·Texture·to·use,·pass·NULL·to·use·only·color·shaded·primitves |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 10 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···ALLEGRO_COLOR·color,·float·thickness) | 11 | ···ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·an·outlined·rectangle. | 16 | Draws·an·outlined·rectangle. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 20 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_ribbon(const·float·*points,·int·points_stride,·ALLEGRO_COLOR·color, | 10 | void·al_draw_ribbon(const·float·*points,·int·points_stride,·ALLEGRO_COLOR·color, |
11 | ···float·thickness,·int·num_segments) | 11 | ···float·thickness,·int·num_segments) |
12 | void·al_draw_ribbon(const·float·*points,·int·points_stride,·ALLEGRO_COLOR·color, | ||
13 | ···float·thickness,·int·num_segments) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·a·ribbon·given·an·array·of·points. | 16 | Draws·a·ribbon·given·an·array·of·points. |
15 | The·ribbon·will·go·through·all·of·the·passed·points. | 17 | The·ribbon·will·go·through·all·of·the·passed·points. |
16 | The·points·buffer·should·consist·of·regularly·spaced·doublets·of·floats, | 18 | The·points·buffer·should·consist·of·regularly·spaced·doublets·of·floats, |
17 | corresponding·to·x·and·y·coordinates·of·the·vertices. | 19 | corresponding·to·x·and·y·coordinates·of·the·vertices. |
18 | .PP | 20 | .PP |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 10 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | 11 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·an·outlined·rounded·rectangle. | 16 | Draws·an·outlined·rounded·rectangle. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 20 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 8, 14 lines modified | Offset 8, 18 lines modified | ||
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_soft_line(ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·uintptr_t·state, | 10 | void·al_draw_soft_line(ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·uintptr_t·state, |
11 | ···void·(*first)(uintptr_t,·int,·int,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), | 11 | ···void·(*first)(uintptr_t,·int,·int,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), |
12 | ···void·(*step)(uintptr_t,·int), | 12 | ···void·(*step)(uintptr_t,·int), |
13 | ···void·(*draw)(uintptr_t,·int,·int)) | 13 | ···void·(*draw)(uintptr_t,·int,·int)) |
14 | void·al_draw_soft_line(ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·uintptr_t·state, | ||
15 | ···void·(*first)(uintptr_t,·int,·int,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), | ||
16 | ···void·(*step)(uintptr_t,·int), | ||
17 | ···void·(*draw)(uintptr_t,·int,·int)) | ||
14 | .EE | 18 | .EE |
15 | .SH·DESCRIPTION | 19 | .SH·DESCRIPTION |
16 | Draws·a·line·using·the·software·rasterizer·and·user·supplied·pixel | 20 | Draws·a·line·using·the·software·rasterizer·and·user·supplied·pixel |
17 | functions. | 21 | functions. |
18 | For·help·in·understanding·what·these·functions·do,·see·the | 22 | For·help·in·understanding·what·these·functions·do,·see·the |
19 | implementation·of·the·various·shading·routines·in | 23 | implementation·of·the·various·shading·routines·in |
20 | addons/primitives/line_soft.c. | 24 | addons/primitives/line_soft.c. |
Offset 10, 14 lines modified | Offset 10, 20 lines modified | ||
10 | void·al_draw_soft_triangle( | 10 | void·al_draw_soft_triangle( |
11 | ···ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·ALLEGRO_VERTEX*·v3,·uintptr_t·state, | 11 | ···ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·ALLEGRO_VERTEX*·v3,·uintptr_t·state, |
12 | ···void·(*init)(uintptr_t,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), | 12 | ···void·(*init)(uintptr_t,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), |
13 | ···void·(*first)(uintptr_t,·int,·int,·int,·int), | 13 | ···void·(*first)(uintptr_t,·int,·int,·int,·int), |
14 | ···void·(*step)(uintptr_t,·int), | 14 | ···void·(*step)(uintptr_t,·int), |
15 | ···void·(*draw)(uintptr_t,·int,·int,·int)) | 15 | ···void·(*draw)(uintptr_t,·int,·int,·int)) |
16 | void·al_draw_soft_triangle( | ||
17 | ···ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·ALLEGRO_VERTEX*·v3,·uintptr_t·state, | ||
18 | ···void·(*init)(uintptr_t,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), | ||
19 | ···void·(*first)(uintptr_t,·int,·int,·int,·int), | ||
20 | ···void·(*step)(uintptr_t,·int), | ||
21 | ···void·(*draw)(uintptr_t,·int,·int,·int)) | ||
16 | .EE | 22 | .EE |
17 | .SH·DESCRIPTION | 23 | .SH·DESCRIPTION |
18 | Draws·a·triangle·using·the·software·rasterizer·and·user·supplied·pixel | 24 | Draws·a·triangle·using·the·software·rasterizer·and·user·supplied·pixel |
19 | functions. | 25 | functions. |
20 | For·help·in·understanding·what·these·functions·do,·see·the | 26 | For·help·in·understanding·what·these·functions·do,·see·the |
21 | implementation·of·the·various·shading·routines·in | 27 | implementation·of·the·various·shading·routines·in |
22 | addons/primitives/tri_soft.c. | 28 | addons/primitives/tri_soft.c. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_draw_spline·\-·Allegro·5·API | 5 | al_draw_spline·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_spline(const·float·points[8],·ALLEGRO_COLOR·color,·float·thickness) | 10 | void·al_draw_spline(const·float·points[8],·ALLEGRO_COLOR·color,·float·thickness) |
11 | void·al_draw_spline(const·float·points[8],·ALLEGRO_COLOR·color,·float·thickness) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Draws·a·Bézier·spline·given·4·control·points. | 14 | Draws·a·Bézier·spline·given·4·control·points. |
14 | .PP | 15 | .PP |
15 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
16 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
17 | points·\-·An·array·of·4·pairs·of·coordinates·of·the·4·control·points | 18 | points·\-·An·array·of·4·pairs·of·coordinates·of·the·4·control·points |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_text(const·ALLEGRO_FONT·*font, | 10 | void·al_draw_text(const·ALLEGRO_FONT·*font, |
11 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, | 11 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, |
12 | ···char·const·*text)· | 12 | ···char·const·*text)· |
13 | void·al_draw_text(const·ALLEGRO_FONT·*font, | ||
14 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, | ||
15 | ···char·const·*text)· | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Writes·the·NUL\-terminated·string·\f[CR]text\f[R]·onto·the·target·bitmap | 18 | Writes·the·NUL\-terminated·string·\f[CR]text\f[R]·onto·the·target·bitmap |
16 | at·position·\f[CR]x\f[R],·\f[CR]y\f[R],·using·the·specified | 19 | at·position·\f[CR]x\f[R],·\f[CR]y\f[R],·using·the·specified |
17 | \f[CR]font\f[R]. | 20 | \f[CR]font\f[R]. |
18 | .PP | 21 | .PP |
19 | The·\f[CR]flags\f[R]·parameter·can·be·0·or·one·of·the·following·flags: | 22 | The·\f[CR]flags\f[R]·parameter·can·be·0·or·one·of·the·following·flags: |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_textf(const·ALLEGRO_FONT·*font,·ALLEGRO_COLOR·color, | 10 | void·al_draw_textf(const·ALLEGRO_FONT·*font,·ALLEGRO_COLOR·color, |
11 | ···float·x,·float·y,·int·flags, | 11 | ···float·x,·float·y,·int·flags, |
12 | ···const·char·*format,·...) | 12 | ···const·char·*format,·...) |
13 | void·al_draw_textf(const·ALLEGRO_FONT·*font,·ALLEGRO_COLOR·color, | ||
14 | ···float·x,·float·y,·int·flags, | ||
15 | ···const·char·*format,·...) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Formatted·text·output,·using·a·printf()·style·format·string. | 18 | Formatted·text·output,·using·a·printf()·style·format·string. |
16 | All·parameters·have·the·same·meaning·as·with·al_draw_text(3alleg5) | 19 | All·parameters·have·the·same·meaning·as·with·al_draw_text(3alleg5) |
17 | otherwise. | 20 | otherwise. |
18 | .SH·SEE·ALSO | 21 | .SH·SEE·ALSO |
19 | al_draw_text(3alleg5),·al_draw_ustr(3alleg5) | 22 | al_draw_text(3alleg5),·al_draw_ustr(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 10 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | 11 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·an·outlined·triangle. | 16 | Draws·an·outlined·triangle. |
15 | .PP | 17 | .PP |
16 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle | 20 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_ustr(const·ALLEGRO_FONT·*font, | 10 | void·al_draw_ustr(const·ALLEGRO_FONT·*font, |
11 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, | 11 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, |
12 | ···const·ALLEGRO_USTR·*ustr)· | 12 | ···const·ALLEGRO_USTR·*ustr)· |
13 | void·al_draw_ustr(const·ALLEGRO_FONT·*font, | ||
14 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, | ||
15 | ···const·ALLEGRO_USTR·*ustr)· | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Like·al_draw_text(3alleg5),·except·the·text·is·passed·as·an·ALLEGRO_USTR | 18 | Like·al_draw_text(3alleg5),·except·the·text·is·passed·as·an·ALLEGRO_USTR |
16 | instead·of·a·NUL\-terminated·char·array. | 19 | instead·of·a·NUL\-terminated·char·array. |
17 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
18 | al_draw_text(3alleg5),·al_draw_justified_ustr(3alleg5), | 21 | al_draw_text(3alleg5),·al_draw_justified_ustr(3alleg5), |
19 | al_draw_multiline_ustr(3alleg5) | 22 | al_draw_multiline_ustr(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, | 10 | int·al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, |
11 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) | 11 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) |
12 | int·al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, | ||
13 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Draws·a·subset·of·the·passed·vertex·buffer. | 16 | Draws·a·subset·of·the·passed·vertex·buffer. |
15 | The·vertex·buffer·must·not·be·locked. | 17 | The·vertex·buffer·must·not·be·locked. |
16 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures | 18 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures |
17 | the·vertex·buffer·must·support·reading·(i.e. | 19 | the·vertex·buffer·must·support·reading·(i.e. |
18 | it·must·be·created·with·the·\f[CR]ALLEGRO_PRIM_BUFFER_READWRITE\f[R]). | 20 | it·must·be·created·with·the·\f[CR]ALLEGRO_PRIM_BUFFER_READWRITE\f[R]). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_enable_menu_event_source·\-·Allegro·5·API | 5 | al_enable_menu_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_enable_menu_event_source(ALLEGRO_MENU·*menu) | 10 | ALLEGRO_EVENT_SOURCE·*al_enable_menu_event_source(ALLEGRO_MENU·*menu) |
11 | ALLEGRO_EVENT_SOURCE·*al_enable_menu_event_source(ALLEGRO_MENU·*menu) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Enables·a·unique·event·source·for·this·menu. | 14 | Enables·a·unique·event·source·for·this·menu. |
14 | It·and·all·of·its·sub\-menus·will·use·this·event·source. | 15 | It·and·all·of·its·sub\-menus·will·use·this·event·source. |
15 | (It·is·safe·to·call·this·multiple·times·on·the·same·menu.) | 16 | (It·is·safe·to·call·this·multiple·times·on·the·same·menu.) |
16 | .PP | 17 | .PP |
17 | Returns·the·event·source. | 18 | Returns·the·event·source. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_fill_silence(void·*buf,·unsigned·int·samples, | 10 | void·al_fill_silence(void·*buf,·unsigned·int·samples, |
11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | 11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) |
12 | void·al_fill_silence(void·*buf,·unsigned·int·samples, | ||
13 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Fill·a·buffer·with·silence,·for·the·given·format·and·channel | 16 | Fill·a·buffer·with·silence,·for·the·given·format·and·channel |
15 | configuration. | 17 | configuration. |
16 | The·buffer·must·have·enough·space·for·the·given·number·of·samples,·and | 18 | The·buffer·must·have·enough·space·for·the·given·number·of·samples,·and |
17 | be·properly·aligned. | 19 | be·properly·aligned. |
18 | .SH·SINCE | 20 | .SH·SINCE |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_find_menu·\-·Allegro·5·API | 5 | al_find_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_find_menu(ALLEGRO_MENU·*haystack,·uint16_t·id) | 10 | ALLEGRO_MENU·*al_find_menu(ALLEGRO_MENU·*haystack,·uint16_t·id) |
11 | ALLEGRO_MENU·*al_find_menu(ALLEGRO_MENU·*haystack,·uint16_t·id) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·any·submenu·with·the·given | 14 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·any·submenu·with·the·given |
14 | \f[CR]id\f[R]. | 15 | \f[CR]id\f[R]. |
15 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an | 16 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an |
16 | index.) | 17 | index.) |
17 | .PP | 18 | .PP |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_find_menu_item(ALLEGRO_MENU·*haystack,·uint16_t·id,·ALLEGRO_MENU·**menu, | 10 | bool·al_find_menu_item(ALLEGRO_MENU·*haystack,·uint16_t·id,·ALLEGRO_MENU·**menu, |
11 | ···int·*index) | 11 | ···int·*index) |
12 | bool·al_find_menu_item(ALLEGRO_MENU·*haystack,·uint16_t·id,·ALLEGRO_MENU·**menu, | ||
13 | ···int·*index) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·an·item·with·the·given | 16 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·an·item·with·the·given |
15 | \f[CR]id\f[R]. | 17 | \f[CR]id\f[R]. |
16 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an | 18 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an |
17 | index.) | 19 | index.) |
18 | .PP | 20 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_fixed·\-·Allegro·5·API | 5 | al_fixed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·int32_t·al_fixed; | 10 | typedef·int32_t·al_fixed; |
11 | typedef·int32_t·al_fixed; | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | A·fixed·point·number. | 14 | A·fixed·point·number. |
14 | .PP | 15 | .PP |
15 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and | 16 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and |
16 | defines·the·type·\f[CR]al_fixed\f[R]·to·be·a·signed·32\-bit·integer. | 17 | defines·the·type·\f[CR]al_fixed\f[R]·to·be·a·signed·32\-bit·integer. |
17 | The·high·word·is·used·for·the·integer·part·and·the·low·word·for·the | 18 | The·high·word·is·used·for·the·integer·part·and·the·low·word·for·the |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·al_free(p)·\[rs] | 10 | #define·al_free(p)·\[rs] |
11 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | 11 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) |
12 | #define·al_free(p)·\[rs] | ||
13 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be | 16 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be |
15 | overridden. | 17 | overridden. |
16 | .PP | 18 | .PP |
17 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be | 19 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be |
18 | freed·from·the·same·DLL. | 20 | freed·from·the·same·DLL. |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_get_allegro_audio_version·\-·Allegro·5·API | 5 | al_get_allegro_audio_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | uint32_t·al_get_allegro_audio_version(void) | 10 | uint32_t·al_get_allegro_audio_version(void) |
11 | uint32_t·al_get_allegro_audio_version(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 15 | al_get_allegro_version(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_get_allegro_color_version·\-·Allegro·5·API | 5 | al_get_allegro_color_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | uint32_t·al_get_allegro_color_version(void) | 10 | uint32_t·al_get_allegro_color_version(void) |
11 | uint32_t·al_get_allegro_color_version(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 15 | al_get_allegro_version(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_get_allegro_font_version·\-·Allegro·5·API | 5 | al_get_allegro_font_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | uint32_t·al_get_allegro_font_version(void) | 10 | uint32_t·al_get_allegro_font_version(void) |
11 | uint32_t·al_get_allegro_font_version(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 15 | al_get_allegro_version(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_get_allegro_image_version·\-·Allegro·5·API | 5 | al_get_allegro_image_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_image.h> | 9 | #include·<allegro5/allegro_image.h> |
10 | uint32_t·al_get_allegro_image_version(void) | 10 | uint32_t·al_get_allegro_image_version(void) |
11 | uint32_t·al_get_allegro_image_version(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 15 | al_get_allegro_version(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_get_allegro_memfile_version·\-·Allegro·5·API | 5 | al_get_allegro_memfile_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_memfile.h> | 9 | #include·<allegro5/allegro_memfile.h> |
10 | uint32_t·al_get_allegro_memfile_version(void) | 10 | uint32_t·al_get_allegro_memfile_version(void) |
11 | uint32_t·al_get_allegro_memfile_version(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 15 | al_get_allegro_version(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_get_allegro_native_dialog_version·\-·Allegro·5·API | 5 | al_get_allegro_native_dialog_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | uint32_t·al_get_allegro_native_dialog_version(void) | 10 | uint32_t·al_get_allegro_native_dialog_version(void) |
11 | uint32_t·al_get_allegro_native_dialog_version(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 15 | al_get_allegro_version(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_get_allegro_physfs_version·\-·Allegro·5·API | 5 | al_get_allegro_physfs_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_physfs.h> | 9 | #include·<allegro5/allegro_physfs.h> |
10 | uint32_t·al_get_allegro_physfs_version(void) | 10 | uint32_t·al_get_allegro_physfs_version(void) |
11 | uint32_t·al_get_allegro_physfs_version(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 15 | al_get_allegro_version(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_get_allegro_primitives_version·\-·Allegro·5·API | 5 | al_get_allegro_primitives_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | uint32_t·al_get_allegro_primitives_version(void) | 10 | uint32_t·al_get_allegro_primitives_version(void) |
11 | uint32_t·al_get_allegro_primitives_version(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 15 | al_get_allegro_version(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_get_allegro_ttf_version·\-·Allegro·5·API | 5 | al_get_allegro_ttf_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | uint32_t·al_get_allegro_ttf_version(void) | 10 | uint32_t·al_get_allegro_ttf_version(void) |
11 | uint32_t·al_get_allegro_ttf_version(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 15 | al_get_allegro_version(3alleg5). |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_get_allegro_video_version·\-·Allegro·5·API | 5 | al_get_allegro_video_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | uint32_t·al_get_allegro_video_version(void) | 10 | uint32_t·al_get_allegro_video_version(void) |
11 | uint32_t·al_get_allegro_video_version(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 15 | al_get_allegro_version(3alleg5). |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.12 | 17 | 5.1.12 |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_audio_depth_size·\-·Allegro·5·API | 5 | al_get_audio_depth_size·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | size_t·al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH·depth) | 10 | size_t·al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH·depth) |
11 | size_t·al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH·depth) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·size·of·a·sample,·in·bytes,·for·the·given·format. | 14 | Return·the·size·of·a·sample,·in·bytes,·for·the·given·format. |
14 | The·format·is·one·of·the·values·listed·under | 15 | The·format·is·one·of·the·values·listed·under |
15 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 16 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_audio_device_name·\-·Allegro·5·API | 5 | al_get_audio_device_name·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | const·char*·al_get_audio_device_name(const·ALLEGRO_AUDIO_DEVICE·*·device) | 10 | const·char*·al_get_audio_device_name(const·ALLEGRO_AUDIO_DEVICE·*·device) |
11 | const·char*·al_get_audio_device_name(const·ALLEGRO_AUDIO_DEVICE·*·device) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Get·the·user·friendly·display·name·of·the·device. | 14 | Get·the·user·friendly·display·name·of·the·device. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.2.8 | 16 | 5.2.8 |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_audio_output_device·\-·Allegro·5·API | 5 | al_get_audio_output_device·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | const·ALLEGRO_AUDIO_DEVICE*·al_get_audio_output_device(int·index) | 10 | const·ALLEGRO_AUDIO_DEVICE*·al_get_audio_output_device(int·index) |
11 | const·ALLEGRO_AUDIO_DEVICE*·al_get_audio_output_device(int·index) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Get·the·output·audio·device·of·the·specified·index. | 14 | Get·the·output·audio·device·of·the·specified·index. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.2.8 | 16 | 5.2.8 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_audio_recorder_event·\-·Allegro·5·API | 5 | al_get_audio_recorder_event·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_RECORDER_EVENT·*al_get_audio_recorder_event(ALLEGRO_EVENT·*event) | 10 | ALLEGRO_AUDIO_RECORDER_EVENT·*al_get_audio_recorder_event(ALLEGRO_EVENT·*event) |
11 | ALLEGRO_AUDIO_RECORDER_EVENT·*al_get_audio_recorder_event(ALLEGRO_EVENT·*event) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·event·as·an·ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5). | 14 | Returns·the·event·as·an·ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5). |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.1 | 16 | 5.1.1 |
16 | .RS | 17 | .RS |
17 | .PP | 18 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_audio_recorder_event_source·\-·Allegro·5·API | 5 | al_get_audio_recorder_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_get_audio_recorder_event_source(ALLEGRO_AUDIO_RECORDER·*r) | 10 | ALLEGRO_EVENT_SOURCE·*al_get_audio_recorder_event_source(ALLEGRO_AUDIO_RECORDER·*r) |
11 | ALLEGRO_EVENT_SOURCE·*al_get_audio_recorder_event_source(ALLEGRO_AUDIO_RECORDER·*r) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·event·source·for·the·recorder·that·generates·the·various | 14 | Returns·the·event·source·for·the·recorder·that·generates·the·various |
14 | recording·events. | 15 | recording·events. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.1 | 17 | 5.1.1 |
17 | .RS | 18 | .RS |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_audio_stream_attached·\-·Allegro·5·API | 5 | al_get_audio_stream_attached·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_audio_stream_attached(const·ALLEGRO_AUDIO_STREAM·*stream) | 10 | bool·al_get_audio_stream_attached(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | bool·al_get_audio_stream_attached(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·whether·the·stream·is·attached·to·something. | 14 | Return·whether·the·stream·is·attached·to·something. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_attach_audio_stream_to_mixer(3alleg5), | 16 | al_attach_audio_stream_to_mixer(3alleg5), |
16 | al_attach_audio_stream_to_voice(3alleg5), | 17 | al_attach_audio_stream_to_voice(3alleg5), |
17 | al_detach_audio_stream(3alleg5). | 18 | al_detach_audio_stream(3alleg5). |
Offset 6, 12 lines modified | Offset 6, 14 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_CHANNEL_CONF·al_get_audio_stream_channels( | 10 | ALLEGRO_CHANNEL_CONF·al_get_audio_stream_channels( |
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | 11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) |
12 | ALLEGRO_CHANNEL_CONF·al_get_audio_stream_channels( | ||
13 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Return·the·stream·channel·configuration. | 16 | Return·the·stream·channel·configuration. |
15 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
16 | ALLEGRO_CHANNEL_CONF(3alleg5). | 18 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 6, 12 lines modified | Offset 6, 14 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_DEPTH·al_get_audio_stream_depth( | 10 | ALLEGRO_AUDIO_DEPTH·al_get_audio_stream_depth( |
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | 11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) |
12 | ALLEGRO_AUDIO_DEPTH·al_get_audio_stream_depth( | ||
13 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Return·the·stream·audio·depth. | 16 | Return·the·stream·audio·depth. |
15 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
16 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 18 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_get_audio_stream_event_source( | 10 | ALLEGRO_EVENT_SOURCE·*al_get_audio_stream_event_source( |
11 | ···ALLEGRO_AUDIO_STREAM·*stream) | 11 | ···ALLEGRO_AUDIO_STREAM·*stream) |
12 | ALLEGRO_EVENT_SOURCE·*al_get_audio_stream_event_source( | ||
13 | ···ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Retrieve·the·associated·event·source. | 16 | Retrieve·the·associated·event·source. |
15 | .PP | 17 | .PP |
16 | See·al_get_audio_stream_fragment(3alleg5)·for·a·description·of·the | 18 | See·al_get_audio_stream_fragment(3alleg5)·for·a·description·of·the |
17 | ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT(3alleg5)·event·that·audio·streams | 19 | ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT(3alleg5)·event·that·audio·streams |
18 | emit. | 20 | emit. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_audio_stream_fragment·\-·Allegro·5·API | 5 | al_get_audio_stream_fragment·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·*al_get_audio_stream_fragment(const·ALLEGRO_AUDIO_STREAM·*stream) | 10 | void·*al_get_audio_stream_fragment(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | void·*al_get_audio_stream_fragment(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | When·using·Allegro\[cq]s·audio·streaming,·you·will·use·this·function·to | 14 | When·using·Allegro\[cq]s·audio·streaming,·you·will·use·this·function·to |
14 | continuously·provide·new·sample·data·to·a·stream. | 15 | continuously·provide·new·sample·data·to·a·stream. |
15 | .PP | 16 | .PP |
16 | If·the·stream·is·ready·for·new·data,·the·function·will·return·the | 17 | If·the·stream·is·ready·for·new·data,·the·function·will·return·the |
17 | address·of·an·internal·buffer·to·be·filled·with·audio·data. | 18 | address·of·an·internal·buffer·to·be·filled·with·audio·data. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_audio_stream_fragments·\-·Allegro·5·API | 5 | al_get_audio_stream_fragments·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_audio_stream_fragments(const·ALLEGRO_AUDIO_STREAM·*stream) | 10 | unsigned·int·al_get_audio_stream_fragments(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | unsigned·int·al_get_audio_stream_fragments(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·number·of·fragments·this·stream·uses. | 14 | Returns·the·number·of·fragments·this·stream·uses. |
14 | This·is·the·same·value·as·passed·to·al_create_audio_stream(3alleg5)·when | 15 | This·is·the·same·value·as·passed·to·al_create_audio_stream(3alleg5)·when |
15 | a·new·stream·is·created. | 16 | a·new·stream·is·created. |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_get_available_audio_stream_fragments(3alleg5) | 18 | al_get_available_audio_stream_fragments(3alleg5) |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | al_get_audio_stream_frequency·\-·Allegro·5·API | 5 | al_get_audio_stream_frequency·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_audio_stream_frequency(const·ALLEGRO_AUDIO_STREAM·*stream) | 10 | unsigned·int·al_get_audio_stream_frequency(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | unsigned·int·al_get_audio_stream_frequency(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·stream·frequency·(in·Hz). | 14 | Return·the·stream·frequency·(in·Hz). |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_audio_stream_gain·\-·Allegro·5·API | 5 | al_get_audio_stream_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_audio_stream_gain(const·ALLEGRO_AUDIO_STREAM·*stream) | 10 | float·al_get_audio_stream_gain(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | float·al_get_audio_stream_gain(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·playback·gain·of·the·stream. | 14 | Return·the·playback·gain·of·the·stream. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_set_audio_stream_gain(3alleg5). | 16 | al_set_audio_stream_gain(3alleg5). |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | al_get_audio_stream_length·\-·Allegro·5·API | 5 | al_get_audio_stream_length·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_audio_stream_length(const·ALLEGRO_AUDIO_STREAM·*stream) | 10 | unsigned·int·al_get_audio_stream_length(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | unsigned·int·al_get_audio_stream_length(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·stream·length·in·samples. | 14 | Return·the·stream·length·in·samples. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_audio_stream_length_secs·\-·Allegro·5·API | 5 | al_get_audio_stream_length_secs·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | double·al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM·*stream) | 10 | double·al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM·*stream) |
11 | double·al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·length·of·the·stream·in·seconds,·if·known. | 14 | Return·the·length·of·the·stream·in·seconds,·if·known. |
14 | Otherwise·returns·zero. | 15 | Otherwise·returns·zero. |
15 | .PP | 16 | .PP |
16 | Currently·this·can·only·be·called·on·streams·created·with | 17 | Currently·this·can·only·be·called·on·streams·created·with |
17 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 18 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_audio_stream_pan·\-·Allegro·5·API | 5 | al_get_audio_stream_pan·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_audio_stream_pan(const·ALLEGRO_AUDIO_STREAM·*stream) | 10 | float·al_get_audio_stream_pan(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | float·al_get_audio_stream_pan(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Get·the·pan·value·of·the·stream. | 14 | Get·the·pan·value·of·the·stream. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_set_audio_stream_pan(3alleg5). | 16 | al_set_audio_stream_pan(3alleg5). |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_get_audio_stream_played_samples·\-·Allegro·5·API | 5 | al_get_audio_stream_played_samples·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | uint64_t·al_get_audio_stream_played_samples(const·ALLEGRO_AUDIO_STREAM·*stream) | 10 | uint64_t·al_get_audio_stream_played_samples(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | uint64_t·al_get_audio_stream_played_samples(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Get·the·number·of·samples·consumed·by·the·parent·since·the·audio·stream | 14 | Get·the·number·of·samples·consumed·by·the·parent·since·the·audio·stream |
14 | was·started. | 15 | was·started. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.8 | 17 | 5.1.8 |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_audio_stream_playing·\-·Allegro·5·API | 5 | al_get_audio_stream_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_audio_stream_playing(const·ALLEGRO_AUDIO_STREAM·*stream) | 10 | bool·al_get_audio_stream_playing(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | bool·al_get_audio_stream_playing(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·true·if·the·stream·is·playing. | 14 | Return·true·if·the·stream·is·playing. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_set_audio_stream_playing(3alleg5). | 16 | al_set_audio_stream_playing(3alleg5). |
Offset 6, 12 lines modified | Offset 6, 14 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_PLAYMODE·al_get_audio_stream_playmode( | 10 | ALLEGRO_PLAYMODE·al_get_audio_stream_playmode( |
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | 11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) |
12 | ALLEGRO_PLAYMODE·al_get_audio_stream_playmode( | ||
13 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Return·the·playback·mode·of·the·stream. | 16 | Return·the·playback·mode·of·the·stream. |
15 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
16 | ALLEGRO_PLAYMODE(3alleg5),·al_set_audio_stream_playmode(3alleg5). | 18 | ALLEGRO_PLAYMODE(3alleg5),·al_set_audio_stream_playmode(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_audio_stream_position_secs·\-·Allegro·5·API | 5 | al_get_audio_stream_position_secs·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | double·al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM·*stream) | 10 | double·al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM·*stream) |
11 | double·al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·position·of·the·stream·in·seconds. | 14 | Return·the·position·of·the·stream·in·seconds. |
14 | Currently·this·can·only·be·called·on·streams·created·with | 15 | Currently·this·can·only·be·called·on·streams·created·with |
15 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 16 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
16 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). | 17 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_audio_stream_speed·\-·Allegro·5·API | 5 | al_get_audio_stream_speed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_audio_stream_speed(const·ALLEGRO_AUDIO_STREAM·*stream) | 10 | float·al_get_audio_stream_speed(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | float·al_get_audio_stream_speed(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·relative·playback·speed·of·the·stream. | 14 | Return·the·relative·playback·speed·of·the·stream. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_set_audio_stream_speed(3alleg5). | 16 | al_set_audio_stream_speed(3alleg5). |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_available_audio_stream_fragments( | 10 | unsigned·int·al_get_available_audio_stream_fragments( |
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | 11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) |
12 | unsigned·int·al_get_available_audio_stream_fragments( | ||
13 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Returns·the·number·of·available·fragments·in·the·stream,·that·is, | 16 | Returns·the·number·of·available·fragments·in·the·stream,·that·is, |
15 | fragments·which·are·not·currently·filled·with·data·for·playback. | 17 | fragments·which·are·not·currently·filled·with·data·for·playback. |
16 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
17 | al_get_audio_stream_fragment(3alleg5), | 19 | al_get_audio_stream_fragment(3alleg5), |
18 | al_get_audio_stream_fragments(3alleg5) | 20 | al_get_audio_stream_fragments(3alleg5) |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_get_channel_count·\-·Allegro·5·API | 5 | al_get_channel_count·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | size_t·al_get_channel_count(ALLEGRO_CHANNEL_CONF·conf) | 10 | size_t·al_get_channel_count(ALLEGRO_CHANNEL_CONF·conf) |
11 | size_t·al_get_channel_count(ALLEGRO_CHANNEL_CONF·conf) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·number·of·channels·for·the·given·channel·configuration,·which | 14 | Return·the·number·of·channels·for·the·given·channel·configuration,·which |
14 | is·one·of·the·values·listed·under·ALLEGRO_CHANNEL_CONF(3alleg5). | 15 | is·one·of·the·values·listed·under·ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_default_menu_event_source·\-·Allegro·5·API | 5 | al_get_default_menu_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_get_default_menu_event_source(void) | 10 | ALLEGRO_EVENT_SOURCE·*al_get_default_menu_event_source(void) |
11 | ALLEGRO_EVENT_SOURCE·*al_get_default_menu_event_source(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·default·event·source·used·for·menu·clicks. | 14 | Returns·the·default·event·source·used·for·menu·clicks. |
14 | If·a·menu·was·not·given·its·own·event·source·via | 15 | If·a·menu·was·not·given·its·own·event·source·via |
15 | al_enable_menu_event_source(3alleg5),·then·it·will·use·this·default | 16 | al_enable_menu_event_source(3alleg5),·then·it·will·use·this·default |
16 | source. | 17 | source. |
17 | .SH·SINCE | 18 | .SH·SINCE |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_default_mixer·\-·Allegro·5·API | 5 | al_get_default_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_MIXER·*al_get_default_mixer(void) | 10 | ALLEGRO_MIXER·*al_get_default_mixer(void) |
11 | ALLEGRO_MIXER·*al_get_default_mixer(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·default·mixer,·or·NULL·if·one·has·not·been·set. | 14 | Return·the·default·mixer,·or·NULL·if·one·has·not·been·set. |
14 | Although·different·configurations·of·mixers·and·voices·can·be·used,·in | 15 | Although·different·configurations·of·mixers·and·voices·can·be·used,·in |
15 | most·cases·a·single·mixer·attached·to·a·voice·is·what·you·want. | 16 | most·cases·a·single·mixer·attached·to·a·voice·is·what·you·want. |
16 | The·default·mixer·is·used·by·al_play_sample(3alleg5). | 17 | The·default·mixer·is·used·by·al_play_sample(3alleg5). |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_default_voice·\-·Allegro·5·API | 5 | al_get_default_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_VOICE·*al_get_default_voice(void) | 10 | ALLEGRO_VOICE·*al_get_default_voice(void) |
11 | ALLEGRO_VOICE·*al_get_default_voice(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·default·voice·or·NULL·if·there·is·none. | 14 | Returns·the·default·voice·or·NULL·if·there·is·none. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.13 | 16 | 5.1.13 |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_get_default_mixer(3alleg5) | 18 | al_get_default_mixer(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_display_menu·\-·Allegro·5·API | 5 | al_get_display_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_get_display_menu(ALLEGRO_DISPLAY·*display) | 10 | ALLEGRO_MENU·*al_get_display_menu(ALLEGRO_DISPLAY·*display) |
11 | ALLEGRO_MENU·*al_get_display_menu(ALLEGRO_DISPLAY·*displaynt, | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·menu·associated·with·the·\f[CR]display\f[R],·or | 14 | Returns·the·menu·associated·with·the·\f[CR]display\f[R],·or |
14 | \f[CR]NULL\f[R]·if·it·does·not·have·a·menu. | 15 | \f[CR]NULL\f[R]·if·it·does·not·have·a·menu. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.0 | 17 | 5.1.0 |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_fallback_font·\-·Allegro·5·API | 5 | al_get_fallback_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_get_fallback_font(ALLEGRO_FONT·*font) | 10 | ALLEGRO_FONT·*al_get_fallback_font(ALLEGRO_FONT·*font) |
11 | ALLEGRO_FONT·*al_get_fallback_font(ALLEGRO_FONT·*font) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Retrieves·the·fallback·font·for·this·font·or·NULL. | 14 | Retrieves·the·fallback·font·for·this·font·or·NULL. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.12 | 16 | 5.1.12 |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_set_fallback_font(3alleg5) | 18 | al_set_fallback_font(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_font_ascent·\-·Allegro·5·API | 5 | al_get_font_ascent·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) | 10 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) |
11 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·ascent·of·the·specified·font. | 14 | Returns·the·ascent·of·the·specified·font. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_get_font_descent(3alleg5),·al_get_font_line_height(3alleg5) | 16 | al_get_font_descent(3alleg5),·al_get_font_line_height(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_font_descent·\-·Allegro·5·API | 5 | al_get_font_descent·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_font_descent(const·ALLEGRO_FONT·*f) | 10 | int·al_get_font_descent(const·ALLEGRO_FONT·*f) |
11 | int·al_get_font_descent(const·ALLEGRO_FONT·*f) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·descent·of·the·specified·font. | 14 | Returns·the·descent·of·the·specified·font. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_get_font_ascent(3alleg5),·al_get_font_line_height(3alleg5) | 16 | al_get_font_ascent(3alleg5),·al_get_font_line_height(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_font_line_height·\-·Allegro·5·API | 5 | al_get_font_line_height·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) | 10 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) |
11 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font. | 14 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font. |
14 | For·bitmap·fonts·this·is·simply·the·height·of·all·glyph·bitmaps. | 15 | For·bitmap·fonts·this·is·simply·the·height·of·all·glyph·bitmaps. |
15 | For·truetype·fonts·it·is·whatever·the·font·file·specifies. | 16 | For·truetype·fonts·it·is·whatever·the·font·file·specifies. |
16 | In·particular,·some·special·glyphs·may·be·higher·than·the·height | 17 | In·particular,·some·special·glyphs·may·be·higher·than·the·height |
17 | returned·here. | 18 | returned·here. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_font_ranges·\-·Allegro·5·API | 5 | al_get_font_ranges·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_font_ranges(ALLEGRO_FONT·*f,·int·ranges_count,·int·*ranges) | 10 | int·al_get_font_ranges(ALLEGRO_FONT·*f,·int·ranges_count,·int·*ranges) |
11 | int·al_get_font_ranges(ALLEGRO_FONT·*f,·int·ranges_count,·int·*ranges) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Gets·information·about·all·glyphs·contained·in·a·font,·as·a·list·of | 14 | Gets·information·about·all·glyphs·contained·in·a·font,·as·a·list·of |
14 | ranges. | 15 | ranges. |
15 | Ranges·have·the·same·format·as·with·al_grab_font_from_bitmap(3alleg5). | 16 | Ranges·have·the·same·format·as·with·al_grab_font_from_bitmap(3alleg5). |
16 | .PP | 17 | .PP |
17 | \f[CR]ranges_count\f[R]·is·the·maximum·number·of·ranges·that·will·be | 18 | \f[CR]ranges_count\f[R]·is·the·maximum·number·of·ranges·that·will·be |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_glyph·\-·Allegro·5·API | 5 | al_get_glyph·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | bool·al_get_glyph(const·ALLEGRO_FONT·*f,·int·prev_codepoint,·int·codepoint,·ALLEGRO_GLYPH·*glyph) | 10 | bool·al_get_glyph(const·ALLEGRO_FONT·*f,·int·prev_codepoint,·int·codepoint,·ALLEGRO_GLYPH·*glyph) |
11 | bool·al_get_glyph(const·ALLEGRO_FONT·*f,·int·prev_codepoint,·int·codepoint,·ALLEGRO_GLYPH·*glyph) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Gets·all·the·information·about·a·glyph,·including·the·bitmap,·needed·to | 14 | Gets·all·the·information·about·a·glyph,·including·the·bitmap,·needed·to |
14 | draw·it·yourself. | 15 | draw·it·yourself. |
15 | prev_codepoint·is·the·codepoint·in·the·string·before·the·one·you·want·to | 16 | prev_codepoint·is·the·codepoint·in·the·string·before·the·one·you·want·to |
16 | draw·and·is·used·for·kerning. | 17 | draw·and·is·used·for·kerning. |
17 | codepoint·is·the·character·you·want·to·get·info·about. | 18 | codepoint·is·the·character·you·want·to·get·info·about. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_glyph_advance·\-·Allegro·5·API | 5 | al_get_glyph_advance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_glyph_advance(const·ALLEGRO_FONT·*f,·int·codepoint1,·int·codepoint2) | 10 | int·al_get_glyph_advance(const·ALLEGRO_FONT·*f,·int·codepoint1,·int·codepoint2) |
11 | int·al_get_glyph_advance(const·ALLEGRO_FONT·*f,·int·codepoint1,·int·codepoint2) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·function·returns·by·how·much·the·x·position·should·be·advanced·for | 14 | This·function·returns·by·how·much·the·x·position·should·be·advanced·for |
14 | left·to·right·text·drawing·when·the·glyph·that·corresponds·to·codepoint1 | 15 | left·to·right·text·drawing·when·the·glyph·that·corresponds·to·codepoint1 |
15 | has·been·drawn,·and·the·glyph·that·corresponds·to·codepoint2·will·be·the | 16 | has·been·drawn,·and·the·glyph·that·corresponds·to·codepoint2·will·be·the |
16 | next·to·be·drawn. | 17 | next·to·be·drawn. |
17 | This·takes·into·consideration·the·horizontal·advance·width·of·the·glyph | 18 | This·takes·into·consideration·the·horizontal·advance·width·of·the·glyph |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | bool·al_get_glyph_dimensions(const·ALLEGRO_FONT·*f, | 10 | bool·al_get_glyph_dimensions(const·ALLEGRO_FONT·*f, |
11 | ···int·codepoint,·int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | 11 | ···int·codepoint,·int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) |
12 | bool·al_get_glyph_dimensions(const·ALLEGRO_FONT·*f, | ||
13 | ···int·codepoint,·int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Sometimes,·the·al_get_glyph_width(3alleg5)·or | 16 | Sometimes,·the·al_get_glyph_width(3alleg5)·or |
15 | al_get_glyph_advance(3alleg5)·functions·are·not·enough·for·exact·glyph | 17 | al_get_glyph_advance(3alleg5)·functions·are·not·enough·for·exact·glyph |
16 | placement,·so·this·function·returns·some·additional·information, | 18 | placement,·so·this·function·returns·some·additional·information, |
17 | particularly·if·you·want·to·draw·the·font·vertically. | 19 | particularly·if·you·want·to·draw·the·font·vertically. |
18 | .PP | 20 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_glyph_width·\-·Allegro·5·API | 5 | al_get_glyph_width·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_glyph_width(const·ALLEGRO_FONT·*f,·int·codepoint) | 10 | int·al_get_glyph_width(const·ALLEGRO_FONT·*f,·int·codepoint) |
11 | int·al_get_glyph_width(const·ALLEGRO_FONT·*f,·int·codepoint) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·function·returns·the·width·in·pixels·of·the·glyph·that·corresponds | 14 | This·function·returns·the·width·in·pixels·of·the·glyph·that·corresponds |
14 | with·\f[CR]codepoint\f[R]·in·the·font·\f[CR]font\f[R]. | 15 | with·\f[CR]codepoint\f[R]·in·the·font·\f[CR]font\f[R]. |
15 | Returns·zero·if·the·font·does·not·have·such·a·glyph. | 16 | Returns·zero·if·the·font·does·not·have·such·a·glyph. |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.1.12 | 18 | 5.1.12 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_index_buffer_size·\-·Allegro·5·API | 5 | al_get_index_buffer_size·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_get_index_buffer_size(ALLEGRO_INDEX_BUFFER*·buffer) | 10 | int·al_get_index_buffer_size(ALLEGRO_INDEX_BUFFER*·buffer) |
11 | int·al_get_index_buffer_size(ALLEGRO_INDEX_BUFFER*·buffer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·size·of·the·index·buffer | 14 | Returns·the·size·of·the·index·buffer |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.8 | 16 | 5.1.8 |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | ALLEGRO_INDEX_BUFFER(3alleg5) | 18 | ALLEGRO_INDEX_BUFFER(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_menu_item_caption·\-·Allegro·5·API | 5 | al_get_menu_item_caption·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | const·char·*al_get_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos) | 10 | const·char·*al_get_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos) |
11 | const·char·*al_get_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·caption·associated·with·the·menu·item. | 14 | Returns·the·caption·associated·with·the·menu·item. |
14 | It·is·valid·as·long·as·the·caption·is·not·modified. | 15 | It·is·valid·as·long·as·the·caption·is·not·modified. |
15 | .PP | 16 | .PP |
16 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found. | 17 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found. |
17 | .SH·SINCE | 18 | .SH·SINCE |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_menu_item_flags·\-·Allegro·5·API | 5 | al_get_menu_item_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_get_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos) | 10 | int·al_get_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos) |
11 | int·al_get_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·currently·set·flags. | 14 | Returns·the·currently·set·flags. |
14 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 15 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
15 | flags. | 16 | flags. |
16 | .PP | 17 | .PP |
17 | Returns·\-1·if·the·item·was·not·found. | 18 | Returns·\-1·if·the·item·was·not·found. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_menu_item_icon·\-·Allegro·5·API | 5 | al_get_menu_item_icon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_BITMAP·*al_get_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos) | 10 | ALLEGRO_BITMAP·*al_get_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos) |
11 | ALLEGRO_BITMAP·*al_get_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·icon·associated·with·the·menu. | 14 | Returns·the·icon·associated·with·the·menu. |
14 | It·is·safe·to·draw·to·the·returned·bitmap,·but·you·must·call | 15 | It·is·safe·to·draw·to·the·returned·bitmap,·but·you·must·call |
15 | al_set_menu_item_icon(3alleg5)·in·order·for·the·changes·to·be·applied. | 16 | al_set_menu_item_icon(3alleg5)·in·order·for·the·changes·to·be·applied. |
16 | .PP | 17 | .PP |
17 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found·or·if·it·has·no·icon. | 18 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found·or·if·it·has·no·icon. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_mixer_attached·\-·Allegro·5·API | 5 | al_get_mixer_attached·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_mixer_attached(const·ALLEGRO_MIXER·*mixer) | 10 | bool·al_get_mixer_attached(const·ALLEGRO_MIXER·*mixer) |
11 | bool·al_get_mixer_attached(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·true·if·the·mixer·is·attached·to·something. | 14 | Return·true·if·the·mixer·is·attached·to·something. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_mixer_has_attachments(3alleg5), | 16 | al_mixer_has_attachments(3alleg5), |
16 | al_attach_sample_instance_to_mixer(3alleg5), | 17 | al_attach_sample_instance_to_mixer(3alleg5), |
17 | al_attach_audio_stream_to_mixer(3alleg5), | 18 | al_attach_audio_stream_to_mixer(3alleg5), |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_mixer_channels·\-·Allegro·5·API | 5 | al_get_mixer_channels·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_CHANNEL_CONF·al_get_mixer_channels(const·ALLEGRO_MIXER·*mixer) | 10 | ALLEGRO_CHANNEL_CONF·al_get_mixer_channels(const·ALLEGRO_MIXER·*mixer) |
11 | ALLEGRO_CHANNEL_CONF·al_get_mixer_channels(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·mixer·channel·configuration. | 14 | Return·the·mixer·channel·configuration. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | ALLEGRO_CHANNEL_CONF(3alleg5). | 16 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_mixer_depth·\-·Allegro·5·API | 5 | al_get_mixer_depth·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_DEPTH·al_get_mixer_depth(const·ALLEGRO_MIXER·*mixer) | 10 | ALLEGRO_AUDIO_DEPTH·al_get_mixer_depth(const·ALLEGRO_MIXER·*mixer) |
11 | ALLEGRO_AUDIO_DEPTH·al_get_mixer_depth(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·mixer·audio·depth. | 14 | Return·the·mixer·audio·depth. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 16 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_mixer_frequency·\-·Allegro·5·API | 5 | al_get_mixer_frequency·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_mixer_frequency(const·ALLEGRO_MIXER·*mixer) | 10 | unsigned·int·al_get_mixer_frequency(const·ALLEGRO_MIXER·*mixer) |
11 | unsigned·int·al_get_mixer_frequency(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·mixer·frequency·(in·Hz). | 14 | Return·the·mixer·frequency·(in·Hz). |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_set_mixer_frequency(3alleg5) | 16 | al_set_mixer_frequency(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_mixer_gain·\-·Allegro·5·API | 5 | al_get_mixer_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_mixer_gain(const·ALLEGRO_MIXER·*mixer) | 10 | float·al_get_mixer_gain(const·ALLEGRO_MIXER·*mixer) |
11 | float·al_get_mixer_gain(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·mixer·gain·(amplification·factor). | 14 | Return·the·mixer·gain·(amplification·factor). |
14 | The·default·is·1.0. | 15 | The·default·is·1.0. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.0.6,·5.1.0 | 17 | 5.0.6,·5.1.0 |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_mixer_playing·\-·Allegro·5·API | 5 | al_get_mixer_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_mixer_playing(const·ALLEGRO_MIXER·*mixer) | 10 | bool·al_get_mixer_playing(const·ALLEGRO_MIXER·*mixer) |
11 | bool·al_get_mixer_playing(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·true·if·the·mixer·is·playing. | 14 | Return·true·if·the·mixer·is·playing. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_set_mixer_playing(3alleg5). | 16 | al_set_mixer_playing(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_mixer_quality·\-·Allegro·5·API | 5 | al_get_mixer_quality·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_MIXER_QUALITY·al_get_mixer_quality(const·ALLEGRO_MIXER·*mixer) | 10 | ALLEGRO_MIXER_QUALITY·al_get_mixer_quality(const·ALLEGRO_MIXER·*mixer) |
11 | ALLEGRO_MIXER_QUALITY·al_get_mixer_quality(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·mixer·quality. | 14 | Return·the·mixer·quality. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | ALLEGRO_MIXER_QUALITY(3alleg5),·al_set_mixer_quality(3alleg5) | 16 | ALLEGRO_MIXER_QUALITY(3alleg5),·al_set_mixer_quality(3alleg5) |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | al_get_native_file_dialog_count·\-·Allegro·5·API | 5 | al_get_native_file_dialog_count·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | 10 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) |
11 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. | 14 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | const·char·*al_get_native_file_dialog_path( | 10 | const·char·*al_get_native_file_dialog_path( |
11 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | 11 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) |
12 | const·char·*al_get_native_file_dialog_path( | ||
13 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Returns·one·of·the·selected·paths·with·index·\f[CR]i\f[R]. | 16 | Returns·one·of·the·selected·paths·with·index·\f[CR]i\f[R]. |
15 | The·index·should·range·from·\f[CR]0\f[R]·to·the·return·value·of | 17 | The·index·should·range·from·\f[CR]0\f[R]·to·the·return·value·of |
16 | al_get_native_file_dialog_count(3alleg5)·\f[CR]\-1\f[R]. | 18 | al_get_native_file_dialog_count(3alleg5)·\f[CR]\-1\f[R]. |
17 | .RS | 19 | .RS |
18 | .PP | 20 | .PP |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_get_native_text_log_event_source( | 10 | ALLEGRO_EVENT_SOURCE·*al_get_native_text_log_event_source( |
11 | ···ALLEGRO_TEXTLOG·*textlog) | 11 | ···ALLEGRO_TEXTLOG·*textlog) |
12 | ALLEGRO_EVENT_SOURCE·*al_get_native_text_log_event_source( | ||
13 | ···ALLEGRO_TEXTLOG·*textlog) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Get·an·event·source·for·a·text·log·window. | 16 | Get·an·event·source·for·a·text·log·window. |
15 | The·possible·events·are: | 17 | The·possible·events·are: |
16 | .TP | 18 | .TP |
17 | ALLEGRO_EVENT_NATIVE_DIALOG_CLOSE | 19 | ALLEGRO_EVENT_NATIVE_DIALOG_CLOSE |
18 | The·window·was·requested·to·be·closed,·either·by·pressing·the·close | 20 | The·window·was·requested·to·be·closed,·either·by·pressing·the·close |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_num_audio_output_devices·\-·Allegro·5·API | 5 | al_get_num_audio_output_devices·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | int·al_get_num_audio_output_devices() | 10 | int·al_get_num_audio_output_devices() |
11 | int·al_get_num_audio_output_devices() | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Get·the·number·of·available·audio·output·devices·on·the·system. | 14 | Get·the·number·of·available·audio·output·devices·on·the·system. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.2.8 | 16 | 5.2.8 |
16 | .PP | 17 | .PP |
17 | return·\-1·for·unsupported·drivers. | 18 | return·\-1·for·unsupported·drivers. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_sample·\-·Allegro·5·API | 5 | al_get_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE·*al_get_sample(ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | ALLEGRO_SAMPLE·*al_get_sample(ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | ALLEGRO_SAMPLE·*al_get_sample(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·sample·data·that·the·sample·instance·plays. | 14 | Return·the·sample·data·that·the·sample·instance·plays. |
14 | .PP | 15 | .PP |
15 | Note·this·returns·a·pointer·to·an·internal·structure,·\f[I]not\f[R]·the | 16 | Note·this·returns·a·pointer·to·an·internal·structure,·\f[I]not\f[R]·the |
16 | ALLEGRO_SAMPLE(3alleg5)·that·you·may·have·passed·to | 17 | ALLEGRO_SAMPLE(3alleg5)·that·you·may·have·passed·to |
17 | al_set_sample(3alleg5). | 18 | al_set_sample(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_sample_channels·\-·Allegro·5·API | 5 | al_get_sample_channels·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_CHANNEL_CONF·al_get_sample_channels(const·ALLEGRO_SAMPLE·*spl) | 10 | ALLEGRO_CHANNEL_CONF·al_get_sample_channels(const·ALLEGRO_SAMPLE·*spl) |
11 | ALLEGRO_CHANNEL_CONF·al_get_sample_channels(const·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·channel·configuration·of·the·sample. | 14 | Return·the·channel·configuration·of·the·sample. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | ALLEGRO_CHANNEL_CONF(3alleg5),·al_get_sample_depth(3alleg5), | 16 | ALLEGRO_CHANNEL_CONF(3alleg5),·al_get_sample_depth(3alleg5), |
16 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), | 17 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), |
17 | al_get_sample_data(3alleg5) | 18 | al_get_sample_data(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_get_sample_data·\-·Allegro·5·API | 5 | al_get_sample_data·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·*al_get_sample_data(const·ALLEGRO_SAMPLE·*spl) | 10 | void·*al_get_sample_data(const·ALLEGRO_SAMPLE·*spl) |
11 | void·*al_get_sample_data(const·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·a·pointer·to·the·raw·sample·data. | 14 | Return·a·pointer·to·the·raw·sample·data. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), | 16 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), |
16 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5) | 17 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_sample_depth·\-·Allegro·5·API | 5 | al_get_sample_depth·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_DEPTH·al_get_sample_depth(const·ALLEGRO_SAMPLE·*spl) | 10 | ALLEGRO_AUDIO_DEPTH·al_get_sample_depth(const·ALLEGRO_SAMPLE·*spl) |
11 | ALLEGRO_AUDIO_DEPTH·al_get_sample_depth(const·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·audio·depth·of·the·sample. | 14 | Return·the·audio·depth·of·the·sample. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | ALLEGRO_AUDIO_DEPTH(3alleg5),·al_get_sample_channels(3alleg5), | 16 | ALLEGRO_AUDIO_DEPTH(3alleg5),·al_get_sample_channels(3alleg5), |
16 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), | 17 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), |
17 | al_get_sample_data(3alleg5) | 18 | al_get_sample_data(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_get_sample_frequency·\-·Allegro·5·API | 5 | al_get_sample_frequency·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_sample_frequency(const·ALLEGRO_SAMPLE·*spl) | 10 | unsigned·int·al_get_sample_frequency(const·ALLEGRO_SAMPLE·*spl) |
11 | unsigned·int·al_get_sample_frequency(const·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·frequency·(in·Hz)·of·the·sample. | 14 | Return·the·frequency·(in·Hz)·of·the·sample. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), | 16 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), |
16 | al_get_sample_length(3alleg5),·al_get_sample_data(3alleg5) | 17 | al_get_sample_length(3alleg5),·al_get_sample_data(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_sample_instance_attached·\-·Allegro·5·API | 5 | al_get_sample_instance_attached·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_sample_instance_attached(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | bool·al_get_sample_instance_attached(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | bool·al_get_sample_instance_attached(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·whether·the·sample·instance·is·attached·to·something. | 14 | Return·whether·the·sample·instance·is·attached·to·something. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_attach_sample_instance_to_mixer(3alleg5), | 16 | al_attach_sample_instance_to_mixer(3alleg5), |
16 | al_attach_sample_instance_to_voice(3alleg5), | 17 | al_attach_sample_instance_to_voice(3alleg5), |
17 | al_detach_sample_instance(3alleg5) | 18 | al_detach_sample_instance(3alleg5) |
Offset 6, 13 lines modified | Offset 6, 15 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_CHANNEL_CONF·al_get_sample_instance_channels( | 10 | ALLEGRO_CHANNEL_CONF·al_get_sample_instance_channels( |
11 | ···const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 11 | ···const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
12 | ALLEGRO_CHANNEL_CONF·al_get_sample_instance_channels( | ||
13 | ···const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Return·the·channel·configuration·of·the·sample·instance\[cq]s·sample | 16 | Return·the·channel·configuration·of·the·sample·instance\[cq]s·sample |
15 | data. | 17 | data. |
16 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
17 | ALLEGRO_CHANNEL_CONF(3alleg5). | 19 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_sample_instance_depth·\-·Allegro·5·API | 5 | al_get_sample_instance_depth·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_DEPTH·al_get_sample_instance_depth(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | ALLEGRO_AUDIO_DEPTH·al_get_sample_instance_depth(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | ALLEGRO_AUDIO_DEPTH·al_get_sample_instance_depth(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·audio·depth·of·the·sample·instance\[cq]s·sample·data. | 14 | Return·the·audio·depth·of·the·sample·instance\[cq]s·sample·data. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 16 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 5, 10 lines modified | Offset 5, 11 lines modified | ||
5 | al_get_sample_instance_frequency·\-·Allegro·5·API | 5 | al_get_sample_instance_frequency·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_sample_instance_frequency(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | unsigned·int·al_get_sample_instance_frequency(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | unsigned·int·al_get_sample_instance_frequency(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·frequency·(in·Hz)·of·the·sample·instance\[cq]s·sample·data. | 14 | Return·the·frequency·(in·Hz)·of·the·sample·instance\[cq]s·sample·data. |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_sample_instance_gain·\-·Allegro·5·API | 5 | al_get_sample_instance_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_sample_instance_gain(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | float·al_get_sample_instance_gain(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | float·al_get_sample_instance_gain(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·playback·gain·of·the·sample·instance. | 14 | Return·the·playback·gain·of·the·sample·instance. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_set_sample_instance_gain(3alleg5) | 16 | al_set_sample_instance_gain(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_sample_instance_length·\-·Allegro·5·API | 5 | al_get_sample_instance_length·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_sample_instance_length(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | unsigned·int·al_get_sample_instance_length(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | unsigned·int·al_get_sample_instance_length(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·length·of·the·sample·instance·in·sample·values. | 14 | Return·the·length·of·the·sample·instance·in·sample·values. |
14 | This·property·may·differ·from·the·length·of·the·instance\[cq]s·sample | 15 | This·property·may·differ·from·the·length·of·the·instance\[cq]s·sample |
15 | data. | 16 | data. |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_set_sample_instance_length(3alleg5), | 18 | al_set_sample_instance_length(3alleg5), |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_sample_instance_pan·\-·Allegro·5·API | 5 | al_get_sample_instance_pan·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_sample_instance_pan(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | float·al_get_sample_instance_pan(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | float·al_get_sample_instance_pan(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Get·the·pan·value·of·the·sample·instance. | 14 | Get·the·pan·value·of·the·sample·instance. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_set_sample_instance_pan(3alleg5). | 16 | al_set_sample_instance_pan(3alleg5). |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_get_sample_instance_playing·\-·Allegro·5·API | 5 | al_get_sample_instance_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_sample_instance_playing(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | bool·al_get_sample_instance_playing(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | bool·al_get_sample_instance_playing(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·true·if·the·sample·instance·is·in·the·playing·state. | 14 | Return·true·if·the·sample·instance·is·in·the·playing·state. |
14 | This·may·be·true·even·if·the·instance·is·not·attached·to·anything. | 15 | This·may·be·true·even·if·the·instance·is·not·attached·to·anything. |
15 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
16 | al_set_sample_instance_playing(3alleg5) | 17 | al_set_sample_instance_playing(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_sample_instance_playmode·\-·Allegro·5·API | 5 | al_get_sample_instance_playmode·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_PLAYMODE·al_get_sample_instance_playmode(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | ALLEGRO_PLAYMODE·al_get_sample_instance_playmode(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | ALLEGRO_PLAYMODE·al_get_sample_instance_playmode(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·playback·mode·of·the·sample·instance. | 14 | Return·the·playback·mode·of·the·sample·instance. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | ALLEGRO_PLAYMODE(3alleg5),·al_set_sample_instance_playmode(3alleg5) | 16 | ALLEGRO_PLAYMODE(3alleg5),·al_set_sample_instance_playmode(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_sample_instance_position·\-·Allegro·5·API | 5 | al_get_sample_instance_position·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_sample_instance_position(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | unsigned·int·al_get_sample_instance_position(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | unsigned·int·al_get_sample_instance_position(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Get·the·playback·position·of·a·sample·instance. | 14 | Get·the·playback·position·of·a·sample·instance. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_set_sample_instance_position(3alleg5) | 16 | al_set_sample_instance_position(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_sample_instance_speed·\-·Allegro·5·API | 5 | al_get_sample_instance_speed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_sample_instance_speed(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | float·al_get_sample_instance_speed(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | float·al_get_sample_instance_speed(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·relative·playback·speed·of·the·sample·instance. | 14 | Return·the·relative·playback·speed·of·the·sample·instance. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_set_sample_instance_speed(3alleg5) | 16 | al_set_sample_instance_speed(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_get_sample_instance_time·\-·Allegro·5·API | 5 | al_get_sample_instance_time·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_sample_instance_time(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | float·al_get_sample_instance_time(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | float·al_get_sample_instance_time(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·length·of·the·sample·instance·in·seconds,·assuming·a·playback | 14 | Return·the·length·of·the·sample·instance·in·seconds,·assuming·a·playback |
14 | speed·of·1.0. | 15 | speed·of·1.0. |
15 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
16 | al_get_sample_instance_length(3alleg5) | 17 | al_get_sample_instance_length(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_get_sample_length·\-·Allegro·5·API | 5 | al_get_sample_length·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_sample_length(const·ALLEGRO_SAMPLE·*spl) | 10 | unsigned·int·al_get_sample_length(const·ALLEGRO_SAMPLE·*spl) |
11 | unsigned·int·al_get_sample_length(const·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·length·of·the·sample·in·sample·values. | 14 | Return·the·length·of·the·sample·in·sample·values. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), | 16 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), |
16 | al_get_sample_frequency(3alleg5),·al_get_sample_data(3alleg5) | 17 | al_get_sample_frequency(3alleg5),·al_get_sample_data(3alleg5) |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_get_text_dimensions(const·ALLEGRO_FONT·*f, | 10 | void·al_get_text_dimensions(const·ALLEGRO_FONT·*f, |
11 | ···char·const·*text, | 11 | ···char·const·*text, |
12 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | 12 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) |
13 | void·al_get_text_dimensions(const·ALLEGRO_FONT·*f, | ||
14 | ···char·const·*text, | ||
15 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Sometimes,·the·al_get_text_width(3alleg5)·and | 18 | Sometimes,·the·al_get_text_width(3alleg5)·and |
16 | al_get_font_line_height(3alleg5)·functions·are·not·enough·for·exact·text | 19 | al_get_font_line_height(3alleg5)·functions·are·not·enough·for·exact·text |
17 | placement,·so·this·function·returns·some·additional·information. | 20 | placement,·so·this·function·returns·some·additional·information. |
18 | .PP | 21 | .PP |
19 | Returned·variables·(all·in·pixels): | 22 | Returned·variables·(all·in·pixels): |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_get_text_width·\-·Allegro·5·API | 5 | al_get_text_width·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) | 10 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) |
11 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. | 14 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_get_ustr_width(3alleg5),·al_get_font_line_height(3alleg5), | 16 | al_get_ustr_width(3alleg5),·al_get_font_line_height(3alleg5), |
16 | al_get_text_dimensions(3alleg5) | 17 | al_get_text_dimensions(3alleg5) |
Offset 7, 13 lines modified | Offset 7, 16 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_get_ustr_dimensions(const·ALLEGRO_FONT·*f, | 10 | void·al_get_ustr_dimensions(const·ALLEGRO_FONT·*f, |
11 | ···ALLEGRO_USTR·const·*ustr, | 11 | ···ALLEGRO_USTR·const·*ustr, |
12 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | 12 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) |
13 | void·al_get_ustr_dimensions(const·ALLEGRO_FONT·*f, | ||
14 | ···ALLEGRO_USTR·const·*ustr, | ||
15 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Like·al_get_text_dimensions(3alleg5),·except·the·text·is·passed·as·an | 18 | Like·al_get_text_dimensions(3alleg5),·except·the·text·is·passed·as·an |
16 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 19 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
17 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
18 | al_get_text_dimensions(3alleg5) | 21 | al_get_text_dimensions(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_ustr_width·\-·Allegro·5·API | 5 | al_get_ustr_width·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) | 10 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) |
11 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Like·al_get_text_width(3alleg5)·but·expects·an·ALLEGRO_USTR. | 14 | Like·al_get_text_width(3alleg5)·but·expects·an·ALLEGRO_USTR. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_get_text_width(3alleg5),·al_get_ustr_dimensions(3alleg5) | 16 | al_get_text_width(3alleg5),·al_get_ustr_dimensions(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_vertex_buffer_size·\-·Allegro·5·API | 5 | al_get_vertex_buffer_size·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_get_vertex_buffer_size(ALLEGRO_VERTEX_BUFFER*·buffer) | 10 | int·al_get_vertex_buffer_size(ALLEGRO_VERTEX_BUFFER*·buffer) |
11 | int·al_get_vertex_buffer_size(ALLEGRO_VERTEX_BUFFER*·buffer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·size·of·the·vertex·buffer | 14 | Returns·the·size·of·the·vertex·buffer |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.8 | 16 | 5.1.8 |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | ALLEGRO_VERTEX_BUFFER(3alleg5) | 18 | ALLEGRO_VERTEX_BUFFER(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_video_audio_rate·\-·Allegro·5·API | 5 | al_get_video_audio_rate·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) | 10 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) |
11 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·audio·rate·of·the·video,·in·Hz. | 14 | Returns·the·audio·rate·of·the·video,·in·Hz. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.0 | 16 | 5.1.0 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_video_event_source·\-·Allegro·5·API | 5 | al_get_video_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | 10 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) |
11 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Get·an·event·source·for·the·video. | 14 | Get·an·event·source·for·the·video. |
14 | The·possible·events·are·described·under | 15 | The·possible·events·are·described·under |
15 | ALLEGRO_VIDEO_EVENT_TYPE(3alleg5). | 16 | ALLEGRO_VIDEO_EVENT_TYPE(3alleg5). |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.1.0 | 18 | 5.1.0 |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_get_video_fps·\-·Allegro·5·API | 5 | al_get_video_fps·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) | 10 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) |
11 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·speed·of·the·video·in·frames·per·second. | 14 | Returns·the·speed·of·the·video·in·frames·per·second. |
14 | Often·this·will·not·be·an·integer·value. | 15 | Often·this·will·not·be·an·integer·value. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.0 | 17 | 5.1.0 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_video_frame·\-·Allegro·5·API | 5 | al_get_video_frame·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) | 10 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) |
11 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·current·video·frame. | 14 | Returns·the·current·video·frame. |
14 | The·bitmap·is·owned·by·the·video·so·do·not·attempt·to·free·it. | 15 | The·bitmap·is·owned·by·the·video·so·do·not·attempt·to·free·it. |
15 | The·bitmap·will·stay·valid·until·the·next·call·to·al_get_video_frame. | 16 | The·bitmap·will·stay·valid·until·the·next·call·to·al_get_video_frame. |
16 | .PP | 17 | .PP |
17 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a | 18 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_video_position·\-·Allegro·5·API | 5 | al_get_video_position·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | double·al_get_video_position(ALLEGRO_VIDEO·*video,·ALLEGRO_VIDEO_POSITION_TYPE·which) | 10 | double·al_get_video_position(ALLEGRO_VIDEO·*video,·ALLEGRO_VIDEO_POSITION_TYPE·which) |
11 | double·al_get_video_position(ALLEGRO_VIDEO·*video,·ALLEGRO_VIDEO_POSITION_TYPE·which) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·current·position·of·the·video·stream·in·seconds·since·the | 14 | Returns·the·current·position·of·the·video·stream·in·seconds·since·the |
14 | beginning. | 15 | beginning. |
15 | The·parameter·is·one·of·the·ALLEGRO_VIDEO_POSITION_TYPE(3alleg5) | 16 | The·parameter·is·one·of·the·ALLEGRO_VIDEO_POSITION_TYPE(3alleg5) |
16 | constants. | 17 | constants. |
17 | .SH·SINCE | 18 | .SH·SINCE |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_video_scaled_height·\-·Allegro·5·API | 5 | al_get_video_scaled_height·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) | 10 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) |
11 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·height·with·which·the·video·frame·should·be·drawn. | 14 | Returns·the·height·with·which·the·video·frame·should·be·drawn. |
14 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value | 15 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value |
15 | larger·than·the·height·of·the·frame·bitmap. | 16 | larger·than·the·height·of·the·frame·bitmap. |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_get_video_frame(3alleg5) | 18 | al_get_video_frame(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_video_scaled_width·\-·Allegro·5·API | 5 | al_get_video_scaled_width·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) | 10 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) |
11 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·the·width·with·which·the·video·frame·should·be·drawn. | 14 | Returns·the·width·with·which·the·video·frame·should·be·drawn. |
14 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value | 15 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value |
15 | larger·than·the·width·of·the·frame·bitmap. | 16 | larger·than·the·width·of·the·frame·bitmap. |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.1.12 | 18 | 5.1.12 |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_voice_channels·\-·Allegro·5·API | 5 | al_get_voice_channels·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_CHANNEL_CONF·al_get_voice_channels(const·ALLEGRO_VOICE·*voice) | 10 | ALLEGRO_CHANNEL_CONF·al_get_voice_channels(const·ALLEGRO_VOICE·*voice) |
11 | ALLEGRO_CHANNEL_CONF·al_get_voice_channels(const·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·channel·configuration·of·the·voice. | 14 | Return·the·channel·configuration·of·the·voice. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | ALLEGRO_CHANNEL_CONF(3alleg5). | 16 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_voice_depth·\-·Allegro·5·API | 5 | al_get_voice_depth·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_DEPTH·al_get_voice_depth(const·ALLEGRO_VOICE·*voice) | 10 | ALLEGRO_AUDIO_DEPTH·al_get_voice_depth(const·ALLEGRO_VOICE·*voice) |
11 | ALLEGRO_AUDIO_DEPTH·al_get_voice_depth(const·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·the·audio·depth·of·the·voice. | 14 | Return·the·audio·depth·of·the·voice. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 16 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_get_voice_playing·\-·Allegro·5·API | 5 | al_get_voice_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_voice_playing(const·ALLEGRO_VOICE·*voice) | 10 | bool·al_get_voice_playing(const·ALLEGRO_VOICE·*voice) |
11 | bool·al_get_voice_playing(const·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Return·true·if·the·voice·is·currently·playing. | 14 | Return·true·if·the·voice·is·currently·playing. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_set_voice_playing(3alleg5) | 16 | al_set_voice_playing(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_get_voice_position·\-·Allegro·5·API | 5 | al_get_voice_position·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_voice_position(const·ALLEGRO_VOICE·*voice) | 10 | unsigned·int·al_get_voice_position(const·ALLEGRO_VOICE·*voice) |
11 | unsigned·int·al_get_voice_position(const·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | When·the·voice·has·a·non\-streaming·object·attached·to·it,·e.g.\·a | 14 | When·the·voice·has·a·non\-streaming·object·attached·to·it,·e.g.\·a |
14 | sample,·returns·the·voice\[cq]s·current·sample·position. | 15 | sample,·returns·the·voice\[cq]s·current·sample·position. |
15 | Otherwise,·returns·zero. | 16 | Otherwise,·returns·zero. |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_set_voice_position(3alleg5). | 18 | al_set_voice_position(3alleg5). |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_grab_font_from_bitmap(ALLEGRO_BITMAP·*bmp, | 10 | ALLEGRO_FONT·*al_grab_font_from_bitmap(ALLEGRO_BITMAP·*bmp, |
11 | ···int·ranges_n,·const·int·ranges[]) | 11 | ···int·ranges_n,·const·int·ranges[]) |
12 | ALLEGRO_FONT·*al_grab_font_from_bitmap(ALLEGRO_BITMAP·*bmp, | ||
13 | ···int·ranges_n,·const·int·ranges[]) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Creates·a·new·font·from·an·Allegro·bitmap. | 16 | Creates·a·new·font·from·an·Allegro·bitmap. |
15 | You·can·delete·the·bitmap·after·the·function·returns·as·the·font·will | 17 | You·can·delete·the·bitmap·after·the·function·returns·as·the·font·will |
16 | contain·a·copy·for·itself. | 18 | contain·a·copy·for·itself. |
17 | .PP | 19 | .PP |
18 | Parameters: | 20 | Parameters: |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_identify_sample·\-·Allegro·5·API | 5 | al_identify_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | char·const·*al_identify_sample(char·const·*filename) | 10 | char·const·*al_identify_sample(char·const·*filename) |
11 | char·const·*al_identify_sample(char·const·*filename) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·works·exactly·as·al_identify_sample_f(3alleg5)·but·you·specify·the | 14 | This·works·exactly·as·al_identify_sample_f(3alleg5)·but·you·specify·the |
14 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. | 15 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. |
15 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account | 16 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account |
16 | \-·only·the·file·contents. | 17 | \-·only·the·file·contents. |
17 | .SH·SINCE | 18 | .SH·SINCE |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_identify_sample_f·\-·Allegro·5·API | 5 | al_identify_sample_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | char·const·*al_identify_sample_f(ALLEGRO_FILE·*fp) | 10 | char·const·*al_identify_sample_f(ALLEGRO_FILE·*fp) |
11 | char·const·*al_identify_sample_f(ALLEGRO_FILE·*fp) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Tries·to·guess·the·audio·file·type·of·the·open·ALLEGRO_FILE·by·reading | 14 | Tries·to·guess·the·audio·file·type·of·the·open·ALLEGRO_FILE·by·reading |
14 | the·first·few·bytes. | 15 | the·first·few·bytes. |
15 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling | 16 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling |
16 | al_init_acodec_addon(3alleg5)·will·add·detection·of·the·types·it·can | 17 | al_init_acodec_addon(3alleg5)·will·add·detection·of·the·types·it·can |
17 | read. | 18 | read. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_identify_video·\-·Allegro·5·API | 5 | al_identify_video·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | char·const·*al_identify_video(char·const·*filename) | 10 | char·const·*al_identify_video(char·const·*filename) |
11 | char·const·*al_identify_video(char·const·*filename) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·works·exactly·as·al_identify_video_f(3alleg5)·but·you·specify·the | 14 | This·works·exactly·as·al_identify_video_f(3alleg5)·but·you·specify·the |
14 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. | 15 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. |
15 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account | 16 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account |
16 | \-·only·the·file·contents. | 17 | \-·only·the·file·contents. |
17 | .SH·SINCE | 18 | .SH·SINCE |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_identify_video_f·\-·Allegro·5·API | 5 | al_identify_video_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) | 10 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) |
11 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by·reading | 14 | Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by·reading |
14 | the·first·few·bytes. | 15 | the·first·few·bytes. |
15 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling | 16 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling |
16 | al_init_video_addon(3alleg5)·will·add·detection·of·the·types·it·can | 17 | al_init_video_addon(3alleg5)·will·add·detection·of·the·types·it·can |
17 | read. | 18 | read. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_init·\-·Allegro·5·API | 5 | al_init·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) | 10 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) |
11 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Like·al_install_system(3alleg5),·but·automatically·passes·in·the·version | 14 | Like·al_install_system(3alleg5),·but·automatically·passes·in·the·version |
14 | and·uses·the·atexit·function·visible·in·the·current·binary. | 15 | and·uses·the·atexit·function·visible·in·the·current·binary. |
15 | .RS | 16 | .RS |
16 | .PP | 17 | .PP |
17 | Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final | 18 | Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_init_acodec_addon·\-·Allegro·5·API | 5 | al_init_acodec_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_acodec.h> | 9 | #include·<allegro5/allegro_acodec.h> |
10 | bool·al_init_acodec_addon(void) | 10 | bool·al_init_acodec_addon(void) |
11 | bool·al_init_acodec_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·function·registers·all·the·known·audio·file·type·handlers·for | 14 | This·function·registers·all·the·known·audio·file·type·handlers·for |
14 | al_load_sample(3alleg5),·al_save_sample(3alleg5), | 15 | al_load_sample(3alleg5),·al_save_sample(3alleg5), |
15 | al_load_audio_stream(3alleg5),·etc. | 16 | al_load_audio_stream(3alleg5),·etc. |
16 | .PP | 17 | .PP |
17 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised | 18 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_init_font_addon·\-·Allegro·5·API | 5 | al_init_font_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | bool·al_init_font_addon(void) | 10 | bool·al_init_font_addon(void) |
11 | bool·al_init_font_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Initialise·the·font·addon. | 14 | Initialise·the·font·addon. |
14 | .PP | 15 | .PP |
15 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to | 16 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to |
16 | initialise·allegro_image·separately·(unless·you·are·using·another | 17 | initialise·allegro_image·separately·(unless·you·are·using·another |
17 | library·to·load·images). | 18 | library·to·load·images). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_init_image_addon·\-·Allegro·5·API | 5 | al_init_image_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_image.h> | 9 | #include·<allegro5/allegro_image.h> |
10 | bool·al_init_image_addon(void) | 10 | bool·al_init_image_addon(void) |
11 | bool·al_init_image_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Initializes·the·image·addon. | 14 | Initializes·the·image·addon. |
14 | This·registers·bitmap·format·handlers·for·al_load_bitmap(3alleg5), | 15 | This·registers·bitmap·format·handlers·for·al_load_bitmap(3alleg5), |
15 | al_load_bitmap_f(3alleg5),·al_save_bitmap(3alleg5), | 16 | al_load_bitmap_f(3alleg5),·al_save_bitmap(3alleg5), |
16 | al_save_bitmap_f(3alleg5). | 17 | al_save_bitmap_f(3alleg5). |
17 | .PP | 18 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_init_native_dialog_addon·\-·Allegro·5·API | 5 | al_init_native_dialog_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_init_native_dialog_addon(void) | 10 | bool·al_init_native_dialog_addon(void) |
11 | bool·al_init_native_dialog_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Initialise·the·native·dialog·addon. | 14 | Initialise·the·native·dialog·addon. |
14 | .PP | 15 | .PP |
15 | Returns·true·on·success,·false·on·error. | 16 | Returns·true·on·success,·false·on·error. |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.0.9,·5.1.0 | 18 | 5.0.9,·5.1.0 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_init_primitives_addon·\-·Allegro·5·API | 5 | al_init_primitives_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | bool·al_init_primitives_addon(void) | 10 | bool·al_init_primitives_addon(void) |
11 | bool·al_init_primitives_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Initializes·the·primitives·addon. | 14 | Initializes·the·primitives·addon. |
14 | .PP | 15 | .PP |
15 | \f[I]Returns:\f[R]·True·on·success,·false·on·failure. | 16 | \f[I]Returns:\f[R]·True·on·success,·false·on·failure. |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_shutdown_primitives_addon(3alleg5) | 18 | al_shutdown_primitives_addon(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_init_ttf_addon·\-·Allegro·5·API | 5 | al_init_ttf_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | bool·al_init_ttf_addon(void) | 10 | bool·al_init_ttf_addon(void) |
11 | bool·al_init_ttf_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Call·this·after·al_init_font_addon(3alleg5)·to·make | 14 | Call·this·after·al_init_font_addon(3alleg5)·to·make |
14 | al_load_font(3alleg5)·recognize·\[lq].ttf\[rq]·and·other·formats | 15 | al_load_font(3alleg5)·recognize·\[lq].ttf\[rq]·and·other·formats |
15 | supported·by·al_load_ttf_font(3alleg5). | 16 | supported·by·al_load_ttf_font(3alleg5). |
16 | .PP | 17 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 18 | Returns·true·on·success,·false·on·failure. |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_init_video_addon·\-·Allegro·5·API | 5 | al_init_video_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | bool·al_init_video_addon(void) | 10 | bool·al_init_video_addon(void) |
11 | bool·al_init_video_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Initializes·the·video·addon. | 14 | Initializes·the·video·addon. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.12 | 16 | 5.1.12 |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_insert_menu_item(ALLEGRO_MENU·*parent,·int·pos,·char·const·*title, | 10 | int·al_insert_menu_item(ALLEGRO_MENU·*parent,·int·pos,·char·const·*title, |
11 | ···uint16_t·id,·int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) | 11 | ···uint16_t·id,·int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) |
12 | int·al_insert_menu_item(ALLEGRO_MENU·*parent,·int·pos,·char·const·*title, | ||
13 | ···uint16_t·id,·int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Inserts·a·menu·item·at·the·spot·specified. | 16 | Inserts·a·menu·item·at·the·spot·specified. |
15 | See·the·introductory·text·for·a·detailed·explanation·of·how·the | 17 | See·the·introductory·text·for·a·detailed·explanation·of·how·the |
16 | \f[CR]pos\f[R]·parameter·is·interpreted. | 18 | \f[CR]pos\f[R]·parameter·is·interpreted. |
17 | .PP | 19 | .PP |
18 | The·\f[CR]parent\f[R]·menu·can·be·a·popup·menu·or·a·regular·menu. | 20 | The·\f[CR]parent\f[R]·menu·can·be·a·popup·menu·or·a·regular·menu. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_install_audio·\-·Allegro·5·API | 5 | al_install_audio·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_install_audio(void) | 10 | bool·al_install_audio(void) |
11 | bool·al_install_audio(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Install·the·audio·subsystem. | 14 | Install·the·audio·subsystem. |
14 | .PP | 15 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
16 | .RS | 17 | .RS |
17 | .PP | 18 | .PP |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_is_acodec_addon_initialized·\-·Allegro·5·API | 5 | al_is_acodec_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_acodec.h> | 9 | #include·<allegro5/allegro_acodec.h> |
10 | bool·al_is_acodec_addon_initialized(void) | 10 | bool·al_is_acodec_addon_initialized(void) |
11 | bool·al_is_acodec_addon_initialized(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns | 14 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns |
14 | false. | 15 | false. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.2.6 | 17 | 5.2.6 |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_is_audio_installed·\-·Allegro·5·API | 5 | al_is_audio_installed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_is_audio_installed(void) | 10 | bool·al_is_audio_installed(void) |
11 | bool·al_is_audio_installed(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·al_install_audio(3alleg5)·was·called·previously·and | 14 | Returns·true·if·al_install_audio(3alleg5)·was·called·previously·and |
14 | returned·successfully. | 15 | returned·successfully. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_is_audio_recorder_recording·\-·Allegro·5·API | 5 | al_is_audio_recorder_recording·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_is_audio_recorder_recording(ALLEGRO_AUDIO_RECORDER·*r) | 10 | bool·al_is_audio_recorder_recording(ALLEGRO_AUDIO_RECORDER·*r) |
11 | bool·al_is_audio_recorder_recording(ALLEGRO_AUDIO_RECORDER·*r) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·the·audio·recorder·is·currently·capturing·data·and | 14 | Returns·true·if·the·audio·recorder·is·currently·capturing·data·and |
14 | generating·events. | 15 | generating·events. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.1 | 17 | 5.1.1 |
17 | .RS | 18 | .RS |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_is_font_addon_initialized·\-·Allegro·5·API | 5 | al_is_font_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | bool·al_is_font_addon_initialized(void) | 10 | bool·al_is_font_addon_initialized(void) |
11 | bool·al_is_font_addon_initialized(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. | 14 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.2.6 | 16 | 5.2.6 |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_init_font_addon(3alleg5),·al_shutdown_font_addon(3alleg5) | 18 | al_init_font_addon(3alleg5),·al_shutdown_font_addon(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_is_image_addon_initialized·\-·Allegro·5·API | 5 | al_is_image_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_image.h> | 9 | #include·<allegro5/allegro_image.h> |
10 | bool·al_is_image_addon_initialized(void) | 10 | bool·al_is_image_addon_initialized(void) |
11 | bool·al_is_image_addon_initialized(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. | 14 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.2.6 | 16 | 5.2.6 |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_is_native_dialog_addon_initialized·\-·Allegro·5·API | 5 | al_is_native_dialog_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_is_native_dialog_addon_initialized(void) | 10 | bool·al_is_native_dialog_addon_initialized(void) |
11 | bool·al_is_native_dialog_addon_initialized(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise | 14 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise |
14 | returns·false. | 15 | returns·false. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.2.6 | 17 | 5.2.6 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_is_primitives_addon_initialized·\-·Allegro·5·API | 5 | al_is_primitives_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | bool·al_is_primitives_addon_initialized(void) | 10 | bool·al_is_primitives_addon_initialized(void) |
11 | bool·al_is_primitives_addon_initialized(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns | 14 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns |
14 | false. | 15 | false. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.2.6 | 17 | 5.2.6 |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_is_ttf_addon_initialized·\-·Allegro·5·API | 5 | al_is_ttf_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | bool·al_is_ttf_addon_initialized(void) | 10 | bool·al_is_ttf_addon_initialized(void) |
11 | bool·al_is_ttf_addon_initialized(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·the·TTF·addon·is·initialized,·otherwise·returns·false. | 14 | Returns·true·if·the·TTF·addon·is·initialized,·otherwise·returns·false. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.2.6 | 16 | 5.2.6 |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_init_ttf_addon(3alleg5),·al_shutdown_ttf_addon(3alleg5) | 18 | al_init_ttf_addon(3alleg5),·al_shutdown_ttf_addon(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_is_video_addon_initialized·\-·Allegro·5·API | 5 | al_is_video_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | bool·al_is_video_addon_initialized(void) | 10 | bool·al_is_video_addon_initialized(void) |
11 | bool·al_is_video_addon_initialized(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. | 14 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.2.6 | 16 | 5.2.6 |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_is_video_playing·\-·Allegro·5·API | 5 | al_is_video_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) | 10 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) |
11 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·the·video·is·currently·playing. | 14 | Returns·true·if·the·video·is·currently·playing. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.12 | 16 | 5.1.12 |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream(const·char·*filename, | 10 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream(const·char·*filename, |
11 | ···size_t·buffer_count,·unsigned·int·samples) | 11 | ···size_t·buffer_count,·unsigned·int·samples) |
12 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream(const·char·*filename, | ||
13 | ···size_t·buffer_count,·unsigned·int·samples) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Loads·an·audio·file·from·disk·as·it·is·needed. | 16 | Loads·an·audio·file·from·disk·as·it·is·needed. |
15 | .PP | 17 | .PP |
16 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be | 18 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be |
17 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as | 19 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as |
18 | it·is·needed. | 20 | it·is·needed. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream_f(ALLEGRO_FILE*·fp,·const·char·*ident, | 10 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream_f(ALLEGRO_FILE*·fp,·const·char·*ident, |
11 | ···size_t·buffer_count,·unsigned·int·samples) | 11 | ···size_t·buffer_count,·unsigned·int·samples) |
12 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream_f(ALLEGRO_FILE*·fp,·const·char·*ident, | ||
13 | ···size_t·buffer_count,·unsigned·int·samples) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Loads·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream·as·it·is·needed. | 16 | Loads·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream·as·it·is·needed. |
15 | .PP | 17 | .PP |
16 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be | 18 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be |
17 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as | 19 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as |
18 | it·is·needed. | 20 | it·is·needed. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_load_bitmap_font·\-·Allegro·5·API | 5 | al_load_bitmap_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_load_bitmap_font(const·char·*fname) | 10 | ALLEGRO_FONT·*al_load_bitmap_font(const·char·*fname) |
11 | ALLEGRO_FONT·*al_load_bitmap_font(const·char·*fname) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Load·a·bitmap·font·from·a·file. | 14 | Load·a·bitmap·font·from·a·file. |
14 | This·is·done·by·first·calling·al_load_bitmap_flags(3alleg5)·and·then | 15 | This·is·done·by·first·calling·al_load_bitmap_flags(3alleg5)·and·then |
15 | al_grab_font_from_bitmap(3alleg5). | 16 | al_grab_font_from_bitmap(3alleg5). |
16 | .PP | 17 | .PP |
17 | If·you·wanted·to·load·an·old·A4·font,·for·example,·it·would·be·better·to | 18 | If·you·wanted·to·load·an·old·A4·font,·for·example,·it·would·be·better·to |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_load_bitmap_font_flags·\-·Allegro·5·API | 5 | al_load_bitmap_font_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_load_bitmap_font_flags(const·char·*fname,·int·flags) | 10 | ALLEGRO_FONT·*al_load_bitmap_font_flags(const·char·*fname,·int·flags) |
11 | ALLEGRO_FONT·*al_load_bitmap_font_flags(const·char·*fname,·int·flags) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Like·al_load_bitmap_font(3alleg5)·but·additionally·takes·a·flags | 14 | Like·al_load_bitmap_font(3alleg5)·but·additionally·takes·a·flags |
14 | parameter·which·is·a·bitfield·containing·a·combination·of·the·following: | 15 | parameter·which·is·a·bitfield·containing·a·combination·of·the·following: |
15 | .TP | 16 | .TP |
16 | ALLEGRO_NO_PREMULTIPLIED_ALPHA | 17 | ALLEGRO_NO_PREMULTIPLIED_ALPHA |
17 | The·same·meaning·as·for·al_load_bitmap_flags(3alleg5). | 18 | The·same·meaning·as·for·al_load_bitmap_flags(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_load_font·\-·Allegro·5·API | 5 | al_load_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) | 10 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) |
11 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Loads·a·font·from·disk. | 14 | Loads·a·font·from·disk. |
14 | This·will·use·al_load_bitmap_font_flags(3alleg5)·if·you·pass·the·name·of | 15 | This·will·use·al_load_bitmap_font_flags(3alleg5)·if·you·pass·the·name·of |
15 | a·known·bitmap·format,·or·else·al_load_ttf_font(3alleg5). | 16 | a·known·bitmap·format,·or·else·al_load_ttf_font(3alleg5). |
16 | .PP | 17 | .PP |
17 | The·flags·parameter·is·passed·through·to·either·of·those·functions. | 18 | The·flags·parameter·is·passed·through·to·either·of·those·functions. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_load_sample·\-·Allegro·5·API | 5 | al_load_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE·*al_load_sample(const·char·*filename) | 10 | ALLEGRO_SAMPLE·*al_load_sample(const·char·*filename) |
11 | ALLEGRO_SAMPLE·*al_load_sample(const·char·*filename) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Loads·a·few·different·audio·file·formats·based·on·their·extension. | 14 | Loads·a·few·different·audio·file·formats·based·on·their·extension. |
14 | .PP | 15 | .PP |
15 | Note·that·this·stores·the·entire·file·in·memory·at·once,·which·may·be | 16 | Note·that·this·stores·the·entire·file·in·memory·at·once,·which·may·be |
16 | time·consuming. | 17 | time·consuming. |
17 | To·read·the·file·as·it·is·needed,·use·al_load_audio_stream(3alleg5)·or | 18 | To·read·the·file·as·it·is·needed,·use·al_load_audio_stream(3alleg5)·or |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_load_sample_f·\-·Allegro·5·API | 5 | al_load_sample_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE·*al_load_sample_f(ALLEGRO_FILE*·fp,·const·char·*ident) | 10 | ALLEGRO_SAMPLE·*al_load_sample_f(ALLEGRO_FILE*·fp,·const·char·*ident) |
11 | ALLEGRO_SAMPLE·*al_load_sample_f(ALLEGRO_FILE*·fp,·const·char·*ident) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Loads·an·audio·file·from·an·ALLEGRO_FILE(3alleg5)·stream·into·an | 14 | Loads·an·audio·file·from·an·ALLEGRO_FILE(3alleg5)·stream·into·an |
14 | ALLEGRO_SAMPLE(3alleg5). | 15 | ALLEGRO_SAMPLE(3alleg5). |
15 | The·file·type·is·determined·by·the·passed·`ident'·parameter,·which·is·a | 16 | The·file·type·is·determined·by·the·passed·`ident'·parameter,·which·is·a |
16 | file·name·extension·including·the·leading·dot. | 17 | file·name·extension·including·the·leading·dot. |
17 | .PP | 18 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_load_ttf_font·\-·Allegro·5·API | 5 | al_load_ttf_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | ALLEGRO_FONT·*al_load_ttf_font(char·const·*filename,·int·size,·int·flags) | 10 | ALLEGRO_FONT·*al_load_ttf_font(char·const·*filename,·int·size,·int·flags) |
11 | ALLEGRO_FONT·*al_load_ttf_font(char·const·*filename,·int·size,·int·flags) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Loads·a·TrueType·font·from·a·file·using·the·FreeType·library. | 14 | Loads·a·TrueType·font·from·a·file·using·the·FreeType·library. |
14 | Quoting·from·the·FreeType·FAQ·this·means·support·for·many·different·font | 15 | Quoting·from·the·FreeType·FAQ·this·means·support·for·many·different·font |
15 | formats: | 16 | formats: |
16 | .PP | 17 | .PP |
17 | \f[I]TrueType,·OpenType,·Type1,·CID,·CFF,·Windows·FON/FNT,·X11·PCF,·and | 18 | \f[I]TrueType,·OpenType,·Type1,·CID,·CFF,·Windows·FON/FNT,·X11·PCF,·and |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | ALLEGRO_FONT·*al_load_ttf_font_f(ALLEGRO_FILE·*file, | 10 | ALLEGRO_FONT·*al_load_ttf_font_f(ALLEGRO_FILE·*file, |
11 | ····char·const·*filename,·int·size,·int·flags) | 11 | ····char·const·*filename,·int·size,·int·flags) |
12 | ALLEGRO_FONT·*al_load_ttf_font_f(ALLEGRO_FILE·*file, | ||
13 | ····char·const·*filename,·int·size,·int·flags) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Like·al_load_ttf_font(3alleg5),·but·the·font·is·read·from·the·file | 16 | Like·al_load_ttf_font(3alleg5),·but·the·font·is·read·from·the·file |
15 | handle. | 17 | handle. |
16 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a | 18 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a |
17 | font·file. | 19 | font·file. |
18 | .RS | 20 | .RS |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | ALLEGRO_FONT·*al_load_ttf_font_stretch(char·const·*filename,·int·w,·int·h, | 10 | ALLEGRO_FONT·*al_load_ttf_font_stretch(char·const·*filename,·int·w,·int·h, |
11 | ···int·flags) | 11 | ···int·flags) |
12 | ALLEGRO_FONT·*al_load_ttf_font_stretch(char·const·*filename,·int·w,·int·h, | ||
13 | ···int·flags) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Like·al_load_ttf_font(3alleg5),·except·it·takes·separate·width·and | 16 | Like·al_load_ttf_font(3alleg5),·except·it·takes·separate·width·and |
15 | height·parameters·instead·of·a·single·size·parameter. | 17 | height·parameters·instead·of·a·single·size·parameter. |
16 | .PP | 18 | .PP |
17 | If·the·height·is·a·positive·value,·and·the·width·zero·or·positive,·then | 19 | If·the·height·is·a·positive·value,·and·the·width·zero·or·positive,·then |
18 | font·will·be·stretched·according·to·those·parameters. | 20 | font·will·be·stretched·according·to·those·parameters. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | ALLEGRO_FONT·*al_load_ttf_font_stretch_f(ALLEGRO_FILE·*file, | 10 | ALLEGRO_FONT·*al_load_ttf_font_stretch_f(ALLEGRO_FILE·*file, |
11 | ····char·const·*filename,·int·w,·int·h,·int·flags) | 11 | ····char·const·*filename,·int·w,·int·h,·int·flags) |
12 | ALLEGRO_FONT·*al_load_ttf_font_stretch_f(ALLEGRO_FILE·*file, | ||
13 | ····char·const·*filename,·int·w,·int·h,·int·flags) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Like·al_load_ttf_font_stretch(3alleg5),·but·the·font·is·read·from·the | 16 | Like·al_load_ttf_font_stretch(3alleg5),·but·the·font·is·read·from·the |
15 | file·handle. | 17 | file·handle. |
16 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a | 18 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a |
17 | font·file. | 19 | font·file. |
18 | .RS | 20 | .RS |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void*·al_lock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer,·int·offset, | 10 | void*·al_lock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer,·int·offset, |
11 | ····int·length,·int·flags) | 11 | ····int·length,·int·flags) |
12 | void*·al_lock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer,·int·offset, | ||
13 | ····int·length,·int·flags) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Locks·a·index·buffer·so·you·can·access·its·data. | 16 | Locks·a·index·buffer·so·you·can·access·its·data. |
15 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested | 17 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested |
16 | from·a·write·only·buffer·and·if·the·buffer·is·already·locked. | 18 | from·a·write·only·buffer·and·if·the·buffer·is·already·locked. |
17 | .PP | 19 | .PP |
18 | \f[I]Parameters:\f[R] | 20 | \f[I]Parameters:\f[R] |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_lock_sample_id·\-·Allegro·5·API | 5 | al_lock_sample_id·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | 10 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) |
11 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Locks·a·ALLEGRO_SAMPLE_ID(3alleg5),·returning·the·underlying | 14 | Locks·a·ALLEGRO_SAMPLE_ID(3alleg5),·returning·the·underlying |
14 | ALLEGRO_SAMPLE_INSTANCE(3alleg5). | 15 | ALLEGRO_SAMPLE_INSTANCE(3alleg5). |
15 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such | 16 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such |
16 | as·volume,·pan,·etc)·while·the·sound·is·playing. | 17 | as·volume,·pan,·etc)·while·the·sound·is·playing. |
17 | .PP | 18 | .PP |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void*·al_lock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer,·int·offset, | 10 | void*·al_lock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer,·int·offset, |
11 | ···int·length,·int·flags) | 11 | ···int·length,·int·flags) |
12 | void*·al_lock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer,·int·offset, | ||
13 | ···int·length,·int·flags) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Locks·a·vertex·buffer·so·you·can·access·its·data. | 16 | Locks·a·vertex·buffer·so·you·can·access·its·data. |
15 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested | 17 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested |
16 | from·a·write·only·buffer,·or·if·the·buffer·is·already·locked. | 18 | from·a·write·only·buffer,·or·if·the·buffer·is·already·locked. |
17 | .PP | 19 | .PP |
18 | \f[I]Parameters:\f[R] | 20 | \f[I]Parameters:\f[R] |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·al_malloc(n)·\[rs] | 10 | #define·al_malloc(n)·\[rs] |
11 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | 11 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) |
12 | #define·al_malloc(n)·\[rs] | ||
13 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be | 16 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be |
15 | overridden. | 17 | overridden. |
16 | .PP | 18 | .PP |
17 | This·is·a·macro. | 19 | This·is·a·macro. |
18 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_mixer_has_attachments·\-·Allegro·5·API | 5 | al_mixer_has_attachments·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_mixer_has_attachments(const·ALLEGRO_MIXER*·mixer) | 10 | bool·al_mixer_has_attachments(const·ALLEGRO_MIXER*·mixer) |
11 | bool·al_mixer_has_attachments(const·ALLEGRO_MIXER*·mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·the·mixer·has·something·attached·to·it. | 14 | Returns·true·if·the·mixer·has·something·attached·to·it. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_get_mixer_attached(3alleg5), | 16 | al_get_mixer_attached(3alleg5), |
16 | al_attach_sample_instance_to_mixer(3alleg5), | 17 | al_attach_sample_instance_to_mixer(3alleg5), |
17 | al_attach_audio_stream_to_mixer(3alleg5), | 18 | al_attach_audio_stream_to_mixer(3alleg5), |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_open_memfile·\-·Allegro·5·API | 5 | al_open_memfile·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_memfile.h> | 9 | #include·<allegro5/allegro_memfile.h> |
10 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) | 10 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) |
11 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·a·file·handle·to·the·block·of·memory. | 14 | Returns·a·file·handle·to·the·block·of·memory. |
14 | All·read·and·write·operations·act·upon·the·memory·directly,·so·it·must | 15 | All·read·and·write·operations·act·upon·the·memory·directly,·so·it·must |
15 | not·be·freed·while·the·file·remains·open. | 16 | not·be·freed·while·the·file·remains·open. |
16 | .PP | 17 | .PP |
17 | The·mode·can·be·any·combination·of·\[lq]r\[rq]·(readable)·and | 18 | The·mode·can·be·any·combination·of·\[lq]r\[rq]·(readable)·and |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_open_native_text_log·\-·Allegro·5·API | 5 | al_open_native_text_log·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) | 10 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) |
11 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Opens·a·window·to·which·you·can·append·log·messages·with | 14 | Opens·a·window·to·which·you·can·append·log·messages·with |
14 | al_append_native_text_log(3alleg5). | 15 | al_append_native_text_log(3alleg5). |
15 | This·can·be·useful·for·debugging·if·you·don\[cq]t·want·to·depend·on·a | 16 | This·can·be·useful·for·debugging·if·you·don\[cq]t·want·to·depend·on·a |
16 | console·being·available. | 17 | console·being·available. |
17 | .PP | 18 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_open_video·\-·Allegro·5·API | 5 | al_open_video·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | 10 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) |
11 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Reads·a·video·file. | 14 | Reads·a·video·file. |
14 | This·does·not·start·playing·yet·but·reads·the·meta·info·so·you·can·query | 15 | This·does·not·start·playing·yet·but·reads·the·meta·info·so·you·can·query |
15 | e.g.\·the·size·or·audio·rate. | 16 | e.g.\·the·size·or·audio·rate. |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.1.0 | 18 | 5.1.0 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_play_audio_stream·\-·Allegro·5·API | 5 | al_play_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) | 10 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) |
11 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Loads·and·plays·an·audio·file,·streaming·from·disk·as·it·is·needed. | 14 | Loads·and·plays·an·audio·file,·streaming·from·disk·as·it·is·needed. |
14 | This·API·can·only·play·one·audio·stream·at·a·time. | 15 | This·API·can·only·play·one·audio·stream·at·a·time. |
15 | This·requires·a·default·mixer·to·be·set,·which·is·typically·done·via | 16 | This·requires·a·default·mixer·to·be·set,·which·is·typically·done·via |
16 | al_reserve_samples(3alleg5),·but·can·also·be·done·via | 17 | al_reserve_samples(3alleg5),·but·can·also·be·done·via |
17 | al_set_default_mixer(3alleg5). | 18 | al_set_default_mixer(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_play_audio_stream_f·\-·Allegro·5·API | 5 | al_play_audio_stream_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream_f(ALLEGRO_FILE·*fp,·const·char·*ident) | 10 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream_f(ALLEGRO_FILE·*fp,·const·char·*ident) |
11 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream_f(ALLEGRO_FILE·*fp,·const·char·*ident) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Loads·and·plays·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream, | 14 | Loads·and·plays·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream, |
14 | streaming·it·is·needed. | 15 | streaming·it·is·needed. |
15 | This·API·can·only·play·one·audio·stream·at·a·time. | 16 | This·API·can·only·play·one·audio·stream·at·a·time. |
16 | This·requires·a·default·mixer·to·be·set,·which·is·typically·done·via | 17 | This·requires·a·default·mixer·to·be·set,·which·is·typically·done·via |
17 | al_reserve_samples(3alleg5),·but·can·also·be·done·via | 18 | al_reserve_samples(3alleg5),·but·can·also·be·done·via |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, | 10 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, |
11 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) | 11 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) |
12 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, | ||
13 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Plays·a·sample·on·one·of·the·sample·instances·created·by | 16 | Plays·a·sample·on·one·of·the·sample·instances·created·by |
15 | al_reserve_samples(3alleg5). | 17 | al_reserve_samples(3alleg5). |
16 | Returns·true·on·success,·false·on·failure. | 18 | Returns·true·on·success,·false·on·failure. |
17 | Playback·may·fail·because·all·the·reserved·sample·instances·are | 19 | Playback·may·fail·because·all·the·reserved·sample·instances·are |
18 | currently·used. | 20 | currently·used. |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_play_sample_instance·\-·Allegro·5·API | 5 | al_play_sample_instance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | bool·al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | bool·al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Play·the·sample·instance. | 14 | Play·the·sample·instance. |
14 | Returns·true·on·success,·false·on·failure. | 15 | Returns·true·on·success,·false·on·failure. |
15 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
16 | al_stop_sample_instance(3alleg5) | 17 | al_stop_sample_instance(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_popup_menu·\-·Allegro·5·API | 5 | al_popup_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_popup_menu(ALLEGRO_MENU·*popup,·ALLEGRO_DISPLAY·*display) | 10 | bool·al_popup_menu(ALLEGRO_MENU·*popup,·ALLEGRO_DISPLAY·*display) |
11 | bool·al_popup_menu(ALLEGRO_MENU·*popup,·ALLEGRO_DISPLAY·*display) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Displays·a·context·menu·next·to·the·mouse·cursor. | 14 | Displays·a·context·menu·next·to·the·mouse·cursor. |
14 | The·menu·must·have·been·created·with·al_create_popup_menu(3alleg5). | 15 | The·menu·must·have·been·created·with·al_create_popup_menu(3alleg5). |
15 | It·generates·events·just·like·a·regular·display·menu·does. | 16 | It·generates·events·just·like·a·regular·display·menu·does. |
16 | It·is·possible·that·the·menu·will·be·canceled·without·any·selection | 17 | It·is·possible·that·the·menu·will·be·canceled·without·any·selection |
17 | being·made. | 18 | being·made. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·al_realloc(p,·n)·\[rs] | 10 | #define·al_realloc(p,·n)·\[rs] |
11 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | 11 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) |
12 | #define·al_realloc(p,·n)·\[rs] | ||
13 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be | 16 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be |
15 | overridden. | 17 | overridden. |
16 | .PP | 18 | .PP |
17 | This·is·a·macro. | 19 | This·is·a·macro. |
18 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_audio_stream_loader(const·char·*ext, | 10 | bool·al_register_audio_stream_loader(const·char·*ext, |
11 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(const·char·*filename, | 11 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(const·char·*filename, |
12 | ······size_t·buffer_count,·unsigned·int·samples)) | 12 | ······size_t·buffer_count,·unsigned·int·samples)) |
13 | bool·al_register_audio_stream_loader(const·char·*ext, | ||
14 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(const·char·*filename, | ||
15 | ······size_t·buffer_count,·unsigned·int·samples)) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Register·a·handler·for·al_load_audio_stream(3alleg5)·and | 18 | Register·a·handler·for·al_load_audio_stream(3alleg5)·and |
16 | al_play_audio_stream(3alleg5). | 19 | al_play_audio_stream(3alleg5). |
17 | The·given·function·will·be·used·to·open·streams·from·files·with·the | 20 | The·given·function·will·be·used·to·open·streams·from·files·with·the |
18 | given·extension. | 21 | given·extension. |
19 | .PP | 22 | .PP |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_audio_stream_loader_f(const·char·*ext, | 10 | bool·al_register_audio_stream_loader_f(const·char·*ext, |
11 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(ALLEGRO_FILE*·fp, | 11 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(ALLEGRO_FILE*·fp, |
12 | ······size_t·buffer_count,·unsigned·int·samples)) | 12 | ······size_t·buffer_count,·unsigned·int·samples)) |
13 | bool·al_register_audio_stream_loader_f(const·char·*ext, | ||
14 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(ALLEGRO_FILE*·fp, | ||
15 | ······size_t·buffer_count,·unsigned·int·samples)) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Register·a·handler·for·al_load_audio_stream_f(3alleg5)·and | 18 | Register·a·handler·for·al_load_audio_stream_f(3alleg5)·and |
16 | al_play_audio_stream_f(3alleg5). | 19 | al_play_audio_stream_f(3alleg5). |
17 | The·given·function·will·be·used·to·open·streams·from·files·with·the | 20 | The·given·function·will·be·used·to·open·streams·from·files·with·the |
18 | given·extension. | 21 | given·extension. |
19 | .PP | 22 | .PP |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | bool·al_register_font_loader(char·const·*extension, | 10 | bool·al_register_font_loader(char·const·*extension, |
11 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | 11 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) |
12 | bool·al_register_font_loader(char·const·*extension, | ||
13 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of | 16 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of |
15 | this·format. | 17 | this·format. |
16 | .PP | 18 | .PP |
17 | The·\f[CR]extension\f[R]·should·include·the·leading·dot·(`.')·character. | 19 | The·\f[CR]extension\f[R]·should·include·the·leading·dot·(`.')·character. |
18 | It·will·be·matched·case\-insensitively. | 20 | It·will·be·matched·case\-insensitively. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_sample_identifier(const·char·*ext, | 10 | bool·al_register_sample_identifier(const·char·*ext, |
11 | ···bool·(*identifier)(ALLEGRO_FILE*·fp)) | 11 | ···bool·(*identifier)(ALLEGRO_FILE*·fp)) |
12 | bool·al_register_sample_identifier(const·char·*ext, | ||
13 | ···bool·(*identifier)(ALLEGRO_FILE*·fp)) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Register·an·identify·handler·for·al_identify_sample(3alleg5). | 16 | Register·an·identify·handler·for·al_identify_sample(3alleg5). |
15 | The·given·function·will·be·used·to·detect·files·for·the·given·extension. | 17 | The·given·function·will·be·used·to·detect·files·for·the·given·extension. |
16 | It·will·be·called·with·a·single·argument·of·type·ALLEGRO_FILE(3alleg5) | 18 | It·will·be·called·with·a·single·argument·of·type·ALLEGRO_FILE(3alleg5) |
17 | which·is·a·file·handle·opened·for·reading·and·located·at·the·first·byte | 19 | which·is·a·file·handle·opened·for·reading·and·located·at·the·first·byte |
18 | of·the·file. | 20 | of·the·file. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_sample_loader(const·char·*ext, | 10 | bool·al_register_sample_loader(const·char·*ext, |
11 | ···ALLEGRO_SAMPLE·*(*loader)(const·char·*filename)) | 11 | ···ALLEGRO_SAMPLE·*(*loader)(const·char·*filename)) |
12 | bool·al_register_sample_loader(const·char·*ext, | ||
13 | ···ALLEGRO_SAMPLE·*(*loader)(const·char·*filename)) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Register·a·handler·for·al_load_sample(3alleg5). | 16 | Register·a·handler·for·al_load_sample(3alleg5). |
15 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files | 17 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files |
16 | with·the·given·extension. | 18 | with·the·given·extension. |
17 | .PP | 19 | .PP |
18 | The·extension·should·include·the·leading·dot·(`.')·character. | 20 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_sample_loader_f(const·char·*ext, | 10 | bool·al_register_sample_loader_f(const·char·*ext, |
11 | ···ALLEGRO_SAMPLE·*(*loader)(ALLEGRO_FILE*·fp)) | 11 | ···ALLEGRO_SAMPLE·*(*loader)(ALLEGRO_FILE*·fp)) |
12 | bool·al_register_sample_loader_f(const·char·*ext, | ||
13 | ···ALLEGRO_SAMPLE·*(*loader)(ALLEGRO_FILE*·fp)) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Register·a·handler·for·al_load_sample_f(3alleg5). | 16 | Register·a·handler·for·al_load_sample_f(3alleg5). |
15 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files | 17 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files |
16 | with·the·given·extension. | 18 | with·the·given·extension. |
17 | .PP | 19 | .PP |
18 | The·extension·should·include·the·leading·dot·(`.')·character. | 20 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_sample_saver(const·char·*ext, | 10 | bool·al_register_sample_saver(const·char·*ext, |
11 | ···bool·(*saver)(const·char·*filename,·ALLEGRO_SAMPLE·*spl)) | 11 | ···bool·(*saver)(const·char·*filename,·ALLEGRO_SAMPLE·*spl)) |
12 | bool·al_register_sample_saver(const·char·*ext, | ||
13 | ···bool·(*saver)(const·char·*filename,·ALLEGRO_SAMPLE·*spl)) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Register·a·handler·for·al_save_sample(3alleg5). | 16 | Register·a·handler·for·al_save_sample(3alleg5). |
15 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files | 17 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files |
16 | with·the·given·extension. | 18 | with·the·given·extension. |
17 | .PP | 19 | .PP |
18 | The·extension·should·include·the·leading·dot·(`.')·character. | 20 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_sample_saver_f(const·char·*ext, | 10 | bool·al_register_sample_saver_f(const·char·*ext, |
11 | ···bool·(*saver)(ALLEGRO_FILE*·fp,·ALLEGRO_SAMPLE·*spl)) | 11 | ···bool·(*saver)(ALLEGRO_FILE*·fp,·ALLEGRO_SAMPLE·*spl)) |
12 | bool·al_register_sample_saver_f(const·char·*ext, | ||
13 | ···bool·(*saver)(ALLEGRO_FILE*·fp,·ALLEGRO_SAMPLE·*spl)) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Register·a·handler·for·al_save_sample_f(3alleg5). | 16 | Register·a·handler·for·al_save_sample_f(3alleg5). |
15 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files | 17 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files |
16 | with·the·given·extension. | 18 | with·the·given·extension. |
17 | .PP | 19 | .PP |
18 | The·extension·should·include·the·leading·dot·(`.')·character. | 20 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_remove_display_menu·\-·Allegro·5·API | 5 | al_remove_display_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_remove_display_menu(ALLEGRO_DISPLAY·*display) | 10 | ALLEGRO_MENU·*al_remove_display_menu(ALLEGRO_DISPLAY·*display) |
11 | ALLEGRO_MENU·*al_remove_display_menu(ALLEGRO_DISPLAY·*display) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Detaches·the·menu·associated·with·the·display·and·returns·it. | 14 | Detaches·the·menu·associated·with·the·display·and·returns·it. |
14 | The·menu·can·then·be·used·on·a·different·display. | 15 | The·menu·can·then·be·used·on·a·different·display. |
15 | .PP | 16 | .PP |
16 | If·you·simply·want·to·destroy·the·active·menu,·you·can·call | 17 | If·you·simply·want·to·destroy·the·active·menu,·you·can·call |
17 | al_set_display_menu(3alleg5)·with·a·\f[CR]NULL\f[R]·menu. | 18 | al_set_display_menu(3alleg5)·with·a·\f[CR]NULL\f[R]·menu. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_remove_menu_item·\-·Allegro·5·API | 5 | al_remove_menu_item·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_remove_menu_item(ALLEGRO_MENU·*menu,·int·pos) | 10 | bool·al_remove_menu_item(ALLEGRO_MENU·*menu,·int·pos) |
11 | bool·al_remove_menu_item(ALLEGRO_MENU·*menu,·int·pos) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Removes·the·specified·item·from·the·menu·and·destroys·it. | 14 | Removes·the·specified·item·from·the·menu·and·destroys·it. |
14 | If·the·item·contains·a·sub\-menu,·it·too·is·destroyed. | 15 | If·the·item·contains·a·sub\-menu,·it·too·is·destroyed. |
15 | Any·references·to·it·are·invalidated. | 16 | Any·references·to·it·are·invalidated. |
16 | If·you·want·to·preserve·that·sub\-menu,·you·should·first·make·a·copy | 17 | If·you·want·to·preserve·that·sub\-menu,·you·should·first·make·a·copy |
17 | with·al_clone_menu(3alleg5). | 18 | with·al_clone_menu(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_reserve_samples·\-·Allegro·5·API | 5 | al_reserve_samples·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_reserve_samples(int·reserve_samples) | 10 | bool·al_reserve_samples(int·reserve_samples) |
11 | bool·al_reserve_samples(int·reserve_samples) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default | 14 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default |
14 | mixer. | 15 | mixer. |
15 | If·no·default·mixer·is·set·when·this·function·is·called,·then·it·will | 16 | If·no·default·mixer·is·set·when·this·function·is·called,·then·it·will |
16 | create·one·and·attach·it·to·the·default·voice. | 17 | create·one·and·attach·it·to·the·default·voice. |
17 | If·no·default·voice·has·been·set,·it,·too,·will·be·created. | 18 | If·no·default·voice·has·been·set,·it,·too,·will·be·created. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_restore_default_mixer·\-·Allegro·5·API | 5 | al_restore_default_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_restore_default_mixer(void) | 10 | bool·al_restore_default_mixer(void) |
11 | bool·al_restore_default_mixer(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Restores·Allegro\[cq]s·default·mixer·and·attaches·it·to·the·default | 14 | Restores·Allegro\[cq]s·default·mixer·and·attaches·it·to·the·default |
14 | voice. | 15 | voice. |
15 | If·the·default·mixer·hasn\[cq]t·been·created·before,·it·will·be·created. | 16 | If·the·default·mixer·hasn\[cq]t·been·created·before,·it·will·be·created. |
16 | If·the·default·voice·hasn\[cq]t·been·set·via | 17 | If·the·default·voice·hasn\[cq]t·been·set·via |
17 | al_set_default_voice(3alleg5)·or·created·before,·it·will·also·be | 18 | al_set_default_voice(3alleg5)·or·created·before,·it·will·also·be |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_rewind_audio_stream·\-·Allegro·5·API | 5 | al_rewind_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | 10 | bool·al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) |
11 | bool·al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·streaming·file·playing·position·to·the·beginning. | 14 | Set·the·streaming·file·playing·position·to·the·beginning. |
14 | Returns·true·on·success. | 15 | Returns·true·on·success. |
15 | Currently·this·can·only·be·called·on·streams·created·with | 16 | Currently·this·can·only·be·called·on·streams·created·with |
16 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 17 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
17 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). | 18 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_save_sample·\-·Allegro·5·API | 5 | al_save_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_save_sample(const·char·*filename,·ALLEGRO_SAMPLE·*spl) | 10 | bool·al_save_sample(const·char·*filename,·ALLEGRO_SAMPLE·*spl) |
11 | bool·al_save_sample(const·char·*filename,·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Writes·a·sample·into·a·file. | 14 | Writes·a·sample·into·a·file. |
14 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be | 15 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be |
15 | \[lq].wav\[rq]. | 16 | \[lq].wav\[rq]. |
16 | .PP | 17 | .PP |
17 | Returns·true·on·success,·false·on·error. | 18 | Returns·true·on·success,·false·on·error. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_save_sample_f·\-·Allegro·5·API | 5 | al_save_sample_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_save_sample_f(ALLEGRO_FILE·*fp,·const·char·*ident,·ALLEGRO_SAMPLE·*spl) | 10 | bool·al_save_sample_f(ALLEGRO_FILE·*fp,·const·char·*ident,·ALLEGRO_SAMPLE·*spl) |
11 | bool·al_save_sample_f(ALLEGRO_FILE·*fp,·const·char·*ident,·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Writes·a·sample·into·a·ALLEGRO_FILE(3alleg5)·filestream. | 14 | Writes·a·sample·into·a·ALLEGRO_FILE(3alleg5)·filestream. |
14 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be | 15 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be |
15 | \[lq].wav\[rq]. | 16 | \[lq].wav\[rq]. |
16 | .PP | 17 | .PP |
17 | Returns·true·on·success,·false·on·error. | 18 | Returns·true·on·success,·false·on·error. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_seek_audio_stream_secs·\-·Allegro·5·API | 5 | al_seek_audio_stream_secs·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM·*stream,·double·time) | 10 | bool·al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM·*stream,·double·time) |
11 | bool·al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM·*stream,·double·time) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·streaming·file·playing·position·to·time. | 14 | Set·the·streaming·file·playing·position·to·time. |
14 | Returns·true·on·success. | 15 | Returns·true·on·success. |
15 | Currently·this·can·only·be·called·on·streams·created·with | 16 | Currently·this·can·only·be·called·on·streams·created·with |
16 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 17 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
17 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). | 18 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). |
Offset 5, 13 lines modified | Offset 5, 14 lines modified | ||
5 | al_seek_video·\-·Allegro·5·API | 5 | al_seek_video·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | bool·al_seek_video(ALLEGRO_VIDEO·*video,·double·pos_in_seconds) | 10 | bool·al_seek_video(ALLEGRO_VIDEO·*video,·double·pos_in_seconds) |
11 | bool·al_seek_video(ALLEGRO_VIDEO·*video,·double·pos_in_seconds) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Seek·to·a·different·position·in·the·video. | 14 | Seek·to·a·different·position·in·the·video. |
14 | Currently·only·seeking·to·the·beginning·of·the·video·is·supported. | 15 | Currently·only·seeking·to·the·beginning·of·the·video·is·supported. |
15 | .SH·SINCE | 16 | .SH·SINCE |
16 | 5.1.0 | 17 | 5.1.0 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_audio_stream_fragment·\-·Allegro·5·API | 5 | al_set_audio_stream_fragment·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM·*stream,·void·*val) | 10 | bool·al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM·*stream,·void·*val) |
11 | bool·al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM·*stream,·void·*val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·function·needs·to·be·called·for·every·successful·call·of | 14 | This·function·needs·to·be·called·for·every·successful·call·of |
14 | al_get_audio_stream_fragment(3alleg5)·to·indicate·that·the·buffer | 15 | al_get_audio_stream_fragment(3alleg5)·to·indicate·that·the·buffer |
15 | (pointed·to·by·\f[CR]val\f[R])·is·filled·with·new·data. | 16 | (pointed·to·by·\f[CR]val\f[R])·is·filled·with·new·data. |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_get_audio_stream_fragment(3alleg5) | 18 | al_get_audio_stream_fragment(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_audio_stream_gain·\-·Allegro·5·API | 5 | al_set_audio_stream_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | 10 | bool·al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM·*stream,·float·val) |
11 | bool·al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·playback·gain·of·the·stream. | 14 | Set·the·playback·gain·of·the·stream. |
14 | .PP | 15 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
16 | Will·fail·if·the·audio·stream·is·attached·directly·to·a·voice. | 17 | Will·fail·if·the·audio·stream·is·attached·directly·to·a·voice. |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 6, 13 lines modified | Offset 6, 15 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM·*stream, | 10 | bool·al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM·*stream, |
11 | ···double·start,·double·end) | 11 | ···double·start,·double·end) |
12 | bool·al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM·*stream, | ||
13 | ···double·start,·double·end) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Sets·the·loop·points·for·the·stream·in·seconds. | 16 | Sets·the·loop·points·for·the·stream·in·seconds. |
15 | Currently·this·can·only·be·called·on·streams·created·with | 17 | Currently·this·can·only·be·called·on·streams·created·with |
16 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 18 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
17 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). | 19 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_audio_stream_pan·\-·Allegro·5·API | 5 | al_set_audio_stream_pan·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | 10 | bool·al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM·*stream,·float·val) |
11 | bool·al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·pan·value·on·an·audio·stream. | 14 | Set·the·pan·value·on·an·audio·stream. |
14 | A·value·of·\-1.0·means·to·play·the·stream·only·through·the·left·speaker; | 15 | A·value·of·\-1.0·means·to·play·the·stream·only·through·the·left·speaker; |
15 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is | 16 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is |
16 | centre·balanced. | 17 | centre·balanced. |
17 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and | 18 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_audio_stream_playing·\-·Allegro·5·API | 5 | al_set_audio_stream_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM·*stream,·bool·val) | 10 | bool·al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM·*stream,·bool·val) |
11 | bool·al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM·*stream,·bool·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Change·whether·the·stream·is·playing. | 14 | Change·whether·the·stream·is·playing. |
14 | .PP | 15 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_get_audio_stream_playing(3alleg5) | 18 | al_get_audio_stream_playing(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM·*stream, | 10 | bool·al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM·*stream, |
11 | ···ALLEGRO_PLAYMODE·val) | 11 | ···ALLEGRO_PLAYMODE·val) |
12 | bool·al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM·*stream, | ||
13 | ···ALLEGRO_PLAYMODE·val) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Set·the·playback·mode·of·the·stream. | 16 | Set·the·playback·mode·of·the·stream. |
15 | .PP | 17 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 18 | Returns·true·on·success,·false·on·failure. |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | ALLEGRO_PLAYMODE(3alleg5),·al_get_audio_stream_playmode(3alleg5). | 20 | ALLEGRO_PLAYMODE(3alleg5),·al_get_audio_stream_playmode(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_audio_stream_speed·\-·Allegro·5·API | 5 | al_set_audio_stream_speed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | 10 | bool·al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM·*stream,·float·val) |
11 | bool·al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·relative·playback·speed·of·the·stream. | 14 | Set·the·relative·playback·speed·of·the·stream. |
14 | 1.0·means·normal·speed. | 15 | 1.0·means·normal·speed. |
15 | .PP | 16 | .PP |
16 | Return·true·on·success,·false·on·failure. | 17 | Return·true·on·success,·false·on·failure. |
17 | Will·fail·if·the·audio·stream·is·attached·directly·to·a·voice. | 18 | Will·fail·if·the·audio·stream·is·attached·directly·to·a·voice. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_default_mixer·\-·Allegro·5·API | 5 | al_set_default_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_default_mixer(ALLEGRO_MIXER·*mixer) | 10 | bool·al_set_default_mixer(ALLEGRO_MIXER·*mixer) |
11 | bool·al_set_default_mixer(ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Sets·the·default·mixer. | 14 | Sets·the·default·mixer. |
14 | All·samples·started·with·al_play_sample(3alleg5)·will·be·stopped·and·all | 15 | All·samples·started·with·al_play_sample(3alleg5)·will·be·stopped·and·all |
15 | sample·instances·returned·by·al_lock_sample_id(3alleg5)·will·be | 16 | sample·instances·returned·by·al_lock_sample_id(3alleg5)·will·be |
16 | invalidated. | 17 | invalidated. |
17 | If·you·are·using·your·own·mixer,·this·should·be·called·before | 18 | If·you·are·using·your·own·mixer,·this·should·be·called·before |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_default_voice·\-·Allegro·5·API | 5 | al_set_default_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_set_default_voice(ALLEGRO_VOICE·*voice) | 10 | void·al_set_default_voice(ALLEGRO_VOICE·*voice) |
11 | void·al_set_default_voice(ALLEGRO_VOICE·*voice) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | You·can·call·this·before·calling·al_restore_default_mixer·to·provide·the | 14 | You·can·call·this·before·calling·al_restore_default_mixer·to·provide·the |
14 | voice·which·should·be·used. | 15 | voice·which·should·be·used. |
15 | Any·previous·voice·will·be·destroyed. | 16 | Any·previous·voice·will·be·destroyed. |
16 | You·can·also·pass·NULL·to·destroy·the·current·default·voice. | 17 | You·can·also·pass·NULL·to·destroy·the·current·default·voice. |
17 | .SH·SINCE | 18 | .SH·SINCE |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_display_menu·\-·Allegro·5·API | 5 | al_set_display_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_set_display_menu(ALLEGRO_DISPLAY·*display,·ALLEGRO_MENU·*menu) | 10 | bool·al_set_display_menu(ALLEGRO_DISPLAY·*display,·ALLEGRO_MENU·*menu) |
11 | bool·al_set_display_menu(ALLEGRO_DISPLAY·*display,·ALLEGRO_MENU·*menu) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Associates·the·\f[CR]menu\f[R]·with·the·\f[CR]display\f[R]·and·shows·it. | 14 | Associates·the·\f[CR]menu\f[R]·with·the·\f[CR]display\f[R]·and·shows·it. |
14 | If·there·was·a·previous·menu·associated·with·the·display,·it·will·be | 15 | If·there·was·a·previous·menu·associated·with·the·display,·it·will·be |
15 | destroyed. | 16 | destroyed. |
16 | If·you·don\[cq]t·want·that·to·happen,·you·should·first·remove·the·menu | 17 | If·you·don\[cq]t·want·that·to·happen,·you·should·first·remove·the·menu |
17 | with·al_remove_display_menu(3alleg5). | 18 | with·al_remove_display_menu(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_fallback_font·\-·Allegro·5·API | 5 | al_set_fallback_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_set_fallback_font(ALLEGRO_FONT·*font,·ALLEGRO_FONT·*fallback) | 10 | void·al_set_fallback_font(ALLEGRO_FONT·*font,·ALLEGRO_FONT·*fallback) |
11 | void·al_set_fallback_font(ALLEGRO_FONT·*font,·ALLEGRO_FONT·*fallback) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present. | 14 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present. |
14 | Can·be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the | 15 | Can·be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the |
15 | application! | 16 | application! |
16 | Pass·NULL·to·remove·a·fallback·font·again. | 17 | Pass·NULL·to·remove·a·fallback·font·again. |
17 | .SH·SINCE | 18 | .SH·SINCE |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_menu_item_caption·\-·Allegro·5·API | 5 | al_set_menu_item_caption·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_set_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos,·const·char·*caption) | 10 | void·al_set_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos,·const·char·*caption) |
11 | void·al_set_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos,·const·char·*caption) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Updates·the·menu·item·caption·with·the·new·\f[CR]caption\f[R]. | 14 | Updates·the·menu·item·caption·with·the·new·\f[CR]caption\f[R]. |
14 | This·will·invalidate·any·previous·calls·to | 15 | This·will·invalidate·any·previous·calls·to |
15 | al_get_menu_item_caption(3alleg5). | 16 | al_get_menu_item_caption(3alleg5). |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.1.0 | 18 | 5.1.0 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_menu_item_flags·\-·Allegro·5·API | 5 | al_set_menu_item_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_set_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) | 10 | void·al_set_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) |
11 | void·al_set_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Updates·the·menu·item\[cq]s·flags. | 14 | Updates·the·menu·item\[cq]s·flags. |
14 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 15 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
15 | flags. | 16 | flags. |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.1.0 | 18 | 5.1.0 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_menu_item_icon·\-·Allegro·5·API | 5 | al_set_menu_item_icon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_set_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos,·ALLEGRO_BITMAP·*icon) | 10 | void·al_set_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos,·ALLEGRO_BITMAP·*icon) |
11 | void·al_set_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos,·ALLEGRO_BITMAP·*icon) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Sets·the·icon·for·the·specified·menu·item. | 14 | Sets·the·icon·for·the·specified·menu·item. |
14 | The·menu·assumes·ownership·of·the·\f[CR]ALLEGRO_BITMAP\f[R]·and·may | 15 | The·menu·assumes·ownership·of·the·\f[CR]ALLEGRO_BITMAP\f[R]·and·may |
15 | invalidate·the·pointer,·so·you·must·clone·it·if·you·wish·to·continue | 16 | invalidate·the·pointer,·so·you·must·clone·it·if·you·wish·to·continue |
16 | using·it. | 17 | using·it. |
17 | .PP | 18 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_mixer_frequency·\-·Allegro·5·API | 5 | al_set_mixer_frequency·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_mixer_frequency(ALLEGRO_MIXER·*mixer,·unsigned·int·val) | 10 | bool·al_set_mixer_frequency(ALLEGRO_MIXER·*mixer,·unsigned·int·val) |
11 | bool·al_set_mixer_frequency(ALLEGRO_MIXER·*mixer,·unsigned·int·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·mixer·frequency·(in·Hz). | 14 | Set·the·mixer·frequency·(in·Hz). |
14 | This·will·only·work·if·the·mixer·is·not·attached·to·anything. | 15 | This·will·only·work·if·the·mixer·is·not·attached·to·anything. |
15 | .PP | 16 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 17 | Returns·true·on·success,·false·on·failure. |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_mixer_gain·\-·Allegro·5·API | 5 | al_set_mixer_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_mixer_gain(ALLEGRO_MIXER·*mixer,·float·new_gain) | 10 | bool·al_set_mixer_gain(ALLEGRO_MIXER·*mixer,·float·new_gain) |
11 | bool·al_set_mixer_gain(ALLEGRO_MIXER·*mixer,·float·new_gain) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·mixer·gain·(amplification·factor). | 14 | Set·the·mixer·gain·(amplification·factor). |
14 | .PP | 15 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.0.6,·5.1.0 | 18 | 5.0.6,·5.1.0 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_mixer_playing·\-·Allegro·5·API | 5 | al_set_mixer_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_mixer_playing(ALLEGRO_MIXER·*mixer,·bool·val) | 10 | bool·al_set_mixer_playing(ALLEGRO_MIXER·*mixer,·bool·val) |
11 | bool·al_set_mixer_playing(ALLEGRO_MIXER·*mixer,·bool·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Change·whether·the·mixer·is·playing. | 14 | Change·whether·the·mixer·is·playing. |
14 | .PP | 15 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_get_mixer_playing(3alleg5). | 18 | al_get_mixer_playing(3alleg5). |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_mixer_postprocess_callback(ALLEGRO_MIXER·*mixer, | 10 | bool·al_set_mixer_postprocess_callback(ALLEGRO_MIXER·*mixer, |
11 | ···void·(*pp_callback)(void·*buf,·unsigned·int·samples,·void·*data), | 11 | ···void·(*pp_callback)(void·*buf,·unsigned·int·samples,·void·*data), |
12 | ···void·*pp_callback_userdata) | 12 | ···void·*pp_callback_userdata) |
13 | bool·al_set_mixer_postprocess_callback(ALLEGRO_MIXER·*mixer, | ||
14 | ···void·(*pp_callback)(void·*buf,·unsigned·int·samples,·void·*data), | ||
15 | ···void·*pp_callback_userdata) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Sets·a·post\-processing·filter·function·that\[cq]s·called·after·the | 18 | Sets·a·post\-processing·filter·function·that\[cq]s·called·after·the |
16 | attached·streams·have·been·mixed. | 19 | attached·streams·have·been·mixed. |
17 | The·buffer\[cq]s·format·will·be·whatever·the·mixer·was·created·with. | 20 | The·buffer\[cq]s·format·will·be·whatever·the·mixer·was·created·with. |
18 | The·sample·count·and·user\-data·pointer·is·also·passed. | 21 | The·sample·count·and·user\-data·pointer·is·also·passed. |
19 | .RS | 22 | .RS |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_mixer_quality·\-·Allegro·5·API | 5 | al_set_mixer_quality·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_mixer_quality(ALLEGRO_MIXER·*mixer,·ALLEGRO_MIXER_QUALITY·new_quality) | 10 | bool·al_set_mixer_quality(ALLEGRO_MIXER·*mixer,·ALLEGRO_MIXER_QUALITY·new_quality) |
11 | bool·al_set_mixer_quality(ALLEGRO_MIXER·*mixer,·ALLEGRO_MIXER_QUALITY·new_quality) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·mixer·quality. | 14 | Set·the·mixer·quality. |
14 | This·can·only·succeed·if·the·mixer·does·not·have·anything·attached·to | 15 | This·can·only·succeed·if·the·mixer·does·not·have·anything·attached·to |
15 | it. | 16 | it. |
16 | .PP | 17 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 18 | Returns·true·on·success,·false·on·failure. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_physfs_file_interface·\-·Allegro·5·API | 5 | al_set_physfs_file_interface·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_physfs.h> | 9 | #include·<allegro5/allegro_physfs.h> |
10 | void·al_set_physfs_file_interface(void) | 10 | void·al_set_physfs_file_interface(void) |
11 | void·al_set_physfs_file_interface(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | This·function·sets·\f[I]both\f[R]·the·ALLEGRO_FILE_INTERFACE(3alleg5) | 14 | This·function·sets·\f[I]both\f[R]·the·ALLEGRO_FILE_INTERFACE(3alleg5) |
14 | and·ALLEGRO_FS_INTERFACE(3alleg5)·for·the·calling·thread. | 15 | and·ALLEGRO_FS_INTERFACE(3alleg5)·for·the·calling·thread. |
15 | .PP | 16 | .PP |
16 | Subsequent·calls·to·al_fopen(3alleg5)·on·the·calling·thread·will·be | 17 | Subsequent·calls·to·al_fopen(3alleg5)·on·the·calling·thread·will·be |
17 | handled·by·PHYSFS_open(). | 18 | handled·by·PHYSFS_open(). |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_sample·\-·Allegro·5·API | 5 | al_set_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample(ALLEGRO_SAMPLE_INSTANCE·*spl,·ALLEGRO_SAMPLE·*data) | 10 | bool·al_set_sample(ALLEGRO_SAMPLE_INSTANCE·*spl,·ALLEGRO_SAMPLE·*data) |
11 | bool·al_set_sample(ALLEGRO_SAMPLE_INSTANCE·*spl,·ALLEGRO_SAMPLE·*data) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Change·the·sample·data·that·a·sample·instance·plays. | 14 | Change·the·sample·data·that·a·sample·instance·plays. |
14 | This·can·be·quite·an·involved·process. | 15 | This·can·be·quite·an·involved·process. |
15 | .PP | 16 | .PP |
16 | First,·the·sample·is·stopped·if·it·is·not·already. | 17 | First,·the·sample·is·stopped·if·it·is·not·already. |
17 | .PP | 18 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_sample_instance_channel_matrix·\-·Allegro·5·API | 5 | al_set_sample_instance_channel_matrix·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE·*spl,·const·float·*matrix) | 10 | bool·al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE·*spl,·const·float·*matrix) |
11 | bool·al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE·*spl,·const·float·*matrix) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·matrix·used·to·mix·the·channels·coming·from·this·instance·into | 14 | Set·the·matrix·used·to·mix·the·channels·coming·from·this·instance·into |
14 | the·mixer·it·is·attached·to. | 15 | the·mixer·it·is·attached·to. |
15 | Normally·Allegro·derives·the·values·of·this·matrix·from·the·gain·and·pan | 16 | Normally·Allegro·derives·the·values·of·this·matrix·from·the·gain·and·pan |
16 | settings,·as·well·as·the·channel·configurations·of·this·instance·and·the | 17 | settings,·as·well·as·the·channel·configurations·of·this·instance·and·the |
17 | mixer·it·is·attached·to,·but·this·allows·you·override·that·default | 18 | mixer·it·is·attached·to,·but·this·allows·you·override·that·default |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_sample_instance_gain·\-·Allegro·5·API | 5 | al_set_sample_instance_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | 10 | bool·al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) |
11 | bool·al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·playback·gain·of·the·sample·instance. | 14 | Set·the·playback·gain·of·the·sample·instance. |
14 | .PP | 15 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
16 | Will·fail·if·the·sample·instance·is·attached·directly·to·a·voice. | 17 | Will·fail·if·the·sample·instance·is·attached·directly·to·a·voice. |
17 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE·*spl, | 10 | bool·al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE·*spl, |
11 | ···unsigned·int·val) | 11 | ···unsigned·int·val) |
12 | bool·al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
13 | ···unsigned·int·val) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Set·the·length·of·the·sample·instance·in·sample·values. | 16 | Set·the·length·of·the·sample·instance·in·sample·values. |
15 | This·can·be·used·to·play·only·parts·of·the·underlying·sample. | 17 | This·can·be·used·to·play·only·parts·of·the·underlying·sample. |
16 | Be·careful·not·to·exceed·the·actual·length·of·the·sample·data,·though. | 18 | Be·careful·not·to·exceed·the·actual·length·of·the·sample·data,·though. |
17 | .PP | 19 | .PP |
18 | Return·true·on·success,·false·on·failure. | 20 | Return·true·on·success,·false·on·failure. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_sample_instance_pan·\-·Allegro·5·API | 5 | al_set_sample_instance_pan·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | 10 | bool·al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) |
11 | bool·al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·pan·value·on·a·sample·instance. | 14 | Set·the·pan·value·on·a·sample·instance. |
14 | A·value·of·\-1.0·means·to·play·the·sample·only·through·the·left·speaker; | 15 | A·value·of·\-1.0·means·to·play·the·sample·only·through·the·left·speaker; |
15 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is | 16 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is |
16 | centre·balanced. | 17 | centre·balanced. |
17 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and | 18 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_sample_instance_playing·\-·Allegro·5·API | 5 | al_set_sample_instance_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE·*spl,·bool·val) | 10 | bool·al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE·*spl,·bool·val) |
11 | bool·al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE·*spl,·bool·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Change·whether·the·sample·instance·is·playing. | 14 | Change·whether·the·sample·instance·is·playing. |
14 | .PP | 15 | .PP |
15 | The·instance·does·not·need·to·be·attached·to·anything·(since:·5.1.8). | 16 | The·instance·does·not·need·to·be·attached·to·anything·(since:·5.1.8). |
16 | .PP | 17 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 18 | Returns·true·on·success,·false·on·failure. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE·*spl, | 10 | bool·al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE·*spl, |
11 | ···ALLEGRO_PLAYMODE·val) | 11 | ···ALLEGRO_PLAYMODE·val) |
12 | bool·al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
13 | ···ALLEGRO_PLAYMODE·val) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Set·the·playback·mode·of·the·sample·instance. | 16 | Set·the·playback·mode·of·the·sample·instance. |
15 | .PP | 17 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 18 | Returns·true·on·success,·false·on·failure. |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | ALLEGRO_PLAYMODE(3alleg5),·al_get_sample_instance_playmode(3alleg5) | 20 | ALLEGRO_PLAYMODE(3alleg5),·al_get_sample_instance_playmode(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE·*spl, | 10 | bool·al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE·*spl, |
11 | ···unsigned·int·val) | 11 | ···unsigned·int·val) |
12 | bool·al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
13 | ···unsigned·int·val) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Set·the·playback·position·of·a·sample·instance. | 16 | Set·the·playback·position·of·a·sample·instance. |
15 | .PP | 17 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 18 | Returns·true·on·success,·false·on·failure. |
17 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
18 | al_get_sample_instance_position(3alleg5) | 20 | al_get_sample_instance_position(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_sample_instance_speed·\-·Allegro·5·API | 5 | al_set_sample_instance_speed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | 10 | bool·al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) |
11 | bool·al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·relative·playback·speed·of·the·sample·instance. | 14 | Set·the·relative·playback·speed·of·the·sample·instance. |
14 | 1.0·means·normal·speed. | 15 | 1.0·means·normal·speed. |
15 | .PP | 16 | .PP |
16 | Return·true·on·success,·false·on·failure. | 17 | Return·true·on·success,·false·on·failure. |
17 | Will·fail·if·the·sample·instance·is·attached·directly·to·a·voice. | 18 | Will·fail·if·the·sample·instance·is·attached·directly·to·a·voice. |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_set_video_playing·\-·Allegro·5·API | 5 | al_set_video_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) | 10 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) |
11 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Paused·or·resumes·playback. | 14 | Paused·or·resumes·playback. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.12 | 16 | 5.1.12 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_voice_playing·\-·Allegro·5·API | 5 | al_set_voice_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_voice_playing(ALLEGRO_VOICE·*voice,·bool·val) | 10 | bool·al_set_voice_playing(ALLEGRO_VOICE·*voice,·bool·val) |
11 | bool·al_set_voice_playing(ALLEGRO_VOICE·*voice,·bool·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Change·whether·a·voice·is·playing·or·not. | 14 | Change·whether·a·voice·is·playing·or·not. |
14 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to | 15 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to |
15 | it,·e.g.\·a·sample·instance. | 16 | it,·e.g.\·a·sample·instance. |
16 | On·success·the·voice\[cq]s·current·sample·position·is·reset. | 17 | On·success·the·voice\[cq]s·current·sample·position·is·reset. |
17 | .PP | 18 | .PP |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_set_voice_position·\-·Allegro·5·API | 5 | al_set_voice_position·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_voice_position(ALLEGRO_VOICE·*voice,·unsigned·int·val) | 10 | bool·al_set_voice_position(ALLEGRO_VOICE·*voice,·unsigned·int·val) |
11 | bool·al_set_voice_position(ALLEGRO_VOICE·*voice,·unsigned·int·val) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Set·the·voice·position. | 14 | Set·the·voice·position. |
14 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to | 15 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to |
15 | it,·e.g.\·a·sample·instance. | 16 | it,·e.g.\·a·sample·instance. |
16 | .PP | 17 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 18 | Returns·true·on·success,·false·on·failure. |
Offset 6, 14 lines modified | Offset 6, 16 lines modified | ||
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | 10 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, |
11 | ···ALLEGRO_FILECHOOSER·*dialog) | 11 | ···ALLEGRO_FILECHOOSER·*dialog) |
12 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | ||
13 | ···ALLEGRO_FILECHOOSER·*dialog) | ||
12 | .EE | 14 | .EE |
13 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
14 | Show·the·dialog·window. | 16 | Show·the·dialog·window. |
15 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the | 17 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the |
16 | parent·if·possible. | 18 | parent·if·possible. |
17 | .PP | 19 | .PP |
18 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may | 20 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | 10 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, |
11 | ···char·const·*title,·char·const·*heading,·char·const·*text, | 11 | ···char·const·*title,·char·const·*heading,·char·const·*text, |
12 | ···char·const·*buttons,·int·flags) | 12 | ···char·const·*buttons,·int·flags) |
13 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | ||
14 | ···char·const·*title,·char·const·*heading,·char·const·*text, | ||
15 | ···char·const·*buttons,·int·flags) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Show·a·native·GUI·message·box. | 18 | Show·a·native·GUI·message·box. |
16 | This·can·be·used·for·example·to·display·an·error·message·if·creation·of | 19 | This·can·be·used·for·example·to·display·an·error·message·if·creation·of |
17 | an·initial·display·fails. | 20 | an·initial·display·fails. |
18 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the | 21 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the |
19 | parent·if·possible. | 22 | parent·if·possible. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_shutdown_font_addon·\-·Allegro·5·API | 5 | al_shutdown_font_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_shutdown_font_addon(void) | 10 | void·al_shutdown_font_addon(void) |
11 | void·al_shutdown_font_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Shut·down·the·font·addon. | 14 | Shut·down·the·font·addon. |
14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 15 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
15 | the·user·wishes·as·well. | 16 | the·user·wishes·as·well. |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_init_font_addon(3alleg5) | 18 | al_init_font_addon(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_shutdown_image_addon·\-·Allegro·5·API | 5 | al_shutdown_image_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_image.h> | 9 | #include·<allegro5/allegro_image.h> |
10 | void·al_shutdown_image_addon(void) | 10 | void·al_shutdown_image_addon(void) |
11 | void·al_shutdown_image_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Shut·down·the·image·addon. | 14 | Shut·down·the·image·addon. |
14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 15 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
15 | the·user·wishes·as·well. | 16 | the·user·wishes·as·well. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_shutdown_native_dialog_addon·\-·Allegro·5·API | 5 | al_shutdown_native_dialog_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_shutdown_native_dialog_addon(void) | 10 | void·al_shutdown_native_dialog_addon(void) |
11 | void·al_shutdown_native_dialog_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Shut·down·the·native·dialog·addon. | 14 | Shut·down·the·native·dialog·addon. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.0.9,·5.1.5 | 16 | 5.0.9,·5.1.5 |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_init_native_dialog_addon(3alleg5) | 18 | al_init_native_dialog_addon(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_shutdown_primitives_addon·\-·Allegro·5·API | 5 | al_shutdown_primitives_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_shutdown_primitives_addon(void) | 10 | void·al_shutdown_primitives_addon(void) |
11 | void·al_shutdown_primitives_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Shut·down·the·primitives·addon. | 14 | Shut·down·the·primitives·addon. |
14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 15 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
15 | the·user·wishes·as·well. | 16 | the·user·wishes·as·well. |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | al_init_primitives_addon(3alleg5) | 18 | al_init_primitives_addon(3alleg5) |
Offset 5, 11 lines modified | Offset 5, 12 lines modified | ||
5 | al_shutdown_ttf_addon·\-·Allegro·5·API | 5 | al_shutdown_ttf_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | void·al_shutdown_ttf_addon(void) | 10 | void·al_shutdown_ttf_addon(void) |
11 | void·al_shutdown_ttf_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Unloads·the·ttf·addon·again. | 14 | Unloads·the·ttf·addon·again. |
14 | You·normally·don\[cq]t·need·to·call·this. | 15 | You·normally·don\[cq]t·need·to·call·this. |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_shutdown_video_addon·\-·Allegro·5·API | 5 | al_shutdown_video_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | void·al_shutdown_video_addon(void) | 10 | void·al_shutdown_video_addon(void) |
11 | void·al_shutdown_video_addon(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Shut·down·the·video·addon. | 14 | Shut·down·the·video·addon. |
14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 15 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
15 | the·user·wishes·as·well. | 16 | the·user·wishes·as·well. |
16 | .SH·SINCE | 17 | .SH·SINCE |
17 | 5.1.12 | 18 | 5.1.12 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_start_audio_recorder·\-·Allegro·5·API | 5 | al_start_audio_recorder·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_start_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | 10 | bool·al_start_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) |
11 | bool·al_start_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Begin·recording·into·the·fragment·buffer. | 14 | Begin·recording·into·the·fragment·buffer. |
14 | Once·a·complete·fragment·has·been·captured·(as·specified·in | 15 | Once·a·complete·fragment·has·been·captured·(as·specified·in |
15 | al_create_audio_recorder(3alleg5)),·an | 16 | al_create_audio_recorder(3alleg5)),·an |
16 | ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT(3alleg5)·event·will·be·triggered. | 17 | ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT(3alleg5)·event·will·be·triggered. |
17 | .PP | 18 | .PP |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_start_video·\-·Allegro·5·API | 5 | al_start_video·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | 10 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) |
11 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Starts·playing·the·video·from·the·beginning. | 14 | Starts·playing·the·video·from·the·beginning. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.0 | 16 | 5.1.0 |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_start_video_with_voice·\-·Allegro·5·API | 5 | al_start_video_with_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | 10 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) |
11 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Like·al_start_video(3alleg5)·but·audio·is·routed·to·the·provided·voice. | 14 | Like·al_start_video(3alleg5)·but·audio·is·routed·to·the·provided·voice. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.0 | 16 | 5.1.0 |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_stop_audio_recorder·\-·Allegro·5·API | 5 | al_stop_audio_recorder·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | 10 | void·al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) |
11 | void·al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Stop·capturing·audio·data. | 14 | Stop·capturing·audio·data. |
14 | Note·that·the·audio·recorder·is·still·active·and·consuming·resources,·so | 15 | Note·that·the·audio·recorder·is·still·active·and·consuming·resources,·so |
15 | if·you·are·finished·recording·you·should·destroy·it·with | 16 | if·you·are·finished·recording·you·should·destroy·it·with |
16 | al_destroy_audio_recorder(3alleg5). | 17 | al_destroy_audio_recorder(3alleg5). |
17 | .PP | 18 | .PP |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_stop_sample·\-·Allegro·5·API | 5 | al_stop_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) | 10 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) |
11 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Stop·the·sample·started·by·al_play_sample(3alleg5). | 14 | Stop·the·sample·started·by·al_play_sample(3alleg5). |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_stop_samples(3alleg5) | 16 | al_stop_samples(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_stop_sample_instance·\-·Allegro·5·API | 5 | al_stop_sample_instance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | 10 | bool·al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | bool·al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Stop·an·sample·instance·playing. | 14 | Stop·an·sample·instance·playing. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_play_sample_instance(3alleg5) | 16 | al_play_sample_instance(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_stop_samples·\-·Allegro·5·API | 5 | al_stop_samples·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_stop_samples(void) | 10 | void·al_stop_samples(void) |
11 | void·al_stop_samples(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Stop·all·samples·started·by·al_play_sample(3alleg5). | 14 | Stop·all·samples·started·by·al_play_sample(3alleg5). |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_stop_sample(3alleg5) | 16 | al_stop_sample(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_toggle_menu_item_flags·\-·Allegro·5·API | 5 | al_toggle_menu_item_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_toggle_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) | 10 | int·al_toggle_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) |
11 | int·al_toggle_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Toggles·the·specified·menu·item\[cq]s·flags. | 14 | Toggles·the·specified·menu·item\[cq]s·flags. |
14 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 15 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
15 | flags. | 16 | flags. |
16 | .PP | 17 | .PP |
17 | Returns·a·bitfield·of·only·the·specified·flags·that·are·set·after·the | 18 | Returns·a·bitfield·of·only·the·specified·flags·that·are·set·after·the |
Offset 7, 14 lines modified | Offset 7, 17 lines modified | ||
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | bool·al_triangulate_polygon( | 10 | bool·al_triangulate_polygon( |
11 | ···const·float*·vertices,·size_t·vertex_stride,·const·int*·vertex_counts, | 11 | ···const·float*·vertices,·size_t·vertex_stride,·const·int*·vertex_counts, |
12 | ···void·(*emit_triangle)(int,·int,·int,·void*),·void*·userdata) | 12 | ···void·(*emit_triangle)(int,·int,·int,·void*),·void*·userdata) |
13 | bool·al_triangulate_polygon( | ||
14 | ···const·float*·vertices,·size_t·vertex_stride,·const·int*·vertex_counts, | ||
15 | ···void·(*emit_triangle)(int,·int,·int,·void*),·void*·userdata) | ||
13 | .EE | 16 | .EE |
14 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
15 | Divides·a·simple·polygon·into·triangles,·with·zero·or·more·other·simple | 18 | Divides·a·simple·polygon·into·triangles,·with·zero·or·more·other·simple |
16 | polygons·subtracted·from·it·\-·the·holes. | 19 | polygons·subtracted·from·it·\-·the·holes. |
17 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·main | 20 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·main |
18 | polygon. | 21 | polygon. |
19 | Simple·means·the·polygon·does·not·have·to·be·convex·but·must·not·be | 22 | Simple·means·the·polygon·does·not·have·to·be·convex·but·must·not·be |
Offset 5, 12 lines modified | Offset 5, 13 lines modified | ||
5 | al_uninstall_audio·\-·Allegro·5·API | 5 | al_uninstall_audio·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_uninstall_audio(void) | 10 | void·al_uninstall_audio(void) |
11 | void·al_uninstall_audio(void) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Uninstalls·the·audio·subsystem. | 14 | Uninstalls·the·audio·subsystem. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_install_audio(3alleg5) | 16 | al_install_audio(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_unlock_index_buffer·\-·Allegro·5·API | 5 | al_unlock_index_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_unlock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) | 10 | void·al_unlock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) |
11 | void·al_unlock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Unlocks·a·previously·locked·index·buffer. | 14 | Unlocks·a·previously·locked·index·buffer. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.8 | 16 | 5.1.8 |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | ALLEGRO_INDEX_BUFFER(3alleg5),·al_lock_index_buffer(3alleg5) | 18 | ALLEGRO_INDEX_BUFFER(3alleg5),·al_lock_index_buffer(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_unlock_sample_id·\-·Allegro·5·API | 5 | al_unlock_sample_id·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | 10 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) |
11 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Unlocks·a·ALLEGRO_SAMPLE_ID(3alleg5),·allowing·future·calls·to | 14 | Unlocks·a·ALLEGRO_SAMPLE_ID(3alleg5),·allowing·future·calls·to |
14 | al_play_sample(3alleg5)·to·reuse·it·if·possible. | 15 | al_play_sample(3alleg5)·to·reuse·it·if·possible. |
15 | Note·that·after·the·id·is·unlocked,·the·ALLEGRO_SAMPLE_INSTANCE(3alleg5) | 16 | Note·that·after·the·id·is·unlocked,·the·ALLEGRO_SAMPLE_INSTANCE(3alleg5) |
16 | that·was·previously·returned·by·al_lock_sample_id(3alleg5)·will·possibly | 17 | that·was·previously·returned·by·al_lock_sample_id(3alleg5)·will·possibly |
17 | be·playing·a·different·sound,·so·you·should·only·use·it·after·locking | 18 | be·playing·a·different·sound,·so·you·should·only·use·it·after·locking |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_unlock_vertex_buffer·\-·Allegro·5·API | 5 | al_unlock_vertex_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_unlock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) | 10 | void·al_unlock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) |
11 | void·al_unlock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Unlocks·a·previously·locked·vertex·buffer. | 14 | Unlocks·a·previously·locked·vertex·buffer. |
14 | .SH·SINCE | 15 | .SH·SINCE |
15 | 5.1.3 | 16 | 5.1.3 |
16 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
17 | ALLEGRO_VERTEX_BUFFER(3alleg5),·al_lock_vertex_buffer(3alleg5) | 18 | ALLEGRO_VERTEX_BUFFER(3alleg5),·al_lock_vertex_buffer(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 15 lines modified | ||
5 | al_voice_has_attachments·\-·Allegro·5·API | 5 | al_voice_has_attachments·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_voice_has_attachments(const·ALLEGRO_VOICE*·voice) | 10 | bool·al_voice_has_attachments(const·ALLEGRO_VOICE*·voice) |
11 | bool·al_voice_has_attachments(const·ALLEGRO_VOICE*·voice) | ||
11 | .EE | 12 | .EE |
12 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
13 | Returns·true·if·the·voice·has·something·attached·to·it. | 14 | Returns·true·if·the·voice·has·something·attached·to·it. |
14 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
15 | al_attach_mixer_to_voice(3alleg5), | 16 | al_attach_mixer_to_voice(3alleg5), |
16 | al_attach_sample_instance_to_voice(3alleg5), | 17 | al_attach_sample_instance_to_voice(3alleg5), |
17 | al_attach_audio_stream_to_voice(3alleg5) | 18 | al_attach_audio_stream_to_voice(3alleg5) |