Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | · | 1 | ·3b329fcd6459cea9110697e67acd6572·1507840·doc·optional·allegro5-doc_5.2.9.1+dfsg-1.1_all.deb |
2 | ·cf3b55d71b69f21a35562bff0bcd96cf·18504·libdevel·optional·liballegro-acodec5-dev_5.2.9.1+dfsg-1.1_i386.deb | 2 | ·cf3b55d71b69f21a35562bff0bcd96cf·18504·libdevel·optional·liballegro-acodec5-dev_5.2.9.1+dfsg-1.1_i386.deb |
3 | ·940ef70afe3dcff64fdcf740487d0e9d·52752·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.9.1+dfsg-1.1_i386.deb | 3 | ·940ef70afe3dcff64fdcf740487d0e9d·52752·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.9.1+dfsg-1.1_i386.deb |
4 | ·f10fe52147c33a55c81d129e9295a10a·39044·libs·optional·liballegro-acodec5.2t64_5.2.9.1+dfsg-1.1_i386.deb | 4 | ·f10fe52147c33a55c81d129e9295a10a·39044·libs·optional·liballegro-acodec5.2t64_5.2.9.1+dfsg-1.1_i386.deb |
5 | ·79df1f118548c8b9fc906d1e7d71d023·21308·libdevel·optional·liballegro-audio5-dev_5.2.9.1+dfsg-1.1_i386.deb | 5 | ·79df1f118548c8b9fc906d1e7d71d023·21308·libdevel·optional·liballegro-audio5-dev_5.2.9.1+dfsg-1.1_i386.deb |
6 | ·6c8c4060d647be9b41e1ee10618d5532·91476·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.9.1+dfsg-1.1_i386.deb | 6 | ·6c8c4060d647be9b41e1ee10618d5532·91476·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.9.1+dfsg-1.1_i386.deb |
7 | ·8ed91aca28afc869a966aa46e10ba572·63340·libs·optional·liballegro-audio5.2t64_5.2.9.1+dfsg-1.1_i386.deb | 7 | ·8ed91aca28afc869a966aa46e10ba572·63340·libs·optional·liballegro-audio5.2t64_5.2.9.1+dfsg-1.1_i386.deb |
8 | ·b97952ac834db5ee7c81bcbb6ede257b·19540·libdevel·optional·liballegro-dialog5-dev_5.2.9.1+dfsg-1.1_i386.deb | 8 | ·b97952ac834db5ee7c81bcbb6ede257b·19540·libdevel·optional·liballegro-dialog5-dev_5.2.9.1+dfsg-1.1_i386.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-02-28·00:52:15.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-02-28·00:52:15.000000·debian-binary |
2 | -rw-r--r--···0········0········0····315 | 2 | -rw-r--r--···0········0········0····31592·2024-02-28·00:52:15.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··14 | 3 | -rw-r--r--···0········0········0··1476056·2024-02-28·00:52:15.000000·data.tar.xz |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | Package:·allegro5-doc | 1 | Package:·allegro5-doc |
2 | Source:·allegro5 | 2 | Source:·allegro5 |
3 | Version:·2:5.2.9.1+dfsg-1.1 | 3 | Version:·2:5.2.9.1+dfsg-1.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:·5495 |
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, 65 lines modified | Offset 198, 65 lines modified | ||
198 | -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c | 198 | -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c |
199 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c | 199 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c |
200 | -rw-r--r--···0·root·········(0)·root·········(0)·····6446·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c | 200 | -rw-r--r--···0·root·········(0)·root·········(0)·····6446·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c |
201 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c | 201 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c |
202 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp | 202 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp |
203 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp | 203 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp |
204 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/ | 204 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/ |
205 | -rw-r--r--···0·root·········(0)·root·········(0)····11 | 205 | -rw-r--r--···0·root·········(0)·root·········(0)····11373·2024-02-28·00:52:15.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)···205090·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/audio.html |
207 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js | 207 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js |
208 | -rw-r--r--···0·root·········(0)·root·········(0)····6 | 208 | -rw-r--r--···0·root·········(0)·root·········(0)····62152·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/color.html |
209 | -rw-r--r--···0·root·········(0)·root·········(0)····37 | 209 | -rw-r--r--···0·root·········(0)·root·········(0)····37113·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/config.html |
210 | -rw-r--r--···0·root·········(0)·root·········(0)····17 | 210 | -rw-r--r--···0·root·········(0)·root·········(0)····17553·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html |
211 | -rw-r--r--···0·root·········(0)·root·········(0)····8 | 211 | -rw-r--r--···0·root·········(0)·root·········(0)····84147·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/display.html |
212 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 212 | -rw-r--r--···0·root·········(0)·root·········(0)····79032·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/events.html |
213 | -rw-r--r--···0·root·········(0)·root·········(0)····6 | 213 | -rw-r--r--···0·root·········(0)·root·········(0)····61297·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/file.html |
214 | -rw-r--r--···0·root·········(0)·root·········(0)····56628·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/fixed.html | 214 | -rw-r--r--···0·root·········(0)·root·········(0)····56628·2024-02-28·00:52:15.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)····87392·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/font.html |
216 | -rw-r--r--···0·root·········(0)·root·········(0)····42 | 216 | -rw-r--r--···0·root·········(0)·root·········(0)····42106·2024-02-28·00:52:15.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)····13189·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html |
218 | -rw-r--r--···0·root·········(0)·root·········(0)····17054·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html | 218 | -rw-r--r--···0·root·········(0)·root·········(0)····17054·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html |
219 | -rw-r--r--···0·root·········(0)·root·········(0)···2 | 219 | -rw-r--r--···0·root·········(0)·root·········(0)···214573·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/graphics.html |
220 | -rw-r--r--···0·root·········(0)·root·········(0)····69 | 220 | -rw-r--r--···0·root·········(0)·root·········(0)····69000·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/haptic.html |
221 | -rw-r--r--···0·root·········(0)·root·········(0)····12 | 221 | -rw-r--r--···0·root·········(0)·root·········(0)····12010·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/image.html |
222 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/ | 222 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/ |
223 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png | 223 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png |
224 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png | 224 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png |
225 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png | 225 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png |
226 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png | 226 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png |
227 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png | 227 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png |
228 | -rw-r--r--···0·root·········(0)·root·········(0)·····6772·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/index.html | 228 | -rw-r--r--···0·root·········(0)·root·········(0)·····6772·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/index.html |
229 | -rw-r--r--···0·root·········(0)·root·········(0)···110368·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/index_all.html | 229 | -rw-r--r--···0·root·········(0)·root·········(0)···110368·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/index_all.html |
230 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 230 | -rw-r--r--···0·root·········(0)·root·········(0)····34573·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/joystick.html |
231 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 231 | -rw-r--r--···0·root·········(0)·root·········(0)····23760·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html |
232 | -rw-r--r--···0·root·········(0)·root·········(0)·····8989·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/main.html | 232 | -rw-r--r--···0·root·········(0)·root·········(0)·····8989·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/main.html |
233 | -rw-r--r--···0·root·········(0)·root·········(0)····10 | 233 | -rw-r--r--···0·root·········(0)·root·········(0)····10358·2024-02-28·00:52:15.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)····23312·2024-02-28·00:52:15.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)····10003·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/misc.html |
236 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 236 | -rw-r--r--···0·root·········(0)·root·········(0)····16201·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/monitor.html |
237 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 237 | -rw-r--r--···0·root·········(0)·root·········(0)····37975·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/mouse.html |
238 | -rw-r--r--···0·root·········(0)·root·········(0)····7 | 238 | -rw-r--r--···0·root·········(0)·root·········(0)····72724·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html |
239 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 239 | -rw-r--r--···0·root·········(0)·root·········(0)····26526·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/opengl.html |
240 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css | 240 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css |
241 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 241 | -rw-r--r--···0·root·········(0)·root·········(0)····33044·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/path.html |
242 | -rw-r--r--···0·root·········(0)·root·········(0)····11 | 242 | -rw-r--r--···0·root·········(0)·root·········(0)····11692·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/physfs.html |
243 | -rw-r--r--···0·root·········(0)·root·········(0)····26 | 243 | -rw-r--r--···0·root·········(0)·root·········(0)····26316·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/platform.html |
244 | -rw-r--r--···0·root·········(0)·root·········(0)···1 | 244 | -rw-r--r--···0·root·········(0)·root·········(0)···136415·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/primitives.html |
245 | -rw-r--r--···0·root·········(0)·root·········(0)····72016·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/search_index.js | 245 | -rw-r--r--···0·root·········(0)·root·········(0)····72016·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/search_index.js |
246 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 246 | -rw-r--r--···0·root·········(0)·root·········(0)····40633·2024-02-28·00:52:15.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)····14369·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/state.html |
248 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 248 | -rw-r--r--···0·root·········(0)·root·········(0)····69058·2024-02-28·00:52:15.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)····31324·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/threads.html |
250 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 250 | -rw-r--r--···0·root·········(0)·root·········(0)····11589·2024-02-28·00:52:15.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)····23581·2024-02-28·00:52:15.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)····20594·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/touch.html |
253 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 253 | -rw-r--r--···0·root·········(0)·root·········(0)····77040·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/transformations.html |
254 | -rw-r--r--···0·root·········(0)·root·········(0)··· | 254 | -rw-r--r--···0·root·········(0)·root·········(0)····90297·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/utf8.html |
255 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 255 | -rw-r--r--···0·root·········(0)·root·········(0)····29974·2024-02-28·00:52:15.000000·./usr/share/doc/allegro5-doc/refman/video.html |
256 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·00:52:15.000000·./usr/share/doc-base/ | 256 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·00:52:15.000000·./usr/share/doc-base/ |
257 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2024-01-20·14:33:19.000000·./usr/share/doc-base/allegro5-doc.allegro5 | 257 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2024-01-20·14:33:19.000000·./usr/share/doc-base/allegro5-doc.allegro5 |
258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·00:52:15.000000·./usr/share/man/ | 258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·00:52:15.000000·./usr/share/man/ |
259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·00:52:15.000000·./usr/share/man/man3/ | 259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·00:52:15.000000·./usr/share/man/man3/ |
260 | -rw-r--r--···0·root·········(0)·root·········(0)······533·2024-02-28·00:52:15.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz | 260 | -rw-r--r--···0·root·········(0)·root·········(0)······533·2024-02-28·00:52:15.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz |
261 | -rw-r--r--···0·root·········(0)·root·········(0)······381·2024-02-28·00:52:15.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz | 261 | -rw-r--r--···0·root·········(0)·root·········(0)······381·2024-02-28·00:52:15.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz |
262 | -rw-r--r--···0·root·········(0)·root·········(0)······683·2024-02-28·00:52:15.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz | 262 | -rw-r--r--···0·root·········(0)·root·········(0)······683·2024-02-28·00:52:15.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz |
Offset 209, 23 lines modified | Offset 209, 14 lines modified | ||
209 | href="audio.html#al_load_sample_f">al_load_sample_f</a>·and·must·be | 209 | href="audio.html#al_load_sample_f">al_load_sample_f</a>·and·must·be |
210 | streamed·with·<a | 210 | streamed·with·<a |
211 | href="audio.html#al_load_audio_stream">al_load_audio_stream</a>·or·<a | 211 | href="audio.html#al_load_audio_stream">al_load_audio_stream</a>·or·<a |
212 | href="audio.html#al_load_audio_stream_f">al_load_audio_stream_f</a>.</p></li> | 212 | href="audio.html#al_load_audio_stream_f">al_load_audio_stream_f</a>.</p></li> |
213 | <li><p>.voc·file·streaming·is·unimplemented.</p></li> | 213 | <li><p>.voc·file·streaming·is·unimplemented.</p></li> |
214 | </ul> | 214 | </ul> |
215 | <p>Return·true·on·success.</p> | 215 | <p>Return·true·on·success.</p> |
216 | <p>Examples:</p> | ||
217 | <ul> | ||
218 | <li><a | ||
219 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L51">ex_stream_file.c</a></li> | ||
220 | <li><a | ||
221 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L39">ex_acodec_multi.c</a></li> | ||
222 | <li><a | ||
223 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L30">ex_kcm_direct.c</a></li> | ||
224 | </ul> | ||
225 | <h1 | 216 | <h1 |
226 | id="al_is_acodec_addon_initialized">al_is_acodec_addon_initialized</h1> | 217 | id="al_is_acodec_addon_initialized">al_is_acodec_addon_initialized</h1> |
227 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_acodec_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 218 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_acodec_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
228 | <p><a | 219 | <p><a |
229 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L83">Source | 220 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L83">Source |
230 | Code</a></p> | 221 | Code</a></p> |
231 | <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns | 222 | <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns |
Offset 64, 22 lines modified | Offset 64, 18 lines modified | ||
64 | ····*·Module·files·(.it,·.mod,·.s3m,·.xm)·are·often·composed·with·streaming·in | 64 | ····*·Module·files·(.it,·.mod,·.s3m,·.xm)·are·often·composed·with·streaming·in |
65 | ······mind,·and·sometimes·cannot·be·easily·rendered·into·a·finite·length | 65 | ······mind,·and·sometimes·cannot·be·easily·rendered·into·a·finite·length |
66 | ······sample.·Therefore·they·cannot·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e/ | 66 | ······sample.·Therefore·they·cannot·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e/ |
67 | ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8f·and·must·be·streamed·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m·or | 67 | ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8f·and·must·be·streamed·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m·or |
68 | ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f. | 68 | ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f. |
69 | ····*·.voc·file·streaming·is·unimplemented. | 69 | ····*·.voc·file·streaming·is·unimplemented. |
70 | Return·true·on·success. | 70 | Return·true·on·success. |
71 | Examples: | ||
72 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
73 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | ||
74 | ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c | ||
75 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
76 | bool·al_is_acodec_addon_initialized(void) | 72 | bool·al_is_acodec_addon_initialized(void) |
77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
78 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. | 74 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. |
79 | Since:·5.2.6 | 75 | Since:·5.2.6 |
80 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 76 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
81 | uint32_t·al_get_allegro_acodec_version(void) | 77 | uint32_t·al_get_allegro_acodec_version(void) |
82 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 78 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
83 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 79 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
84 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 80 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
85 | Allegro·version·5.2.9·-·Last·updated:·202 | 81 | Allegro·version·5.2.9·-·Last·updated:·2025-04-22·06:34:55·UTC |
Offset 564, 19 lines modified | Offset 564, 14 lines modified | ||
564 | Code</a></p> | 564 | Code</a></p> |
565 | <p>An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·<a | 565 | <p>An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·<a |
566 | href="audio.html#al_play_sample">al_play_sample</a>.·It·can·be·used·to | 566 | href="audio.html#al_play_sample">al_play_sample</a>.·It·can·be·used·to |
567 | later·stop·the·sample·with·<a | 567 | later·stop·the·sample·with·<a |
568 | href="audio.html#al_stop_sample">al_stop_sample</a>.·The·underlying | 568 | href="audio.html#al_stop_sample">al_stop_sample</a>.·The·underlying |
569 | ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·<a | 569 | ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·<a |
570 | href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p> | 570 | href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p> |
571 | <p>Examples:</p> | ||
572 | <ul> | ||
573 | <li><a | ||
574 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_simple.c#L33">ex_audio_simple.c</a></li> | ||
575 | </ul> | ||
576 | <h2·id="al_install_audio">al_install_audio</h2> | 571 | <h2·id="al_install_audio">al_install_audio</h2> |
577 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 572 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
578 | <p><a | 573 | <p><a |
579 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L422">Source | 574 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L422">Source |
580 | Code</a></p> | 575 | Code</a></p> |
581 | <p>Install·the·audio·subsystem.</p> | 576 | <p>Install·the·audio·subsystem.</p> |
582 | <p>Returns·true·on·success,·false·on·failure.</p> | 577 | <p>Returns·true·on·success,·false·on·failure.</p> |
Offset 232, 38 lines modified | Offset 232, 28 lines modified | ||
232 | the·basic·API·only·supports·one·such·audio·stream·playing·at·once. | 232 | the·basic·API·only·supports·one·such·audio·stream·playing·at·once. |
233 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SA\x8AM\x8MP\x8PL\x8LE\x8E_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8* | 233 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SA\x8AM\x8MP\x8PL\x8LE\x8E_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8* |
234 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; | 234 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; |
235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 235 | _\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 | 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 | can·be·used·to·later·stop·the·sample·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·The·underlying | 237 | can·be·used·to·later·stop·the·sample·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·The·underlying |
238 | ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d. | 238 | ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d. |
239 | Examples: | ||
240 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | ||
241 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8* | 239 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8* |
242 | bool·al_install_audio(void) | 240 | bool·al_install_audio(void) |
243 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 241 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
244 | Install·the·audio·subsystem. | 242 | Install·the·audio·subsystem. |
245 | Returns·true·on·success,·false·on·failure. | 243 | Returns·true·on·success,·false·on·failure. |
246 | ·····Note:·most·users·will·call·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s·and | 244 | ·····Note:·most·users·will·call·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s·and |
247 | ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n·after·this. | 245 | ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n·after·this. |
248 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d, | 246 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d, |
249 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 247 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
250 | Examples: | ||
251 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8d_\x8e_\x8v_\x8i_\x8c_\x8e_\x8s_\x8._\x8c | ||
252 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | ||
253 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
254 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8* | 248 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8* |
255 | void·al_uninstall_audio(void) | 249 | void·al_uninstall_audio(void) |
256 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 250 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
257 | Uninstalls·the·audio·subsystem. | 251 | Uninstalls·the·audio·subsystem. |
258 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o | 252 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o |
259 | Examples: | ||
260 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | ||
261 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
262 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | ||
263 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* | 253 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* |
264 | bool·al_is_audio_installed(void) | 254 | bool·al_is_audio_installed(void) |
265 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 255 | _\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 | 256 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o·was·called·previously·and·returned |
267 | successfully. | 257 | successfully. |
268 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8er\x8rv\x8ve\x8e_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8* | 258 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8er\x8rv\x8ve\x8e_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8* |
269 | bool·al_reserve_samples(int·reserve_samples) | 259 | bool·al_reserve_samples(int·reserve_samples) |
Offset 272, 33 lines modified | Offset 272, 23 lines modified | ||
272 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source | 272 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source |
273 | Code</a></p> | 273 | Code</a></p> |
274 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> | 274 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> |
275 | structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> | 275 | structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> |
276 | <p>See·also:·<a | 276 | <p>See·also:·<a |
277 | href="color.html#al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</a>,·<a | 277 | href="color.html#al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</a>,·<a |
278 | href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> | 278 | href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> |
279 | <p>Examples:</p> | ||
280 | <ul> | ||
281 | <li><a | ||
282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> | ||
283 | </ul> | ||
284 | <h1·id="al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</h1> | 279 | <h1·id="al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</h1> |
285 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_cmyk_to_rgb<span·class="op">(</span><span·class="dt">float</span>·cyan<span·class="op">,</span>·<span·class="dt">float</span>·magenta<span·class="op">,</span>·<span·class="dt">float</span>·yellow<span·class="op">,</span></span> | 280 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_cmyk_to_rgb<span·class="op">(</span><span·class="dt">float</span>·cyan<span·class="op">,</span>·<span·class="dt">float</span>·magenta<span·class="op">,</span>·<span·class="dt">float</span>·yellow<span·class="op">,</span></span> |
286 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>····<span·class="dt">float</span>·key<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div> | 281 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>····<span·class="dt">float</span>·key<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div> |
287 | <p><a | 282 | <p><a |
288 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source | 283 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source |
289 | Code</a></p> | 284 | Code</a></p> |
290 | <p>Convert·CMYK·values·to·RGB·values.</p> | 285 | <p>Convert·CMYK·values·to·RGB·values.</p> |
291 | <p>See·also:·<a·href="color.html#al_color_cmyk">al_color_cmyk</a>,·<a | 286 | <p>See·also:·<a·href="color.html#al_color_cmyk">al_color_cmyk</a>,·<a |
292 | href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> | 287 | href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> |
293 | <p>Examples:</p> | ||
294 | <ul> | ||
295 | <li><a | ||
296 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> | ||
297 | </ul> | ||
298 | <h1·id="al_color_hsl">al_color_hsl</h1> | 288 | <h1·id="al_color_hsl">al_color_hsl</h1> |
299 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsl<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·l<span·class="op">)</span></span></code></pre></div> | 289 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsl<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·l<span·class="op">)</span></span></code></pre></div> |
300 | <p><a | 290 | <p><a |
301 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source | 291 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source |
302 | Code</a></p> | 292 | Code</a></p> |
303 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> | 293 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> |
304 | structure·from·HSL·(hue,·saturation,·lightness)·values.</p> | 294 | structure·from·HSL·(hue,·saturation,·lightness)·values.</p> |
Offset 103, 77 lines modified | Offset 103, 60 lines modified | ||
103 | output·of·the·monitor·will·be·less·than·half). | 103 | output·of·the·monitor·will·be·less·than·half). |
104 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* | 104 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* |
105 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) | 105 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) |
106 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 106 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
107 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·CMYK·values·(cyan,·magenta,·yellow, | 107 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·CMYK·values·(cyan,·magenta,·yellow, |
108 | black). | 108 | black). |
109 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k | 109 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k |
110 | Examples: | ||
111 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
112 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* | 110 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
113 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, | 111 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, |
114 | ····float·key,·float·*red,·float·*green,·float·*blue) | 112 | ····float·key,·float·*red,·float·*green,·float·*blue) |
115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
116 | Convert·CMYK·values·to·RGB·values. | 114 | Convert·CMYK·values·to·RGB·values. |
117 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k | 115 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k |
118 | Examples: | ||
119 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
120 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 116 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
121 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | 117 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) |
122 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
123 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSL·(hue,·saturation,·lightness)·values. | 119 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSL·(hue,·saturation,·lightness)·values. |
124 | Parameters: | 120 | Parameters: |
125 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 121 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
126 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 122 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
127 | ····*·lightness·-·Color·lightness·in·the·range·0..1 | 123 | ····*·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 | 124 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v |
129 | Examples: | ||
130 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
131 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8._\x8c | ||
132 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c | ||
133 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* | 125 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
134 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, | 126 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, |
135 | ···float·*red,·float·*green,·float·*blue) | 127 | ···float·*red,·float·*green,·float·*blue) |
136 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 128 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
137 | Convert·values·in·HSL·color·model·to·RGB·color·model. | 129 | Convert·values·in·HSL·color·model·to·RGB·color·model. |
138 | Parameters: | 130 | Parameters: |
139 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 131 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
140 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 132 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
141 | ····*·lightness·-·Color·lightness·in·the·range·0..1 | 133 | ····*·lightness·-·Color·lightness·in·the·range·0..1 |
142 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 | 134 | ····*·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 | 135 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b |
144 | Examples: | ||
145 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
146 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c | ||
147 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v·*\x8**\x8**\x8**\x8**\x8**\x8* | 136 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v·*\x8**\x8**\x8**\x8**\x8**\x8* |
148 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | 137 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) |
149 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 138 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
150 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSV·(hue,·saturation,·value)·values. | 139 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSV·(hue,·saturation,·value)·values. |
151 | Parameters: | 140 | Parameters: |
152 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 141 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
153 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 142 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
154 | ····*·value·-·Color·value·in·the·range·0..1 | 143 | ····*·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 | 144 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l |
156 | Examples: | ||
157 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | ||
158 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
159 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | ||
160 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* | 145 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
161 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, | 146 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, |
162 | ···float·*red,·float·*green,·float·*blue) | 147 | ···float·*red,·float·*green,·float·*blue) |
163 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 148 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
164 | Convert·values·in·HSV·color·model·to·RGB·color·model. | 149 | Convert·values·in·HSV·color·model·to·RGB·color·model. |
165 | Parameters: | 150 | Parameters: |
166 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 151 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
167 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 152 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
168 | ····*·value·-·Color·value·in·the·range·0..1 | 153 | ····*·value·-·Color·value·in·the·range·0..1 |
169 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 | 154 | ····*·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 | 155 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b |
171 | Examples: | ||
172 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
173 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8ht\x8tm\x8ml\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 156 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8ht\x8tm\x8ml\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
174 | ALLEGRO_COLOR·al_color_html(char·const·*string) | 157 | ALLEGRO_COLOR·al_color_html(char·const·*string) |
175 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 158 | _\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 | 159 | Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·accepted |
177 | format·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b. | 160 | format·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b. |
178 | Returns·the·interpreted·color,·or·al_map_rgba(0,·0,·0,·0)·if·the·string·could | 161 | Returns·the·interpreted·color,·or·al_map_rgba(0,·0,·0,·0)·if·the·string·could |
179 | not·be·parsed. | 162 | not·be·parsed. |
Offset 258, 55 lines modified | Offset 258, 36 lines modified | ||
258 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>al_destroy_config<span·class="op">(</span>cfg<span·class="op">);</span></span></code></pre></div> | 258 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>al_destroy_config<span·class="op">(</span>cfg<span·class="op">);</span></span></code></pre></div> |
259 | <h1·id="allegro_config">ALLEGRO_CONFIG</h1> | 259 | <h1·id="allegro_config">ALLEGRO_CONFIG</h1> |
260 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG<span·class="op">;</span></span></code></pre></div> | 260 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG<span·class="op">;</span></span></code></pre></div> |
261 | <p><a | 261 | <p><a |
262 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source | 262 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source |
263 | Code</a></p> | 263 | Code</a></p> |
264 | <p>An·abstract·configuration·structure.</p> | 264 | <p>An·abstract·configuration·structure.</p> |
265 | <p>Examples:</p> | ||
266 | <ul> | ||
267 | <li><a | ||
268 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L26">ex_config.c</a></li> | ||
269 | <li><a | ||
270 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L14">ex_vsync.c</a></li> | ||
271 | <li><a | ||
272 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L239">ex_stream_seek.c</a></li> | ||
273 | </ul> | ||
274 | <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</h1> | 265 | <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</h1> |
275 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION<span·class="op">;</span></span></code></pre></div> | 266 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION<span·class="op">;</span></span></code></pre></div> |
276 | <p><a | 267 | <p><a |
277 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source | 268 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source |
278 | Code</a></p> | 269 | Code</a></p> |
279 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a | 270 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a |
280 | configuration·structure.</p> | 271 | configuration·structure.</p> |
281 | <p>See·also:·<a | 272 | <p>See·also:·<a |
282 | href="config.html#al_get_first_config_section">al_get_first_config_section</a>, | 273 | href="config.html#al_get_first_config_section">al_get_first_config_section</a>, |
283 | <a | 274 | <a |
284 | href="config.html#al_get_next_config_section">al_get_next_config_section</a></p> | 275 | href="config.html#al_get_next_config_section">al_get_next_config_section</a></p> |
285 | <p>Examples:</p> | ||
286 | <ul> | ||
287 | <li><a | ||
288 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L28">ex_config.c</a></li> | ||
289 | </ul> | ||
290 | <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1> | 276 | <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1> |
291 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY<span·class="op">;</span></span></code></pre></div> | 277 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY<span·class="op">;</span></span></code></pre></div> |
292 | <p><a | 278 | <p><a |
293 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source | 279 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source |
294 | Code</a></p> | 280 | Code</a></p> |
295 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a | 281 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a |
296 | configuration·section.</p> | 282 | configuration·section.</p> |
297 | <p>See·also:·<a | 283 | <p>See·also:·<a |
298 | href="config.html#al_get_first_config_entry">al_get_first_config_entry</a>, | 284 | href="config.html#al_get_first_config_entry">al_get_first_config_entry</a>, |
299 | <a | 285 | <a |
300 | href="config.html#al_get_next_config_entry">al_get_next_config_entry</a></p> | 286 | href="config.html#al_get_next_config_entry">al_get_next_config_entry</a></p> |
301 | <p>Examples:</p> | ||
302 | <ul> | ||
303 | <li><a | ||
304 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L29">ex_config.c</a></li> | ||
305 | </ul> | ||
306 | <h1·id="al_create_config">al_create_config</h1> | 287 | <h1·id="al_create_config">al_create_config</h1> |
307 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_create_config<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 288 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_create_config<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
308 | <p><a | 289 | <p><a |
309 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L37">Source | 290 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L37">Source |
310 | Code</a></p> | 291 | Code</a></p> |
311 | <p>Create·an·empty·configuration·structure.</p> | 292 | <p>Create·an·empty·configuration·structure.</p> |
312 | <p>See·also:·<a | 293 | <p>See·also:·<a |
Offset 103, 34 lines modified | Offset 103, 26 lines modified | ||
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 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
109 | An·abstract·configuration·structure. | 109 | An·abstract·configuration·structure. |
110 | Examples: | ||
111 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | ||
112 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | ||
113 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | ||
114 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_S\x8SE\x8EC\x8CT\x8TI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8**\x8* | 110 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_S\x8SE\x8EC\x8CT\x8TI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8**\x8* |
115 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | 111 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; |
116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 112 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
117 | An·opaque·structure·used·for·iterating·across·sections·in·a·configuration | 113 | An·opaque·structure·used·for·iterating·across·sections·in·a·configuration |
118 | structure. | 114 | structure. |
119 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n | 115 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n |
120 | Examples: | ||
121 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | ||
122 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8* | 116 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8* |
123 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | 117 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; |
124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
125 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration | 119 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration |
126 | section. | 120 | section. |
127 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y | 121 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y |
128 | Examples: | ||
129 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | ||
130 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 122 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
131 | ALLEGRO_CONFIG·*al_create_config(void) | 123 | ALLEGRO_CONFIG·*al_create_config(void) |
132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
133 | Create·an·empty·configuration·structure. | 125 | Create·an·empty·configuration·structure. |
134 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g | 126 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g |
135 | Examples: | 127 | Examples: |
136 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | 128 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c |
Offset 201, 19 lines modified | Offset 201, 14 lines modified | ||
201 | <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>LPDIRECT3DDEVICE9·al_get_d3d_device<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 201 | <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>LPDIRECT3DDEVICE9·al_get_d3d_device<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
202 | <p><a | 202 | <p><a |
203 | href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L2570">Source | 203 | href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L2570">Source |
204 | Code</a></p> | 204 | Code</a></p> |
205 | <p>Returns·the·Direct3D·device·of·the·display.·The·return·value·is | 205 | <p>Returns·the·Direct3D·device·of·the·display.·The·return·value·is |
206 | undefined·if·the·display·was·not·created·with·the·Direct3D·flag.</p> | 206 | undefined·if·the·display·was·not·created·with·the·Direct3D·flag.</p> |
207 | <p><em>Returns:</em>·A·pointer·to·the·Direct3D·device.</p> | 207 | <p><em>Returns:</em>·A·pointer·to·the·Direct3D·device.</p> |
208 | <p>Examples:</p> | ||
209 | <ul> | ||
210 | <li><a | ||
211 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L44">ex_d3d.cpp</a></li> | ||
212 | </ul> | ||
213 | <h1·id="al_get_d3d_system_texture">al_get_d3d_system_texture</h1> | 208 | <h1·id="al_get_d3d_system_texture">al_get_d3d_system_texture</h1> |
214 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>LPDIRECT3DTEXTURE9·al_get_d3d_system_texture<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> | 209 | <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>LPDIRECT3DTEXTURE9·al_get_d3d_system_texture<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> |
215 | <p><a | 210 | <p><a |
216 | href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L2578">Source | 211 | href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L2578">Source |
217 | Code</a></p> | 212 | Code</a></p> |
218 | <p>Returns·the·system·texture·(stored·with·the·D3DPOOL_SYSTEMMEM·flags). | 213 | <p>Returns·the·system·texture·(stored·with·the·D3DPOOL_SYSTEMMEM·flags). |
219 | This·texture·is·used·for·the·render-to-texture·feature·set.</p> | 214 | This·texture·is·used·for·the·render-to-texture·feature·set.</p> |
Offset 57, 16 lines modified | Offset 57, 14 lines modified | ||
57 | ·#include·<allegro5/allegro_direct3d.h> | 57 | ·#include·<allegro5/allegro_direct3d.h> |
58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_d\x8de\x8ev\x8vi\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_d\x8de\x8ev\x8vi\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
59 | LPDIRECT3DDEVICE9·al_get_d3d_device(ALLEGRO_DISPLAY·*display) | 59 | LPDIRECT3DDEVICE9·al_get_d3d_device(ALLEGRO_DISPLAY·*display) |
60 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 60 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
61 | Returns·the·Direct3D·device·of·the·display.·The·return·value·is·undefined·if | 61 | Returns·the·Direct3D·device·of·the·display.·The·return·value·is·undefined·if |
62 | the·display·was·not·created·with·the·Direct3D·flag. | 62 | the·display·was·not·created·with·the·Direct3D·flag. |
63 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·Direct3D·device. | 63 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·Direct3D·device. |
64 | Examples: | ||
65 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
66 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_t\x8te\x8ex\x8xt\x8tu\x8ur\x8re\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 64 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_t\x8te\x8ex\x8xt\x8tu\x8ur\x8re\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
67 | LPDIRECT3DTEXTURE9·al_get_d3d_system_texture(ALLEGRO_BITMAP·*bitmap) | 65 | LPDIRECT3DTEXTURE9·al_get_d3d_system_texture(ALLEGRO_BITMAP·*bitmap) |
68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 66 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
69 | Returns·the·system·texture·(stored·with·the·D3DPOOL_SYSTEMMEM·flags).·This | 67 | Returns·the·system·texture·(stored·with·the·D3DPOOL_SYSTEMMEM·flags).·This |
70 | texture·is·used·for·the·render-to-texture·feature·set. | 68 | texture·is·used·for·the·render-to-texture·feature·set. |
71 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·Direct3D·system·texture. | 69 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·Direct3D·system·texture. |
72 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_t\x8te\x8ex\x8xt\x8tu\x8ur\x8re\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 70 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_t\x8te\x8ex\x8xt\x8tu\x8ur\x8re\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 339, 23 lines modified | Offset 339, 14 lines modified | ||
339 | <h1·id="display-creation">Display·creation</h1> | 339 | <h1·id="display-creation">Display·creation</h1> |
340 | <h2·id="allegro_display">ALLEGRO_DISPLAY</h2> | 340 | <h2·id="allegro_display">ALLEGRO_DISPLAY</h2> |
341 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY<span·class="op">;</span></span></code></pre></div> | 341 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY<span·class="op">;</span></span></code></pre></div> |
342 | <p><a | 342 | <p><a |
343 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source | 343 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source |
344 | Code</a></p> | 344 | Code</a></p> |
345 | <p>An·opaque·type·representing·an·open·display·or·window.</p> | 345 | <p>An·opaque·type·representing·an·open·display·or·window.</p> |
346 | <p>Examples:</p> | ||
347 | <ul> | ||
348 | <li><a | ||
349 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L33">ex_monitorinfo.c</a></li> | ||
350 | <li><a | ||
351 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L24">ex_d3d.cpp</a></li> | ||
352 | <li><a | ||
353 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L12">ex_keyboard_focus.c</a></li> | ||
354 | </ul> | ||
355 | <h2·id="al_create_display">al_create_display</h2> | 346 | <h2·id="al_create_display">al_create_display</h2> |
356 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY·<span·class="op">*</span>al_create_display<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div> | 347 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY·<span·class="op">*</span>al_create_display<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div> |
357 | <p><a | 348 | <p><a |
358 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source | 349 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source |
359 | Code</a></p> | 350 | Code</a></p> |
360 | <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The | 351 | <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The |
361 | parameters·of·the·display·are·determined·by·the·last·calls·to | 352 | parameters·of·the·display·are·determined·by·the·last·calls·to |
Offset 125, 18 lines modified | Offset 125, 14 lines modified | ||
125 | In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that | 125 | In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that |
126 | displays·will·also·inform·you·about·important·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·via·their·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8s. | 126 | displays·will·also·inform·you·about·important·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·via·their·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8s. |
127 | *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 127 | *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
128 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y·*\x8**\x8**\x8**\x8**\x8* | 128 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y·*\x8**\x8**\x8**\x8**\x8* |
129 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | 129 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; |
130 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 130 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
131 | An·opaque·type·representing·an·open·display·or·window. | 131 | An·opaque·type·representing·an·open·display·or·window. |
132 | Examples: | ||
133 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
134 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
135 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
136 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8* | 132 | *\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* |
137 | ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h) | 133 | ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h) |
138 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 134 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
139 | Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of | 135 | Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of |
140 | the·display·are·determined·by·the·last·calls·to·al_set_new_display_*.·Default | 136 | the·display·are·determined·by·the·last·calls·to·al_set_new_display_*.·Default |
141 | parameters·are·used·if·none·are·set·explicitly.·Creating·a·new·display·will | 137 | parameters·are·used·if·none·are·set·explicitly.·Creating·a·new·display·will |
142 | automatically·make·it·the·active·one,·with·the·backbuffer·selected·for·drawing. | 138 | automatically·make·it·the·active·one,·with·the·backbuffer·selected·for·drawing. |
Offset 344, 23 lines modified | Offset 344, 14 lines modified | ||
344 | type-specific·fields.·The·<code>any.source</code>·field·tells·you·which | 344 | type-specific·fields.·The·<code>any.source</code>·field·tells·you·which |
345 | event·source·generated·that·particular·event.·The | 345 | event·source·generated·that·particular·event.·The |
346 | <code>any.timestamp</code>·field·tells·you·when·the·event·was·generated. | 346 | <code>any.timestamp</code>·field·tells·you·when·the·event·was·generated. |
347 | The·time·is·referenced·to·the·same·starting·point·as·<a | 347 | The·time·is·referenced·to·the·same·starting·point·as·<a |
348 | href="time.html#al_get_time">al_get_time</a>.</p> | 348 | href="time.html#al_get_time">al_get_time</a>.</p> |
349 | <p>Each·event·is·of·one·of·the·following·types,·with·the·usable·fields | 349 | <p>Each·event·is·of·one·of·the·following·types,·with·the·usable·fields |
350 | given.</p> | 350 | given.</p> |
351 | <p>Examples:</p> | ||
352 | <ul> | ||
353 | <li><a | ||
354 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> | ||
355 | <li><a | ||
356 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> | ||
357 | <li><a | ||
358 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L24">ex_timer_pause.c</a></li> | ||
359 | </ul> | ||
360 | <h2·id="allegro_event_joystick_axis">ALLEGRO_EVENT_JOYSTICK_AXIS</h2> | 351 | <h2·id="allegro_event_joystick_axis">ALLEGRO_EVENT_JOYSTICK_AXIS</h2> |
361 | <p>A·joystick·axis·value·changed.</p> | 352 | <p>A·joystick·axis·value·changed.</p> |
362 | <dl> | 353 | <dl> |
363 | <dt>joystick.id·(ALLEGRO_JOYSTICK·*)</dt> | 354 | <dt>joystick.id·(ALLEGRO_JOYSTICK·*)</dt> |
364 | <dd> | 355 | <dd> |
365 | The·joystick·which·generated·the·event.·This·is·not·the·same·as·the | 356 | The·joystick·which·generated·the·event.·This·is·not·the·same·as·the |
366 | event·source·<code>joystick.source</code>. | 357 | event·source·<code>joystick.source</code>. |
Offset 133, 18 lines modified | Offset 133, 14 lines modified | ||
133 | ··any.timestamp·(double) | 133 | ··any.timestamp·(double) |
134 | ······When·the·event·was·generated. | 134 | ······When·the·event·was·generated. |
135 | By·examining·the·type·field·you·can·then·access·type-specific·fields.·The | 135 | By·examining·the·type·field·you·can·then·access·type-specific·fields.·The |
136 | any.source·field·tells·you·which·event·source·generated·that·particular·event. | 136 | any.source·field·tells·you·which·event·source·generated·that·particular·event. |
137 | The·any.timestamp·field·tells·you·when·the·event·was·generated.·The·time·is | 137 | The·any.timestamp·field·tells·you·when·the·event·was·generated.·The·time·is |
138 | referenced·to·the·same·starting·point·as·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e. | 138 | referenced·to·the·same·starting·point·as·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e. |
139 | Each·event·is·of·one·of·the·following·types,·with·the·usable·fields·given. | 139 | Each·event·is·of·one·of·the·following·types,·with·the·usable·fields·given. |
140 | Examples: | ||
141 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
142 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
143 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
144 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_A\x8AX\x8XI\x8IS\x8S·*\x8**\x8**\x8**\x8**\x8* | 140 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_A\x8AX\x8XI\x8IS\x8S·*\x8**\x8**\x8**\x8**\x8* |
145 | A·joystick·axis·value·changed. | 141 | A·joystick·axis·value·changed. |
146 | ··joystick.id·(ALLEGRO_JOYSTICK·*) | 142 | ··joystick.id·(ALLEGRO_JOYSTICK·*) |
147 | ······The·joystick·which·generated·the·event.·This·is·not·the·same·as·the·event | 143 | ······The·joystick·which·generated·the·event.·This·is·not·the·same·as·the·event |
148 | ······source·joystick.source. | 144 | ······source·joystick.source. |
149 | ··joystick.stick·(int) | 145 | ··joystick.stick·(int) |
150 | ······The·stick·number,·counting·from·zero.·Axes·on·a·joystick·are·grouped·into | 146 | ······The·stick·number,·counting·from·zero.·Axes·on·a·joystick·are·grouped·into |
Offset 242, 23 lines modified | Offset 242, 14 lines modified | ||
242 | <h1·id="allegro_file">ALLEGRO_FILE</h1> | 242 | <h1·id="allegro_file">ALLEGRO_FILE</h1> |
243 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE<span·class="op">;</span></span></code></pre></div> | 243 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE<span·class="op">;</span></span></code></pre></div> |
244 | <p><a | 244 | <p><a |
245 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L15">Source | 245 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L15">Source |
246 | Code</a></p> | 246 | Code</a></p> |
247 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file | 247 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file |
248 | on·disk·or·a·virtual·file.</p> | 248 | on·disk·or·a·virtual·file.</p> |
249 | <p>Examples:</p> | ||
250 | <ul> | ||
251 | <li><a | ||
252 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L23">ex_file.c</a></li> | ||
253 | <li><a | ||
254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L18">ex_dir.c</a></li> | ||
255 | <li><a | ||
256 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L19">ex_memfile.c</a></li> | ||
257 | </ul> | ||
258 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> | 249 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> |
259 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div> | 250 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div> |
260 | <p><a | 251 | <p><a |
261 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source | 252 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source |
262 | Code</a></p> | 253 | Code</a></p> |
263 | <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”, | 254 | <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”, |
264 | real·or·virtual.·See·the·full·discussion·in·<a | 255 | real·or·virtual.·See·the·full·discussion·in·<a |
Offset 88, 18 lines modified | Offset 88, 14 lines modified | ||
88 | These·functions·are·declared·in·the·main·Allegro·header·file: | 88 | These·functions·are·declared·in·the·main·Allegro·header·file: |
89 | ·#include·<allegro5/allegro.h> | 89 | ·#include·<allegro5/allegro.h> |
90 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 90 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
91 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | 91 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; |
92 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 92 | _\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 | 93 | An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk |
94 | or·a·virtual·file. | 94 | or·a·virtual·file. |
95 | Examples: | ||
96 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
97 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c | ||
98 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
99 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 95 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
100 | typedef·struct·ALLEGRO_FILE_INTERFACE | 96 | typedef·struct·ALLEGRO_FILE_INTERFACE |
101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 97 | _\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 | 98 | A·structure·containing·function·pointers·to·handle·a·type·of·“file”,·real·or |
103 | virtual.·See·the·full·discussion·in·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e. | 99 | virtual.·See·the·full·discussion·in·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e. |
104 | The·fields·are: | 100 | The·fields·are: |
105 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); | 101 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); |
Offset 667, 12 lines modified | Offset 667, 12 lines modified | ||
667 | href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source | 667 | href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source |
668 | Code</a></p> | 668 | Code</a></p> |
669 | <p>Fixed·point·hypotenuse·(returns·the·square·root·of | 669 | <p>Fixed·point·hypotenuse·(returns·the·square·root·of |
670 | <code>x*x·+·y*y</code>).·This·should·be·better·than·calculating·the | 670 | <code>x*x·+·y*y</code>).·This·should·be·better·than·calculating·the |
671 | formula·yourself·manually,·since·the·error·is·much·smaller.</p> | 671 | formula·yourself·manually,·since·the·error·is·much·smaller.</p> |
672 | <p·class="timestamp"> | 672 | <p·class="timestamp"> |
673 | Allegro·version·5.2.9 | 673 | Allegro·version·5.2.9 |
674 | ·-·Last·updated:·202 | 674 | ·-·Last·updated:·2025-04-22·06:34:51·UTC |
675 | </p> | 675 | </p> |
676 | </div> | 676 | </div> |
677 | </body> | 677 | </body> |
678 | </html> | 678 | </html> |
Offset 435, 8 lines modified | Offset 435, 8 lines modified | ||
435 | errno·is·set·to·EDOM·and·the·function·returns·zero. | 435 | errno·is·set·to·EDOM·and·the·function·returns·zero. |
436 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fi\x8ix\x8xh\x8hy\x8yp\x8po\x8ot\x8t·*\x8**\x8**\x8**\x8**\x8* | 436 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fi\x8ix\x8xh\x8hy\x8yp\x8po\x8ot\x8t·*\x8**\x8**\x8**\x8**\x8* |
437 | al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y) | 437 | al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y) |
438 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 438 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
439 | Fixed·point·hypotenuse·(returns·the·square·root·of·x*x·+·y*y).·This·should·be | 439 | Fixed·point·hypotenuse·(returns·the·square·root·of·x*x·+·y*y).·This·should·be |
440 | better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much | 440 | better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much |
441 | smaller. | 441 | smaller. |
442 | Allegro·version·5.2.9·-·Last·updated:·202 | 442 | Allegro·version·5.2.9·-·Last·updated:·2025-04-22·06:34:51·UTC |
Offset 294, 23 lines modified | Offset 294, 14 lines modified | ||
294 | <p>A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it | 294 | <p>A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it |
295 | with·<a·href="font.html#al_load_font">al_load_font</a>·which·supports | 295 | with·<a·href="font.html#al_load_font">al_load_font</a>·which·supports |
296 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. | 296 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. |
297 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded | 297 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded |
298 | with·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>·and·a | 298 | with·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>·and·a |
299 | font·in·Allegro’s·bitmap·font·format·will·be·created·from·it·with·<a | 299 | font·in·Allegro’s·bitmap·font·format·will·be·created·from·it·with·<a |
300 | href="font.html#al_grab_font_from_bitmap">al_grab_font_from_bitmap</a>.</p> | 300 | href="font.html#al_grab_font_from_bitmap">al_grab_font_from_bitmap</a>.</p> |
301 | <p>Examples:</p> | ||
302 | <ul> | ||
303 | <li><a | ||
304 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L10">ex_disable_screensaver.c</a></li> | ||
305 | <li><a | ||
306 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L17">ex_font_justify.cpp</a></li> | ||
307 | <li><a | ||
308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L26">ex_display_events.c</a></li> | ||
309 | </ul> | ||
310 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> | 301 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> |
311 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH<span·class="op">;</span></span></code></pre></div> | 302 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH<span·class="op">;</span></span></code></pre></div> |
312 | <p><a | 303 | <p><a |
313 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source | 304 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source |
314 | Code</a></p> | 305 | Code</a></p> |
315 | <p>A·structure·containing·the·properties·of·a·character·in·a·font.</p> | 306 | <p>A·structure·containing·the·properties·of·a·character·in·a·font.</p> |
316 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·<span·class="op">{</span></span> | 307 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·<span·class="op">{</span></span> |
Offset 103, 18 lines modified | Offset 103, 14 lines modified | ||
103 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | 103 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; |
104 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 104 | _\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 | 105 | 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 | 106 | _\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 | 107 | 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 | 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·created·from·it·with·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p. | 109 | will·be·created·from·it·with·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p. |
110 | Examples: | ||
111 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | ||
112 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | ||
113 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
114 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_G\x8GL\x8LY\x8YP\x8PH\x8H·*\x8**\x8**\x8**\x8**\x8* | 110 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_G\x8GL\x8LY\x8YP\x8PH\x8H·*\x8**\x8**\x8**\x8**\x8* |
115 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | 111 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; |
116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 112 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
117 | A·structure·containing·the·properties·of·a·character·in·a·font. | 113 | A·structure·containing·the·properties·of·a·character·in·a·font. |
118 | typedef·struct·ALLEGRO_GLYPH·{ | 114 | typedef·struct·ALLEGRO_GLYPH·{ |
119 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on | 115 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on |
120 | ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap | 116 | ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap |
Offset 250, 21 lines modified | Offset 250, 14 lines modified | ||
250 | <p><a | 250 | <p><a |
251 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source | 251 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source |
252 | Code</a></p> | 252 | Code</a></p> |
253 | <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory | 253 | <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory |
254 | (check·with·<a | 254 | (check·with·<a |
255 | href="fshook.html#al_get_fs_entry_mode">al_get_fs_entry_mode</a>).·There | 255 | href="fshook.html#al_get_fs_entry_mode">al_get_fs_entry_mode</a>).·There |
256 | are·no·user·accessible·member·variables.</p> | 256 | are·no·user·accessible·member·variables.</p> |
257 | <p>Examples:</p> | ||
258 | <ul> | ||
259 | <li><a | ||
260 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L6">ex_dir.c</a></li> | ||
261 | <li><a | ||
262 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L37">ex_physfs.c</a></li> | ||
263 | </ul> | ||
264 | <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1> | 257 | <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1> |
265 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</span></code></pre></div> | 258 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</span></code></pre></div> |
266 | <p><a | 259 | <p><a |
267 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source | 260 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source |
268 | Code</a></p> | 261 | Code</a></p> |
269 | <p>Filesystem·modes/types</p> | 262 | <p>Filesystem·modes/types</p> |
270 | <ul> | 263 | <ul> |
Offset 79, 17 lines modified | Offset 79, 14 lines modified | ||
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 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
84 | Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory·(check·with | 84 | Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory·(check·with |
85 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8__\x8m_\x8o_\x8d_\x8e).·There·are·no·user·accessible·member·variables. | 85 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8__\x8m_\x8o_\x8d_\x8e).·There·are·no·user·accessible·member·variables. |
86 | Examples: | ||
87 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c | ||
88 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c | ||
89 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 86 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
90 | typedef·enum·ALLEGRO_FILE_MODE | 87 | typedef·enum·ALLEGRO_FILE_MODE |
91 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
92 | Filesystem·modes/types | 89 | Filesystem·modes/types |
93 | ····*·ALLEGRO_FILEMODE_READ·-·Readable | 90 | ····*·ALLEGRO_FILEMODE_READ·-·Readable |
94 | ····*·ALLEGRO_FILEMODE_WRITE·-·Writable | 91 | ····*·ALLEGRO_FILEMODE_WRITE·-·Writable |
95 | ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable | 92 | ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable |
Offset 197, 21 lines modified | Offset 197, 14 lines modified | ||
197 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·refresh_rate<span·class="op">;</span>···<span·class="co">//·The·refresh·rate·of·the·mode</span></span> | 197 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·refresh_rate<span·class="op">;</span>···<span·class="co">//·The·refresh·rate·of·the·mode</span></span> |
198 | <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_DISPLAY_MODE<span·class="op">;</span></span></code></pre></div> | 198 | <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_DISPLAY_MODE<span·class="op">;</span></span></code></pre></div> |
199 | <p>The·<code>refresh_rate</code>·may·be·zero·if·unknown.</p> | 199 | <p>The·<code>refresh_rate</code>·may·be·zero·if·unknown.</p> |
200 | <p>For·an·explanation·of·what·<code>format</code>·means,·see·<a | 200 | <p>For·an·explanation·of·what·<code>format</code>·means,·see·<a |
201 | href="graphics.html#allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</a>.</p> | 201 | href="graphics.html#allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</a>.</p> |
202 | <p>See·also:·<a | 202 | <p>See·also:·<a |
203 | href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a></p> | 203 | href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a></p> |
204 | <p>Examples:</p> | ||
205 | <ul> | ||
206 | <li><a | ||
207 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L33">ex_monitorinfo.c</a></li> | ||
208 | <li><a | ||
209 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_options.c#L100">ex_display_options.c</a></li> | ||
210 | </ul> | ||
211 | <h1·id="al_get_display_mode">al_get_display_mode</h1> | 204 | <h1·id="al_get_display_mode">al_get_display_mode</h1> |
212 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>al_get_display_mode<span·class="op">(</span><span·class="dt">int</span>·index<span·class="op">,</span>·ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div> | 205 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>al_get_display_mode<span·class="op">(</span><span·class="dt">int</span>·index<span·class="op">,</span>·ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div> |
213 | <p><a | 206 | <p><a |
214 | href="https://github.com/liballeg/allegro5/blob/master/src/fullscreen_mode.c#L32">Source | 207 | href="https://github.com/liballeg/allegro5/blob/master/src/fullscreen_mode.c#L32">Source |
215 | Code</a></p> | 208 | Code</a></p> |
216 | <p>Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed | 209 | <p>Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed |
217 | between·a·call·of·<a | 210 | between·a·call·of·<a |
Offset 58, 17 lines modified | Offset 58, 14 lines modified | ||
58 | ···int·height;·········//·Screen·height | 58 | ···int·height;·········//·Screen·height |
59 | ···int·format;·········//·The·pixel·format·of·the·mode | 59 | ···int·format;·········//·The·pixel·format·of·the·mode |
60 | ···int·refresh_rate;···//·The·refresh·rate·of·the·mode | 60 | ···int·refresh_rate;···//·The·refresh·rate·of·the·mode |
61 | }·ALLEGRO_DISPLAY_MODE; | 61 | }·ALLEGRO_DISPLAY_MODE; |
62 | The·refresh_rate·may·be·zero·if·unknown. | 62 | The·refresh_rate·may·be·zero·if·unknown. |
63 | For·an·explanation·of·what·format·means,·see·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T. | 63 | For·an·explanation·of·what·format·means,·see·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T. |
64 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e | 64 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e |
65 | Examples: | ||
66 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
67 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n_\x8s_\x8._\x8c | ||
68 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 65 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
69 | ALLEGRO_DISPLAY_MODE·*al_get_display_mode(int·index,·ALLEGRO_DISPLAY_MODE | 66 | ALLEGRO_DISPLAY_MODE·*al_get_display_mode(int·index,·ALLEGRO_DISPLAY_MODE |
70 | *mode) | 67 | *mode) |
71 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
72 | Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed·between·a | 69 | Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed·between·a |
73 | call·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e.·index·must·be·between | 70 | call·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e.·index·must·be·between |
74 | 0·and·the·number·returned·from·al_get_num_display_modes-1.·mode·must·be·an | 71 | 0·and·the·number·returned·from·al_get_num_display_modes-1.·mode·must·be·an |
Offset 344, 12 lines modified | Offset 344, 12 lines modified | ||
344 | href="system.html#al_init">al_init</a>·becomes·more·scrict.·See | 344 | href="system.html#al_init">al_init</a>·becomes·more·scrict.·See |
345 | documentation·of·those·functions·for·details.</p> | 345 | documentation·of·those·functions·for·details.</p> |
346 | <h1·id="not-the-end">Not·the·end</h1> | 346 | <h1·id="not-the-end">Not·the·end</h1> |
347 | <p>There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet.</p> | 347 | <p>There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet.</p> |
348 | <p>Enjoy!</p> | 348 | <p>Enjoy!</p> |
349 | <p·class="timestamp"> | 349 | <p·class="timestamp"> |
350 | Allegro·version·5.2.9 | 350 | Allegro·version·5.2.9 |
351 | ·-·Last·updated:·202 | 351 | ·-·Last·updated:·2025-04-22·06:34:50·UTC |
352 | </p> | 352 | </p> |
353 | </div> | 353 | </div> |
354 | </body> | 354 | </body> |
355 | </html> | 355 | </html> |
Offset 191, 8 lines modified | Offset 191, 8 lines modified | ||
191 | including·Allegro’s·headers. | 191 | including·Allegro’s·headers. |
192 | Note·that·when·you·define·that·macro,·the·version·check·performed·by | 192 | Note·that·when·you·define·that·macro,·the·version·check·performed·by |
193 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·and·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·becomes·more·scrict.·See·documentation·of·those | 193 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·and·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·becomes·more·scrict.·See·documentation·of·those |
194 | functions·for·details. | 194 | functions·for·details. |
195 | *\x8**\x8**\x8**\x8**\x8**\x8*·N\x8No\x8ot\x8t·t\x8th\x8he\x8e·e\x8en\x8nd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 195 | *\x8**\x8**\x8**\x8**\x8**\x8*·N\x8No\x8ot\x8t·t\x8th\x8he\x8e·e\x8en\x8nd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
196 | There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet. | 196 | There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet. |
197 | Enjoy! | 197 | Enjoy! |
198 | Allegro·version·5.2.9·-·Last·updated:·202 | 198 | Allegro·version·5.2.9·-·Last·updated:·2025-04-22·06:34:50·UTC |
Offset 447, 87 lines modified | Offset 447, 51 lines modified | ||
447 | <p><a | 447 | <p><a |
448 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source | 448 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source |
449 | Code</a></p> | 449 | Code</a></p> |
450 | <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent | 450 | <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent |
451 | way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a | 451 | way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a |
452 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate | 452 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate |
453 | from·and·to·various·color·representations.</p> | 453 | from·and·to·various·color·representations.</p> |
454 | <p>Examples:</p> | ||
455 | <ul> | ||
456 | <li><a | ||
457 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L15">ex_keyboard_focus.c</a></li> | ||
458 | <li><a | ||
459 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L13">ex_nodisplay.c</a></li> | ||
460 | <li><a | ||
461 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L16">ex_mouse_focus.c</a></li> | ||
462 | </ul> | ||
463 | <h2·id="al_map_rgb">al_map_rgb</h2> | 454 | <h2·id="al_map_rgb">al_map_rgb</h2> |
464 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb<span·class="op">(</span></span> | 455 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb<span·class="op">(</span></span> |
465 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">)</span></span></code></pre></div> | 456 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">)</span></span></code></pre></div> |
466 | <p><a | 457 | <p><a |
467 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L575">Source | 458 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L575">Source |
468 | Code</a></p> | 459 | Code</a></p> |
469 | <p>Convert·r,·g,·b·(ranging·from·0-255)·into·an·<a | 460 | <p>Convert·r,·g,·b·(ranging·from·0-255)·into·an·<a |
470 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·using·255·for | 461 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·using·255·for |
471 | alpha.</p> | 462 | alpha.</p> |
472 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> | 463 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> |
473 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a | 464 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a |
474 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a>,·<a | 465 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a>,·<a |
475 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> | 466 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> |
476 | <p>Examples:</p> | ||
477 | <ul> | ||
478 | <li><a | ||
479 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li> | ||
480 | <li><a | ||
481 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L49">ex_keyboard_focus.c</a></li> | ||
482 | <li><a | ||
483 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L37">ex_nodisplay.c</a></li> | ||
484 | </ul> | ||
485 | <h2·id="al_map_rgb_f">al_map_rgb_f</h2> | 467 | <h2·id="al_map_rgb_f">al_map_rgb_f</h2> |
486 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">)</span></span></code></pre></div> | 468 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">)</span></span></code></pre></div> |
487 | <p><a | 469 | <p><a |
488 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L610">Source | 470 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L610">Source |
489 | Code</a></p> | 471 | Code</a></p> |
490 | <p>Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·<a | 472 | <p>Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·<a |
491 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·using·1.0f·for | 473 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·using·1.0f·for |
492 | alpha.</p> | 474 | alpha.</p> |
493 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> | 475 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> |
494 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a | 476 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a |
495 | href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a | 477 | href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a |
496 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a></p> | 478 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a></p> |
497 | <p>Examples:</p> | ||
498 | <ul> | ||
499 | <li><a | ||
500 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li> | ||
501 | <li><a | ||
502 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L128">ex_keyboard_events.c</a></li> | ||
503 | <li><a | ||
504 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L93">ex_drawpixels.c</a></li> | ||
505 | </ul> | ||
506 | <h2·id="al_map_rgba">al_map_rgba</h2> | 479 | <h2·id="al_map_rgba">al_map_rgba</h2> |
507 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgba<span·class="op">(</span></span> | 480 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgba<span·class="op">(</span></span> |
508 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> | 481 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> |
509 | <p><a | 482 | <p><a |
510 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L553">Source | 483 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L553">Source |
511 | Code</a></p> | 484 | Code</a></p> |
512 | <p>Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·<a | 485 | <p>Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·<a |
513 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>.</p> | 486 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>.</p> |
514 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> | 487 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> |
515 | <p>See·also:·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a | 488 | <p>See·also:·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a |
516 | href="graphics.html#al_premul_rgba">al_premul_rgba</a>,·<a | 489 | href="graphics.html#al_premul_rgba">al_premul_rgba</a>,·<a |
517 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> | 490 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> |
518 | <p>Examples:</p> | ||
519 | <ul> | ||
520 | <li><a | ||
521 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L41">ex_nodisplay.c</a></li> | ||
522 | <li><a | ||
523 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L70">ex_timedwait.c</a></li> | ||
524 | <li><a | ||
525 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L47">ex_drawpixels.c</a></li> | ||
526 | </ul> | ||
527 | <h2·id="al_premul_rgba">al_premul_rgba</h2> | 491 | <h2·id="al_premul_rgba">al_premul_rgba</h2> |
528 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba<span·class="op">(</span></span> | 492 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba<span·class="op">(</span></span> |
529 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> | 493 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> |
530 | <p><a | 494 | <p><a |
531 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L564">Source | 495 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L564">Source |
532 | Code</a></p> | 496 | Code</a></p> |
533 | <p>This·is·a·shortcut·for·<a | 497 | <p>This·is·a·shortcut·for·<a |
Offset 174, 52 lines modified | Offset 174, 36 lines modified | ||
174 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8ol\x8lo\x8or\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 174 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8ol\x8lo\x8or\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
175 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8OL\x8LO\x8OR\x8R·*\x8**\x8**\x8**\x8**\x8* | 175 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8OL\x8LO\x8OR\x8R·*\x8**\x8**\x8**\x8**\x8* |
176 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; | 176 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; |
177 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 177 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
178 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use | 178 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use |
179 | _\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. and·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. to·translate·from·and·to·various | 179 | _\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. and·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. to·translate·from·and·to·various |
180 | color·representations. | 180 | color·representations. |
181 | Examples: | ||
182 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
183 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | ||
184 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
185 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8* | 181 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8* |
186 | ALLEGRO_COLOR·al_map_rgb( | 182 | ALLEGRO_COLOR·al_map_rgb( |
187 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b) | 183 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b) |
188 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 184 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
189 | Convert·r,·g,·b·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·255·for | 185 | Convert·r,·g,·b·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·255·for |
190 | alpha. | 186 | alpha. |
191 | This·function·can·be·called·before·Allegro·is·initialized. | 187 | This·function·can·be·called·before·Allegro·is·initialized. |
192 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 188 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
193 | Examples: | ||
194 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
195 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
196 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | ||
197 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* | 189 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* |
198 | ALLEGRO_COLOR·al_map_rgb_f(float·r,·float·g,·float·b) | 190 | ALLEGRO_COLOR·al_map_rgb_f(float·r,·float·g,·float·b) |
199 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 191 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
200 | Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·1.0f·for | 192 | Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·1.0f·for |
201 | alpha. | 193 | alpha. |
202 | This·function·can·be·called·before·Allegro·is·initialized. | 194 | This·function·can·be·called·before·Allegro·is·initialized. |
203 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f | 195 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f |
204 | Examples: | ||
205 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
206 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
207 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c | ||
208 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* | 196 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* |
209 | ALLEGRO_COLOR·al_map_rgba( | 197 | ALLEGRO_COLOR·al_map_rgba( |
210 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) | 198 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) |
211 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 199 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
212 | Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R. | 200 | Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R. |
213 | This·function·can·be·called·before·Allegro·is·initialized. | 201 | This·function·can·be·called·before·Allegro·is·initialized. |
214 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 202 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
215 | Examples: | ||
216 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | ||
217 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | ||
218 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c | ||
219 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* | 203 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* |
220 | ALLEGRO_COLOR·al_premul_rgba( | 204 | ALLEGRO_COLOR·al_premul_rgba( |
221 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) | 205 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) |
222 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 206 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
223 | This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a(r·*·a·/·255,·g·*·a·/·255,·b·*·a·/·255,·a). | 207 | This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a(r·*·a·/·255,·g·*·a·/·255,·b·*·a·/·255,·a). |
224 | By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of | 208 | By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of |
225 | bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that | 209 | bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that |
Offset 265, 21 lines modified | Offset 265, 14 lines modified | ||
265 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 265 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
266 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all | 266 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all |
267 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from | 267 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from |
268 | users.</p> | 268 | users.</p> |
269 | </blockquote> | 269 | </blockquote> |
270 | <p>See·also:·<a | 270 | <p>See·also:·<a |
271 | href="haptic.html#al_get_haptic_from_joystick">al_get_haptic_from_joystick</a></p> | 271 | href="haptic.html#al_get_haptic_from_joystick">al_get_haptic_from_joystick</a></p> |
272 | <p>Examples:</p> | ||
273 | <ul> | ||
274 | <li><a | ||
275 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> | ||
276 | <li><a | ||
277 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L21">ex_haptic2.cpp</a></li> | ||
278 | </ul> | ||
279 | <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1> | 272 | <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1> |
280 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span></code></pre></div> | 273 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span></code></pre></div> |
281 | <p><a | 274 | <p><a |
282 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source | 275 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source |
283 | Code</a></p> | 276 | Code</a></p> |
284 | <p>This·enum·contains·flags·that·are·used·to·define·haptic·effects·and | 277 | <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 | 278 | capabilities.·If·the·flag·is·set·in·the·return·value·of·<a |
Offset 90, 17 lines modified | Offset 90, 14 lines modified | ||
90 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force | 90 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force |
91 | feedback·or·vibration. | 91 | feedback·or·vibration. |
92 | Since:·5.1.8 | 92 | 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 | 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 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 94 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
95 | ·····feedback·from·users. | 95 | ·····feedback·from·users. |
96 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k | 96 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k |
97 | Examples: | ||
98 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
99 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p | ||
100 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_C\x8CO\x8ON\x8NS\x8ST\x8TA\x8AN\x8NT\x8TS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 97 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_C\x8CO\x8ON\x8NS\x8ST\x8TA\x8AN\x8NT\x8TS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
101 | enum·ALLEGRO_HAPTIC_CONSTANTS | 98 | enum·ALLEGRO_HAPTIC_CONSTANTS |
102 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
103 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and | 100 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and |
104 | capabilities.·If·the·flag·is·set·in·the·return·value·of | 101 | 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 | 102 | _\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 | 103 | value·of·these·flags·should·be·set·into·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8H_\x8A_\x8P_\x8T_\x8I_\x8C_\x8__\x8E_\x8F_\x8F_\x8E_\x8C_\x8T·struct·to |
Offset 207, 23 lines modified | Offset 207, 14 lines modified | ||
207 | installed·libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to | 207 | installed·libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to |
208 | be·universally·available.</p> | 208 | be·universally·available.</p> |
209 | <p>The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS | 209 | <p>The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS |
210 | file·contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats. | 210 | file·contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats. |
211 | Note·that·when·loading·a·DDS·file,·the·created·bitmap·will·always·be·a | 211 | Note·that·when·loading·a·DDS·file,·the·created·bitmap·will·always·be·a |
212 | video·bitmap·and·will·have·the·pixel·format·matching·the·format·in·the | 212 | video·bitmap·and·will·have·the·pixel·format·matching·the·format·in·the |
213 | file.</p> | 213 | file.</p> |
214 | <p>Examples:</p> | ||
215 | <ul> | ||
216 | <li><a | ||
217 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L29">ex_convert.c</a></li> | ||
218 | <li><a | ||
219 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L22">ex_nodisplay.c</a></li> | ||
220 | <li><a | ||
221 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L53">ex_opengl_pixel_shader.c</a></li> | ||
222 | </ul> | ||
223 | <h1 | 214 | <h1 |
224 | id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1> | 215 | id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1> |
225 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_image_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 216 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_image_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
226 | <p><a | 217 | <p><a |
227 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source | 218 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source |
228 | Code</a></p> | 219 | Code</a></p> |
229 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns | 220 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns |
Offset 64, 18 lines modified | Offset 64, 14 lines modified | ||
64 | Other·formats·may·be·available·depending·on·the·operating·system·and·installed | 64 | Other·formats·may·be·available·depending·on·the·operating·system·and·installed |
65 | libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to·be·universally | 65 | libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to·be·universally |
66 | available. | 66 | available. |
67 | The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file | 67 | The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file |
68 | contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when | 68 | contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when |
69 | loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will | 69 | loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will |
70 | have·the·pixel·format·matching·the·format·in·the·file. | 70 | have·the·pixel·format·matching·the·format·in·the·file. |
71 | Examples: | ||
72 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | ||
73 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | ||
74 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
75 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
76 | bool·al_is_image_addon_initialized(void) | 72 | bool·al_is_image_addon_initialized(void) |
77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
78 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. | 74 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. |
79 | Since:·5.2.6 | 75 | Since:·5.2.6 |
80 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 76 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
81 | void·al_shutdown_image_addon(void) | 77 | void·al_shutdown_image_addon(void) |
Offset 162, 12 lines modified | Offset 162, 12 lines modified | ||
162 | <li><a·href="native_dialog.html">Native·dialogs·addon</a></li> | 162 | <li><a·href="native_dialog.html">Native·dialogs·addon</a></li> |
163 | <li><a·href="physfs.html">PhysicsFS·addon</a></li> | 163 | <li><a·href="physfs.html">PhysicsFS·addon</a></li> |
164 | <li><a·href="primitives.html">Primitives·addon</a></li> | 164 | <li><a·href="primitives.html">Primitives·addon</a></li> |
165 | <li><a·href="video.html">Video·streaming·addon</a></li> | 165 | <li><a·href="video.html">Video·streaming·addon</a></li> |
166 | </ul> | 166 | </ul> |
167 | <p·class="timestamp"> | 167 | <p·class="timestamp"> |
168 | Allegro·version·5.2.9 | 168 | Allegro·version·5.2.9 |
169 | ·-·Last·updated:·202 | 169 | ·-·Last·updated:·2025-04-22·06:34:58·UTC |
170 | </p> | 170 | </p> |
171 | </div> | 171 | </div> |
172 | </body> | 172 | </body> |
173 | </html> | 173 | </html> |
Offset 83, 8 lines modified | Offset 83, 8 lines modified | ||
83 | ····*·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8·_\x8I_\x8/_\x8O_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n | 83 | ····*·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8·_\x8I_\x8/_\x8O_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n |
84 | ····*·_\x8M_\x8a_\x8i_\x8n_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n | 84 | ····*·_\x8M_\x8a_\x8i_\x8n_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n |
85 | ····*·_\x8M_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n | 85 | ····*·_\x8M_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n |
86 | ····*·_\x8N_\x8a_\x8t_\x8i_\x8v_\x8e_\x8·_\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8s_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n | 86 | ····*·_\x8N_\x8a_\x8t_\x8i_\x8v_\x8e_\x8·_\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8s_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n |
87 | ····*·_\x8P_\x8h_\x8y_\x8s_\x8i_\x8c_\x8s_\x8F_\x8S_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n | 87 | ····*·_\x8P_\x8h_\x8y_\x8s_\x8i_\x8c_\x8s_\x8F_\x8S_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n |
88 | ····*·_\x8P_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n | 88 | ····*·_\x8P_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n |
89 | ····*·_\x8V_\x8i_\x8d_\x8e_\x8o_\x8·_\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8i_\x8n_\x8g_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n | 89 | ····*·_\x8V_\x8i_\x8d_\x8e_\x8o_\x8·_\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8i_\x8n_\x8g_\x8·_\x8a_\x8d_\x8d_\x8o_\x8n |
90 | Allegro·version·5.2.9·-·Last·updated:·202 | 90 | Allegro·version·5.2.9·-·Last·updated:·2025-04-22·06:34:58·UTC |
Offset 2907, 12 lines modified | Offset 2907, 12 lines modified | ||
2907 | <li><a | 2907 | <li><a |
2908 | href="platform.html#al_x_set_initial_icon">al_x_set_initial_icon</a> | 2908 | href="platform.html#al_x_set_initial_icon">al_x_set_initial_icon</a> |
2909 | <!--·--></li> | 2909 | <!--·--></li> |
2910 | <li><a·href="platform.html#iphone">iPhone</a>·<!--·--></li> | 2910 | <li><a·href="platform.html#iphone">iPhone</a>·<!--·--></li> |
2911 | </ul> | 2911 | </ul> |
2912 | <p·class="timestamp"> | 2912 | <p·class="timestamp"> |
2913 | Allegro·version·5.2.9 | 2913 | Allegro·version·5.2.9 |
2914 | ·-·Last·updated:·202 | 2914 | ·-·Last·updated:·2025-04-22·06:34:58·UTC |
2915 | </p> | 2915 | </p> |
2916 | </div> | 2916 | </div> |
2917 | </body> | 2917 | </body> |
2918 | </html> | 2918 | </html> |
Offset 1256, 8 lines modified | Offset 1256, 8 lines modified | ||
1256 | ····*·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8d | 1256 | ····*·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8d |
1257 | ····*·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l | 1257 | ····*·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l |
1258 | ····*·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8v_\x8s_\x8y_\x8n_\x8c | 1258 | ····*·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8v_\x8s_\x8y_\x8n_\x8c |
1259 | ····*·_\x8a_\x8l_\x8__\x8w_\x8i_\x8n_\x8__\x8a_\x8d_\x8d_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8c_\x8a_\x8l_\x8l_\x8b_\x8a_\x8c_\x8k | 1259 | ····*·_\x8a_\x8l_\x8__\x8w_\x8i_\x8n_\x8__\x8a_\x8d_\x8d_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8c_\x8a_\x8l_\x8l_\x8b_\x8a_\x8c_\x8k |
1260 | ····*·_\x8a_\x8l_\x8__\x8w_\x8i_\x8n_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8c_\x8a_\x8l_\x8l_\x8b_\x8a_\x8c_\x8k | 1260 | ····*·_\x8a_\x8l_\x8__\x8w_\x8i_\x8n_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8c_\x8a_\x8l_\x8l_\x8b_\x8a_\x8c_\x8k |
1261 | ····*·_\x8a_\x8l_\x8__\x8x_\x8__\x8s_\x8e_\x8t_\x8__\x8i_\x8n_\x8i_\x8t_\x8i_\x8a_\x8l_\x8__\x8i_\x8c_\x8o_\x8n | 1261 | ····*·_\x8a_\x8l_\x8__\x8x_\x8__\x8s_\x8e_\x8t_\x8__\x8i_\x8n_\x8i_\x8t_\x8i_\x8a_\x8l_\x8__\x8i_\x8c_\x8o_\x8n |
1262 | ····*·_\x8i_\x8P_\x8h_\x8o_\x8n_\x8e | 1262 | ····*·_\x8i_\x8P_\x8h_\x8o_\x8n_\x8e |
1263 | Allegro·version·5.2.9·-·Last·updated:·202 | 1263 | Allegro·version·5.2.9·-·Last·updated:·2025-04-22·06:34:58·UTC |
Offset 230, 44 lines modified | Offset 230, 28 lines modified | ||
230 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK<span·class="op">;</span></span></code></pre></div> | 230 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK<span·class="op">;</span></span></code></pre></div> |
231 | <p><a | 231 | <p><a |
232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L35">Source | 232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L35">Source |
233 | Code</a></p> | 233 | Code</a></p> |
234 | <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p> | 234 | <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p> |
235 | <p>See·also:·<a | 235 | <p>See·also:·<a |
236 | href="joystick.html#al_get_joystick">al_get_joystick</a></p> | 236 | href="joystick.html#al_get_joystick">al_get_joystick</a></p> |
237 | <p>Examples:</p> | ||
238 | <ul> | ||
239 | <li><a | ||
240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L14">ex_haptic.c</a></li> | ||
241 | <li><a | ||
242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L7">ex_joystick_hotplugging.c</a></li> | ||
243 | <li><a | ||
244 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L32">ex_joystick_events.c</a></li> | ||
245 | </ul> | ||
246 | <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1> | 237 | <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1> |
247 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE<span·class="op">;</span></span></code></pre></div> | 238 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE<span·class="op">;</span></span></code></pre></div> |
248 | <p><a | 239 | <p><a |
249 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L41">Source | 240 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L41">Source |
250 | Code</a></p> | 241 | Code</a></p> |
251 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s | 242 | <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 | 243 | axes·and·buttons·at·a·particular·instant.·All·fields·public·and |
253 | read-only.</p> | 244 | read-only.</p> |
254 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">struct</span>·<span·class="op">{</span></span> | 245 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">struct</span>·<span·class="op">{</span></span> |
255 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·axis<span·class="op">[</span>num_axes<span·class="op">];</span>·············<span·class="co">//·-1.0·to·1.0</span></span> | 246 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·axis<span·class="op">[</span>num_axes<span·class="op">];</span>·············<span·class="co">//·-1.0·to·1.0</span></span> |
256 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·stick<span·class="op">[</span>num_sticks<span·class="op">];</span></span> | 247 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·stick<span·class="op">[</span>num_sticks<span·class="op">];</span></span> |
257 | <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·button<span·class="op">[</span>num_buttons<span·class="op">];</span>·············<span·class="co">//·0·to·32767</span></span></code></pre></div> | 248 | <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·button<span·class="op">[</span>num_buttons<span·class="op">];</span>·············<span·class="co">//·0·to·32767</span></span></code></pre></div> |
258 | <p>See·also:·<a | 249 | <p>See·also:·<a |
259 | href="joystick.html#al_get_joystick_state">al_get_joystick_state</a></p> | 250 | href="joystick.html#al_get_joystick_state">al_get_joystick_state</a></p> |
260 | <p>Examples:</p> | ||
261 | <ul> | ||
262 | <li><a | ||
263 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L38">ex_joystick_hotplugging.c</a></li> | ||
264 | <li><a | ||
265 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L34">ex_joystick_events.c</a></li> | ||
266 | </ul> | ||
267 | <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1> | 251 | <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1> |
268 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</span></code></pre></div> | 252 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</span></code></pre></div> |
269 | <p><a | 253 | <p><a |
270 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L54">Source | 254 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L54">Source |
271 | Code</a></p> | 255 | Code</a></p> |
272 | <ul> | 256 | <ul> |
273 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> | 257 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> |
Offset 74, 31 lines modified | Offset 74, 24 lines modified | ||
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 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 78 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
79 | This·is·an·abstract·data·type·representing·a·physical·joystick. | 79 | This·is·an·abstract·data·type·representing·a·physical·joystick. |
80 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k | 80 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k |
81 | Examples: | ||
82 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
83 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
84 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
85 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 81 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | 82 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; |
87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 83 | _\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 | 84 | This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s·axes·and |
89 | buttons·at·a·particular·instant.·All·fields·public·and·read-only. | 85 | buttons·at·a·particular·instant.·All·fields·public·and·read-only. |
90 | struct·{ | 86 | struct·{ |
91 | ···float·axis[num_axes];·············//·-1.0·to·1.0 | 87 | ···float·axis[num_axes];·············//·-1.0·to·1.0 |
92 | }·stick[num_sticks]; | 88 | }·stick[num_sticks]; |
93 | int·button[num_buttons];·············//·0·to·32767 | 89 | 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 | 90 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8a_\x8t_\x8e |
95 | Examples: | ||
96 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
97 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
98 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YF\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 91 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YF\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
99 | enum·ALLEGRO_JOYFLAGS | 92 | enum·ALLEGRO_JOYFLAGS |
100 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 93 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
101 | ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input | 94 | ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input |
102 | ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input | 95 | ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input |
103 | (this·enum·is·a·holdover·from·the·old·API·and·may·be·removed) | 96 | (this·enum·is·a·holdover·from·the·old·API·and·may·be·removed) |
104 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8f_\x8l_\x8a_\x8g_\x8s | 97 | 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 |
Offset 212, 23 lines modified | Offset 212, 14 lines modified | ||
212 | <ul> | 212 | <ul> |
213 | <li>display·-·points·to·the·display·that·had·keyboard·focus·at·the·time | 213 | <li>display·-·points·to·the·display·that·had·keyboard·focus·at·the·time |
214 | the·state·was·saved.·If·no·display·was·focused,·this·points·to | 214 | the·state·was·saved.·If·no·display·was·focused,·this·points·to |
215 | NULL.</li> | 215 | NULL.</li> |
216 | </ul> | 216 | </ul> |
217 | <p>You·cannot·read·the·state·of·keys·directly.·Use·the·function·<a | 217 | <p>You·cannot·read·the·state·of·keys·directly.·Use·the·function·<a |
218 | href="keyboard.html#al_key_down">al_key_down</a>.</p> | 218 | href="keyboard.html#al_key_down">al_key_down</a>.</p> |
219 | <p>Examples:</p> | ||
220 | <ul> | ||
221 | <li><a | ||
222 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L42">ex_d3d.cpp</a></li> | ||
223 | <li><a | ||
224 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L4">ex_keyboard_focus.c</a></li> | ||
225 | <li><a | ||
226 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L33">ex_mouse_focus.c</a></li> | ||
227 | </ul> | ||
228 | <h1·id="key-codes">Key·codes</h1> | 219 | <h1·id="key-codes">Key·codes</h1> |
229 | <p>The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest | 220 | <p>The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest |
230 | key·code.·So·if·you·want·to·use·the·key·code·as·array·index·you·can·do | 221 | key·code.·So·if·you·want·to·use·the·key·code·as·array·index·you·can·do |
231 | something·like·this:</p> | 222 | something·like·this:</p> |
232 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·pressed_keys<span·class="op">[</span>ALLEGRO_KEY_MAX<span·class="op">];</span></span> | 223 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·pressed_keys<span·class="op">[</span>ALLEGRO_KEY_MAX<span·class="op">];</span></span> |
233 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="co">//...</span></span> | 224 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="co">//...</span></span> |
234 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>pressed_keys<span·class="op">[</span>key_code<span·class="op">]</span>·<span·class="op">=</span>·<span·class="kw">true</span><span·class="op">;</span></span></code></pre></div> | 225 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>pressed_keys<span·class="op">[</span>key_code<span·class="op">]</span>·<span·class="op">=</span>·<span·class="kw">true</span><span·class="op">;</span></span></code></pre></div> |
Offset 62, 18 lines modified | Offset 62, 14 lines modified | ||
62 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | 62 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; |
63 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 63 | _\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 | 64 | This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s·state·at |
65 | a·particular·instant.·It·contains·the·following·publically·readable·fields: | 65 | a·particular·instant.·It·contains·the·following·publically·readable·fields: |
66 | ····*·display·-·points·to·the·display·that·had·keyboard·focus·at·the·time·the | 66 | ····*·display·-·points·to·the·display·that·had·keyboard·focus·at·the·time·the |
67 | ······state·was·saved.·If·no·display·was·focused,·this·points·to·NULL. | 67 | ······state·was·saved.·If·no·display·was·focused,·this·points·to·NULL. |
68 | You·cannot·read·the·state·of·keys·directly.·Use·the·function·_\x8a_\x8l_\x8__\x8k_\x8e_\x8y_\x8__\x8d_\x8o_\x8w_\x8n. | 68 | You·cannot·read·the·state·of·keys·directly.·Use·the·function·_\x8a_\x8l_\x8__\x8k_\x8e_\x8y_\x8__\x8d_\x8o_\x8w_\x8n. |
69 | Examples: | ||
70 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
71 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
72 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
73 | *\x8**\x8**\x8**\x8**\x8**\x8*·K\x8Ke\x8ey\x8y·c\x8co\x8od\x8de\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 69 | *\x8**\x8**\x8**\x8**\x8**\x8*·K\x8Ke\x8ey\x8y·c\x8co\x8od\x8de\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
74 | The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest·key·code.·So | 70 | The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest·key·code.·So |
75 | if·you·want·to·use·the·key·code·as·array·index·you·can·do·something·like·this: | 71 | if·you·want·to·use·the·key·code·as·array·index·you·can·do·something·like·this: |
76 | bool·pressed_keys[ALLEGRO_KEY_MAX]; | 72 | bool·pressed_keys[ALLEGRO_KEY_MAX]; |
77 | //... | 73 | //... |
78 | pressed_keys[key_code]·=·true; | 74 | pressed_keys[key_code]·=·true; |
79 | These·are·the·list·of·key·codes·used·by·Allegro,·which·are·returned·in·the | 75 | These·are·the·list·of·key·codes·used·by·Allegro,·which·are·returned·in·the |
Offset 187, 12 lines modified | Offset 187, 12 lines modified | ||
187 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·main<span·class="op">(</span><span·class="dt">int</span>·argc<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**</span>argv<span·class="op">)</span></span></code></pre></div> | 187 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·main<span·class="op">(</span><span·class="dt">int</span>·argc<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**</span>argv<span·class="op">)</span></span></code></pre></div> |
188 | <p>This·addon·does·nothing·on·platforms·that·don’t·require·its | 188 | <p>This·addon·does·nothing·on·platforms·that·don’t·require·its |
189 | functionality,·but·you·should·keep·it·in·mind·in·case·you·need·to·port | 189 | functionality,·but·you·should·keep·it·in·mind·in·case·you·need·to·port |
190 | to·platforms·that·do·require·it.</p> | 190 | to·platforms·that·do·require·it.</p> |
191 | <p>Link·with·allegro_main.</p> | 191 | <p>Link·with·allegro_main.</p> |
192 | <p·class="timestamp"> | 192 | <p·class="timestamp"> |
193 | Allegro·version·5.2.9 | 193 | Allegro·version·5.2.9 |
194 | ·-·Last·updated:·202 | 194 | ·-·Last·updated:·2025-04-22·06:34:56·UTC |
195 | </p> | 195 | </p> |
196 | </div> | 196 | </div> |
197 | </body> | 197 | </body> |
198 | </html> | 198 | </html> |
Offset 53, 8 lines modified | Offset 53, 8 lines modified | ||
53 | If·the·user·main·function·is·defined·in·C++,·then·it·must·have·the·following | 53 | If·the·user·main·function·is·defined·in·C++,·then·it·must·have·the·following |
54 | signature·for·this·addon·to·work: | 54 | signature·for·this·addon·to·work: |
55 | int·main(int·argc,·char·**argv) | 55 | int·main(int·argc,·char·**argv) |
56 | This·addon·does·nothing·on·platforms·that·don’t·require·its·functionality,·but | 56 | This·addon·does·nothing·on·platforms·that·don’t·require·its·functionality,·but |
57 | you·should·keep·it·in·mind·in·case·you·need·to·port·to·platforms·that·do | 57 | you·should·keep·it·in·mind·in·case·you·need·to·port·to·platforms·that·do |
58 | require·it. | 58 | require·it. |
59 | Link·with·allegro_main. | 59 | Link·with·allegro_main. |
60 | Allegro·version·5.2.9·-·Last·updated:·202 | 60 | Allegro·version·5.2.9·-·Last·updated:·2025-04-22·06:34:56·UTC |
Offset 196, 27 lines modified | Offset 196, 22 lines modified | ||
196 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file | 196 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file |
197 | size·is·fixed·and·cannot·be·expanded.·The·file·is·always·read | 197 | size·is·fixed·and·cannot·be·expanded.·The·file·is·always·read |
198 | from/written·to·in·binary·mode,·which·means·that·no·newline·translation | 198 | from/written·to·in·binary·mode,·which·means·that·no·newline·translation |
199 | is·performed.</p> | 199 | is·performed.</p> |
200 | <p>It·should·be·closed·with·<a·href="file.html#al_fclose">al_fclose</a>. | 200 | <p>It·should·be·closed·with·<a·href="file.html#al_fclose">al_fclose</a>. |
201 | After·the·file·is·closed,·you·are·responsible·for·freeing·the·memory·(if | 201 | After·the·file·is·closed,·you·are·responsible·for·freeing·the·memory·(if |
202 | needed).</p> | 202 | needed).</p> |
203 | <p>Examples:</p> | ||
204 | <ul> | ||
205 | <li><a | ||
206 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L36">ex_memfile.c</a></li> | ||
207 | </ul> | ||
208 | <h1 | 203 | <h1 |
209 | id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> | 204 | id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> |
210 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 205 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
211 | <p><a | 206 | <p><a |
212 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source | 207 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source |
213 | Code</a></p> | 208 | Code</a></p> |
214 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 209 | <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> | 210 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
216 | <p·class="timestamp"> | 211 | <p·class="timestamp"> |
217 | Allegro·version·5.2.9 | 212 | Allegro·version·5.2.9 |
218 | ·-·Last·updated:·202 | 213 | ·-·Last·updated:·2025-04-22·06:34:56·UTC |
219 | </p> | 214 | </p> |
220 | </div> | 215 | </div> |
221 | </body> | 216 | </body> |
222 | </html> | 217 | </html> |
Offset 57, 15 lines modified | Offset 57, 13 lines modified | ||
57 | upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open. | 57 | upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open. |
58 | The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable). | 58 | The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable). |
59 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is | 59 | 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 | 60 | fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary |
61 | mode,·which·means·that·no·newline·translation·is·performed. | 61 | mode,·which·means·that·no·newline·translation·is·performed. |
62 | It·should·be·closed·with·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e.·After·the·file·is·closed,·you·are | 62 | It·should·be·closed·with·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e.·After·the·file·is·closed,·you·are |
63 | responsible·for·freeing·the·memory·(if·needed). | 63 | responsible·for·freeing·the·memory·(if·needed). |
64 | Examples: | ||
65 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
66 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_m\x8me\x8em\x8mf\x8fi\x8il\x8le\x8e_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 64 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_m\x8me\x8em\x8mf\x8fi\x8il\x8le\x8e_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
67 | uint32_t·al_get_allegro_memfile_version(void) | 65 | uint32_t·al_get_allegro_memfile_version(void) |
68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 66 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
69 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 67 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
70 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 68 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
71 | Allegro·version·5.2.9·-·Last·updated:·202 | 69 | Allegro·version·5.2.9·-·Last·updated:·2025-04-22·06:34:56·UTC |
Offset 203, 21 lines modified | Offset 203, 14 lines modified | ||
203 | be·overridden.</p> | 203 | be·overridden.</p> |
204 | <p>This·is·a·macro.</p> | 204 | <p>This·is·a·macro.</p> |
205 | <p>See·also:·<a·href="memory.html#al_free">al_free</a>,·<a | 205 | <p>See·also:·<a·href="memory.html#al_free">al_free</a>,·<a |
206 | href="memory.html#al_realloc">al_realloc</a>,·<a | 206 | href="memory.html#al_realloc">al_realloc</a>,·<a |
207 | href="memory.html#al_calloc">al_calloc</a>,·<a | 207 | href="memory.html#al_calloc">al_calloc</a>,·<a |
208 | href="memory.html#al_malloc_with_context">al_malloc_with_context</a>,·<a | 208 | href="memory.html#al_malloc_with_context">al_malloc_with_context</a>,·<a |
209 | href="memory.html#al_set_memory_interface">al_set_memory_interface</a></p> | 209 | href="memory.html#al_set_memory_interface">al_set_memory_interface</a></p> |
210 | <p>Examples:</p> | ||
211 | <ul> | ||
212 | <li><a | ||
213 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L27">ex_audio_timer.c</a></li> | ||
214 | <li><a | ||
215 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L134">ex_vertex_buffer.c</a></li> | ||
216 | </ul> | ||
217 | <h1·id="al_free">al_free</h1> | 210 | <h1·id="al_free">al_free</h1> |
218 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_free</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | 211 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_free</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> |
219 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_free_with_context</span><span·class="op">((</span><span·class="pp">p</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span></code></pre></div> | 212 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_free_with_context</span><span·class="op">((</span><span·class="pp">p</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span></code></pre></div> |
220 | <p><a | 213 | <p><a |
221 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source | 214 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source |
222 | Code</a></p> | 215 | Code</a></p> |
223 | <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be | 216 | <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be |
Offset 60, 32 lines modified | Offset 60, 25 lines modified | ||
60 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | 60 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) |
61 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 61 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
62 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be | 62 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be |
63 | overridden. | 63 | overridden. |
64 | This·is·a·macro. | 64 | This·is·a·macro. |
65 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t, | 65 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t, |
66 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 66 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e |
67 | Examples: | ||
68 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
69 | ····*·_\x8e_\x8x_\x8__\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8._\x8c | ||
70 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ee\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 67 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ee\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
71 | #define·al_free(p)·\ | 68 | #define·al_free(p)·\ |
72 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | 69 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) |
73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 70 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
74 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be | 71 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be |
75 | overridden. | 72 | overridden. |
76 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed | 73 | 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 | 74 | from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a |
78 | pointer·that·must·be·freed,·you·must·use·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e·for·portability·to·Windows. | 75 | pointer·that·must·be·freed,·you·must·use·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e·for·portability·to·Windows. |
79 | This·is·a·macro. | 76 | This·is·a·macro. |
80 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | 77 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t |
81 | Examples: | ||
82 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8b_\x8o_\x8a_\x8r_\x8d_\x8._\x8c | ||
83 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c | ||
84 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c | ||
85 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ea\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* | 78 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ea\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | #define·al_realloc(p,·n)·\ | 79 | #define·al_realloc(p,·n)·\ |
87 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | 80 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) |
88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 81 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
89 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be | 82 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be |
90 | overridden. | 83 | overridden. |
91 | This·is·a·macro. | 84 | This·is·a·macro. |
Offset 182, 23 lines modified | Offset 182, 14 lines modified | ||
182 | <h1·id="allegro_pi">ALLEGRO_PI</h1> | 182 | <h1·id="allegro_pi">ALLEGRO_PI</h1> |
183 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_PI········</span><span·class="fl">3.14159265358979323846</span></span></code></pre></div> | 183 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_PI········</span><span·class="fl">3.14159265358979323846</span></span></code></pre></div> |
184 | <p><a | 184 | <p><a |
185 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L96">Source | 185 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L96">Source |
186 | Code</a></p> | 186 | Code</a></p> |
187 | <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π, | 187 | <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π, |
188 | but·you·can·use·this·one·instead.</p> | 188 | but·you·can·use·this·one·instead.</p> |
189 | <p>Examples:</p> | ||
190 | <ul> | ||
191 | <li><a | ||
192 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L31">ex_convert.c</a></li> | ||
193 | <li><a | ||
194 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L89">ex_opengl.c</a></li> | ||
195 | <li><a | ||
196 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L49">ex_blend_bench.c</a></li> | ||
197 | </ul> | ||
198 | <h1·id="al_run_main">al_run_main</h1> | 189 | <h1·id="al_run_main">al_run_main</h1> |
199 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_run_main<span·class="op">(</span><span·class="dt">int</span>·argc<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**</span>argv<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">(*</span>user_main<span·class="op">)(</span><span·class="dt">int</span><span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**))</span></span></code></pre></div> | 190 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_run_main<span·class="op">(</span><span·class="dt">int</span>·argc<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**</span>argv<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">(*</span>user_main<span·class="op">)(</span><span·class="dt">int</span><span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**))</span></span></code></pre></div> |
200 | <p><a | 191 | <p><a |
201 | href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L36">Source | 192 | href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L36">Source |
202 | Code</a></p> | 193 | Code</a></p> |
203 | <p>This·function·is·useful·in·cases·where·you·don’t·have·a·main() | 194 | <p>This·function·is·useful·in·cases·where·you·don’t·have·a·main() |
204 | function·but·want·to·run·Allegro·(mostly·useful·in·a·wrapper·library). | 195 | function·but·want·to·run·Allegro·(mostly·useful·in·a·wrapper·library). |
Offset 48, 22 lines modified | Offset 48, 18 lines modified | ||
48 | These·functions·are·declared·in·the·main·Allegro·header·file: | 48 | These·functions·are·declared·in·the·main·Allegro·header·file: |
49 | ·#include·<allegro5/allegro.h> | 49 | ·#include·<allegro5/allegro.h> |
50 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8I·*\x8**\x8**\x8**\x8**\x8**\x8* | 50 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8I·*\x8**\x8**\x8**\x8**\x8**\x8* |
51 | #define·ALLEGRO_PI········3.14159265358979323846 | 51 | #define·ALLEGRO_PI········3.14159265358979323846 |
52 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 52 | _\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 | 53 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but·you |
54 | can·use·this·one·instead. | 54 | can·use·this·one·instead. |
55 | Examples: | ||
56 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | ||
57 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
58 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
59 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_m\x8ma\x8ai\x8in\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 55 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_m\x8ma\x8ai\x8in\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
60 | int·al_run_main(int·argc,·char·**argv,·int·(*user_main)(int,·char·**)) | 56 | int·al_run_main(int·argc,·char·**argv,·int·(*user_main)(int,·char·**)) |
61 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 57 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
62 | This·function·is·useful·in·cases·where·you·don’t·have·a·main()·function·but | 58 | This·function·is·useful·in·cases·where·you·don’t·have·a·main()·function·but |
63 | want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and | 59 | want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and |
64 | Linux·this·is·no·problem·because·you·simply·can·call·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m.·But | 60 | Linux·this·is·no·problem·because·you·simply·can·call·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m.·But |
65 | some·other·system·(like·OSX)·don’t·allow·calling·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·in·the·main | 61 | some·other·system·(like·OSX)·don’t·allow·calling·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·in·the·main |
66 | thread.·al_run_main·will·know·what·to·do·in·that·case. | 62 | thread.·al_run_main·will·know·what·to·do·in·that·case. |
67 | The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and·the·return | 63 | The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and·the·return |
68 | value·of·user_main·will·be·returned. | 64 | value·of·user_main·will·be·returned. |
69 | Allegro·version·5.2.9·-·Last·updated:·202 | 65 | Allegro·version·5.2.9·-·Last·updated:·2025-04-22·06:34:53·UTC |
Offset 206, 23 lines modified | Offset 206, 14 lines modified | ||
206 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x1<span·class="op">;</span></span> | 206 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x1<span·class="op">;</span></span> |
207 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y1<span·class="op">;</span></span> | 207 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y1<span·class="op">;</span></span> |
208 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x2<span·class="op">;</span></span> | 208 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x2<span·class="op">;</span></span> |
209 | <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y2<span·class="op">;</span></span> | 209 | <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y2<span·class="op">;</span></span> |
210 | <span·id="cb3-7"><a·href="#cb3-7"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_MONITOR_INFO<span·class="op">;</span></span></code></pre></div> | 210 | <span·id="cb3-7"><a·href="#cb3-7"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_MONITOR_INFO<span·class="op">;</span></span></code></pre></div> |
211 | <p>See·also:·<a | 211 | <p>See·also:·<a |
212 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> | 212 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> |
213 | <p>Examples:</p> | ||
214 | <ul> | ||
215 | <li><a | ||
216 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L8">ex_monitorinfo.c</a></li> | ||
217 | <li><a | ||
218 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L16">ex_windows.c</a></li> | ||
219 | <li><a | ||
220 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drag_and_drop.c#L66">ex_drag_and_drop.c</a></li> | ||
221 | </ul> | ||
222 | <h1·id="al_get_new_display_adapter">al_get_new_display_adapter</h1> | 213 | <h1·id="al_get_new_display_adapter">al_get_new_display_adapter</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="dt">int</span>·al_get_new_display_adapter<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 214 | <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">int</span>·al_get_new_display_adapter<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
224 | <p><a | 215 | <p><a |
225 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L317">Source | 216 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L317">Source |
226 | Code</a></p> | 217 | Code</a></p> |
227 | <p>Gets·the·video·adapter·index·where·new·displays·will·be·created·by | 218 | <p>Gets·the·video·adapter·index·where·new·displays·will·be·created·by |
228 | the·calling·thread,·if·previously·set·with·<a | 219 | the·calling·thread,·if·previously·set·with·<a |
Offset 64, 18 lines modified | Offset 64, 14 lines modified | ||
64 | { | 64 | { |
65 | ···int·x1; | 65 | ···int·x1; |
66 | ···int·y1; | 66 | ···int·y1; |
67 | ···int·x2; | 67 | ···int·x2; |
68 | ···int·y2; | 68 | ···int·y2; |
69 | }·ALLEGRO_MONITOR_INFO; | 69 | }·ALLEGRO_MONITOR_INFO; |
70 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o | 70 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o |
71 | Examples: | ||
72 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
73 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c | ||
74 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c | ||
75 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_a\x8ad\x8da\x8ap\x8pt\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_a\x8ad\x8da\x8ap\x8pt\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
76 | int·al_get_new_display_adapter(void) | 72 | int·al_get_new_display_adapter(void) |
77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
78 | Gets·the·video·adapter·index·where·new·displays·will·be·created·by·the·calling | 74 | Gets·the·video·adapter·index·where·new·displays·will·be·created·by·the·calling |
79 | thread,·if·previously·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r.·Otherwise·returns | 75 | thread,·if·previously·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r.·Otherwise·returns |
80 | ALLEGRO_DEFAULT_DISPLAY_ADAPTER. | 76 | ALLEGRO_DEFAULT_DISPLAY_ADAPTER. |
81 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r | 77 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r |
Offset 249, 40 lines modified | Offset 249, 22 lines modified | ||
249 | <li><p>pressure·-·pressure,·ranging·from·<code>0.0</code>·to | 249 | <li><p>pressure·-·pressure,·ranging·from·<code>0.0</code>·to |
250 | <code>1.0</code></p></li> | 250 | <code>1.0</code></p></li> |
251 | </ul> | 251 | </ul> |
252 | <p>See·also:·<a | 252 | <p>See·also:·<a |
253 | href="mouse.html#al_get_mouse_state">al_get_mouse_state</a>,·<a | 253 | href="mouse.html#al_get_mouse_state">al_get_mouse_state</a>,·<a |
254 | href="mouse.html#al_get_mouse_state_axis">al_get_mouse_state_axis</a>, | 254 | href="mouse.html#al_get_mouse_state_axis">al_get_mouse_state_axis</a>, |
255 | <a·href="mouse.html#al_mouse_button_down">al_mouse_button_down</a></p> | 255 | <a·href="mouse.html#al_mouse_button_down">al_mouse_button_down</a></p> |
256 | <p>Examples:</p> | ||
257 | <ul> | ||
258 | <li><a | ||
259 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L4">ex_mouse_focus.c</a></li> | ||
260 | <li><a | ||
261 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L34">ex_mouse.c</a></li> | ||
262 | <li><a | ||
263 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L160">nihgui.cpp</a></li> | ||
264 | </ul> | ||
265 | <h1·id="al_install_mouse">al_install_mouse</h1> | 256 | <h1·id="al_install_mouse">al_install_mouse</h1> |
266 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_mouse<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 257 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_mouse<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
267 | <p><a | 258 | <p><a |
268 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L49">Source | 259 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L49">Source |
269 | Code</a></p> | 260 | Code</a></p> |
270 | <p>Install·a·mouse·driver.</p> | 261 | <p>Install·a·mouse·driver.</p> |
271 | <p>Returns·true·if·successful.·If·a·driver·was·already·installed, | 262 | <p>Returns·true·if·successful.·If·a·driver·was·already·installed, |
272 | nothing·happens·and·true·is·returned.</p> | 263 | nothing·happens·and·true·is·returned.</p> |
273 | <p>Examples:</p> | ||
274 | <ul> | ||
275 | <li><a | ||
276 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L41">ex_mouse_focus.c</a></li> | ||
277 | <li><a | ||
278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L46">ex_mouse.c</a></li> | ||
279 | <li><a | ||
280 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L101">ex_font_justify.cpp</a></li> | ||
281 | </ul> | ||
282 | <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1> | 264 | <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1> |
283 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_mouse_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 265 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_mouse_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
284 | <p><a | 266 | <p><a |
285 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L40">Source | 267 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L40">Source |
286 | Code</a></p> | 268 | Code</a></p> |
287 | <p>Returns·true·if·<a | 269 | <p>Returns·true·if·<a |
288 | href="mouse.html#al_install_mouse">al_install_mouse</a>·was·called | 270 | href="mouse.html#al_install_mouse">al_install_mouse</a>·was·called |
Offset 80, 28 lines modified | Offset 80, 20 lines modified | ||
80 | ····*·y·-·mouse·y·position | 80 | ····*·y·-·mouse·y·position |
81 | ····*·w,·z·-·mouse·wheel·position·(2D·‘ball’) | 81 | ····*·w,·z·-·mouse·wheel·position·(2D·‘ball’) |
82 | ····*·buttons·-·mouse·buttons·bitfield | 82 | ····*·buttons·-·mouse·buttons·bitfield |
83 | ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first | 83 | ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first |
84 | ······bit·is·set·if·the·secondary·mouse·button·is·held·down,·and·so·on. | 84 | ······bit·is·set·if·the·secondary·mouse·button·is·held·down,·and·so·on. |
85 | ····*·pressure·-·pressure,·ranging·from·0.0·to·1.0 | 85 | ····*·pressure·-·pressure,·ranging·from·0.0·to·1.0 |
86 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8a_\x8x_\x8i_\x8s,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n | 86 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8a_\x8x_\x8i_\x8s,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n |
87 | Examples: | ||
88 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
89 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | ||
90 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
91 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 87 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
92 | bool·al_install_mouse(void) | 88 | bool·al_install_mouse(void) |
93 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
94 | Install·a·mouse·driver. | 90 | Install·a·mouse·driver. |
95 | Returns·true·if·successful.·If·a·driver·was·already·installed,·nothing·happens | 91 | Returns·true·if·successful.·If·a·driver·was·already·installed,·nothing·happens |
96 | and·true·is·returned. | 92 | and·true·is·returned. |
97 | Examples: | ||
98 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
99 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | ||
100 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | ||
101 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 93 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
102 | bool·al_is_mouse_installed(void) | 94 | bool·al_is_mouse_installed(void) |
103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 95 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
104 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e·was·called·successfully. | 96 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e·was·called·successfully. |
105 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 97 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
106 | void·al_uninstall_mouse(void) | 98 | void·al_uninstall_mouse(void) |
107 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
Offset 267, 32 lines modified | Offset 267, 20 lines modified | ||
267 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><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></code></pre></div> | 269 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER<span·class="op">;</span></span></code></pre></div> |
270 | <p><a | 270 | <p><a |
271 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source | 271 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source |
272 | Code</a></p> | 272 | Code</a></p> |
273 | <p>Opaque·handle·to·a·native·file·dialog.</p> | 273 | <p>Opaque·handle·to·a·native·file·dialog.</p> |
274 | <p>Examples:</p> | ||
275 | <ul> | ||
276 | <li><a | ||
277 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L27">ex_native_filechooser.c</a></li> | ||
278 | </ul> | ||
279 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> | 274 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> |
280 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG<span·class="op">;</span></span></code></pre></div> | 275 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG<span·class="op">;</span></span></code></pre></div> |
281 | <p><a | 276 | <p><a |
282 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source | 277 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source |
283 | Code</a></p> | 278 | Code</a></p> |
284 | <p>Opaque·handle·to·a·text·log·window.</p> | 279 | <p>Opaque·handle·to·a·text·log·window.</p> |
285 | <p>Examples:</p> | ||
286 | <ul> | ||
287 | <li><a | ||
288 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L27">common.c</a></li> | ||
289 | <li><a | ||
290 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L32">ex_native_filechooser.c</a></li> | ||
291 | </ul> | ||
292 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> | 280 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> |
293 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 281 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
294 | <p><a | 282 | <p><a |
295 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L15">Source | 283 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L15">Source |
296 | Code</a></p> | 284 | Code</a></p> |
297 | <p>Initialise·the·native·dialog·addon.</p> | 285 | <p>Initialise·the·native·dialog·addon.</p> |
298 | <p>Returns·true·on·success,·false·on·error.</p> | 286 | <p>Returns·true·on·success,·false·on·error.</p> |
Offset 90, 39 lines modified | Offset 90, 30 lines modified | ||
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 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 95 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
96 | Opaque·handle·to·a·native·file·dialog. | 96 | Opaque·handle·to·a·native·file·dialog. |
97 | Examples: | ||
98 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
99 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TE\x8EX\x8XT\x8TL\x8LO\x8OG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8* | 97 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TE\x8EX\x8XT\x8TL\x8LO\x8OG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8* |
100 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | 98 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; |
101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
102 | Opaque·handle·to·a·text·log·window. | 100 | Opaque·handle·to·a·text·log·window. |
103 | Examples: | ||
104 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
105 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
106 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 101 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
107 | bool·al_init_native_dialog_addon(void) | 102 | bool·al_init_native_dialog_addon(void) |
108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
109 | Initialise·the·native·dialog·addon. | 104 | Initialise·the·native·dialog·addon. |
110 | Returns·true·on·success,·false·on·error. | 105 | Returns·true·on·success,·false·on·error. |
111 | Since:·5.0.9,·5.1.0 | 106 | 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 | 107 | ·····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 | 108 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future |
114 | ·····functionality·may·require·explicit·initialisation.·An·exception·is | 109 | ·····functionality·may·require·explicit·initialisation.·An·exception·is |
115 | ·····_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8__\x8b_\x8o_\x8x,·which·may·be·useful·to·show·an·error | 110 | ·····_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8__\x8b_\x8o_\x8x,·which·may·be·useful·to·show·an·error |
116 | ·····message·if·Allegro·fails·to·initialise. | 111 | ·····message·if·Allegro·fails·to·initialise. |
117 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 112 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
118 | Examples: | ||
119 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
120 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8m_\x8a_\x8x_\x8i_\x8m_\x8i_\x8z_\x8e_\x8d_\x8._\x8c | ||
121 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c | ||
122 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 113 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
123 | bool·al_is_native_dialog_addon_initialized(void) | 114 | bool·al_is_native_dialog_addon_initialized(void) |
124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
125 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns | 116 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns |
126 | false. | 117 | false. |
127 | Since:·5.2.6 | 118 | Since:·5.2.6 |
128 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 119 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 233, 21 lines modified | Offset 233, 14 lines modified | ||
233 | <p><em>Note:</em>·the·exact·extensions·exposed·depend·on·how·Allegro·was | 233 | <p><em>Note:</em>·the·exact·extensions·exposed·depend·on·how·Allegro·was |
234 | compiled.·It·is·recommended·to·use·<a | 234 | compiled.·It·is·recommended·to·use·<a |
235 | href="opengl.html#al_have_opengl_extension">al_have_opengl_extension</a> | 235 | href="opengl.html#al_have_opengl_extension">al_have_opengl_extension</a> |
236 | and·<a | 236 | and·<a |
237 | href="opengl.html#al_get_opengl_proc_address">al_get_opengl_proc_address</a> | 237 | href="opengl.html#al_get_opengl_proc_address">al_get_opengl_proc_address</a> |
238 | for·the·most·stable·experience.</p> | 238 | for·the·most·stable·experience.</p> |
239 | </blockquote> | 239 | </blockquote> |
240 | <p>Examples:</p> | ||
241 | <ul> | ||
242 | <li><a | ||
243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L52">ex_opengl.c</a></li> | ||
244 | <li><a | ||
245 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_glext.c#L245">ex_glext.c</a></li> | ||
246 | </ul> | ||
247 | <h1·id="al_get_opengl_proc_address">al_get_opengl_proc_address</h1> | 240 | <h1·id="al_get_opengl_proc_address">al_get_opengl_proc_address</h1> |
248 | <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>·<span·class="op">*</span>al_get_opengl_proc_address<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>name<span·class="op">)</span></span></code></pre></div> | 241 | <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>·<span·class="op">*</span>al_get_opengl_proc_address<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>name<span·class="op">)</span></span></code></pre></div> |
249 | <p><a | 242 | <p><a |
250 | href="https://github.com/liballeg/allegro5/blob/master/src/opengl/extensions.c#L578">Source | 243 | href="https://github.com/liballeg/allegro5/blob/master/src/opengl/extensions.c#L578">Source |
251 | Code</a></p> | 244 | Code</a></p> |
252 | <p>Helper·to·get·the·address·of·an·OpenGL·symbol</p> | 245 | <p>Helper·to·get·the·address·of·an·OpenGL·symbol</p> |
253 | <p>Example:</p> | 246 | <p>Example:</p> |
Offset 78, 17 lines modified | Offset 78, 14 lines modified | ||
78 | In·case·you·want·to·manually·check·for·extensions·and·load·function·pointers | 78 | In·case·you·want·to·manually·check·for·extensions·and·load·function·pointers |
79 | yourself·(say,·in·case·the·Allegro·developers·did·not·include·it·yet),·you·can | 79 | yourself·(say,·in·case·the·Allegro·developers·did·not·include·it·yet),·you·can |
80 | use·the·_\x8a_\x8l_\x8__\x8h_\x8a_\x8v_\x8e_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8r_\x8o_\x8c_\x8__\x8a_\x8d_\x8d_\x8r_\x8e_\x8s_\x8s·functions | 80 | use·the·_\x8a_\x8l_\x8__\x8h_\x8a_\x8v_\x8e_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8r_\x8o_\x8c_\x8__\x8a_\x8d_\x8d_\x8r_\x8e_\x8s_\x8s·functions |
81 | instead. | 81 | instead. |
82 | ·····N\x8No\x8ot\x8te\x8e:\x8:·the·exact·extensions·exposed·depend·on·how·Allegro·was | 82 | ·····N\x8No\x8ot\x8te\x8e:\x8:·the·exact·extensions·exposed·depend·on·how·Allegro·was |
83 | ·····compiled.·It·is·recommended·to·use·_\x8a_\x8l_\x8__\x8h_\x8a_\x8v_\x8e_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n·and | 83 | ·····compiled.·It·is·recommended·to·use·_\x8a_\x8l_\x8__\x8h_\x8a_\x8v_\x8e_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n·and |
84 | ·····_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8r_\x8o_\x8c_\x8__\x8a_\x8d_\x8d_\x8r_\x8e_\x8s_\x8s·for·the·most·stable·experience. | 84 | ·····_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8r_\x8o_\x8c_\x8__\x8a_\x8d_\x8d_\x8r_\x8e_\x8s_\x8s·for·the·most·stable·experience. |
85 | Examples: | ||
86 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
87 | ····*·_\x8e_\x8x_\x8__\x8g_\x8l_\x8e_\x8x_\x8t_\x8._\x8c | ||
88 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8op\x8pe\x8en\x8ng\x8gl\x8l_\x8_p\x8pr\x8ro\x8oc\x8c_\x8_a\x8ad\x8dd\x8dr\x8re\x8es\x8ss\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 85 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8op\x8pe\x8en\x8ng\x8gl\x8l_\x8_p\x8pr\x8ro\x8oc\x8c_\x8_a\x8ad\x8dd\x8dr\x8re\x8es\x8ss\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
89 | void·*al_get_opengl_proc_address(const·char·*name) | 86 | void·*al_get_opengl_proc_address(const·char·*name) |
90 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
91 | Helper·to·get·the·address·of·an·OpenGL·symbol | 88 | Helper·to·get·the·address·of·an·OpenGL·symbol |
92 | Example: | 89 | Example: |
93 | How·to·get·the·function·g\x8gl\x8lM\x8Mu\x8ul\x8lt\x8ti\x8iT\x8Te\x8ex\x8xC\x8Co\x8oo\x8or\x8rd\x8d3\x83f\x8fA\x8AR\x8RB\x8B·that·comes·with·ARB’s·Multitexture | 90 | How·to·get·the·function·g\x8gl\x8lM\x8Mu\x8ul\x8lt\x8ti\x8iT\x8Te\x8ex\x8xC\x8Co\x8oo\x8or\x8rd\x8d3\x83f\x8fA\x8AR\x8RB\x8B·that·comes·with·ARB’s·Multitexture |
94 | extension: | 91 | extension: |
Offset 240, 23 lines modified | Offset 240, 14 lines modified | ||
240 | followed·by·a·directory·separator·and·is·neither·“.”·nor·“..”,·is | 240 | followed·by·a·directory·separator·and·is·neither·“.”·nor·“..”,·is |
241 | treated·as·the·last·directory·name·in·the·path.·Otherwise·the·last | 241 | treated·as·the·last·directory·name·in·the·path.·Otherwise·the·last |
242 | component·is·treated·as·the·filename.·The·string·may·be·NULL·for·an | 242 | component·is·treated·as·the·filename.·The·string·may·be·NULL·for·an |
243 | empty·path.</p> | 243 | empty·path.</p> |
244 | <p>See·also:·<a | 244 | <p>See·also:·<a |
245 | href="path.html#al_create_path_for_directory">al_create_path_for_directory</a>, | 245 | href="path.html#al_create_path_for_directory">al_create_path_for_directory</a>, |
246 | <a·href="path.html#al_destroy_path">al_destroy_path</a></p> | 246 | <a·href="path.html#al_destroy_path">al_destroy_path</a></p> |
247 | <p>Examples:</p> | ||
248 | <ul> | ||
249 | <li><a | ||
250 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L18">ex_path.c</a></li> | ||
251 | <li><a | ||
252 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L35">ex_path_test.c</a></li> | ||
253 | <li><a | ||
254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L187">ex_audio_chain.cpp</a></li> | ||
255 | </ul> | ||
256 | <h1·id="al_create_path_for_directory">al_create_path_for_directory</h1> | 247 | <h1·id="al_create_path_for_directory">al_create_path_for_directory</h1> |
257 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_create_path_for_directory<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>str<span·class="op">)</span></span></code></pre></div> | 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>ALLEGRO_PATH·<span·class="op">*</span>al_create_path_for_directory<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>str<span·class="op">)</span></span></code></pre></div> |
258 | <p><a | 249 | <p><a |
259 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L188">Source | 250 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L188">Source |
260 | Code</a></p> | 251 | Code</a></p> |
261 | <p>This·is·the·same·as·<a | 252 | <p>This·is·the·same·as·<a |
262 | href="path.html#al_create_path">al_create_path</a>,·but·interprets·the | 253 | href="path.html#al_create_path">al_create_path</a>,·but·interprets·the |
Offset 79, 228 lines modified | Offset 79, 170 lines modified | ||
79 | ALLEGRO_PATH·*al_create_path(const·char·*str) | 79 | ALLEGRO_PATH·*al_create_path(const·char·*str) |
80 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 80 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
81 | Create·a·path·structure·from·a·string.·The·last·component,·if·it·is·followed·by | 81 | Create·a·path·structure·from·a·string.·The·last·component,·if·it·is·followed·by |
82 | a·directory·separator·and·is·neither·“.”·nor·“..”,·is·treated·as·the·last | 82 | a·directory·separator·and·is·neither·“.”·nor·“..”,·is·treated·as·the·last |
83 | directory·name·in·the·path.·Otherwise·the·last·component·is·treated·as·the | 83 | directory·name·in·the·path.·Otherwise·the·last·component·is·treated·as·the |
84 | filename.·The·string·may·be·NULL·for·an·empty·path. | 84 | filename.·The·string·may·be·NULL·for·an·empty·path. |
85 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h | 85 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h |
86 | Examples: | ||
87 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
88 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
89 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
90 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fo\x8or\x8r_\x8_d\x8di\x8ir\x8re\x8ec\x8ct\x8to\x8or\x8ry\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* | 86 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fo\x8or\x8r_\x8_d\x8di\x8ir\x8re\x8ec\x8ct\x8to\x8or\x8ry\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* |
91 | ALLEGRO_PATH·*al_create_path_for_directory(const·char·*str) | 87 | ALLEGRO_PATH·*al_create_path_for_directory(const·char·*str) |
92 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
93 | This·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·but·interprets·the·passed·string·as·a | 89 | This·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·but·interprets·the·passed·string·as·a |
94 | directory·path.·The·filename·component·of·the·returned·path·will·always·be | 90 | directory·path.·The·filename·component·of·the·returned·path·will·always·be |
95 | empty. | 91 | empty. |
96 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h | 92 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h |
97 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* | 93 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* |
98 | void·al_destroy_path(ALLEGRO_PATH·*path) | 94 | void·al_destroy_path(ALLEGRO_PATH·*path) |
99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 95 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
100 | Free·a·path·structure.·Does·nothing·if·passed·NULL. | 96 | Free·a·path·structure.·Does·nothing·if·passed·NULL. |
101 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y | 97 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y |
102 | Examples: | ||
103 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
104 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
105 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
106 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8on\x8ne\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* | 98 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8on\x8ne\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* |
107 | ALLEGRO_PATH·*al_clone_path(const·ALLEGRO_PATH·*path) | 99 | ALLEGRO_PATH·*al_clone_path(const·ALLEGRO_PATH·*path) |
108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 100 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
109 | Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure. | 101 | Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure. |
110 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h | 102 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h |
111 | Examples: | ||
112 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
113 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
114 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_j\x8jo\x8oi\x8in\x8n_\x8_p\x8pa\x8at\x8th\x8hs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_j\x8jo\x8oi\x8in\x8n_\x8_p\x8pa\x8at\x8th\x8hs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
115 | bool·al_join_paths(ALLEGRO_PATH·*path,·const·ALLEGRO_PATH·*tail) | 104 | bool·al_join_paths(ALLEGRO_PATH·*path,·const·ALLEGRO_PATH·*tail) |
116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
117 | Concatenate·two·path·structures.·The·first·path·structure·is·modified.·If | 106 | Concatenate·two·path·structures.·The·first·path·structure·is·modified.·If |
118 | ‘tail’·is·an·absolute·path,·this·function·does·nothing. | 107 | ‘tail’·is·an·absolute·path,·this·function·does·nothing. |
119 | If·‘tail’·is·a·relative·path,·all·of·its·directory·components·will·be·appended | 108 | If·‘tail’·is·a·relative·path,·all·of·its·directory·components·will·be·appended |
120 | to·‘path’.·tail’s·filename·will·also·overwrite·path’s·filename,·even·if·it·is | 109 | to·‘path’.·tail’s·filename·will·also·overwrite·path’s·filename,·even·if·it·is |
121 | just·the·empty·string. | 110 | just·the·empty·string. |
122 | Tail’s·drive·is·ignored. | 111 | Tail’s·drive·is·ignored. |
123 | Returns·true·if·‘tail’·was·a·relative·path·and·so·concatenated·to·‘path’, | 112 | Returns·true·if·‘tail’·was·a·relative·path·and·so·concatenated·to·‘path’, |
124 | otherwise·returns·false. | 113 | otherwise·returns·false. |
125 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8b_\x8a_\x8s_\x8e_\x8__\x8p_\x8a_\x8t_\x8h | 114 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8b_\x8a_\x8s_\x8e_\x8__\x8p_\x8a_\x8t_\x8h |
126 | Examples: | ||
127 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
128 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eb\x8ba\x8as\x8se\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* | 115 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eb\x8ba\x8as\x8se\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* |
129 | bool·al_rebase_path(const·ALLEGRO_PATH·*head,·ALLEGRO_PATH·*tail) | 116 | bool·al_rebase_path(const·ALLEGRO_PATH·*head,·ALLEGRO_PATH·*tail) |
130 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 117 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
131 | Concatenate·two·path·structures,·modifying·the·second·path·structure.·If·t\x8ta\x8ai\x8il\x8l | 118 | Concatenate·two·path·structures,·modifying·the·second·path·structure.·If·t\x8ta\x8ai\x8il\x8l |
132 | is·an·absolute·path,·this·function·does·nothing.·Otherwise,·the·drive·and·path | 119 | is·an·absolute·path,·this·function·does·nothing.·Otherwise,·the·drive·and·path |
133 | components·in·h\x8he\x8ea\x8ad\x8d·are·inserted·at·the·start·of·t\x8ta\x8ai\x8il\x8l. | 120 | components·in·h\x8he\x8ea\x8ad\x8d·are·inserted·at·the·start·of·t\x8ta\x8ai\x8il\x8l. |
134 | For·example,·if·h\x8he\x8ea\x8ad\x8d·is·“/anchor/”·and·t\x8ta\x8ai\x8il\x8l·is·“data/file.ext”,·then·after·the | 121 | For·example,·if·h\x8he\x8ea\x8ad\x8d·is·“/anchor/”·and·t\x8ta\x8ai\x8il\x8l·is·“data/file.ext”,·then·after·the |
135 | call·t\x8ta\x8ai\x8il\x8l·becomes·“/anchor/data/file.ext”. | 122 | call·t\x8ta\x8ai\x8il\x8l·becomes·“/anchor/data/file.ext”. |
136 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8p_\x8a_\x8t_\x8h_\x8s | 123 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8p_\x8a_\x8t_\x8h_\x8s |
137 | Examples: | ||
138 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
139 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
140 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_d\x8dr\x8ri\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 124 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_d\x8dr\x8ri\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
141 | const·char·*al_get_path_drive(const·ALLEGRO_PATH·*path) | 125 | const·char·*al_get_path_drive(const·ALLEGRO_PATH·*path) |
142 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
143 | Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is·none. | 127 | Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is·none. |
144 | The·“drive·letter”·is·only·used·on·Windows,·and·is·usually·a·string·like·“c:”, | 128 | The·“drive·letter”·is·only·used·on·Windows,·and·is·usually·a·string·like·“c:”, |
145 | but·may·be·something·like·“\\Computer·Name”·in·the·case·of·UNC·(Uniform·Naming | 129 | but·may·be·something·like·“\\Computer·Name”·in·the·case·of·UNC·(Uniform·Naming |
146 | Convention)·syntax. | 130 | Convention)·syntax. |
147 | Examples: | ||
148 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
149 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
150 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_n\x8nu\x8um\x8m_\x8_c\x8co\x8om\x8mp\x8po\x8on\x8ne\x8en\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 131 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_n\x8nu\x8um\x8m_\x8_c\x8co\x8om\x8mp\x8po\x8on\x8ne\x8en\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
151 | int·al_get_path_num_components(const·ALLEGRO_PATH·*path) | 132 | int·al_get_path_num_components(const·ALLEGRO_PATH·*path) |
152 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 133 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
153 | Return·the·number·of·directory·components·in·a·path. | 134 | Return·the·number·of·directory·components·in·a·path. |
154 | The·directory·components·do·not·include·the·final·part·of·a·path·(the | 135 | The·directory·components·do·not·include·the·final·part·of·a·path·(the |
155 | filename). | 136 | filename). |
156 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t | 137 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t |
157 | Examples: | ||
158 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
159 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
160 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_c\x8co\x8om\x8mp\x8po\x8on\x8ne\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 138 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_c\x8co\x8om\x8mp\x8po\x8on\x8ne\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
161 | const·char·*al_get_path_component(const·ALLEGRO_PATH·*path,·int·i) | 139 | const·char·*al_get_path_component(const·ALLEGRO_PATH·*path,·int·i) |
162 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 140 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
163 | Return·the·i’th·directory·component·of·a·path,·counting·from·zero.·If·the·index | 141 | Return·the·i’th·directory·component·of·a·path,·counting·from·zero.·If·the·index |
164 | is·negative·then·count·from·the·right,·i.e. -1·refers·to·the·last·path | 142 | is·negative·then·count·from·the·right,·i.e. -1·refers·to·the·last·path |
165 | component.·It·is·an·error·to·pass·an·index·which·is·out·of·bounds. | 143 | component.·It·is·an·error·to·pass·an·index·which·is·out·of·bounds. |
166 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8n_\x8u_\x8m_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l | 144 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8n_\x8u_\x8m_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l |
167 | Examples: | ||
168 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
169 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
170 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
171 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 145 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
172 | const·char·*al_get_path_tail(const·ALLEGRO_PATH·*path) | 146 | const·char·*al_get_path_tail(const·ALLEGRO_PATH·*path) |
173 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 147 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
174 | Returns·the·last·directory·component,·or·NULL·if·there·are·no·directory | 148 | Returns·the·last·directory·component,·or·NULL·if·there·are·no·directory |
175 | components. | 149 | components. |
176 | Examples: | ||
177 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
178 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fi\x8il\x8le\x8en\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 150 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fi\x8il\x8le\x8en\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
179 | const·char·*al_get_path_filename(const·ALLEGRO_PATH·*path) | 151 | const·char·*al_get_path_filename(const·ALLEGRO_PATH·*path) |
180 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 152 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
181 | Return·the·filename·part·of·the·path,·or·the·empty·string·if·there·is·none. | 153 | Return·the·filename·part·of·the·path,·or·the·empty·string·if·there·is·none. |
182 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is | 154 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is |
183 | modified·in·any·way,·or·until·the·path·is·destroyed. | 155 | modified·in·any·way,·or·until·the·path·is·destroyed. |
184 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8b_\x8a_\x8s_\x8e_\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t | 156 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8b_\x8a_\x8s_\x8e_\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t |
185 | Examples: | ||
186 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
187 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
188 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_b\x8ba\x8as\x8se\x8en\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 157 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_b\x8ba\x8as\x8se\x8en\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
189 | const·char·*al_get_path_basename(const·ALLEGRO_PATH·*path) | 158 | const·char·*al_get_path_basename(const·ALLEGRO_PATH·*path) |
190 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 159 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
191 | Return·the·basename,·i.e. filename·with·the·extension·removed.·If·the·filename | 160 | Return·the·basename,·i.e. filename·with·the·extension·removed.·If·the·filename |
192 | doesn’t·have·an·extension,·the·whole·filename·is·the·basename.·If·there·is·no | 161 | doesn’t·have·an·extension,·the·whole·filename·is·the·basename.·If·there·is·no |
193 | filename·part·then·the·empty·string·is·returned. | 162 | filename·part·then·the·empty·string·is·returned. |
194 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is | 163 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is |
195 | modified·in·any·way,·or·until·the·path·is·destroyed. | 164 | modified·in·any·way,·or·until·the·path·is·destroyed. |
196 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8i_\x8l_\x8e_\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n | 165 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8i_\x8l_\x8e_\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n |
197 | Examples: | ||
198 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
199 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 166 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
200 | const·char·*al_get_path_extension(const·ALLEGRO_PATH·*path) | 167 | const·char·*al_get_path_extension(const·ALLEGRO_PATH·*path) |
201 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 168 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
202 | Return·a·pointer·to·the·start·of·the·extension·of·the·filename,·i.e. everything | 169 | Return·a·pointer·to·the·start·of·the·extension·of·the·filename,·i.e. everything |
203 | from·the·final·dot·(‘.’)·character·onwards.·If·no·dot·exists,·returns·an·empty | 170 | from·the·final·dot·(‘.’)·character·onwards.·If·no·dot·exists,·returns·an·empty |
204 | string. | 171 | string. |
205 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is | 172 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is |
Max diff block lines reached; 6857/14448 bytes (47.46%) of diff not shown. |
Offset 224, 27 lines modified | Offset 224, 22 lines modified | ||
224 | <blockquote> | 224 | <blockquote> |
225 | <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and | 225 | <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and |
226 | writing,·which·means·that·Windows-style·newlines·will·not·be | 226 | writing,·which·means·that·Windows-style·newlines·will·not·be |
227 | preserved.</p> | 227 | preserved.</p> |
228 | </blockquote> | 228 | </blockquote> |
229 | <p>See·also:·<a | 229 | <p>See·also:·<a |
230 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> | 230 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> |
231 | <p>Examples:</p> | ||
232 | <ul> | ||
233 | <li><a | ||
234 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L149">ex_physfs.c</a></li> | ||
235 | </ul> | ||
236 | <h1 | 231 | <h1 |
237 | id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> | 232 | id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> |
238 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 233 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
239 | <p><a | 234 | <p><a |
240 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source | 235 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source |
241 | Code</a></p> | 236 | Code</a></p> |
242 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 237 | <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> | 238 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
244 | <p·class="timestamp"> | 239 | <p·class="timestamp"> |
245 | Allegro·version·5.2.9 | 240 | Allegro·version·5.2.9 |
246 | ·-·Last·updated:·202 | 241 | ·-·Last·updated:·2025-04-22·06:34:57·UTC |
247 | </p> | 242 | </p> |
248 | </div> | 243 | </div> |
249 | </body> | 244 | </body> |
250 | </html> | 245 | </html> |
Offset 70, 15 lines modified | Offset 70, 13 lines modified | ||
70 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e. | 70 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e. |
71 | ·····N\x8No\x8ot\x8te\x8e:\x8:·due·to·an·oversight,·this·function·differs·from | 71 | ·····N\x8No\x8ot\x8te\x8e:\x8:·due·to·an·oversight,·this·function·differs·from |
72 | ·····_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e·and·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e·which | 72 | ·····_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e·and·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e·which |
73 | ·····only·alter·the·current·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E. | 73 | ·····only·alter·the·current·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E. |
74 | ·····N\x8No\x8ot\x8te\x8e:\x8:·PhysFS·does·not·support·the·text-mode·reading·and·writing, | 74 | ·····N\x8No\x8ot\x8te\x8e:\x8:·PhysFS·does·not·support·the·text-mode·reading·and·writing, |
75 | ·····which·means·that·Windows-style·newlines·will·not·be·preserved. | 75 | ·····which·means·that·Windows-style·newlines·will·not·be·preserved. |
76 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e. | 76 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e. |
77 | Examples: | ||
78 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c | ||
79 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_p\x8ph\x8hy\x8ys\x8sf\x8fs\x8s_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 77 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_p\x8ph\x8hy\x8ys\x8sf\x8fs\x8s_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
80 | uint32_t·al_get_allegro_physfs_version(void) | 78 | uint32_t·al_get_allegro_physfs_version(void) |
81 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
82 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 80 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
83 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 81 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
84 | Allegro·version·5.2.9·-·Last·updated:·202 | 82 | Allegro·version·5.2.9·-·Last·updated:·2025-04-22·06:34:57·UTC |
Offset 224, 19 lines modified | Offset 224, 14 lines modified | ||
224 | <h2·id="al_get_win_window_handle">al_get_win_window_handle</h2> | 224 | <h2·id="al_get_win_window_handle">al_get_win_window_handle</h2> |
225 | <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>HWND·al_get_win_window_handle<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 225 | <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>HWND·al_get_win_window_handle<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
226 | <p><a | 226 | <p><a |
227 | href="https://github.com/liballeg/allegro5/blob/master/src/win/wwindow.c#L1460">Source | 227 | href="https://github.com/liballeg/allegro5/blob/master/src/win/wwindow.c#L1460">Source |
228 | Code</a></p> | 228 | Code</a></p> |
229 | <p>Returns·the·handle·to·the·window·that·the·passed·display·is | 229 | <p>Returns·the·handle·to·the·window·that·the·passed·display·is |
230 | using.</p> | 230 | using.</p> |
231 | <p>Examples:</p> | ||
232 | <ul> | ||
233 | <li><a | ||
234 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ogre3d.cpp#L115">ex_ogre3d.cpp</a></li> | ||
235 | </ul> | ||
236 | <h2·id="al_win_add_window_callback">al_win_add_window_callback</h2> | 231 | <h2·id="al_win_add_window_callback">al_win_add_window_callback</h2> |
237 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_win_add_window_callback<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span></span> | 232 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_win_add_window_callback<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span></span> |
238 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">bool</span>·<span·class="op">(*</span>callback<span·class="op">)(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·UINT·message<span·class="op">,</span>·WPARAM·wparam<span·class="op">,</span></span> | 233 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">bool</span>·<span·class="op">(*</span>callback<span·class="op">)(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·UINT·message<span·class="op">,</span>·WPARAM·wparam<span·class="op">,</span></span> |
239 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>···LPARAM·lparam<span·class="op">,</span>·LRESULT·<span·class="op">*</span>result<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>userdata<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>userdata<span·class="op">)</span></span></code></pre></div> | 234 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>···LPARAM·lparam<span·class="op">,</span>·LRESULT·<span·class="op">*</span>result<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>userdata<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>userdata<span·class="op">)</span></span></code></pre></div> |
240 | <p><a | 235 | <p><a |
241 | href="https://github.com/liballeg/allegro5/blob/master/src/win/wwindow.c#L1502">Source | 236 | href="https://github.com/liballeg/allegro5/blob/master/src/win/wwindow.c#L1502">Source |
242 | Code</a></p> | 237 | Code</a></p> |
Offset 65, 16 lines modified | Offset 65, 14 lines modified | ||
65 | *\x8**\x8**\x8**\x8**\x8**\x8*·W\x8Wi\x8in\x8nd\x8do\x8ow\x8ws\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 65 | *\x8**\x8**\x8**\x8**\x8**\x8*·W\x8Wi\x8in\x8nd\x8do\x8ow\x8ws\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
66 | These·functions·are·declared·in·the·following·header·file: | 66 | These·functions·are·declared·in·the·following·header·file: |
67 | ·#include·<allegro5/allegro_windows.h> | 67 | ·#include·<allegro5/allegro_windows.h> |
68 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_w\x8wi\x8in\x8n_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_h\x8ha\x8an\x8nd\x8dl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 68 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_w\x8wi\x8in\x8n_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_h\x8ha\x8an\x8nd\x8dl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
69 | HWND·al_get_win_window_handle(ALLEGRO_DISPLAY·*display) | 69 | HWND·al_get_win_window_handle(ALLEGRO_DISPLAY·*display) |
70 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 70 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
71 | Returns·the·handle·to·the·window·that·the·passed·display·is·using. | 71 | Returns·the·handle·to·the·window·that·the·passed·display·is·using. |
72 | Examples: | ||
73 | ····*·_\x8e_\x8x_\x8__\x8o_\x8g_\x8r_\x8e_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
74 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_w\x8wi\x8in\x8n_\x8_a\x8ad\x8dd\x8d_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_c\x8ca\x8al\x8ll\x8lb\x8ba\x8ac\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8* | 72 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_w\x8wi\x8in\x8n_\x8_a\x8ad\x8dd\x8d_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_c\x8ca\x8al\x8ll\x8lb\x8ba\x8ac\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8* |
75 | bool·al_win_add_window_callback(ALLEGRO_DISPLAY·*display, | 73 | bool·al_win_add_window_callback(ALLEGRO_DISPLAY·*display, |
76 | ···bool·(*callback)(ALLEGRO_DISPLAY·*display,·UINT·message,·WPARAM·wparam, | 74 | ···bool·(*callback)(ALLEGRO_DISPLAY·*display,·UINT·message,·WPARAM·wparam, |
77 | ···LPARAM·lparam,·LRESULT·*result,·void·*userdata),·void·*userdata) | 75 | ···LPARAM·lparam,·LRESULT·*result,·void·*userdata),·void·*userdata) |
78 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 76 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
79 | The·specified·callback·function·will·intercept·the·window’s·message·before | 77 | The·specified·callback·function·will·intercept·the·window’s·message·before |
80 | Allegro·processes·it.·If·the·callback·function·consumes·the·event,·then·it | 78 | Allegro·processes·it.·If·the·callback·function·consumes·the·event,·then·it |
Offset 343, 23 lines modified | Offset 343, 14 lines modified | ||
343 | <p><a | 343 | <p><a |
344 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L48">Source | 344 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L48">Source |
345 | Code</a></p> | 345 | Code</a></p> |
346 | <p>Initializes·the·primitives·addon.</p> | 346 | <p>Initializes·the·primitives·addon.</p> |
347 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> | 347 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> |
348 | <p>See·also:·<a | 348 | <p>See·also:·<a |
349 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> | 349 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> |
350 | <p>Examples:</p> | ||
351 | <ul> | ||
352 | <li><a | ||
353 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L55">ex_touch_input.c</a></li> | ||
354 | <li><a | ||
355 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L154">ex_blend_bench.c</a></li> | ||
356 | <li><a | ||
357 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_client.c#L157">ex_enet_client.c</a></li> | ||
358 | </ul> | ||
359 | <h2 | 350 | <h2 |
360 | id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2> | 351 | id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2> |
361 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_primitives_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 352 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_primitives_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
362 | <p><a | 353 | <p><a |
363 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source | 354 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source |
364 | Code</a></p> | 355 | Code</a></p> |
365 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise | 356 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise |
Offset 123, 18 lines modified | Offset 123, 14 lines modified | ||
123 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 123 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
124 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 124 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
125 | bool·al_init_primitives_addon(void) | 125 | bool·al_init_primitives_addon(void) |
126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
127 | Initializes·the·primitives·addon. | 127 | Initializes·the·primitives·addon. |
128 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·True·on·success,·false·on·failure. | 128 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·True·on·success,·false·on·failure. |
129 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 129 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
130 | Examples: | ||
131 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | ||
132 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
133 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
134 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* | 130 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* |
135 | bool·al_is_primitives_addon_initialized(void) | 131 | bool·al_is_primitives_addon_initialized(void) |
136 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
137 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. | 133 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. |
138 | Since:·5.2.6 | 134 | 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 | 135 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
140 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 136 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
Offset 229, 23 lines modified | Offset 229, 14 lines modified | ||
229 | <em>program</em>·which·has·one·or·more·<em>shaders</em>·attached.·This | 229 | <em>program</em>·which·has·one·or·more·<em>shaders</em>·attached.·This |
230 | can·be·confusing.)</p> | 230 | can·be·confusing.)</p> |
231 | <p>The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be | 231 | <p>The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be |
232 | provided·either·as·GLSL·or·HLSL,·depending·on·the·value·of·<a | 232 | provided·either·as·GLSL·or·HLSL,·depending·on·the·value·of·<a |
233 | href="shader.html#allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</a> | 233 | href="shader.html#allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</a> |
234 | used·when·creating·it.</p> | 234 | used·when·creating·it.</p> |
235 | <p>Since:·5.1.0</p> | 235 | <p>Since:·5.1.0</p> |
236 | <p>Examples:</p> | ||
237 | <ul> | ||
238 | <li><a | ||
239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L39">ex_shader.cpp</a></li> | ||
240 | <li><a | ||
241 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L22">ex_shader_target.c</a></li> | ||
242 | <li><a | ||
243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L60">ex_prim_shader.c</a></li> | ||
244 | </ul> | ||
245 | <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1> | 236 | <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1> |
246 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE<span·class="op">;</span></span></code></pre></div> | 237 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE<span·class="op">;</span></span></code></pre></div> |
247 | <p><a | 238 | <p><a |
248 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source | 239 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source |
249 | Code</a></p> | 240 | Code</a></p> |
250 | <p>Used·with·<a | 241 | <p>Used·with·<a |
251 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a> | 242 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a> |
Offset 71, 18 lines modified | Offset 71, 14 lines modified | ||
71 | An·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex | 71 | An·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex |
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 | 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 | which·has·one·or·more·s\x8sh\x8ha\x8ad\x8de\x8er\x8rs\x8s·attached.·This·can·be·confusing.) | 73 | which·has·one·or·more·s\x8sh\x8ha\x8ad\x8de\x8er\x8rs\x8s·attached.·This·can·be·confusing.) |
74 | The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be·provided | 74 | 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 | 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 | when·creating·it. | 76 | when·creating·it. |
77 | Since:·5.1.0 | 77 | Since:·5.1.0 |
78 | Examples: | ||
79 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
80 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
81 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
82 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 78 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
83 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | 79 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; |
84 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 80 | _\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 | 81 | Used·with·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·and·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e·to·specify |
86 | how·to·interpret·the·attached·source. | 82 | how·to·interpret·the·attached·source. |
87 | ··ALLEGRO_VERTEX_SHADER | 83 | ··ALLEGRO_VERTEX_SHADER |
88 | ······A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program | 84 | ······A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program |
Offset 218, 23 lines modified | Offset 218, 14 lines modified | ||
218 | All·other·global·state·is·per-thread,·so·if·your·application·has | 218 | All·other·global·state·is·per-thread,·so·if·your·application·has |
219 | multiple·separate·threads·they·never·will·interfere·with·each·other. | 219 | multiple·separate·threads·they·never·will·interfere·with·each·other. |
220 | (Except·if·there·are·objects·accessed·by·multiple·threads·of·course. | 220 | (Except·if·there·are·objects·accessed·by·multiple·threads·of·course. |
221 | Usually·you·want·to·minimize·that·though·and·for·the·remaining·cases·use | 221 | Usually·you·want·to·minimize·that·though·and·for·the·remaining·cases·use |
222 | synchronization·primitives·described·in·the·threads·section·or·events | 222 | synchronization·primitives·described·in·the·threads·section·or·events |
223 | described·in·the·events·section·to·control·inter-thread | 223 | described·in·the·events·section·to·control·inter-thread |
224 | communication.)</p> | 224 | communication.)</p> |
225 | <p>Examples:</p> | ||
226 | <ul> | ||
227 | <li><a | ||
228 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L65">ex_blend_bench.c</a></li> | ||
229 | <li><a | ||
230 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L298">ex_blend2.cpp</a></li> | ||
231 | <li><a | ||
232 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L24">nihgui.cpp</a></li> | ||
233 | </ul> | ||
234 | <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1> | 225 | <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1> |
235 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</span></code></pre></div> | 226 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</span></code></pre></div> |
236 | <p><a | 227 | <p><a |
237 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source | 228 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source |
238 | Code</a></p> | 229 | Code</a></p> |
239 | <p>Flags·which·can·be·passed·to·<a | 230 | <p>Flags·which·can·be·passed·to·<a |
240 | href="state.html#al_store_state">al_store_state</a>/<a | 231 | href="state.html#al_store_state">al_store_state</a>/<a |
Offset 76, 33 lines modified | Offset 76, 25 lines modified | ||
76 | In·general,·the·only·real·global·state·is·the·active·system·driver.·All·other | 76 | In·general,·the·only·real·global·state·is·the·active·system·driver.·All·other |
77 | global·state·is·per-thread,·so·if·your·application·has·multiple·separate | 77 | global·state·is·per-thread,·so·if·your·application·has·multiple·separate |
78 | threads·they·never·will·interfere·with·each·other.·(Except·if·there·are·objects | 78 | threads·they·never·will·interfere·with·each·other.·(Except·if·there·are·objects |
79 | accessed·by·multiple·threads·of·course.·Usually·you·want·to·minimize·that | 79 | accessed·by·multiple·threads·of·course.·Usually·you·want·to·minimize·that |
80 | though·and·for·the·remaining·cases·use·synchronization·primitives·described·in | 80 | though·and·for·the·remaining·cases·use·synchronization·primitives·described·in |
81 | the·threads·section·or·events·described·in·the·events·section·to·control·inter- | 81 | the·threads·section·or·events·described·in·the·events·section·to·control·inter- |
82 | thread·communication.) | 82 | thread·communication.) |
83 | Examples: | ||
84 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
85 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x82_\x8._\x8c_\x8p_\x8p | ||
86 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
87 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E_\x8_F\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 83 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E_\x8_F\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
88 | typedef·enum·ALLEGRO_STATE_FLAGS | 84 | typedef·enum·ALLEGRO_STATE_FLAGS |
89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 85 | _\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 | 86 | Flags·which·can·be·passed·to·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e/_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·as·bit |
91 | combinations.·See·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·for·the·list·of·flags. | 87 | combinations.·See·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·for·the·list·of·flags. |
92 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 88 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
93 | void·al_restore_state(ALLEGRO_STATE·const·*state) | 89 | void·al_restore_state(ALLEGRO_STATE·const·*state) |
94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 90 | _\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 | 91 | 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 |
96 | object. | 92 | object. |
97 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E_\x8__\x8F_\x8L_\x8A_\x8G_\x8S | 93 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E_\x8__\x8F_\x8L_\x8A_\x8G_\x8S |
98 | Examples: | ||
99 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
100 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x82_\x8._\x8c_\x8p_\x8p | ||
101 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
102 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\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_s\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
103 | void·al_store_state(ALLEGRO_STATE·*state,·int·flags) | 95 | void·al_store_state(ALLEGRO_STATE·*state,·int·flags) |
104 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
105 | Stores·part·of·the·state·of·the·current·thread·in·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 97 | Stores·part·of·the·state·of·the·current·thread·in·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
106 | object.·The·flags·parameter·can·take·any·bit-combination·of·these·flags: | 98 | object.·The·flags·parameter·can·take·any·bit-combination·of·these·flags: |
107 | ····*·ALLEGRO_STATE_NEW_DISPLAY_PARAMETERS·-·new_display_format, | 99 | ····*·ALLEGRO_STATE_NEW_DISPLAY_PARAMETERS·-·new_display_format, |
108 | ······new_display_refresh_rate,·new_display_flags | 100 | ······new_display_refresh_rate,·new_display_flags |
Offset 248, 54 lines modified | Offset 248, 31 lines modified | ||
248 | game·binary.·In·particular,·do·not·call·it·inside·a·shared·library | 248 | game·binary.·In·particular,·do·not·call·it·inside·a·shared·library |
249 | unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to·call | 249 | unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to·call |
250 | al_install_system·either·with·a·<code>NULL</code>·atexit_ptr,·or·with·a | 250 | al_install_system·either·with·a·<code>NULL</code>·atexit_ptr,·or·with·a |
251 | pointer·to·atexit·provided·by·the·user·of·this·shared·library.</p> | 251 | pointer·to·atexit·provided·by·the·user·of·this·shared·library.</p> |
252 | </blockquote> | 252 | </blockquote> |
253 | <p>See·also:·<a | 253 | <p>See·also:·<a |
254 | href="system.html#al_install_system">al_install_system</a></p> | 254 | href="system.html#al_install_system">al_install_system</a></p> |
255 | <p>Examples:</p> | ||
256 | <ul> | ||
257 | <li><a | ||
258 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_devices.c#L16">ex_audio_devices.c</a></li> | ||
259 | <li><a | ||
260 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L30">ex_get_path.c</a></li> | ||
261 | <li><a | ||
262 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L15">ex_monitorinfo.c</a></li> | ||
263 | </ul> | ||
264 | <h1·id="al_uninstall_system">al_uninstall_system</h1> | 255 | <h1·id="al_uninstall_system">al_uninstall_system</h1> |
265 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_system<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 256 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_system<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
266 | <p><a | 257 | <p><a |
267 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L315">Source | 258 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L315">Source |
268 | Code</a></p> | 259 | Code</a></p> |
269 | <p>Closes·down·the·Allegro·system.</p> | 260 | <p>Closes·down·the·Allegro·system.</p> |
270 | <blockquote> | 261 | <blockquote> |
271 | <p>Note:·al_uninstall_system()·can·be·called·without·a·corresponding·<a | 262 | <p>Note:·al_uninstall_system()·can·be·called·without·a·corresponding·<a |
272 | href="system.html#al_install_system">al_install_system</a>·call, | 263 | href="system.html#al_install_system">al_install_system</a>·call, |
273 | e.g. from·atexit().</p> | 264 | e.g. from·atexit().</p> |
274 | </blockquote> | 265 | </blockquote> |
275 | <p>Examples:</p> | ||
276 | <ul> | ||
277 | <li><a | ||
278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L128">ex_opengl_pixel_shader.c</a></li> | ||
279 | <li><a | ||
280 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_icon2.c#L85">ex_icon2.c</a></li> | ||
281 | <li><a | ||
282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_icon.c#L74">ex_icon.c</a></li> | ||
283 | </ul> | ||
284 | <h1·id="al_is_system_installed">al_is_system_installed</h1> | 266 | <h1·id="al_is_system_installed">al_is_system_installed</h1> |
285 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_system_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 267 | <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_system_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
286 | <p><a | 268 | <p><a |
287 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L345">Source | 269 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L345">Source |
288 | Code</a></p> | 270 | Code</a></p> |
289 | <p>Returns·true·if·Allegro·is·initialized,·otherwise·returns·false.</p> | 271 | <p>Returns·true·if·Allegro·is·initialized,·otherwise·returns·false.</p> |
290 | <p>Examples:</p> | ||
291 | <ul> | ||
292 | <li><a | ||
293 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L40">common.c</a></li> | ||
294 | </ul> | ||
295 | <h1·id="al_get_allegro_version">al_get_allegro_version</h1> | 272 | <h1·id="al_get_allegro_version">al_get_allegro_version</h1> |
296 | <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">uint32_t</span>·al_get_allegro_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 273 | <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">uint32_t</span>·al_get_allegro_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
297 | <p><a | 274 | <p><a |
298 | href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L27">Source | 275 | href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L27">Source |
299 | Code</a></p> | 276 | Code</a></p> |
300 | <p>Returns·the·(compiled)·version·of·the·Allegro·library,·packed·into·a | 277 | <p>Returns·the·(compiled)·version·of·the·Allegro·library,·packed·into·a |
301 | single·integer·as·groups·of·8·bits·in·the·form | 278 | single·integer·as·groups·of·8·bits·in·the·form |
Offset 90, 34 lines modified | Offset 90, 24 lines modified | ||
90 | atexit·function·visible·in·the·current·binary. | 90 | atexit·function·visible·in·the·current·binary. |
91 | ·····Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final | 91 | ·····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 | 92 | ·····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 | 93 | ·····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 | 94 | ·····call·al_install_system·either·with·a·NULL·atexit_ptr,·or·with·a |
95 | ·····pointer·to·atexit·provided·by·the·user·of·this·shared·library. | 95 | ·····pointer·to·atexit·provided·by·the·user·of·this·shared·library. |
96 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m | 96 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m |
97 | Examples: | ||
98 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8d_\x8e_\x8v_\x8i_\x8c_\x8e_\x8s_\x8._\x8c | ||
99 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
100 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
101 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 97 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
102 | void·al_uninstall_system(void) | 98 | void·al_uninstall_system(void) |
103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
104 | Closes·down·the·Allegro·system. | 100 | Closes·down·the·Allegro·system. |
105 | ·····Note:·al_uninstall_system()·can·be·called·without·a·corresponding | 101 | ·····Note:·al_uninstall_system()·can·be·called·without·a·corresponding |
106 | ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·call,·e.g. from·atexit(). | 102 | ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·call,·e.g. from·atexit(). |
107 | Examples: | ||
108 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
109 | ····*·_\x8e_\x8x_\x8__\x8i_\x8c_\x8o_\x8n_\x82_\x8._\x8c | ||
110 | ····*·_\x8e_\x8x_\x8__\x8i_\x8c_\x8o_\x8n_\x8._\x8c | ||
111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
112 | bool·al_is_system_installed(void) | 104 | bool·al_is_system_installed(void) |
113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
114 | Returns·true·if·Allegro·is·initialized,·otherwise·returns·false. | 106 | Returns·true·if·Allegro·is·initialized,·otherwise·returns·false. |
115 | Examples: | ||
116 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
117 | *\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\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 107 | *\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\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
118 | uint32_t·al_get_allegro_version(void) | 108 | uint32_t·al_get_allegro_version(void) |
119 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 109 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
120 | Returns·the·(compiled)·version·of·the·Allegro·library,·packed·into·a·single | 110 | Returns·the·(compiled)·version·of·the·Allegro·library,·packed·into·a·single |
121 | integer·as·groups·of·8·bits·in·the·form·(major·<<·24)·|·(minor·<<·16)·| | 111 | integer·as·groups·of·8·bits·in·the·form·(major·<<·24)·|·(minor·<<·16)·| |
122 | (revision·<<·8)·|·release. | 112 | (revision·<<·8)·|·release. |
123 | You·can·use·code·like·this·to·extract·them: | 113 | You·can·use·code·like·this·to·extract·them: |
Offset 228, 69 lines modified | Offset 228, 39 lines modified | ||
228 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><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></code></pre></div> | 230 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD<span·class="op">;</span></span></code></pre></div> |
231 | <p><a | 231 | <p><a |
232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source | 232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source |
233 | Code</a></p> | 233 | Code</a></p> |
234 | <p>An·opaque·structure·representing·a·thread.</p> | 234 | <p>An·opaque·structure·representing·a·thread.</p> |
235 | <p>Examples:</p> | ||
236 | <ul> | ||
237 | <li><a | ||
238 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L97">ex_threads.c</a></li> | ||
239 | <li><a | ||
240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L150">ex_threads2.c</a></li> | ||
241 | <li><a | ||
242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L16">ex_loading_thread.c</a></li> | ||
243 | </ul> | ||
244 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> | 235 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> |
245 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX<span·class="op">;</span></span></code></pre></div> | 236 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX<span·class="op">;</span></span></code></pre></div> |
246 | <p><a | 237 | <p><a |
247 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source | 238 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source |
248 | Code</a></p> | 239 | Code</a></p> |
249 | <p>An·opaque·structure·representing·a·mutex.</p> | 240 | <p>An·opaque·structure·representing·a·mutex.</p> |
250 | <p>Examples:</p> | ||
251 | <ul> | ||
252 | <li><a | ||
253 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L27">ex_threads2.c</a></li> | ||
254 | <li><a | ||
255 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L14">ex_loading_thread.c</a></li> | ||
256 | </ul> | ||
257 | <h1·id="allegro_cond">ALLEGRO_COND</h1> | 241 | <h1·id="allegro_cond">ALLEGRO_COND</h1> |
258 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND<span·class="op">;</span></span></code></pre></div> | 242 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND<span·class="op">;</span></span></code></pre></div> |
259 | <p><a | 243 | <p><a |
260 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source | 244 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source |
261 | Code</a></p> | 245 | Code</a></p> |
262 | <p>An·opaque·structure·representing·a·condition·variable.</p> | 246 | <p>An·opaque·structure·representing·a·condition·variable.</p> |
263 | <p>Examples:</p> | ||
264 | <ul> | ||
265 | <li><a | ||
266 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L28">ex_threads2.c</a></li> | ||
267 | </ul> | ||
268 | <h1·id="al_create_thread">al_create_thread</h1> | 247 | <h1·id="al_create_thread">al_create_thread</h1> |
269 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread<span·class="op">(</span></span> | 248 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread<span·class="op">(</span></span> |
270 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">)</span></span></code></pre></div> | 249 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">)</span></span></code></pre></div> |
271 | <p><a | 250 | <p><a |
272 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L115">Source | 251 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L115">Source |
273 | Code</a></p> | 252 | Code</a></p> |
274 | <p>Spawn·a·new·thread·which·begins·executing·<code>proc</code>.·The·new | 253 | <p>Spawn·a·new·thread·which·begins·executing·<code>proc</code>.·The·new |
275 | thread·is·passed·its·own·thread·handle·and·the·value | 254 | thread·is·passed·its·own·thread·handle·and·the·value |
276 | <code>arg</code>.</p> | 255 | <code>arg</code>.</p> |
277 | <p>Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL | 256 | <p>Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL |
278 | if·there·was·an·error.</p> | 257 | if·there·was·an·error.</p> |
279 | <p>See·also:·<a·href="threads.html#al_start_thread">al_start_thread</a>, | 258 | <p>See·also:·<a·href="threads.html#al_start_thread">al_start_thread</a>, |
280 | <a·href="threads.html#al_join_thread">al_join_thread</a>.</p> | 259 | <a·href="threads.html#al_join_thread">al_join_thread</a>.</p> |
281 | <p>Examples:</p> | ||
282 | <ul> | ||
283 | <li><a | ||
284 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L233">ex_threads.c</a></li> | ||
285 | <li><a | ||
286 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L313">ex_threads2.c</a></li> | ||
287 | <li><a | ||
288 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L158">ex_loading_thread.c</a></li> | ||
289 | </ul> | ||
290 | <h1 | 260 | <h1 |
291 | id="al_create_thread_with_stacksize">al_create_thread_with_stacksize</h1> | 261 | id="al_create_thread_with_stacksize">al_create_thread_with_stacksize</h1> |
292 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread_with_stacksize<span·class="op">(</span></span> | 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>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread_with_stacksize<span·class="op">(</span></span> |
293 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">,</span>·<span·class="dt">size_t</span>·stacksize<span·class="op">)</span></span></code></pre></div> | 263 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">,</span>·<span·class="dt">size_t</span>·stacksize<span·class="op">)</span></span></code></pre></div> |
294 | <p><a | 264 | <p><a |
295 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source | 265 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source |
296 | Code</a></p> | 266 | Code</a></p> |
Offset 74, 44 lines modified | Offset 74, 31 lines modified | ||
74 | cases. | 74 | cases. |
75 | These·functions·are·declared·in·the·main·Allegro·header·file: | 75 | These·functions·are·declared·in·the·main·Allegro·header·file: |
76 | ·#include·<allegro5/allegro.h> | 76 | ·#include·<allegro5/allegro.h> |
77 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TH\x8HR\x8RE\x8EA\x8AD\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* | 77 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TH\x8HR\x8RE\x8EA\x8AD\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* |
78 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | 78 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; |
79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
80 | An·opaque·structure·representing·a·thread. | 80 | An·opaque·structure·representing·a·thread. |
81 | Examples: | ||
82 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | ||
83 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
84 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
85 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MU\x8UT\x8TE\x8EX\x8X·*\x8**\x8**\x8**\x8**\x8**\x8* | 81 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MU\x8UT\x8TE\x8EX\x8X·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | 82 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; |
87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
88 | An·opaque·structure·representing·a·mutex. | 84 | An·opaque·structure·representing·a·mutex. |
89 | Examples: | ||
90 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
91 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
92 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8ND\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* | 85 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8ND\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* |
93 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | 86 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; |
94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
95 | An·opaque·structure·representing·a·condition·variable. | 88 | An·opaque·structure·representing·a·condition·variable. |
96 | Examples: | ||
97 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
98 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 89 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
99 | ALLEGRO_THREAD·*al_create_thread( | 90 | ALLEGRO_THREAD·*al_create_thread( |
100 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) | 91 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) |
101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 92 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
102 | Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its | 93 | Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its |
103 | own·thread·handle·and·the·value·arg. | 94 | own·thread·handle·and·the·value·arg. |
104 | Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL·if·there | 95 | Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL·if·there |
105 | was·an·error. | 96 | was·an·error. |
106 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. | 97 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. |
107 | Examples: | ||
108 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | ||
109 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
110 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_w\x8wi\x8it\x8th\x8h_\x8_s\x8st\x8ta\x8ac\x8ck\x8ks\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 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_w\x8wi\x8it\x8th\x8h_\x8_s\x8st\x8ta\x8ac\x8ck\x8ks\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
112 | ALLEGRO_THREAD·*al_create_thread_with_stacksize( | 99 | ALLEGRO_THREAD·*al_create_thread_with_stacksize( |
113 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t | 100 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t |
114 | stacksize) | 101 | stacksize) |
115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 102 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
116 | Spawn·a·new·thread·with·the·give·stacksize·in·bytes·which·begins·executing | 103 | Spawn·a·new·thread·with·the·give·stacksize·in·bytes·which·begins·executing |
117 | proc.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·arg. | 104 | proc.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·arg. |
Offset 187, 75 lines modified | Offset 187, 47 lines modified | ||
187 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT<span·class="op">;</span></span></code></pre></div> | 187 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT<span·class="op">;</span></span></code></pre></div> |
188 | <p><a | 188 | <p><a |
189 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/altime.h#L12">Source | 189 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/altime.h#L12">Source |
190 | Code</a></p> | 190 | Code</a></p> |
191 | <p>Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it | 191 | <p>Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it |
192 | can·be·statically·allocated.·The·contents·are·private.</p> | 192 | can·be·statically·allocated.·The·contents·are·private.</p> |
193 | <p>See·also:·<a·href="time.html#al_init_timeout">al_init_timeout</a></p> | 193 | <p>See·also:·<a·href="time.html#al_init_timeout">al_init_timeout</a></p> |
194 | <p>Examples:</p> | ||
195 | <ul> | ||
196 | <li><a | ||
197 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L79">ex_timedwait.c</a></li> | ||
198 | </ul> | ||
199 | <h1·id="al_get_time">al_get_time</h1> | 194 | <h1·id="al_get_time">al_get_time</h1> |
200 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_time<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 195 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">double</span>·al_get_time<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
201 | <p><a | 196 | <p><a |
202 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L503">Source | 197 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L503">Source |
203 | Code</a></p> | 198 | Code</a></p> |
204 | <p>Return·the·number·of·seconds·since·the·Allegro·library·was | 199 | <p>Return·the·number·of·seconds·since·the·Allegro·library·was |
205 | initialised.·The·return·value·is·undefined·if·Allegro·is·uninitialised. | 200 | initialised.·The·return·value·is·undefined·if·Allegro·is·uninitialised. |
206 | The·resolution·depends·on·the·used·driver,·but·typically·can·be·in·the | 201 | The·resolution·depends·on·the·used·driver,·but·typically·can·be·in·the |
207 | order·of·microseconds.</p> | 202 | order·of·microseconds.</p> |
208 | <p>Examples:</p> | ||
209 | <ul> | ||
210 | <li><a | ||
211 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L40">ex_convert.c</a></li> | ||
212 | <li><a | ||
213 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L81">ex_d3d.cpp</a></li> | ||
214 | <li><a | ||
215 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L215">ex_enet_server.c</a></li> | ||
216 | </ul> | ||
217 | <h1·id="al_init_timeout">al_init_timeout</h1> | 203 | <h1·id="al_init_timeout">al_init_timeout</h1> |
218 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_init_timeout<span·class="op">(</span>ALLEGRO_TIMEOUT·<span·class="op">*</span>timeout<span·class="op">,</span>·<span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> | 204 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_init_timeout<span·class="op">(</span>ALLEGRO_TIMEOUT·<span·class="op">*</span>timeout<span·class="op">,</span>·<span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> |
219 | <p><a | 205 | <p><a |
220 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L526">Source | 206 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L526">Source |
221 | Code</a></p> | 207 | Code</a></p> |
222 | <p>Set·timeout·value·of·some·number·of·seconds·after·the·function | 208 | <p>Set·timeout·value·of·some·number·of·seconds·after·the·function |
223 | call.</p> | 209 | call.</p> |
224 | <p>For·compatibility·with·all·platforms,·<code>seconds</code>·must·be | 210 | <p>For·compatibility·with·all·platforms,·<code>seconds</code>·must·be |
225 | 2,147,483.647·seconds·or·less.</p> | 211 | 2,147,483.647·seconds·or·less.</p> |
226 | <p>See·also:·<a·href="time.html#allegro_timeout">ALLEGRO_TIMEOUT</a>,·<a | 212 | <p>See·also:·<a·href="time.html#allegro_timeout">ALLEGRO_TIMEOUT</a>,·<a |
227 | href="events.html#al_wait_for_event_until">al_wait_for_event_until</a></p> | 213 | href="events.html#al_wait_for_event_until">al_wait_for_event_until</a></p> |
228 | <p>Examples:</p> | ||
229 | <ul> | ||
230 | <li><a | ||
231 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L85">ex_timedwait.c</a></li> | ||
232 | </ul> | ||
233 | <h1·id="al_rest">al_rest</h1> | 214 | <h1·id="al_rest">al_rest</h1> |
234 | <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_rest<span·class="op">(</span><span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> | 215 | <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_rest<span·class="op">(</span><span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> |
235 | <p><a | 216 | <p><a |
236 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L515">Source | 217 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L515">Source |
237 | Code</a></p> | 218 | Code</a></p> |
238 | <p>Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to | 219 | <p>Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to |
239 | pause·the·current·thread·for·the·given·amount·of·time.·With·some | 220 | pause·the·current·thread·for·the·given·amount·of·time.·With·some |
240 | operating·systems,·the·accuracy·can·be·in·the·order·of·10ms.·That·is, | 221 | operating·systems,·the·accuracy·can·be·in·the·order·of·10ms.·That·is, |
241 | even</p> | 222 | even</p> |
242 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>al_rest<span·class="op">(</span><span·class="dv">0</span><span·class="er">.000001</span><span·class="op">)</span></span></code></pre></div> | 223 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>al_rest<span·class="op">(</span><span·class="dv">0</span><span·class="er">.000001</span><span·class="op">)</span></span></code></pre></div> |
243 | <p>might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer | 224 | <p>might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer |
244 | routines·for·easier·ways·to·time·your·program·without·using·up·all | 225 | routines·for·easier·ways·to·time·your·program·without·using·up·all |
245 | CPU.</p> | 226 | CPU.</p> |
246 | <p>Examples:</p> | ||
247 | <ul> | ||
248 | <li><a | ||
249 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L68">ex_keyboard_focus.c</a></li> | ||
250 | <li><a | ||
251 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L45">ex_timer_pause.c</a></li> | ||
252 | <li><a | ||
253 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L92">ex_mouse_focus.c</a></li> | ||
254 | </ul> | ||
255 | <p·class="timestamp"> | 227 | <p·class="timestamp"> |
256 | Allegro·version·5.2.9 | 228 | Allegro·version·5.2.9 |
257 | ·-·Last·updated:·202 | 229 | ·-·Last·updated:·2025-04-22·06:34:53·UTC |
258 | </p> | 230 | </p> |
259 | </div> | 231 | </div> |
260 | </body> | 232 | </body> |
261 | </html> | 233 | </html> |
Offset 51, 42 lines modified | Offset 51, 30 lines modified | ||
51 | ·#include·<allegro5/allegro.h> | 51 | ·#include·<allegro5/allegro.h> |
52 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8EO\x8OU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 52 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8EO\x8OU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
53 | typedef·struct·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT; | 53 | typedef·struct·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT; |
54 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 54 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
55 | Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it·can·be | 55 | Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it·can·be |
56 | statically·allocated.·The·contents·are·private. | 56 | statically·allocated.·The·contents·are·private. |
57 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8o_\x8u_\x8t | 57 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8o_\x8u_\x8t |
58 | Examples: | ||
59 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | ||
60 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
61 | double·al_get_time(void) | 59 | double·al_get_time(void) |
62 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 60 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
63 | Return·the·number·of·seconds·since·the·Allegro·library·was·initialised.·The | 61 | Return·the·number·of·seconds·since·the·Allegro·library·was·initialised.·The |
64 | return·value·is·undefined·if·Allegro·is·uninitialised.·The·resolution·depends | 62 | return·value·is·undefined·if·Allegro·is·uninitialised.·The·resolution·depends |
65 | on·the·used·driver,·but·typically·can·be·in·the·order·of·microseconds. | 63 | on·the·used·driver,·but·typically·can·be·in·the·order·of·microseconds. |
66 | Examples: | ||
67 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | ||
68 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
69 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
70 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_t\x8ti\x8im\x8me\x8eo\x8ou\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 64 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_t\x8ti\x8im\x8me\x8eo\x8ou\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
71 | void·al_init_timeout(ALLEGRO_TIMEOUT·*timeout,·double·seconds) | 65 | void·al_init_timeout(ALLEGRO_TIMEOUT·*timeout,·double·seconds) |
72 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 66 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
73 | Set·timeout·value·of·some·number·of·seconds·after·the·function·call. | 67 | Set·timeout·value·of·some·number·of·seconds·after·the·function·call. |
74 | For·compatibility·with·all·platforms,·seconds·must·be·2,147,483.647·seconds·or | 68 | For·compatibility·with·all·platforms,·seconds·must·be·2,147,483.647·seconds·or |
75 | less. | 69 | less. |
76 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8I_\x8M_\x8E_\x8O_\x8U_\x8T,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l | 70 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8I_\x8M_\x8E_\x8O_\x8U_\x8T,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l |
77 | Examples: | ||
78 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | ||
79 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
80 | void·al_rest(double·seconds) | 72 | void·al_rest(double·seconds) |
81 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
82 | Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the | 74 | Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the |
83 | current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the | 75 | current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the |
84 | accuracy·can·be·in·the·order·of·10ms.·That·is,·even | 76 | accuracy·can·be·in·the·order·of·10ms.·That·is,·even |
85 | al_rest(0.000001) | 77 | al_rest(0.000001) |
86 | might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for | 78 | might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for |
87 | easier·ways·to·time·your·program·without·using·up·all·CPU. | 79 | easier·ways·to·time·your·program·without·using·up·all·CPU. |
88 | Examples: | ||
89 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
90 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
91 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
92 | Allegro·version·5.2.9·-·Last·updated:·202 | 80 | Allegro·version·5.2.9·-·Last·updated:·2025-04-22·06:34:53·UTC |
Offset 213, 23 lines modified | Offset 213, 14 lines modified | ||
213 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><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></code></pre></div> | 215 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER<span·class="op">;</span></span></code></pre></div> |
216 | <p><a | 216 | <p><a |
217 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source | 217 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source |
218 | Code</a></p> | 218 | Code</a></p> |
219 | <p>This·is·an·abstract·data·type·representing·a·timer·object.</p> | 219 | <p>This·is·an·abstract·data·type·representing·a·timer·object.</p> |
220 | <p>Examples:</p> | ||
221 | <ul> | ||
222 | <li><a | ||
223 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L188">ex_enet_server.c</a></li> | ||
224 | <li><a | ||
225 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L22">ex_timer_pause.c</a></li> | ||
226 | <li><a | ||
227 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L46">ex_user_events.c</a></li> | ||
228 | </ul> | ||
229 | <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1> | 220 | <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1> |
230 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_USECS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">······</span><span·class="op">((</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="fl">1000000.0</span><span·class="op">)</span></span></code></pre></div> | 221 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_USECS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">······</span><span·class="op">((</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="fl">1000000.0</span><span·class="op">)</span></span></code></pre></div> |
231 | <p><a | 222 | <p><a |
232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source | 223 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source |
233 | Code</a></p> | 224 | Code</a></p> |
234 | <p>Convert·microseconds·to·seconds.</p> | 225 | <p>Convert·microseconds·to·seconds.</p> |
235 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> | 226 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> |
Offset 62, 115 lines modified | Offset 62, 87 lines modified | ||
62 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\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 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 67 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
68 | This·is·an·abstract·data·type·representing·a·timer·object. | 68 | This·is·an·abstract·data·type·representing·a·timer·object. |
69 | Examples: | ||
70 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
71 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
72 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
73 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 69 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
74 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | 70 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) |
75 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 71 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
76 | Convert·microseconds·to·seconds. | 72 | Convert·microseconds·to·seconds. |
77 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MS\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 73 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MS\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
78 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | 74 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) |
79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 75 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
80 | Convert·milliseconds·to·seconds. | 76 | Convert·milliseconds·to·seconds. |
81 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 77 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
82 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | 78 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) |
83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
84 | Convert·beats·per·second·to·seconds. | 80 | Convert·beats·per·second·to·seconds. |
85 | Examples: | ||
86 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | ||
87 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PM\x8M_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 81 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PM\x8M_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
88 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | 82 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) |
89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
90 | Convert·beats·per·minute·to·seconds. | 84 | Convert·beats·per·minute·to·seconds. |
91 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 85 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
92 | ALLEGRO_TIMER·*al_create_timer(double·speed_secs) | 86 | ALLEGRO_TIMER·*al_create_timer(double·speed_secs) |
93 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\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 | 88 | 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 | 89 | object·is·returned,·otherwise·NULL·is·returned.·s\x8sp\x8pe\x8ee\x8ed\x8d_\x8_s\x8se\x8ec\x8cs\x8s·is·in·seconds·per |
96 | “tick”,·and·must·be·positive.·The·new·timer·is·initially·stopped·and·needs·to | 90 | “tick”,·and·must·be·positive.·The·new·timer·is·initially·stopped·and·needs·to |
97 | be·started·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r·before·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8I_\x8M_\x8E_\x8R·events·are·sent. | 91 | be·started·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r·before·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8I_\x8M_\x8E_\x8R·events·are·sent. |
98 | Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but·with·some | 92 | Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but·with·some |
99 | drivers·might·only·be·milliseconds. | 93 | drivers·might·only·be·milliseconds. |
100 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 94 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
101 | Examples: | ||
102 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
103 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
104 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
105 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 95 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
106 | void·al_start_timer(ALLEGRO_TIMER·*timer) | 96 | void·al_start_timer(ALLEGRO_TIMER·*timer) |
107 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 97 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
108 | Start·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a | 98 | Start·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a |
109 | constant·rate,·and·it·will·begin·generating·events.·Starting·a·timer·that·is | 99 | constant·rate,·and·it·will·begin·generating·events.·Starting·a·timer·that·is |
110 | already·started·does·nothing.·Starting·a·timer·that·was·stopped·will·reset·the | 100 | already·started·does·nothing.·Starting·a·timer·that·was·stopped·will·reset·the |
111 | timer’s·counter,·effectively·restarting·the·timer·from·the·beginning. | 101 | timer’s·counter,·effectively·restarting·the·timer·from·the·beginning. |
112 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 102 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
113 | Examples: | ||
114 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
115 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
116 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
117 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
118 | void·al_resume_timer(ALLEGRO_TIMER·*timer) | 104 | void·al_resume_timer(ALLEGRO_TIMER·*timer) |
119 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
120 | Resume·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a | 106 | Resume·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a |
121 | constant·rate,·and·it·will·begin·generating·events.·Resuming·a·timer·that·is | 107 | constant·rate,·and·it·will·begin·generating·events.·Resuming·a·timer·that·is |
122 | already·started·does·nothing.·Resuming·a·stopped·timer·will·not·reset·the | 108 | already·started·does·nothing.·Resuming·a·stopped·timer·will·not·reset·the |
123 | timer’s·counter·(unlike·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r). | 109 | timer’s·counter·(unlike·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r). |
124 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d | 110 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d |
125 | Examples: | ||
126 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
127 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
128 | void·al_stop_timer(ALLEGRO_TIMER·*timer) | 112 | void·al_stop_timer(ALLEGRO_TIMER·*timer) |
129 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
130 | Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing·and·it | 114 | Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing·and·it |
131 | will·stop·generating·events.·Stopping·a·timer·that·is·already·stopped·does | 115 | will·stop·generating·events.·Stopping·a·timer·that·is·already·stopped·does |
132 | nothing. | 116 | nothing. |
133 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 117 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
134 | Examples: | ||
135 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
136 | ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c | ||
137 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x82_\x8._\x8c | ||
138 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_s\x8st\x8ta\x8ar\x8rt\x8te\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 118 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_s\x8st\x8ta\x8ar\x8rt\x8te\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
139 | bool·al_get_timer_started(const·ALLEGRO_TIMER·*timer) | 119 | bool·al_get_timer_started(const·ALLEGRO_TIMER·*timer) |
140 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 120 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
141 | Return·true·if·the·timer·specified·is·currently·started. | 121 | Return·true·if·the·timer·specified·is·currently·started. |
142 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 122 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
143 | void·al_destroy_timer(ALLEGRO_TIMER·*timer) | 123 | void·al_destroy_timer(ALLEGRO_TIMER·*timer) |
144 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
145 | Uninstall·the·timer·specified.·If·the·timer·is·started,·it·will·automatically | 125 | Uninstall·the·timer·specified.·If·the·timer·is·started,·it·will·automatically |
146 | be·stopped·before·uninstallation.·It·will·also·automatically·unregister·the | 126 | be·stopped·before·uninstallation.·It·will·also·automatically·unregister·the |
147 | timer·with·any·event·queues. | 127 | timer·with·any·event·queues. |
148 | Does·nothing·if·passed·the·NULL·pointer. | 128 | Does·nothing·if·passed·the·NULL·pointer. |
149 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 129 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
150 | Examples: | ||
151 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
152 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
153 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8f_\x8r_\x8a_\x8m_\x8e_\x8._\x8c | ||
154 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 130 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
155 | int64_t·al_get_timer_count(const·ALLEGRO_TIMER·*timer) | 131 | int64_t·al_get_timer_count(const·ALLEGRO_TIMER·*timer) |
156 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
157 | Return·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped. | 133 | Return·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped. |
158 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t | 134 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t |
159 | Examples: | ||
160 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c | ||
161 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 135 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
162 | void·al_set_timer_count(ALLEGRO_TIMER·*timer,·int64_t·new_count) | 136 | void·al_set_timer_count(ALLEGRO_TIMER·*timer,·int64_t·new_count) |
163 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
164 | Set·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped.·The·count | 138 | Set·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped.·The·count |
165 | value·may·be·positive·or·negative,·but·will·always·be·incremented·by·+1·at·each | 139 | value·may·be·positive·or·negative,·but·will·always·be·incremented·by·+1·at·each |
166 | tick. | 140 | tick. |
167 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8a_\x8d_\x8d_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t | 141 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8a_\x8d_\x8d_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t |
168 | Examples: | ||
169 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
170 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8ad\x8dd\x8d_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 142 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8ad\x8dd\x8d_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
171 | void·al_add_timer_count(ALLEGRO_TIMER·*timer,·int64_t·diff) | 143 | void·al_add_timer_count(ALLEGRO_TIMER·*timer,·int64_t·diff) |
172 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 144 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
173 | Add·d\x8di\x8if\x8ff\x8f·to·the·timer’s·counter·value.·This·is·similar·to·writing: | 145 | Add·d\x8di\x8if\x8ff\x8f·to·the·timer’s·counter·value.·This·is·similar·to·writing: |
174 | al_set_timer_count(timer,·al_get_timer_count(timer)·+·diff); | 146 | al_set_timer_count(timer,·al_get_timer_count(timer)·+·diff); |
175 | except·that·the·addition·is·performed·atomically,·so·no·ticks·will·be·lost. | 147 | except·that·the·addition·is·performed·atomically,·so·no·ticks·will·be·lost. |
176 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t | 148 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t |
Offset 294, 23 lines modified | Offset 294, 14 lines modified | ||
294 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L43">Source | 294 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L43">Source |
295 | Code</a></p> | 295 | Code</a></p> |
296 | <p>Install·a·touch·input·driver,·returning·true·if·successful.·If·a | 296 | <p>Install·a·touch·input·driver,·returning·true·if·successful.·If·a |
297 | touch·input·driver·was·already·installed,·returns·true·immediately.</p> | 297 | touch·input·driver·was·already·installed,·returns·true·immediately.</p> |
298 | <p>Since:·5.1.0</p> | 298 | <p>Since:·5.1.0</p> |
299 | <p>See·also:·<a | 299 | <p>See·also:·<a |
300 | href="touch.html#al_uninstall_touch_input">al_uninstall_touch_input</a></p> | 300 | href="touch.html#al_uninstall_touch_input">al_uninstall_touch_input</a></p> |
301 | <p>Examples:</p> | ||
302 | <ul> | ||
303 | <li><a | ||
304 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L18">common.c</a></li> | ||
305 | <li><a | ||
306 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L56">ex_touch_input.c</a></li> | ||
307 | <li><a | ||
308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L165">ex_lockbitmap.c</a></li> | ||
309 | </ul> | ||
310 | <h1·id="al_uninstall_touch_input">al_uninstall_touch_input</h1> | 301 | <h1·id="al_uninstall_touch_input">al_uninstall_touch_input</h1> |
311 | <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_uninstall_touch_input<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 302 | <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_uninstall_touch_input<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
312 | <p><a | 303 | <p><a |
313 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L68">Source | 304 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L68">Source |
314 | Code</a></p> | 305 | Code</a></p> |
315 | <p>Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver | 306 | <p>Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver |
316 | was·active,·this·function·does·nothing.</p> | 307 | was·active,·this·function·does·nothing.</p> |
Offset 110, 51 lines modified | Offset 110, 41 lines modified | ||
110 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 110 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
111 | bool·al_install_touch_input(void) | 111 | bool·al_install_touch_input(void) |
112 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 112 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
113 | Install·a·touch·input·driver,·returning·true·if·successful.·If·a·touch·input | 113 | Install·a·touch·input·driver,·returning·true·if·successful.·If·a·touch·input |
114 | driver·was·already·installed,·returns·true·immediately. | 114 | driver·was·already·installed,·returns·true·immediately. |
115 | Since:·5.1.0 | 115 | Since:·5.1.0 |
116 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t | 116 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t |
117 | Examples: | ||
118 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
119 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | ||
120 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | ||
121 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 117 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
122 | void·al_uninstall_touch_input(void) | 118 | void·al_uninstall_touch_input(void) |
123 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 119 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
124 | Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver·was·active, | 120 | Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver·was·active, |
125 | this·function·does·nothing. | 121 | this·function·does·nothing. |
126 | This·function·is·automatically·called·when·Allegro·is·shut·down. | 122 | This·function·is·automatically·called·when·Allegro·is·shut·down. |
127 | Since:·5.1.0 | 123 | Since:·5.1.0 |
128 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t | 124 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t |
129 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 125 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
130 | bool·al_is_touch_input_installed(void) | 126 | bool·al_is_touch_input_installed(void) |
131 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 127 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
132 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t·was·called·successfully. | 128 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t·was·called·successfully. |
133 | Since:·5.1.0 | 129 | Since:·5.1.0 |
134 | Examples: | ||
135 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | ||
136 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c | ||
137 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
138 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 130 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
139 | void·al_get_touch_input_state(ALLEGRO_TOUCH_INPUT_STATE·*ret_state) | 131 | void·al_get_touch_input_state(ALLEGRO_TOUCH_INPUT_STATE·*ret_state) |
140 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
141 | Gets·the·current·touch·input·state.·The·touch·information·is·copied·into·the | 133 | Gets·the·current·touch·input·state.·The·touch·information·is·copied·into·the |
142 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8O_\x8U_\x8C_\x8H_\x8__\x8I_\x8N_\x8P_\x8U_\x8T_\x8__\x8S_\x8T_\x8A_\x8T_\x8E·you·provide·to·this·function. | 134 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8O_\x8U_\x8C_\x8H_\x8__\x8I_\x8N_\x8P_\x8U_\x8T_\x8__\x8S_\x8T_\x8A_\x8T_\x8E·you·provide·to·this·function. |
143 | Since:·5.1.0 | 135 | Since:·5.1.0 |
144 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 136 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
145 | void·al_set_mouse_emulation_mode(int·mode) | 137 | void·al_set_mouse_emulation_mode(int·mode) |
146 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 138 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
147 | Sets·the·kind·of·mouse·emulation·for·the·touch·input·subsystem·to·perform. | 139 | Sets·the·kind·of·mouse·emulation·for·the·touch·input·subsystem·to·perform. |
148 | Since:·5.1.0 | 140 | Since:·5.1.0 |
149 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have | 141 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have |
150 | ·····different·semantics·compared·to·mouse·input. | 142 | ·····different·semantics·compared·to·mouse·input. |
151 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8E_\x8M_\x8U_\x8L_\x8A_\x8T_\x8I_\x8O_\x8N_\x8__\x8M_\x8O_\x8D_\x8E,·_\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. | 143 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8E_\x8M_\x8U_\x8L_\x8A_\x8T_\x8I_\x8O_\x8N_\x8__\x8M_\x8O_\x8D_\x8E,·_\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. |
152 | Examples: | ||
153 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
154 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 144 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
155 | int·al_get_mouse_emulation_mode(void) | 145 | int·al_get_mouse_emulation_mode(void) |
156 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 146 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
157 | Returns·the·kind·of·mouse·emulation·which·the·touch·input·subsystem·is·set·to | 147 | Returns·the·kind·of·mouse·emulation·which·the·touch·input·subsystem·is·set·to |
158 | perform. | 148 | perform. |
159 | Since:·5.1.0 | 149 | Since:·5.1.0 |
160 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have | 150 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have |
Offset 312, 39 lines modified | Offset 312, 25 lines modified | ||
312 | <p>Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms | 312 | <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 | 313 | use·only·a·small·subsection·of·this·matrix,·namely·the·top·left·2x2 |
314 | matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values.</p> | 314 | matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values.</p> |
315 | <p><em>Fields:</em></p> | 315 | <p><em>Fields:</em></p> |
316 | <ul> | 316 | <ul> |
317 | <li>m·-·A·4x4·float·matrix</li> | 317 | <li>m·-·A·4x4·float·matrix</li> |
318 | </ul> | 318 | </ul> |
319 | <p>Examples:</p> | ||
320 | <ul> | ||
321 | <li><a | ||
322 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L137">ex_shader.cpp</a></li> | ||
323 | <li><a | ||
324 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L61">ex_shader_target.c</a></li> | ||
325 | <li><a | ||
326 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L74">ex_audio_timer.c</a></li> | ||
327 | </ul> | ||
328 | <h1·id="al_copy_transform">al_copy_transform</h1> | 319 | <h1·id="al_copy_transform">al_copy_transform</h1> |
329 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_copy_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>dest<span·class="op">,</span>·<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>src<span·class="op">)</span></span></code></pre></div> | 320 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_copy_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>dest<span·class="op">,</span>·<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>src<span·class="op">)</span></span></code></pre></div> |
330 | <p><a | 321 | <p><a |
331 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L30">Source | 322 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L30">Source |
332 | Code</a></p> | 323 | Code</a></p> |
333 | <p>Makes·a·copy·of·a·transformation.</p> | 324 | <p>Makes·a·copy·of·a·transformation.</p> |
334 | <p><em>Parameters:</em></p> | 325 | <p><em>Parameters:</em></p> |
335 | <ul> | 326 | <ul> |
336 | <li>dest·-·Source·transformation</li> | 327 | <li>dest·-·Source·transformation</li> |
337 | <li>src·-·Destination·transformation</li> | 328 | <li>src·-·Destination·transformation</li> |
338 | </ul> | 329 | </ul> |
339 | <p>Examples:</p> | ||
340 | <ul> | ||
341 | <li><a | ||
342 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L138">ex_shader.cpp</a></li> | ||
343 | </ul> | ||
344 | <h1·id="al_use_transform">al_use_transform</h1> | 330 | <h1·id="al_use_transform">al_use_transform</h1> |
345 | <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_use_transform<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">)</span></span></code></pre></div> | 331 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_use_transform<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">)</span></span></code></pre></div> |
346 | <p><a | 332 | <p><a |
347 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L40">Source | 333 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L40">Source |
348 | Code</a></p> | 334 | Code</a></p> |
349 | <p>Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on | 335 | <p>Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on |
350 | the·target·bitmap·(each·bitmap·maintains·its·own·transformation).·Every | 336 | the·target·bitmap·(each·bitmap·maintains·its·own·transformation).·Every |
Offset 136, 27 lines modified | Offset 136, 21 lines modified | ||
136 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | 136 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; |
137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 137 | _\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 | 138 | 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 | 139 | small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right |
140 | most·2x1·matrix,·for·a·total·of·6·values. | 140 | most·2x1·matrix,·for·a·total·of·6·values. |
141 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: | 141 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: |
142 | ····*·m·-·A·4x4·float·matrix | 142 | ····*·m·-·A·4x4·float·matrix |
143 | Examples: | ||
144 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
145 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
146 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
147 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8op\x8py\x8y_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 143 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8op\x8py\x8y_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
148 | void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src) | 144 | void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src) |
149 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
150 | Makes·a·copy·of·a·transformation. | 146 | Makes·a·copy·of·a·transformation. |
151 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 147 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
152 | ····*·dest·-·Source·transformation | 148 | ····*·dest·-·Source·transformation |
153 | ····*·src·-·Destination·transformation | 149 | ····*·src·-·Destination·transformation |
154 | Examples: | ||
155 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
156 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 150 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
157 | void·al_use_transform(const·ALLEGRO_TRANSFORM·*trans) | 151 | void·al_use_transform(const·ALLEGRO_TRANSFORM·*trans) |
158 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 152 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
159 | Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on·the·target | 153 | Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on·the·target |
160 | bitmap·(each·bitmap·maintains·its·own·transformation).·Every·drawing·operation | 154 | bitmap·(each·bitmap·maintains·its·own·transformation).·Every·drawing·operation |
161 | after·this·call·will·be·transformed·using·this·transformation.·Call·this | 155 | after·this·call·will·be·transformed·using·this·transformation.·Call·this |
162 | function·with·an·identity·transformation·to·return·to·the·default·behaviour. | 156 | function·with·an·identity·transformation·to·return·to·the·default·behaviour. |
Offset 443, 43 lines modified | Offset 443, 25 lines modified | ||
443 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR<span·class="op">;</span></span></code></pre></div> | 443 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR<span·class="op">;</span></span></code></pre></div> |
444 | <p><a | 444 | <p><a |
445 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source | 445 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source |
446 | Code</a></p> | 446 | Code</a></p> |
447 | <p>An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain | 447 | <p>An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain |
448 | UTF-8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences, | 448 | UTF-8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences, |
449 | including·NULs.</p> | 449 | including·NULs.</p> |
450 | <p>Examples:</p> | ||
451 | <ul> | ||
452 | <li><a | ||
453 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L248">ex_font_multiline.cpp</a></li> | ||
454 | <li><a | ||
455 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L39">nihgui.cpp</a></li> | ||
456 | <li><a | ||
457 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L57">ex_blend.c</a></li> | ||
458 | </ul> | ||
459 | <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2> | 450 | <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2> |
460 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO<span·class="op">;</span></span></code></pre></div> | 451 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO<span·class="op">;</span></span></code></pre></div> |
461 | <p><a | 452 | <p><a |
462 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source | 453 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source |
463 | Code</a></p> | 454 | Code</a></p> |
464 | <p>A·type·that·holds·additional·information·for·an·<a | 455 | <p>A·type·that·holds·additional·information·for·an·<a |
465 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an | 456 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an |
466 | external·memory·buffer.</p> | 457 | external·memory·buffer.</p> |
467 | <p>See·also:·<a·href="utf8.html#al_ref_cstr">al_ref_cstr</a>,·<a | 458 | <p>See·also:·<a·href="utf8.html#al_ref_cstr">al_ref_cstr</a>,·<a |
468 | href="utf8.html#al_ref_buffer">al_ref_buffer</a>·and·<a | 459 | href="utf8.html#al_ref_buffer">al_ref_buffer</a>·and·<a |
469 | href="utf8.html#al_ref_ustr">al_ref_ustr</a>.</p> | 460 | href="utf8.html#al_ref_ustr">al_ref_ustr</a>.</p> |
470 | <p>Examples:</p> | ||
471 | <ul> | ||
472 | <li><a | ||
473 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L248">ex_font_multiline.cpp</a></li> | ||
474 | <li><a | ||
475 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L39">nihgui.cpp</a></li> | ||
476 | <li><a | ||
477 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L57">ex_blend.c</a></li> | ||
478 | </ul> | ||
479 | <h1·id="creating-and-destroying-strings">Creating·and·destroying | 461 | <h1·id="creating-and-destroying-strings">Creating·and·destroying |
480 | strings</h1> | 462 | strings</h1> |
481 | <h2·id="al_ustr_new">al_ustr_new</h2> | 463 | <h2·id="al_ustr_new">al_ustr_new</h2> |
482 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_new<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">)</span></span></code></pre></div> | 464 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_new<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">)</span></span></code></pre></div> |
483 | <p><a | 465 | <p><a |
484 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L62">Source | 466 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L62">Source |
485 | Code</a></p> | 467 | Code</a></p> |
Offset 194, 48 lines modified | Offset 194, 34 lines modified | ||
194 | *\x8**\x8**\x8**\x8**\x8**\x8*·U\x8UT\x8TF\x8F-\x8-8\x88·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·t\x8ty\x8yp\x8pe\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 194 | *\x8**\x8**\x8**\x8**\x8**\x8*·U\x8UT\x8TF\x8F-\x8-8\x88·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·t\x8ty\x8yp\x8pe\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
195 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R·*\x8**\x8**\x8**\x8**\x8* | 195 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R·*\x8**\x8**\x8**\x8**\x8* |
196 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; | 196 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; |
197 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 197 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
198 | An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF- | 198 | An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF- |
199 | 8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including | 199 | 8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including |
200 | NULs. | 200 | NULs. |
201 | Examples: | ||
202 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | ||
203 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
204 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c | ||
205 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R_\x8_I\x8IN\x8NF\x8FO\x8O·*\x8**\x8**\x8**\x8**\x8* | 201 | *\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* |
206 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; | 202 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; |
207 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 203 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
208 | A·type·that·holds·additional·information·for·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·that·references·an | 204 | A·type·that·holds·additional·information·for·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·that·references·an |
209 | external·memory·buffer. | 205 | external·memory·buffer. |
210 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r·and·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r. | 206 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r·and·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r. |
211 | Examples: | ||
212 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | ||
213 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
214 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c | ||
215 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Cr\x8re\x8ea\x8at\x8ti\x8in\x8ng\x8g·a\x8an\x8nd\x8d·d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8yi\x8in\x8ng\x8g·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 207 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Cr\x8re\x8ea\x8at\x8ti\x8in\x8ng\x8g·a\x8an\x8nd\x8d·d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8yi\x8in\x8ng\x8g·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
216 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w·*\x8**\x8**\x8**\x8**\x8* | 208 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w·*\x8**\x8**\x8**\x8**\x8* |
217 | ALLEGRO_USTR·*al_ustr_new(const·char·*s) | 209 | ALLEGRO_USTR·*al_ustr_new(const·char·*s) |
218 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 210 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
219 | Create·a·new·string·containing·a·copy·of·the·C-style·string·s.·The·string·must | 211 | Create·a·new·string·containing·a·copy·of·the·C-style·string·s.·The·string·must |
220 | eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. | 212 | eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. |
221 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p, | 213 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p, |
222 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8u_\x8t_\x8f_\x81_\x86 | 214 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8u_\x8t_\x8f_\x81_\x86 |
223 | Examples: | ||
224 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
225 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
226 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
227 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w_\x8_f\x8fr\x8ro\x8om\x8m_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 215 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w_\x8_f\x8fr\x8ro\x8om\x8m_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
228 | ALLEGRO_USTR·*al_ustr_new_from_buffer(const·char·*s,·size_t·size) | 216 | ALLEGRO_USTR·*al_ustr_new_from_buffer(const·char·*s,·size_t·size) |
229 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 217 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
230 | Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by·s·of·the | 218 | Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by·s·of·the |
231 | given·size·in·bytes.·The·string·must·eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. | 219 | given·size·in·bytes.·The·string·must·eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. |
232 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w | 220 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w |
233 | Examples: | ||
234 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
235 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8wf\x8f·*\x8**\x8**\x8**\x8**\x8* | 221 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8wf\x8f·*\x8**\x8**\x8**\x8**\x8* |
236 | ALLEGRO_USTR·*al_ustr_newf(const·char·*fmt,·...) | 222 | ALLEGRO_USTR·*al_ustr_newf(const·char·*fmt,·...) |
237 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 223 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
238 | Create·a·new·string·using·a·printf-style·format·string. | 224 | Create·a·new·string·using·a·printf-style·format·string. |
239 | N\x8No\x8ot\x8te\x8es\x8s:\x8: | 225 | N\x8No\x8ot\x8te\x8es\x8s:\x8: |
240 | The·“%s”·specifier·takes·C·string·arguments,·not·ALLEGRO_USTRs.·Therefore·to | 226 | The·“%s”·specifier·takes·C·string·arguments,·not·ALLEGRO_USTRs.·Therefore·to |
241 | pass·an·ALLEGRO_USTR·as·a·parameter·you·must·use·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·and·it·must·be·NUL | 227 | pass·an·ALLEGRO_USTR·as·a·parameter·you·must·use·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·and·it·must·be·NUL |
Offset 290, 19 lines modified | Offset 290, 14 lines modified | ||
290 | <h1·id="al_init_video_addon">al_init_video_addon</h1> | 290 | <h1·id="al_init_video_addon">al_init_video_addon</h1> |
291 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 291 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
292 | <p><a | 292 | <p><a |
293 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L268">Source | 293 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L268">Source |
294 | Code</a></p> | 294 | Code</a></p> |
295 | <p>Initializes·the·video·addon.</p> | 295 | <p>Initializes·the·video·addon.</p> |
296 | <p>Since:·5.1.12</p> | 296 | <p>Since:·5.1.12</p> |
297 | <p>Examples:</p> | ||
298 | <ul> | ||
299 | <li><a | ||
300 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L114">ex_video.c</a></li> | ||
301 | </ul> | ||
302 | <h1 | 297 | <h1 |
303 | id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1> | 298 | id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1> |
304 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_video_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 299 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_video_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
305 | <p><a | 300 | <p><a |
306 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L290">Source | 301 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L290">Source |
307 | Code</a></p> | 302 | Code</a></p> |
308 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns | 303 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns |
Offset 109, 16 lines modified | Offset 109, 14 lines modified | ||
109 | ······in·sync. | 109 | ······in·sync. |
110 | Since:·5.1.11 | 110 | Since:·5.1.11 |
111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
112 | bool·al_init_video_addon(void) | 112 | bool·al_init_video_addon(void) |
113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
114 | Initializes·the·video·addon. | 114 | Initializes·the·video·addon. |
115 | Since:·5.1.12 | 115 | Since:·5.1.12 |
116 | Examples: | ||
117 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
118 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 116 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
119 | bool·al_is_video_addon_initialized(void) | 117 | bool·al_is_video_addon_initialized(void) |
120 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
121 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. | 119 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. |
122 | Since:·5.2.6 | 120 | Since:·5.2.6 |
123 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 121 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
124 | void·al_shutdown_video_addon(void) | 122 | void·al_shutdown_video_addon(void) |