Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | · | 1 | ·4cfa84f2261bd6775e4270b004e6f7f6·1506084·doc·optional·allegro5-doc_5.2.4.0-3_all.deb |
2 | ·35c9a3938685172d074ec1a4861c72fc·13392·libdevel·optional·liballegro-acodec5-dev_5.2.4.0-3_i386.deb | 2 | ·35c9a3938685172d074ec1a4861c72fc·13392·libdevel·optional·liballegro-acodec5-dev_5.2.4.0-3_i386.deb |
3 | ·9deb2487799bbdf9842cdd939a4cd433·61068·debug·optional·liballegro-acodec5.2-dbgsym_5.2.4.0-3_i386.deb | 3 | ·9deb2487799bbdf9842cdd939a4cd433·61068·debug·optional·liballegro-acodec5.2-dbgsym_5.2.4.0-3_i386.deb |
4 | ·d08695e8d682ffedaf9842db169c42b0·30684·libs·optional·liballegro-acodec5.2_5.2.4.0-3_i386.deb | 4 | ·d08695e8d682ffedaf9842db169c42b0·30684·libs·optional·liballegro-acodec5.2_5.2.4.0-3_i386.deb |
5 | ·3d54c1aeaf9b74a0812f87089d2ba8d9·16060·libdevel·optional·liballegro-audio5-dev_5.2.4.0-3_i386.deb | 5 | ·3d54c1aeaf9b74a0812f87089d2ba8d9·16060·libdevel·optional·liballegro-audio5-dev_5.2.4.0-3_i386.deb |
6 | ·be9467e503335d9b2095f18afce66bab·102336·debug·optional·liballegro-audio5.2-dbgsym_5.2.4.0-3_i386.deb | 6 | ·be9467e503335d9b2095f18afce66bab·102336·debug·optional·liballegro-audio5.2-dbgsym_5.2.4.0-3_i386.deb |
7 | ·a13d2ba3ea1ff8653a20eaf809442eb0·54844·libs·optional·liballegro-audio5.2_5.2.4.0-3_i386.deb | 7 | ·a13d2ba3ea1ff8653a20eaf809442eb0·54844·libs·optional·liballegro-audio5.2_5.2.4.0-3_i386.deb |
8 | ·928e144159000cbcc487a389b6b4d569·14480·libdevel·optional·liballegro-dialog5-dev_5.2.4.0-3_i386.deb | 8 | ·928e144159000cbcc487a389b6b4d569·14480·libdevel·optional·liballegro-dialog5-dev_5.2.4.0-3_i386.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2018-12-10·16:55:17.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2018-12-10·16:55:17.000000·debian-binary |
2 | -rw-r--r--···0········0········0····30 | 2 | -rw-r--r--···0········0········0····30296·2018-12-10·16:55:17.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··14 | 3 | -rw-r--r--···0········0········0··1475596·2018-12-10·16:55:17.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.4.0-3 | 3 | Version:·2:5.2.4.0-3 |
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:·3 | 6 | Installed-Size:·3831 |
7 | Depends:·ttf-dejavu-core | 7 | Depends:·ttf-dejavu-core |
8 | Section:·doc | 8 | Section:·doc |
9 | Priority:·optional | 9 | Priority:·optional |
10 | Homepage:·http://liballeg.org/ | 10 | Homepage:·http://liballeg.org/ |
11 | Description:·documentation·for·the·Allegro·5·library | 11 | Description:·documentation·for·the·Allegro·5·library |
12 | ·This·package·contains·the·Allegro·documentation·in·various·formats, | 12 | ·This·package·contains·the·Allegro·documentation·in·various·formats, |
13 | ·FAQs·and·other·documentation·about·the·Allegro·library,·source·of·the | 13 | ·FAQs·and·other·documentation·about·the·Allegro·library,·source·of·the |
Offset 187, 389 lines modified | Offset 187, 389 lines modified | ||
187 | -rw-r--r--···0·root·········(0)·root·········(0)·····1557·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c.gz | 187 | -rw-r--r--···0·root·········(0)·root·········(0)·····1557·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c.gz |
188 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c | 188 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c |
189 | -rw-r--r--···0·root·········(0)·root·········(0)·····2975·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c | 189 | -rw-r--r--···0·root·········(0)·root·········(0)·····2975·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c |
190 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c | 190 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c |
191 | -rw-r--r--···0·root·········(0)·root·········(0)·····4406·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp.gz | 191 | -rw-r--r--···0·root·········(0)·root·········(0)·····4406·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp.gz |
192 | -rw-r--r--···0·root·········(0)·root·········(0)·····1556·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp.gz | 192 | -rw-r--r--···0·root·········(0)·root·········(0)·····1556·2018-02-24·20:33:07.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp.gz |
193 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/ | 193 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/ |
194 | -rw-r--r--···0·root·········(0)·root·········(0)·····9 | 194 | -rw-r--r--···0·root·········(0)·root·········(0)·····9427·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/acodec.html |
195 | -rw-r--r--···0·root·········(0)·root·········(0)···1 | 195 | -rw-r--r--···0·root·········(0)·root·········(0)···160931·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/audio.html |
196 | -rw-r--r--···0·root·········(0)·root·········(0)····35631·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js | 196 | -rw-r--r--···0·root·········(0)·root·········(0)····35631·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js |
197 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 197 | -rw-r--r--···0·root·········(0)·root·········(0)····42570·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/color.html |
198 | -rw-r--r--···0·root·········(0)·root·········(0)····28 | 198 | -rw-r--r--···0·root·········(0)·root·········(0)····28254·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/config.html |
199 | -rw-r--r--···0·root·········(0)·root·········(0)····14853·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html | 199 | -rw-r--r--···0·root·········(0)·root·········(0)····14853·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html |
200 | -rw-r--r--···0·root·········(0)·root·········(0)····6 | 200 | -rw-r--r--···0·root·········(0)·root·········(0)····63761·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/display.html |
201 | -rw-r--r--···0·root·········(0)·root·········(0)····6 | 201 | -rw-r--r--···0·root·········(0)·root·········(0)····62765·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/events.html |
202 | -rw-r--r--···0·root·········(0)·root·········(0)····46 | 202 | -rw-r--r--···0·root·········(0)·root·········(0)····46273·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/file.html |
203 | -rw-r--r--···0·root·········(0)·root·········(0)····42 | 203 | -rw-r--r--···0·root·········(0)·root·········(0)····42249·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/fixed.html |
204 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 204 | -rw-r--r--···0·root·········(0)·root·········(0)····71862·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/font.html |
205 | -rw-r--r--···0·root·········(0)·root·········(0)····34 | 205 | -rw-r--r--···0·root·········(0)·root·········(0)····34128·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/fshook.html |
206 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 206 | -rw-r--r--···0·root·········(0)·root·········(0)····10947·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html |
207 | -rw-r--r--···0·root·········(0)·root·········(0)····16176·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html | 207 | -rw-r--r--···0·root·········(0)·root·········(0)····16176·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html |
208 | -rw-r--r--···0·root·········(0)·root·········(0)···15 | 208 | -rw-r--r--···0·root·········(0)·root·········(0)···156240·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/graphics.html |
209 | -rw-r--r--···0·root·········(0)·root·········(0)····59 | 209 | -rw-r--r--···0·root·········(0)·root·········(0)····59174·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/haptic.html |
210 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 210 | -rw-r--r--···0·root·········(0)·root·········(0)·····9965·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/image.html |
211 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/ | 211 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/ |
212 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png | 212 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png |
213 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png | 213 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png |
214 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png | 214 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png |
215 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png | 215 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png |
216 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png | 216 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png |
217 | -rw-r--r--···0·root·········(0)·root·········(0)·····6238·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/index.html | 217 | -rw-r--r--···0·root·········(0)·root·········(0)·····6238·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/index.html |
218 | -rw-r--r--···0·root·········(0)·root·········(0)···105502·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/index_all.html | 218 | -rw-r--r--···0·root·········(0)·root·········(0)···105502·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/index_all.html |
219 | -rw-r--r--···0·root·········(0)·root·········(0)····25 | 219 | -rw-r--r--···0·root·········(0)·root·········(0)····25650·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/joystick.html |
220 | -rw-r--r--···0·root·········(0)·root·········(0)····18 | 220 | -rw-r--r--···0·root·········(0)·root·········(0)····18506·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html |
221 | -rw-r--r--···0·root·········(0)·root·········(0)·····7923·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/main.html | 221 | -rw-r--r--···0·root·········(0)·root·········(0)·····7923·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/main.html |
222 | -rw-r--r--···0·root·········(0)·root·········(0)·····9 | 222 | -rw-r--r--···0·root·········(0)·root·········(0)·····9030·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/memfile.html |
223 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 223 | -rw-r--r--···0·root·········(0)·root·········(0)····17682·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/memory.html |
224 | -rw-r--r--···0·root·········(0)·root·········(0)·····8 | 224 | -rw-r--r--···0·root·········(0)·root·········(0)·····8699·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/misc.html |
225 | -rw-r--r--···0·root·········(0)·root·········(0)····12 | 225 | -rw-r--r--···0·root·········(0)·root·········(0)····12547·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/monitor.html |
226 | -rw-r--r--···0·root·········(0)·root·········(0)····30 | 226 | -rw-r--r--···0·root·········(0)·root·········(0)····30703·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/mouse.html |
227 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 227 | -rw-r--r--···0·root·········(0)·root·········(0)····58816·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html |
228 | -rw-r--r--···0·root·········(0)·root·········(0)····22278·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/opengl.html | 228 | -rw-r--r--···0·root·········(0)·root·········(0)····22278·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/opengl.html |
229 | -rw-r--r--···0·root·········(0)·root·········(0)·····4020·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css | 229 | -rw-r--r--···0·root·········(0)·root·········(0)·····4020·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css |
230 | -rw-r--r--···0·root·········(0)·root·········(0)····28079·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/path.html | 230 | -rw-r--r--···0·root·········(0)·root·········(0)····28079·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/path.html |
231 | -rw-r--r--···0·root·········(0)·root·········(0)····10 | 231 | -rw-r--r--···0·root·········(0)·root·········(0)····10472·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/physfs.html |
232 | -rw-r--r--···0·root·········(0)·root·········(0)····21027·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/platform.html | 232 | -rw-r--r--···0·root·········(0)·root·········(0)····21027·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/platform.html |
233 | -rw-r--r--···0·root·········(0)·root·········(0)···1 | 233 | -rw-r--r--···0·root·········(0)·root·········(0)···107415·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/primitives.html |
234 | -rw-r--r--···0·root·········(0)·root·········(0)····68979·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/search_index.js | 234 | -rw-r--r--···0·root·········(0)·root·········(0)····68979·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/search_index.js |
235 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 235 | -rw-r--r--···0·root·········(0)·root·········(0)····32950·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/shader.html |
236 | -rw-r--r--···0·root·········(0)·root·········(0)····12 | 236 | -rw-r--r--···0·root·········(0)·root·········(0)····12589·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/state.html |
237 | -rw-r--r--···0·root·········(0)·root·········(0)····51 | 237 | -rw-r--r--···0·root·········(0)·root·········(0)····51756·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/system.html |
238 | -rw-r--r--···0·root·········(0)·root·········(0)····25 | 238 | -rw-r--r--···0·root·········(0)·root·········(0)····25092·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/threads.html |
239 | -rw-r--r--···0·root·········(0)·root·········(0)····10082·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/time.html | 239 | -rw-r--r--···0·root·········(0)·root·········(0)····10082·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/time.html |
240 | -rw-r--r--···0·root·········(0)·root·········(0)····19 | 240 | -rw-r--r--···0·root·········(0)·root·········(0)····19064·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/timer.html |
241 | -rw-r--r--···0·root·········(0)·root·········(0)····18 | 241 | -rw-r--r--···0·root·········(0)·root·········(0)····18159·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/touch.html |
242 | -rw-r--r--···0·root·········(0)·root·········(0)····47 | 242 | -rw-r--r--···0·root·········(0)·root·········(0)····47711·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/transformations.html |
243 | -rw-r--r--···0·root·········(0)·root·········(0)····76 | 243 | -rw-r--r--···0·root·········(0)·root·········(0)····76001·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/utf8.html |
244 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 244 | -rw-r--r--···0·root·········(0)·root·········(0)····22229·2018-12-10·16:55:17.000000·./usr/share/doc/allegro5-doc/refman/video.html |
245 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-12-10·16:55:17.000000·./usr/share/doc-base/ | 245 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-12-10·16:55:17.000000·./usr/share/doc-base/ |
246 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2018-12-09·19:00:48.000000·./usr/share/doc-base/allegro5 | 246 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2018-12-09·19:00:48.000000·./usr/share/doc-base/allegro5 |
247 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-12-10·16:55:17.000000·./usr/share/man/ | 247 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-12-10·16:55:17.000000·./usr/share/man/ |
248 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-12-10·16:55:17.000000·./usr/share/man/man3/ | 248 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-12-10·16:55:17.000000·./usr/share/man/man3/ |
249 | -rw-r--r--···0·root·········(0)·root·········(0)······42 | 249 | -rw-r--r--···0·root·········(0)·root·········(0)······421·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz |
250 | -rw-r--r--···0·root·········(0)·root·········(0)······54 | 250 | -rw-r--r--···0·root·········(0)·root·········(0)······544·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz |
251 | -rw-r--r--···0·root·········(0)·root·········(0)······5 | 251 | -rw-r--r--···0·root·········(0)·root·········(0)······569·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_AUDIO_PAN_NONE.3alleg5.gz |
252 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 252 | -rw-r--r--···0·root·········(0)·root·········(0)······329·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_AUDIO_RECORDER.3alleg5.gz |
253 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 253 | -rw-r--r--···0·root·········(0)·root·········(0)······488·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_AUDIO_RECORDER_EVENT.3alleg5.gz |
254 | -rw-r--r--···0·root·········(0)·root·········(0)······9 | 254 | -rw-r--r--···0·root·········(0)·root·········(0)······949·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_AUDIO_STREAM.3alleg5.gz |
255 | -rw-r--r--···0·root·········(0)·root·········(0)······26 | 255 | -rw-r--r--···0·root·········(0)·root·········(0)······261·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_BITMAP.3alleg5.gz |
256 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 256 | -rw-r--r--···0·root·········(0)·root·········(0)······267·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_BPM_TO_SECS.3alleg5.gz |
257 | -rw-r--r--···0·root·········(0)·root·········(0)······26 | 257 | -rw-r--r--···0·root·········(0)·root·········(0)······261·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_BPS_TO_SECS.3alleg5.gz |
258 | -rw-r--r--···0·root·········(0)·root·········(0)······29 | 258 | -rw-r--r--···0·root·········(0)·root·········(0)······296·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_CHANNEL_CONF.3alleg5.gz |
259 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 259 | -rw-r--r--···0·root·········(0)·root·········(0)······328·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_COLOR.3alleg5.gz |
260 | -rw-r--r--···0·root·········(0)·root·········(0)······26 | 260 | -rw-r--r--···0·root·········(0)·root·········(0)······260·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_COND.3alleg5.gz |
261 | -rw-r--r--···0·root·········(0)·root·········(0)······25 | 261 | -rw-r--r--···0·root·········(0)·root·········(0)······250·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_CONFIG.3alleg5.gz |
262 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 262 | -rw-r--r--···0·root·········(0)·root·········(0)······319·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_CONFIG_ENTRY.3alleg5.gz |
263 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 263 | -rw-r--r--···0·root·········(0)·root·········(0)······317·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_CONFIG_SECTION.3alleg5.gz |
264 | -rw-r--r--···0·root·········(0)·root·········(0)······26 | 264 | -rw-r--r--···0·root·········(0)·root·········(0)······264·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_DISPLAY.3alleg5.gz |
265 | -rw-r--r--···0·root·········(0)·root·········(0)······48 | 265 | -rw-r--r--···0·root·········(0)·root·········(0)······480·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_DISPLAY_MODE.3alleg5.gz |
266 | -rw-r--r--···0·root·········(0)·root·········(0)·····465 | 266 | -rw-r--r--···0·root·········(0)·root·········(0)·····4650·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_EVENT.3alleg5.gz |
267 | -rw-r--r--···0·root·········(0)·root·········(0)······38 | 267 | -rw-r--r--···0·root·········(0)·root·········(0)······384·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_EVENT_QUEUE.3alleg5.gz |
268 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 268 | -rw-r--r--···0·root·········(0)·root·········(0)······415·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_EVENT_SOURCE.3alleg5.gz |
269 | -rw-r--r--···0·root·········(0)·root·········(0)······31 | 269 | -rw-r--r--···0·root·········(0)·root·········(0)······311·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE.3alleg5.gz |
270 | -rw-r--r--···0·root·········(0)·root·········(0)······32 | 270 | -rw-r--r--···0·root·········(0)·root·········(0)······324·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE_IS_USER.3alleg5.gz |
271 | -rw-r--r--···0·root·········(0)·root·········(0)······28 | 271 | -rw-r--r--···0·root·········(0)·root·········(0)······285·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_FILE.3alleg5.gz |
272 | -rw-r--r--···0·root·········(0)·root·········(0)······26 | 272 | -rw-r--r--···0·root·········(0)·root·········(0)······262·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_FILECHOOSER.3alleg5.gz |
273 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 273 | -rw-r--r--···0·root·········(0)·root·········(0)······799·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_FILE_INTERFACE.3alleg5.gz |
274 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 274 | -rw-r--r--···0·root·········(0)·root·········(0)······328·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_FILE_MODE.3alleg5.gz |
275 | -rw-r--r--···0·root·········(0)·root·········(0)······42 | 275 | -rw-r--r--···0·root·········(0)·root·········(0)······421·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_FONT.3alleg5.gz |
276 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 276 | -rw-r--r--···0·root·········(0)·root·········(0)······437·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_FOR_EACH_FS_ENTRY_RESULT.3alleg5.gz |
277 | -rw-r--r--···0·root·········(0)·root·········(0)······33 | 277 | -rw-r--r--···0·root·········(0)·root·········(0)······331·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_FS_ENTRY.3alleg5.gz |
278 | -rw-r--r--···0·root·········(0)·root·········(0)······54 | 278 | -rw-r--r--···0·root·········(0)·root·········(0)······540·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_FS_INTERFACE.3alleg5.gz |
279 | -rw-r--r--···0·root·········(0)·root·········(0)······70 | 279 | -rw-r--r--···0·root·········(0)·root·········(0)······705·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_GET_EVENT_TYPE.3alleg5.gz |
280 | -rw-r--r--···0·root·········(0)·root·········(0)······8 | 280 | -rw-r--r--···0·root·········(0)·root·········(0)······829·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_GLYPH.3alleg5.gz |
281 | -rw-r--r--···0·root·········(0)·root·········(0)······44 | 281 | -rw-r--r--···0·root·········(0)·root·········(0)······440·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_HAPTIC.3alleg5.gz |
282 | -rw-r--r--···0·root·········(0)·root·········(0)······83 | 282 | -rw-r--r--···0·root·········(0)·root·········(0)······831·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_CONSTANTS.3alleg5.gz |
283 | -rw-r--r--···0·root·········(0)·root·········(0)·····315 | 283 | -rw-r--r--···0·root·········(0)·root·········(0)·····3152·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_EFFECT.3alleg5.gz |
284 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 284 | -rw-r--r--···0·root·········(0)·root·········(0)······464·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_EFFECT_ID.3alleg5.gz |
285 | -rw-r--r--···0·root·········(0)·root·········(0)······38 | 285 | -rw-r--r--···0·root·········(0)·root·········(0)······382·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_INDEX_BUFFER.3alleg5.gz |
286 | -rw-r--r--···0·root·········(0)·root·········(0)······35 | 286 | -rw-r--r--···0·root·········(0)·root·········(0)······350·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_JOYFLAGS.3alleg5.gz |
287 | -rw-r--r--···0·root·········(0)·root·········(0)······29 | 287 | -rw-r--r--···0·root·········(0)·root·········(0)······294·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_JOYSTICK.3alleg5.gz |
288 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 288 | -rw-r--r--···0·root·········(0)·root·········(0)······437·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_JOYSTICK_STATE.3alleg5.gz |
289 | -rw-r--r--···0·root·········(0)·root·········(0)······46 | 289 | -rw-r--r--···0·root·········(0)·root·········(0)······465·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_KEYBOARD_STATE.3alleg5.gz |
290 | -rw-r--r--···0·root·········(0)·root·········(0)······45 | 290 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_LINE_CAP.3alleg5.gz |
291 | -rw-r--r--···0·root·········(0)·root·········(0)······42 | 291 | -rw-r--r--···0·root·········(0)·root·········(0)······428·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_LINE_JOIN.3alleg5.gz |
292 | -rw-r--r--···0·root·········(0)·root·········(0)······81 | 292 | -rw-r--r--···0·root·········(0)·root·········(0)······811·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_LOCKED_REGION.3alleg5.gz |
293 | -rw-r--r--···0·root·········(0)·root·········(0)······39 | 293 | -rw-r--r--···0·root·········(0)·root·········(0)······395·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_MEMORY_INTERFACE.3alleg5.gz |
294 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 294 | -rw-r--r--···0·root·········(0)·root·········(0)······306·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_MENU.3alleg5.gz |
295 | -rw-r--r--···0·root·········(0)·root·········(0)······7 | 295 | -rw-r--r--···0·root·········(0)·root·········(0)······728·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_MENU_INFO.3alleg5.gz |
296 | -rw-r--r--···0·root·········(0)·root·········(0)······51 | 296 | -rw-r--r--···0·root·········(0)·root·········(0)······511·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_MIXER.3alleg5.gz |
297 | -rw-r--r--···0·root·········(0)·root·········(0)······31 | 297 | -rw-r--r--···0·root·········(0)·root·········(0)······310·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_MIXER_QUALITY.3alleg5.gz |
298 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 298 | -rw-r--r--···0·root·········(0)·root·········(0)······477·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_MONITOR_INFO.3alleg5.gz |
299 | -rw-r--r--···0·root·········(0)·root·········(0)······46 | 299 | -rw-r--r--···0·root·········(0)·root·········(0)······465·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_MOUSE_EMULATION_MODE.3alleg5.gz |
300 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 300 | -rw-r--r--···0·root·········(0)·root·········(0)······467·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_MOUSE_STATE.3alleg5.gz |
301 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 301 | -rw-r--r--···0·root·········(0)·root·········(0)······259·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_MSECS_TO_SECS.3alleg5.gz |
302 | -rw-r--r--···0·root·········(0)·root·········(0)······25 | 302 | -rw-r--r--···0·root·········(0)·root·········(0)······254·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_MUTEX.3alleg5.gz |
303 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 303 | -rw-r--r--···0·root·········(0)·root·········(0)······318·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE.3alleg5.gz |
304 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 304 | -rw-r--r--···0·root·········(0)·root·········(0)······308·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_PI.3alleg5.gz |
305 | -rw-r--r--···0·root·········(0)·root·········(0)·····217 | 305 | -rw-r--r--···0·root·········(0)·root·········(0)·····2173·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_PIXEL_FORMAT.3alleg5.gz |
306 | -rw-r--r--···0·root·········(0)·root·········(0)······27 | 306 | -rw-r--r--···0·root·········(0)·root·········(0)······270·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_PLAYMODE.3alleg5.gz |
307 | -rw-r--r--···0·root·········(0)·root·········(0)······9 | 307 | -rw-r--r--···0·root·········(0)·root·········(0)······907·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_PRIM_ATTR.3alleg5.gz |
308 | -rw-r--r--···0·root·········(0)·root·········(0)······58 | 308 | -rw-r--r--···0·root·········(0)·root·········(0)······583·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_PRIM_BUFFER_FLAGS.3alleg5.gz |
309 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 309 | -rw-r--r--···0·root·········(0)·root·········(0)······378·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_PRIM_QUALITY.3alleg5.gz |
310 | -rw-r--r--···0·root·········(0)·root·········(0)······9 | 310 | -rw-r--r--···0·root·········(0)·root·········(0)······918·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_PRIM_STORAGE.3alleg5.gz |
311 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 311 | -rw-r--r--···0·root·········(0)·root·········(0)······498·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_PRIM_TYPE.3alleg5.gz |
312 | -rw-r--r--···0·root·········(0)·root·········(0)······35 | 312 | -rw-r--r--···0·root·········(0)·root·········(0)······353·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_RENDER_FUNCTION.3alleg5.gz |
313 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 313 | -rw-r--r--···0·root·········(0)·root·········(0)······798·2018-12-10·16:55:17.000000·./usr/share/man/man3/ALLEGRO_RENDER_STATE.3alleg5.gz |
Max diff block lines reached; 157323/191181 bytes (82.29%) of diff not shown. |
Offset 163, 16 lines modified | Offset 163, 15 lines modified | ||
163 | <li><a·href="#al_init_acodec_addon">al_init_acodec_addon</a></li> | 163 | <li><a·href="#al_init_acodec_addon">al_init_acodec_addon</a></li> |
164 | <li><a·href="#al_get_allegro_acodec_version">al_get_allegro_acodec_version</a></li> | 164 | <li><a·href="#al_get_allegro_acodec_version">al_get_allegro_acodec_version</a></li> |
165 | </ul> | 165 | </ul> |
166 | </nav> | 166 | </nav> |
167 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_acodec.</p> | 167 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_acodec.</p> |
168 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_acodec.h></span></a></code></pre></div> | 168 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_acodec.h></span></a></code></pre></div> |
169 | <h1·id="al_init_acodec_addon">al_init_acodec_addon</h1> | 169 | <h1·id="al_init_acodec_addon">al_init_acodec_addon</h1> |
170 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="dt">bool</span>·al_init_acodec_addon(<span·class="dt">void</span>)</a> | 170 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="dt">bool</span>·al_init_acodec_addon(<span·class="dt">void</span>)</a></code></pre></div> |
171 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="dt">bool</span>·al_init_acodec_addon(<span·class="dt">void</span>)</a></code></pre></div> | ||
172 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L16">Source·Code</a></p> | 171 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L16">Source·Code</a></p> |
173 | <p>This·function·registers·all·the·known·audio·file·type·handlers·for·<a·href="audio.html#al_load_sample">al_load_sample</a>,·<a·href="audio.html#al_save_sample">al_save_sample</a>,·<a·href="audio.html#al_load_audio_stream">al_load_audio_stream</a>,·etc.</p> | 172 | <p>This·function·registers·all·the·known·audio·file·type·handlers·for·<a·href="audio.html#al_load_sample">al_load_sample</a>,·<a·href="audio.html#al_save_sample">al_save_sample</a>,·<a·href="audio.html#al_load_audio_stream">al_load_audio_stream</a>,·etc.</p> |
174 | <p>Depending·on·what·libraries·are·available,·the·full·set·of·recognised·extensions·is:·.wav,·.flac,·.ogg,·.opus,·.it,·.mod,·.s3m,·.xm,·.voc.</p> | 173 | <p>Depending·on·what·libraries·are·available,·the·full·set·of·recognised·extensions·is:·.wav,·.flac,·.ogg,·.opus,·.it,·.mod,·.s3m,·.xm,·.voc.</p> |
175 | <p><em>Limitations:</em></p> | 174 | <p><em>Limitations:</em></p> |
176 | <ul> | 175 | <ul> |
177 | <li><p>Saving·is·only·supported·for·wav·files.</p></li> | 176 | <li><p>Saving·is·only·supported·for·wav·files.</p></li> |
178 | <li><p>The·wav·file·loader·currently·only·supports·8/16·bit·little·endian·PCM·files.·16·bits·are·used·when·saving·wav·files.·Use·flac·files·if·more·precision·is·required.</p></li> | 177 | <li><p>The·wav·file·loader·currently·only·supports·8/16·bit·little·endian·PCM·files.·16·bits·are·used·when·saving·wav·files.·Use·flac·files·if·more·precision·is·required.</p></li> |
Offset 182, 12 lines modified | Offset 181, 12 lines modified | ||
182 | <p>Return·true·on·success.</p> | 181 | <p>Return·true·on·success.</p> |
183 | <h1·id="al_get_allegro_acodec_version">al_get_allegro_acodec_version</h1> | 182 | <h1·id="al_get_allegro_acodec_version">al_get_allegro_acodec_version</h1> |
184 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_acodec_version(<span·class="dt">void</span>)</a></code></pre></div> | 183 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_acodec_version(<span·class="dt">void</span>)</a></code></pre></div> |
185 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L8">Source·Code</a></p> | 184 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L8">Source·Code</a></p> |
186 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 185 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
187 | <p·class="timestamp"> | 186 | <p·class="timestamp"> |
188 | Allegro·version·5.2.4 | 187 | Allegro·version·5.2.4 |
189 | ·-·Last·updated:·202 | 188 | ·-·Last·updated:·2020-04-29·17:01:44·UTC |
190 | </p> | 189 | </p> |
191 | </div> | 190 | </div> |
192 | </body> | 191 | </body> |
193 | </html> | 192 | </html> |
Offset 375, 31 lines modified | Offset 375, 29 lines modified | ||
375 | </figure> | 375 | </figure> |
376 | <p>Since·we·have·two·mixers,·with·the·sample·instances·connected·to·a·different·mixer·than·the·audio·stream,·you·can·control·the·volume·of·all·the·instances·independently·from·the·music·by·setting·the·gain·of·the·mixer·/·stream.·Having·two·sample·instances·lets·you·play·two·copies·of·the·sample·simultaneously.</p> | 376 | <p>Since·we·have·two·mixers,·with·the·sample·instances·connected·to·a·different·mixer·than·the·audio·stream,·you·can·control·the·volume·of·all·the·instances·independently·from·the·music·by·setting·the·gain·of·the·mixer·/·stream.·Having·two·sample·instances·lets·you·play·two·copies·of·the·sample·simultaneously.</p> |
377 | <p>With·this·in·mind,·another·look·at·<a·href="audio.html#al_reserve_samples">al_reserve_samples</a>·and·<a·href="audio.html#al_play_sample">al_play_sample</a>·is·due:·What·the·former·does·internally·is·to·create·a·specified·number·of·sample·instances·that·are·“empty”·at·first,·i.e. with·no·sample·data·set.·When·al_play_sample·is·called,·it’ll·use·one·of·these·internal·sample·instances·that·is·not·currently·playing·to·play·the·requested·sample.·All·of·these·sample·instances·will·be·attached·to·the·default·mixer,·which·can·be·changed·via·<a·href="audio.html#al_set_default_mixer">al_set_default_mixer</a>.</p> | 377 | <p>With·this·in·mind,·another·look·at·<a·href="audio.html#al_reserve_samples">al_reserve_samples</a>·and·<a·href="audio.html#al_play_sample">al_play_sample</a>·is·due:·What·the·former·does·internally·is·to·create·a·specified·number·of·sample·instances·that·are·“empty”·at·first,·i.e. with·no·sample·data·set.·When·al_play_sample·is·called,·it’ll·use·one·of·these·internal·sample·instances·that·is·not·currently·playing·to·play·the·requested·sample.·All·of·these·sample·instances·will·be·attached·to·the·default·mixer,·which·can·be·changed·via·<a·href="audio.html#al_set_default_mixer">al_set_default_mixer</a>.</p> |
378 | <p>See·<a·href="audio.html#audio-recording">Audio·recording</a>·for·Allegro’s·audio·recording·API,·which·is,·as·of·now,·still·unstable·and·subject·to·change.</p> | 378 | <p>See·<a·href="audio.html#audio-recording">Audio·recording</a>·for·Allegro’s·audio·recording·API,·which·is,·as·of·now,·still·unstable·and·subject·to·change.</p> |
379 | <h1·id="audio-types">Audio·types</h1> | 379 | <h1·id="audio-types">Audio·types</h1> |
380 | <p>Events·sent·by·<a·href="audio.html#al_get_audio_stream_event_source">al_get_audio_stream_event_source</a>·or·<a·href="audio.html#al_get_audio_recorder_event_source">al_get_audio_recorder_event_source</a>.</p> | 380 | <p>Events·sent·by·<a·href="audio.html#al_get_audio_stream_event_source">al_get_audio_stream_event_source</a>·or·<a·href="audio.html#al_get_audio_recorder_event_source">al_get_audio_recorder_event_source</a>.</p> |
381 | <h2·id="allegro_audio_event_type">ALLEGRO_AUDIO_EVENT_TYPE</h2> | 381 | <h2·id="allegro_audio_event_type">ALLEGRO_AUDIO_EVENT_TYPE</h2> |
382 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_AUDIO_EVENT_TYPE</a> | 382 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_AUDIO_EVENT_TYPE</a></code></pre></div> |
383 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">enum</span>·ALLEGRO_AUDIO_EVENT_TYPE</a></code></pre></div> | ||
384 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L43">Source·Code</a></p> | 383 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L43">Source·Code</a></p> |
385 | <h3·id="allegro_event_audio_stream_fragment">ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT</h3> | 384 | <h3·id="allegro_event_audio_stream_fragment">ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT</h3> |
386 | <p>Sent·when·a·stream·fragment·is·ready·to·be·filled·in.·See·<a·href="audio.html#al_get_audio_stream_fragment">al_get_audio_stream_fragment</a>.</p> | 385 | <p>Sent·when·a·stream·fragment·is·ready·to·be·filled·in.·See·<a·href="audio.html#al_get_audio_stream_fragment">al_get_audio_stream_fragment</a>.</p> |
387 | <h3·id="allegro_event_audio_stream_finished">ALLEGRO_EVENT_AUDIO_STREAM_FINISHED</h3> | 386 | <h3·id="allegro_event_audio_stream_finished">ALLEGRO_EVENT_AUDIO_STREAM_FINISHED</h3> |
388 | <p>Sent·when·a·stream·is·finished.</p> | 387 | <p>Sent·when·a·stream·is·finished.</p> |
389 | <h3·id="allegro_event_audio_recorder_fragment">ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT</h3> | 388 | <h3·id="allegro_event_audio_recorder_fragment">ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT</h3> |
390 | <p>Sent·after·a·user-specified·number·of·samples·have·been·recorded.·Convert·this·to·<a·href="audio.html#allegro_audio_recorder_event">ALLEGRO_AUDIO_RECORDER_EVENT</a>·via·<a·href="audio.html#al_get_audio_recorder_event">al_get_audio_recorder_event</a>.</p> | 389 | <p>Sent·after·a·user-specified·number·of·samples·have·been·recorded.·Convert·this·to·<a·href="audio.html#allegro_audio_recorder_event">ALLEGRO_AUDIO_RECORDER_EVENT</a>·via·<a·href="audio.html#al_get_audio_recorder_event">al_get_audio_recorder_event</a>.</p> |
391 | <p>You·must·always·check·the·values·for·the·buffer·and·samples·as·they·are·not·guaranteed·to·be·exactly·what·was·originally·specified.</p> | 390 | <p>You·must·always·check·the·values·for·the·buffer·and·samples·as·they·are·not·guaranteed·to·be·exactly·what·was·originally·specified.</p> |
392 | <p>Since:·5.1.1</p> | 391 | <p>Since:·5.1.1</p> |
393 | <blockquote> | 392 | <blockquote> |
394 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·The·API·may·need·a·slight·redesign.</p> | 393 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·The·API·may·need·a·slight·redesign.</p> |
395 | </blockquote> | 394 | </blockquote> |
396 | <h2·id="allegro_audio_depth">ALLEGRO_AUDIO_DEPTH</h2> | 395 | <h2·id="allegro_audio_depth">ALLEGRO_AUDIO_DEPTH</h2> |
397 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_AUDIO_DEPTH</a> | 396 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_AUDIO_DEPTH</a></code></pre></div> |
398 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="kw">enum</span>·ALLEGRO_AUDIO_DEPTH</a></code></pre></div> | ||
399 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L71">Source·Code</a></p> | 397 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L71">Source·Code</a></p> |
400 | <p>Sample·depth·and·type·as·well·as·signedness.·Mixers·only·use·32-bit·signed·float·(-1..+1),·or·16-bit·signed·integers.·Signedness·is·determined·by·an·“unsigned”·bit-flag·applied·to·the·depth·value.</p> | 398 | <p>Sample·depth·and·type·as·well·as·signedness.·Mixers·only·use·32-bit·signed·float·(-1..+1),·or·16-bit·signed·integers.·Signedness·is·determined·by·an·“unsigned”·bit-flag·applied·to·the·depth·value.</p> |
401 | <ul> | 399 | <ul> |
402 | <li>ALLEGRO_AUDIO_DEPTH_INT8</li> | 400 | <li>ALLEGRO_AUDIO_DEPTH_INT8</li> |
403 | <li>ALLEGRO_AUDIO_DEPTH_INT16</li> | 401 | <li>ALLEGRO_AUDIO_DEPTH_INT16</li> |
404 | <li>ALLEGRO_AUDIO_DEPTH_INT24</li> | 402 | <li>ALLEGRO_AUDIO_DEPTH_INT24</li> |
405 | <li>ALLEGRO_AUDIO_DEPTH_FLOAT32</li> | 403 | <li>ALLEGRO_AUDIO_DEPTH_FLOAT32</li> |
Offset 408, 537 lines modified | Offset 406, 457 lines modified | ||
408 | <p>For·convenience:</p> | 406 | <p>For·convenience:</p> |
409 | <ul> | 407 | <ul> |
410 | <li>ALLEGRO_AUDIO_DEPTH_UINT8</li> | 408 | <li>ALLEGRO_AUDIO_DEPTH_UINT8</li> |
411 | <li>ALLEGRO_AUDIO_DEPTH_UINT16</li> | 409 | <li>ALLEGRO_AUDIO_DEPTH_UINT16</li> |
412 | <li>ALLEGRO_AUDIO_DEPTH_UINT24</li> | 410 | <li>ALLEGRO_AUDIO_DEPTH_UINT24</li> |
413 | </ul> | 411 | </ul> |
414 | <h2·id="allegro_audio_pan_none">ALLEGRO_AUDIO_PAN_NONE</h2> | 412 | <h2·id="allegro_audio_pan_none">ALLEGRO_AUDIO_PAN_NONE</h2> |
415 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="pp">#define·ALLEGRO_AUDIO_PAN_NONE······(-1000.0f)</span></a> | 413 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="pp">#define·ALLEGRO_AUDIO_PAN_NONE······(-1000.0f)</span></a></code></pre></div> |
416 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="pp">#define·ALLEGRO_AUDIO_PAN_NONE······(-1000.0f)</span></a></code></pre></div> | ||
417 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L140">Source·Code</a></p> | 414 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L140">Source·Code</a></p> |
418 | <p>A·special·value·for·the·pan·property·of·sample·instances·and·audio·streams.·Use·this·value·to·disable·panning·on·sample·instances·and·audio·streams,·and·play·them·without·attentuation·implied·by·panning·support.</p> | 415 | <p>A·special·value·for·the·pan·property·of·sample·instances·and·audio·streams.·Use·this·value·to·disable·panning·on·sample·instances·and·audio·streams,·and·play·them·without·attentuation·implied·by·panning·support.</p> |
419 | <p>ALLEGRO_AUDIO_PAN_NONE·is·different·from·a·pan·value·of·0.0·(centered)·because,·when·panning·is·enabled,·we·try·to·maintain·a·constant·sound·power·level·as·a·sample·is·panned·from·left·to·right.·A·sound·coming·out·of·one·speaker·should·sound·as·loud·as·it·does·when·split·over·two·speakers.·As·a·consequence,·a·sample·with·pan·value·0.0·will·be·3·dB·softer·than·the·original·level.</p> | 416 | <p>ALLEGRO_AUDIO_PAN_NONE·is·different·from·a·pan·value·of·0.0·(centered)·because,·when·panning·is·enabled,·we·try·to·maintain·a·constant·sound·power·level·as·a·sample·is·panned·from·left·to·right.·A·sound·coming·out·of·one·speaker·should·sound·as·loud·as·it·does·when·split·over·two·speakers.·As·a·consequence,·a·sample·with·pan·value·0.0·will·be·3·dB·softer·than·the·original·level.</p> |
420 | <p>(Please·correct·us·if·this·is·wrong.)</p> | 417 | <p>(Please·correct·us·if·this·is·wrong.)</p> |
421 | <h2·id="allegro_channel_conf">ALLEGRO_CHANNEL_CONF</h2> | 418 | <h2·id="allegro_channel_conf">ALLEGRO_CHANNEL_CONF</h2> |
422 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_CHANNEL_CONF</a> | 419 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_CHANNEL_CONF</a></code></pre></div> |
423 | <a·class="sourceLine"·id="cb6-2"·title="2"><span·class="kw">enum</span>·ALLEGRO_CHANNEL_CONF</a></code></pre></div> | ||
424 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L96">Source·Code</a></p> | 420 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L96">Source·Code</a></p> |
425 | <p>Speaker·configuration·(mono,·stereo,·2.1,·etc).</p> | 421 | <p>Speaker·configuration·(mono,·stereo,·2.1,·etc).</p> |
426 | <ul> | 422 | <ul> |
427 | <li>ALLEGRO_CHANNEL_CONF_1</li> | 423 | <li>ALLEGRO_CHANNEL_CONF_1</li> |
428 | <li>ALLEGRO_CHANNEL_CONF_2</li> | 424 | <li>ALLEGRO_CHANNEL_CONF_2</li> |
429 | <li>ALLEGRO_CHANNEL_CONF_3</li> | 425 | <li>ALLEGRO_CHANNEL_CONF_3</li> |
430 | <li>ALLEGRO_CHANNEL_CONF_4</li> | 426 | <li>ALLEGRO_CHANNEL_CONF_4</li> |
431 | <li>ALLEGRO_CHANNEL_CONF_5_1</li> | 427 | <li>ALLEGRO_CHANNEL_CONF_5_1</li> |
432 | <li>ALLEGRO_CHANNEL_CONF_6_1</li> | 428 | <li>ALLEGRO_CHANNEL_CONF_6_1</li> |
433 | <li>ALLEGRO_CHANNEL_CONF_7_1</li> | 429 | <li>ALLEGRO_CHANNEL_CONF_7_1</li> |
434 | </ul> | 430 | </ul> |
435 | <h2·id="allegro_mixer">ALLEGRO_MIXER</h2> | 431 | <h2·id="allegro_mixer">ALLEGRO_MIXER</h2> |
436 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MIXER·ALLEGRO_MIXER;</a> | 432 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MIXER·ALLEGRO_MIXER;</a></code></pre></div> |
437 | <a·class="sourceLine"·id="cb7-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MIXER·ALLEGRO_MIXER;</a></code></pre></div> | ||
438 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L169">Source·Code</a></p> | 433 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L169">Source·Code</a></p> |
439 | <p>A·mixer·mixes·together·attached·streams·into·a·single·buffer.·In·the·process,·it·converts·channel·configurations,·sample·frequencies·and·audio·depths·of·the·attached·sample·instances·and·audio·streams·accordingly.·You·can·control·the·quality·of·this·conversion·using·ALLEGRO_MIXER_QUALITY.</p> | 434 | <p>A·mixer·mixes·together·attached·streams·into·a·single·buffer.·In·the·process,·it·converts·channel·configurations,·sample·frequencies·and·audio·depths·of·the·attached·sample·instances·and·audio·streams·accordingly.·You·can·control·the·quality·of·this·conversion·using·ALLEGRO_MIXER_QUALITY.</p> |
440 | <p>When·going·from·mono·to·stereo·(and·above),·the·mixer·reduces·the·volume·of·both·channels·by·<code>sqrt(2)</code>.·When·going·from·stereo·(and·above)·to·mono,·the·mixer·reduces·the·volume·of·the·left·and·right·channels·by·<code>sqrt(2)</code>·before·adding·them·to·the·center·channel·(if·present).</p> | 435 | <p>When·going·from·mono·to·stereo·(and·above),·the·mixer·reduces·the·volume·of·both·channels·by·<code>sqrt(2)</code>.·When·going·from·stereo·(and·above)·to·mono,·the·mixer·reduces·the·volume·of·the·left·and·right·channels·by·<code>sqrt(2)</code>·before·adding·them·to·the·center·channel·(if·present).</p> |
441 | <h2·id="allegro_mixer_quality">ALLEGRO_MIXER_QUALITY</h2> | 436 | <h2·id="allegro_mixer_quality">ALLEGRO_MIXER_QUALITY</h2> |
442 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_MIXER_QUALITY</a> | 437 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_MIXER_QUALITY</a></code></pre></div> |
443 | <a·class="sourceLine"·id="cb8-2"·title="2"><span·class="kw">enum</span>·ALLEGRO_MIXER_QUALITY</a></code></pre></div> | ||
444 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L130">Source·Code</a></p> | 438 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L130">Source·Code</a></p> |
445 | <ul> | 439 | <ul> |
446 | <li>ALLEGRO_MIXER_QUALITY_POINT·-·point·sampling</li> | 440 | <li>ALLEGRO_MIXER_QUALITY_POINT·-·point·sampling</li> |
447 | <li>ALLEGRO_MIXER_QUALITY_LINEAR·-·linear·interpolation</li> | 441 | <li>ALLEGRO_MIXER_QUALITY_LINEAR·-·linear·interpolation</li> |
448 | <li>ALLEGRO_MIXER_QUALITY_CUBIC·-·cubic·interpolation·(since:·5.0.8,·5.1.4)</li> | 442 | <li>ALLEGRO_MIXER_QUALITY_CUBIC·-·cubic·interpolation·(since:·5.0.8,·5.1.4)</li> |
449 | </ul> | 443 | </ul> |
450 | <h2·id="allegro_playmode">ALLEGRO_PLAYMODE</h2> | 444 | <h2·id="allegro_playmode">ALLEGRO_PLAYMODE</h2> |
451 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_PLAYMODE</a> | 445 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_PLAYMODE</a></code></pre></div> |
452 | <a·class="sourceLine"·id="cb9-2"·title="2"><span·class="kw">enum</span>·ALLEGRO_PLAYMODE</a></code></pre></div> | ||
453 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L118">Source·Code</a></p> | 446 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L118">Source·Code</a></p> |
454 | <p>Sample·and·stream·playback·mode.</p> | 447 | <p>Sample·and·stream·playback·mode.</p> |
455 | <ul> | 448 | <ul> |
456 | <li>ALLEGRO_PLAYMODE_ONCE</li> | 449 | <li>ALLEGRO_PLAYMODE_ONCE</li> |
457 | <li>ALLEGRO_PLAYMODE_LOOP</li> | 450 | <li>ALLEGRO_PLAYMODE_LOOP</li> |
458 | <li>ALLEGRO_PLAYMODE_BIDIR</li> | 451 | <li>ALLEGRO_PLAYMODE_BIDIR</li> |
459 | </ul> | 452 | </ul> |
460 | <h2·id="allegro_sample_id">ALLEGRO_SAMPLE_ID</h2> | 453 | <h2·id="allegro_sample_id">ALLEGRO_SAMPLE_ID</h2> |
461 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID;</a> | 454 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID;</a></code></pre></div> |
462 | <a·class="sourceLine"·id="cb10-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID;</a></code></pre></div> | ||
463 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L149">Source·Code</a></p> | 455 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L149">Source·Code</a></p> |
464 | <p>An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·<a·href="audio.html#al_play_sample">al_play_sample</a>.·It·can·be·used·to·later·stop·the·sample·with·<a·href="audio.html#al_stop_sample">al_stop_sample</a>.·The·underlying·ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·<a·href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p> | 456 | <p>An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·<a·href="audio.html#al_play_sample">al_play_sample</a>.·It·can·be·used·to·later·stop·the·sample·with·<a·href="audio.html#al_stop_sample">al_stop_sample</a>.·The·underlying·ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·<a·href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p> |
465 | <h2·id="allegro_sample">ALLEGRO_SAMPLE</h2> | 457 | <h2·id="allegro_sample">ALLEGRO_SAMPLE</h2> |
466 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE;</a> | 458 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE;</a></code></pre></div> |
467 | <a·class="sourceLine"·id="cb11-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE;</a></code></pre></div> | ||
468 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L144">Source·Code</a></p> | 459 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L144">Source·Code</a></p> |
469 | <p>An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing·pre-defined·digital·audio.·It·holds·a·user-specified·PCM·data·buffer·and·information·about·its·format·(data·length,·depth,·frequency,·channel·configuration).·You·can·have·the·same·ALLEGRO_SAMPLE·playing·multiple·times·simultaneously.</p> | 460 | <p>An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing·pre-defined·digital·audio.·It·holds·a·user-specified·PCM·data·buffer·and·information·about·its·format·(data·length,·depth,·frequency,·channel·configuration).·You·can·have·the·same·ALLEGRO_SAMPLE·playing·multiple·times·simultaneously.</p> |
470 | <p>See·also:·<a·href="audio.html#allegro_sample_instance">ALLEGRO_SAMPLE_INSTANCE</a></p> | 461 | <p>See·also:·<a·href="audio.html#allegro_sample_instance">ALLEGRO_SAMPLE_INSTANCE</a></p> |
471 | <h2·id="allegro_sample_instance">ALLEGRO_SAMPLE_INSTANCE</h2> | 462 | <h2·id="allegro_sample_instance">ALLEGRO_SAMPLE_INSTANCE</h2> |
472 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE;</a> | 463 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE;</a></code></pre></div> |
473 | <a·class="sourceLine"·id="cb12-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE;</a></code></pre></div> | ||
474 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L159">Source·Code</a></p> | 464 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L159">Source·Code</a></p> |
475 | <p>An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a·predefined·sound·effect.·It·holds·information·about·how·the·effect·should·be·played:·These·playback·parameters·consist·of·the·looping·mode,·loop·start/end·points,·playing·position,·speed,·gain,·pan·and·the·playmode.·Whether·a·sample·instance·is·currently·playing·or·paused·is·also·one·of·its·properties.</p> | 465 | <p>An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a·predefined·sound·effect.·It·holds·information·about·how·the·effect·should·be·played:·These·playback·parameters·consist·of·the·looping·mode,·loop·start/end·points,·playing·position,·speed,·gain,·pan·and·the·playmode.·Whether·a·sample·instance·is·currently·playing·or·paused·is·also·one·of·its·properties.</p> |
476 | <p>An·instance·uses·the·data·from·an·<a·href="audio.html#allegro_sample">ALLEGRO_SAMPLE</a>·object.·Multiple·instances·may·be·created·from·the·same·ALLEGRO_SAMPLE.·An·ALLEGRO_SAMPLE·must·not·be·destroyed·while·there·are·instances·which·reference·it.</p> | 466 | <p>An·instance·uses·the·data·from·an·<a·href="audio.html#allegro_sample">ALLEGRO_SAMPLE</a>·object.·Multiple·instances·may·be·created·from·the·same·ALLEGRO_SAMPLE.·An·ALLEGRO_SAMPLE·must·not·be·destroyed·while·there·are·instances·which·reference·it.</p> |
477 | <p>To·actually·produce·audio·output,·an·ALLEGRO_SAMPLE_INSTANCE·must·be·attached·to·an·<a·href="audio.html#allegro_mixer">ALLEGRO_MIXER</a>·which·eventually·reaches·an·<a·href="audio.html#allegro_voice">ALLEGRO_VOICE</a>·object.</p> | 467 | <p>To·actually·produce·audio·output,·an·ALLEGRO_SAMPLE_INSTANCE·must·be·attached·to·an·<a·href="audio.html#allegro_mixer">ALLEGRO_MIXER</a>·which·eventually·reaches·an·<a·href="audio.html#allegro_voice">ALLEGRO_VOICE</a>·object.</p> |
478 | <p>See·also:·<a·href="audio.html#allegro_sample">ALLEGRO_SAMPLE</a></p> | 468 | <p>See·also:·<a·href="audio.html#allegro_sample">ALLEGRO_SAMPLE</a></p> |
479 | <h2·id="allegro_audio_stream">ALLEGRO_AUDIO_STREAM</h2> | 469 | <h2·id="allegro_audio_stream">ALLEGRO_AUDIO_STREAM</h2> |
480 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb13-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM;</a> | 470 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb13-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM;</a></code></pre></div> |
481 | <a·class="sourceLine"·id="cb13-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM;</a></code></pre></div> | ||
482 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L164">Source·Code</a></p> | 471 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L164">Source·Code</a></p> |
483 | <p>An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the·sound·device,·in·real-time.·This·is·done·by·reading·from·a·buffer,·which·is·split·into·a·number·of·fragments.·Whenever·a·fragment·has·finished·playing,·the·user·can·refill·it·with·new·data.</p> | 472 | <p>An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the·sound·device,·in·real-time.·This·is·done·by·reading·from·a·buffer,·which·is·split·into·a·number·of·fragments.·Whenever·a·fragment·has·finished·playing,·the·user·can·refill·it·with·new·data.</p> |
484 | <p>As·with·<a·href="audio.html#allegro_sample_instance">ALLEGRO_SAMPLE_INSTANCE</a>·objects,·streams·store·information·necessary·for·playback,·so·you·may·not·play·the·same·stream·multiple·times·simultaneously.·Streams·also·need·to·be·attached·to·an·<a·href="audio.html#allegro_mixer">ALLEGRO_MIXER</a>,·which,·eventually,·reaches·an·<a·href="audio.html#allegro_voice">ALLEGRO_VOICE</a>·object.</p> | 473 | <p>As·with·<a·href="audio.html#allegro_sample_instance">ALLEGRO_SAMPLE_INSTANCE</a>·objects,·streams·store·information·necessary·for·playback,·so·you·may·not·play·the·same·stream·multiple·times·simultaneously.·Streams·also·need·to·be·attached·to·an·<a·href="audio.html#allegro_mixer">ALLEGRO_MIXER</a>,·which,·eventually,·reaches·an·<a·href="audio.html#allegro_voice">ALLEGRO_VOICE</a>·object.</p> |
485 | <p>While·playing,·you·must·periodically·fill·fragments·with·new·audio·data.·To·know·when·a·new·fragment·is·ready·to·be·filled,·you·can·either·directly·check·with·<a·href="audio.html#al_get_available_audio_stream_fragments">al_get_available_audio_stream_fragments</a>,·or·listen·to·events·from·the·stream.</p> | 474 | <p>While·playing,·you·must·periodically·fill·fragments·with·new·audio·data.·To·know·when·a·new·fragment·is·ready·to·be·filled,·you·can·either·directly·check·with·<a·href="audio.html#al_get_available_audio_stream_fragments">al_get_available_audio_stream_fragments</a>,·or·listen·to·events·from·the·stream.</p> |
486 | <p>You·can·register·an·audio·stream·event·source·to·an·event·queue;·see·<a·href="audio.html#al_get_audio_stream_event_source">al_get_audio_stream_event_source</a>.·An·<a·href="audio.html#allegro_event_audio_stream_fragment">ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT</a>·event·is·generated·whenever·a·new·fragment·is·ready.·When·you·receive·an·event,·use·<a·href="audio.html#al_get_audio_stream_fragment">al_get_audio_stream_fragment</a>·to·obtain·a·pointer·to·the·fragment·to·be·filled.·The·size·and·format·are·determined·by·the·parameters·passed·to·<a·href="audio.html#al_create_audio_stream">al_create_audio_stream</a>.</p> | 475 | <p>You·can·register·an·audio·stream·event·source·to·an·event·queue;·see·<a·href="audio.html#al_get_audio_stream_event_source">al_get_audio_stream_event_source</a>.·An·<a·href="audio.html#allegro_event_audio_stream_fragment">ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT</a>·event·is·generated·whenever·a·new·fragment·is·ready.·When·you·receive·an·event,·use·<a·href="audio.html#al_get_audio_stream_fragment">al_get_audio_stream_fragment</a>·to·obtain·a·pointer·to·the·fragment·to·be·filled.·The·size·and·format·are·determined·by·the·parameters·passed·to·<a·href="audio.html#al_create_audio_stream">al_create_audio_stream</a>.</p> |
487 | <p>If·you’re·late·with·supplying·new·data,·the·stream·will·be·silent·until·new·data·is·provided.·You·must·call·<a·href="audio.html#al_drain_audio_stream">al_drain_audio_stream</a>·when·you’re·finished·with·supplying·data·to·the·stream.</p> | 476 | <p>If·you’re·late·with·supplying·new·data,·the·stream·will·be·silent·until·new·data·is·provided.·You·must·call·<a·href="audio.html#al_drain_audio_stream">al_drain_audio_stream</a>·when·you’re·finished·with·supplying·data·to·the·stream.</p> |
488 | <p>If·the·stream·is·created·by·<a·href="audio.html#al_load_audio_stream">al_load_audio_stream</a>·then·it·will·also·generate·an·<a·href="audio.html#allegro_event_audio_stream_finished">ALLEGRO_EVENT_AUDIO_STREAM_FINISHED</a>·event·if·it·reaches·the·end·of·the·file·and·is·not·set·to·loop.</p> | 477 | <p>If·the·stream·is·created·by·<a·href="audio.html#al_load_audio_stream">al_load_audio_stream</a>·then·it·will·also·generate·an·<a·href="audio.html#allegro_event_audio_stream_finished">ALLEGRO_EVENT_AUDIO_STREAM_FINISHED</a>·event·if·it·reaches·the·end·of·the·file·and·is·not·set·to·loop.</p> |
489 | <h2·id="allegro_voice">ALLEGRO_VOICE</h2> | 478 | <h2·id="allegro_voice">ALLEGRO_VOICE</h2> |
490 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_VOICE·ALLEGRO_VOICE;</a> | 479 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_VOICE·ALLEGRO_VOICE;</a></code></pre></div> |
491 | <a·class="sourceLine"·id="cb14-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_VOICE·ALLEGRO_VOICE;</a></code></pre></div> | ||
492 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L174">Source·Code</a></p> | 480 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L174">Source·Code</a></p> |
493 | <p>A·voice·represents·an·audio·device·on·the·system,·which·may·be·a·real·device,·or·an·abstract·device·provided·by·the·operating·system.·To·play·back·audio,·you·would·attach·a·mixer,·sample·instance·or·audio·stream·to·a·voice.</p> | 481 | <p>A·voice·represents·an·audio·device·on·the·system,·which·may·be·a·real·device,·or·an·abstract·device·provided·by·the·operating·system.·To·play·back·audio,·you·would·attach·a·mixer,·sample·instance·or·audio·stream·to·a·voice.</p> |
494 | <p>See·also:·<a·href="audio.html#allegro_mixer">ALLEGRO_MIXER</a>,·<a·href="audio.html#allegro_sample">ALLEGRO_SAMPLE</a>,·<a·href="audio.html#allegro_audio_stream">ALLEGRO_AUDIO_STREAM</a></p> | 482 | <p>See·also:·<a·href="audio.html#allegro_mixer">ALLEGRO_MIXER</a>,·<a·href="audio.html#allegro_sample">ALLEGRO_SAMPLE</a>,·<a·href="audio.html#allegro_audio_stream">ALLEGRO_AUDIO_STREAM</a></p> |
495 | <h1·id="setting-up-audio">Setting·up·audio</h1> | 483 | <h1·id="setting-up-audio">Setting·up·audio</h1> |
496 | <h2·id="al_install_audio">al_install_audio</h2> | 484 | <h2·id="al_install_audio">al_install_audio</h2> |
497 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb15-1"·title="1"><span·class="dt">bool</span>·al_install_audio(<span·class="dt">void</span>)</a> | 485 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb15-1"·title="1"><span·class="dt">bool</span>·al_install_audio(<span·class="dt">void</span>)</a></code></pre></div> |
498 | <a·class="sourceLine"·id="cb15-2"·title="2"><span·class="dt">bool</span>·al_install_audio(<span·class="dt">void</span>)</a></code></pre></div> | ||
499 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L378">Source·Code</a></p> | 486 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L378">Source·Code</a></p> |
500 | <p>Install·the·audio·subsystem.</p> | 487 | <p>Install·the·audio·subsystem.</p> |
501 | <p>Returns·true·on·success,·false·on·failure.</p> | 488 | <p>Returns·true·on·success,·false·on·failure.</p> |
502 | <blockquote> | 489 | <blockquote> |
Max diff block lines reached; 173156/192521 bytes (89.94%) of diff not shown. |
Offset 199, 129 lines modified | Offset 199, 113 lines modified | ||
199 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_color.h></span></a></code></pre></div> | 199 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_color.h></span></a></code></pre></div> |
200 | <p>When·converting·between·certain·color·spaces,·RGB·colors·are·implicitly·assumed·to·mean·sRGB.</p> | 200 | <p>When·converting·between·certain·color·spaces,·RGB·colors·are·implicitly·assumed·to·mean·sRGB.</p> |
201 | <p>sRGB·is·a·standard·which·maps·RGB·colors·to·absolute·colors.·sRGB·is·very·close·to·RGB·values·on·a·monitor·which·has·a·gamma·value·of·2.2.·For·example·when·the·red·component·of·a·color·is·0.5,·the·monitor·will·use·a·brightness·of·pow(0.5,·2.2)·or·about·22%·-·and·not·50%.·The·reason·is·that·human·eyes·can·distinguish·better·between·dark·colors·than·between·bright·colors,·and·so·if·a·pixel·of·the·monitor·is·lit·up·to·22%·of·its·maximum·power·it·already·will·appear·at·half·brightness·to·a·human·eye.</p> | 201 | <p>sRGB·is·a·standard·which·maps·RGB·colors·to·absolute·colors.·sRGB·is·very·close·to·RGB·values·on·a·monitor·which·has·a·gamma·value·of·2.2.·For·example·when·the·red·component·of·a·color·is·0.5,·the·monitor·will·use·a·brightness·of·pow(0.5,·2.2)·or·about·22%·-·and·not·50%.·The·reason·is·that·human·eyes·can·distinguish·better·between·dark·colors·than·between·bright·colors,·and·so·if·a·pixel·of·the·monitor·is·lit·up·to·22%·of·its·maximum·power·it·already·will·appear·at·half·brightness·to·a·human·eye.</p> |
202 | <p>sRGB·improves·upon·simple·gamma·correction·by·taking·differences·between·the·three·color·channels·into·account·as·well.·In·general,·most·monitors·nowadays·try·to·be·close·to·the·sRGB·specification.·And·so·if·in·an·Allegro·game·you·display·something·with·color</p> | 202 | <p>sRGB·improves·upon·simple·gamma·correction·by·taking·differences·between·the·three·color·channels·into·account·as·well.·In·general,·most·monitors·nowadays·try·to·be·close·to·the·sRGB·specification.·And·so·if·in·an·Allegro·game·you·display·something·with·color</p> |
203 | <p>al_map_rgb_f(0.5,·0.5,·0,5)</p> | 203 | <p>al_map_rgb_f(0.5,·0.5,·0,5)</p> |
204 | <p>then·it·will·appear·at·about·half·brightness·(even·though·the·actual·brightness·output·of·the·monitor·will·be·less·than·half).</p> | 204 | <p>then·it·will·appear·at·about·half·brightness·(even·though·the·actual·brightness·output·of·the·monitor·will·be·less·than·half).</p> |
205 | <h1·id="al_color_cmyk">al_color_cmyk</h1> | 205 | <h1·id="al_color_cmyk">al_color_cmyk</h1> |
206 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1">ALLEGRO_COLOR·al_color_cmyk(<span·class="dt">float</span>·c,·<span·class="dt">float</span>·m,·<span·class="dt">float</span>·y,·<span·class="dt">float</span>·k)</a> | 206 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1">ALLEGRO_COLOR·al_color_cmyk(<span·class="dt">float</span>·c,·<span·class="dt">float</span>·m,·<span·class="dt">float</span>·y,·<span·class="dt">float</span>·k)</a></code></pre></div> |
207 | <a·class="sourceLine"·id="cb2-2"·title="2">ALLEGRO_COLOR·al_color_cmyk(<span·class="dt">float</span>·c,·<span·class="dt">float</span>·m,·<span·class="dt">float</span>·y,·<span·class="dt">float</span>·k)</a></code></pre></div> | ||
208 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source·Code</a></p> | 207 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source·Code</a></p> |
209 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> | 208 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> |
210 | <p>See·also:·<a·href="color.html#al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</a>,·<a·href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> | 209 | <p>See·also:·<a·href="color.html#al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</a>,·<a·href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> |
211 | <h1·id="al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</h1> | 210 | <h1·id="al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</h1> |
212 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">void</span>·al_color_cmyk_to_rgb(<span·class="dt">float</span>·cyan,·<span·class="dt">float</span>·magenta,·<span·class="dt">float</span>·yellow,</a> | 211 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">void</span>·al_color_cmyk_to_rgb(<span·class="dt">float</span>·cyan,·<span·class="dt">float</span>·magenta,·<span·class="dt">float</span>·yellow,</a> |
213 | <a·class="sourceLine"·id="cb3-2"·title="2">····<span·class="dt">float</span>·key,·<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a> | 212 | <a·class="sourceLine"·id="cb3-2"·title="2">····<span·class="dt">float</span>·key,·<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a></code></pre></div> |
214 | <a·class="sourceLine"·id="cb3-3"·title="3"><span·class="dt">void</span>·al_color_cmyk_to_rgb(<span·class="dt">float</span>·cyan,·<span·class="dt">float</span>·magenta,·<span·class="dt">float</span>·yellow,</a> | ||
215 | <a·class="sourceLine"·id="cb3-4"·title="4">····<span·class="dt">float</span>·key,·<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a></code></pre></div> | ||
216 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source·Code</a></p> | 213 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source·Code</a></p> |
217 | <p>Convert·CMYK·values·to·RGB·values.</p> | 214 | <p>Convert·CMYK·values·to·RGB·values.</p> |
218 | <p>See·also:·<a·href="color.html#al_color_cmyk">al_color_cmyk</a>,·<a·href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> | 215 | <p>See·also:·<a·href="color.html#al_color_cmyk">al_color_cmyk</a>,·<a·href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> |
219 | <h1·id="al_color_hsl">al_color_hsl</h1> | 216 | <h1·id="al_color_hsl">al_color_hsl</h1> |
220 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1">ALLEGRO_COLOR·al_color_hsl(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·l)</a> | 217 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1">ALLEGRO_COLOR·al_color_hsl(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·l)</a></code></pre></div> |
221 | <a·class="sourceLine"·id="cb4-2"·title="2">ALLEGRO_COLOR·al_color_hsl(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·l)</a></code></pre></div> | ||
222 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source·Code</a></p> | 218 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source·Code</a></p> |
223 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·HSL·(hue,·saturation,·lightness)·values.</p> | 219 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·HSL·(hue,·saturation,·lightness)·values.</p> |
224 | <p>Parameters:</p> | 220 | <p>Parameters:</p> |
225 | <ul> | 221 | <ul> |
226 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 222 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
227 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> | 223 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> |
228 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> | 224 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> |
229 | </ul> | 225 | </ul> |
230 | <p>See·also:·<a·href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a>,·<a·href="color.html#al_color_hsv">al_color_hsv</a></p> | 226 | <p>See·also:·<a·href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a>,·<a·href="color.html#al_color_hsv">al_color_hsv</a></p> |
231 | <h1·id="al_color_hsl_to_rgb">al_color_hsl_to_rgb</h1> | 227 | <h1·id="al_color_hsl_to_rgb">al_color_hsl_to_rgb</h1> |
232 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">void</span>·al_color_hsl_to_rgb(<span·class="dt">float</span>·hue,·<span·class="dt">float</span>·saturation,·<span·class="dt">float</span>·lightness,</a> | 228 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">void</span>·al_color_hsl_to_rgb(<span·class="dt">float</span>·hue,·<span·class="dt">float</span>·saturation,·<span·class="dt">float</span>·lightness,</a> |
233 | <a·class="sourceLine"·id="cb5-2"·title="2">···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a> | 229 | <a·class="sourceLine"·id="cb5-2"·title="2">···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a></code></pre></div> |
234 | <a·class="sourceLine"·id="cb5-3"·title="3"><span·class="dt">void</span>·al_color_hsl_to_rgb(<span·class="dt">float</span>·hue,·<span·class="dt">float</span>·saturation,·<span·class="dt">float</span>·lightness,</a> | ||
235 | <a·class="sourceLine"·id="cb5-4"·title="4">···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a></code></pre></div> | ||
236 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L367">Source·Code</a></p> | 230 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L367">Source·Code</a></p> |
237 | <p>Convert·values·in·HSL·color·model·to·RGB·color·model.</p> | 231 | <p>Convert·values·in·HSL·color·model·to·RGB·color·model.</p> |
238 | <p>Parameters:</p> | 232 | <p>Parameters:</p> |
239 | <ul> | 233 | <ul> |
240 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 234 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
241 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> | 235 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> |
242 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> | 236 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> |
243 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> | 237 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> |
244 | </ul> | 238 | </ul> |
245 | <p>See·also:·<a·href="color.html#al_color_rgb_to_hsl">al_color_rgb_to_hsl</a>,·<a·href="color.html#al_color_hsl">al_color_hsl</a>,·<a·href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a></p> | 239 | <p>See·also:·<a·href="color.html#al_color_rgb_to_hsl">al_color_rgb_to_hsl</a>,·<a·href="color.html#al_color_hsl">al_color_hsl</a>,·<a·href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a></p> |
246 | <h1·id="al_color_hsv">al_color_hsv</h1> | 240 | <h1·id="al_color_hsv">al_color_hsv</h1> |
247 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1">ALLEGRO_COLOR·al_color_hsv(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·v)</a> | 241 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1">ALLEGRO_COLOR·al_color_hsv(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·v)</a></code></pre></div> |
248 | <a·class="sourceLine"·id="cb6-2"·title="2">ALLEGRO_COLOR·al_color_hsv(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·v)</a></code></pre></div> | ||
249 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L339">Source·Code</a></p> | 242 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L339">Source·Code</a></p> |
250 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·HSV·(hue,·saturation,·value)·values.</p> | 243 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·HSV·(hue,·saturation,·value)·values.</p> |
251 | <p>Parameters:</p> | 244 | <p>Parameters:</p> |
252 | <ul> | 245 | <ul> |
253 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 246 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
254 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> | 247 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> |
255 | <li>value·-·Color·value·in·the·range·0..1</li> | 248 | <li>value·-·Color·value·in·the·range·0..1</li> |
256 | </ul> | 249 | </ul> |
257 | <p>See·also:·<a·href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a>,·<a·href="color.html#al_color_hsl">al_color_hsl</a></p> | 250 | <p>See·also:·<a·href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a>,·<a·href="color.html#al_color_hsl">al_color_hsl</a></p> |
258 | <h1·id="al_color_hsv_to_rgb">al_color_hsv_to_rgb</h1> | 251 | <h1·id="al_color_hsv_to_rgb">al_color_hsv_to_rgb</h1> |
259 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="dt">void</span>·al_color_hsv_to_rgb(<span·class="dt">float</span>·hue,·<span·class="dt">float</span>·saturation,·<span·class="dt">float</span>·value,</a> | 252 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="dt">void</span>·al_color_hsv_to_rgb(<span·class="dt">float</span>·hue,·<span·class="dt">float</span>·saturation,·<span·class="dt">float</span>·value,</a> |
260 | <a·class="sourceLine"·id="cb7-2"·title="2">···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a> | 253 | <a·class="sourceLine"·id="cb7-2"·title="2">···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a></code></pre></div> |
261 | <a·class="sourceLine"·id="cb7-3"·title="3"><span·class="dt">void</span>·al_color_hsv_to_rgb(<span·class="dt">float</span>·hue,·<span·class="dt">float</span>·saturation,·<span·class="dt">float</span>·value,</a> | ||
262 | <a·class="sourceLine"·id="cb7-4"·title="4">···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a></code></pre></div> | ||
263 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L266">Source·Code</a></p> | 254 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L266">Source·Code</a></p> |
264 | <p>Convert·values·in·HSV·color·model·to·RGB·color·model.</p> | 255 | <p>Convert·values·in·HSV·color·model·to·RGB·color·model.</p> |
265 | <p>Parameters:</p> | 256 | <p>Parameters:</p> |
266 | <ul> | 257 | <ul> |
267 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 258 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
268 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> | 259 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> |
269 | <li>value·-·Color·value·in·the·range·0..1</li> | 260 | <li>value·-·Color·value·in·the·range·0..1</li> |
270 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> | 261 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> |
271 | </ul> | 262 | </ul> |
272 | <p>See·also:·<a·href="color.html#al_color_rgb_to_hsv">al_color_rgb_to_hsv</a>,·<a·href="color.html#al_color_hsv">al_color_hsv</a>,·<a·href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a></p> | 263 | <p>See·also:·<a·href="color.html#al_color_rgb_to_hsv">al_color_rgb_to_hsv</a>,·<a·href="color.html#al_color_hsv">al_color_hsv</a>,·<a·href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a></p> |
273 | <h1·id="al_color_html">al_color_html</h1> | 264 | <h1·id="al_color_html">al_color_html</h1> |
274 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1">ALLEGRO_COLOR·al_color_html(<span·class="dt">char</span>·<span·class="dt">const</span>·*string)</a> | 265 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1">ALLEGRO_COLOR·al_color_html(<span·class="dt">char</span>·<span·class="dt">const</span>·*string)</a></code></pre></div> |
275 | <a·class="sourceLine"·id="cb8-2"·title="2">ALLEGRO_COLOR·al_color_html(<span·class="dt">char</span>·<span·class="dt">const</span>·*string)</a></code></pre></div> | ||
276 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L568">Source·Code</a></p> | 266 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L568">Source·Code</a></p> |
277 | <p>Interprets·an·HTML-style·hex·number·(e.g.·#00faff)·as·a·color.·The·accepted·format·is·the·same·as·<a·href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>.</p> | 267 | <p>Interprets·an·HTML-style·hex·number·(e.g.·#00faff)·as·a·color.·The·accepted·format·is·the·same·as·<a·href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>.</p> |
278 | <p>Returns·the·interpreted·color,·or·<code>al_map_rgba(0,·0,·0,·0)</code>·if·the·string·could·not·be·parsed.</p> | 268 | <p>Returns·the·interpreted·color,·or·<code>al_map_rgba(0,·0,·0,·0)</code>·if·the·string·could·not·be·parsed.</p> |
279 | <blockquote> | 269 | <blockquote> |
280 | <p><em>Note</em>:·the·behaviour·on·invalid·strings·is·different·from·Allegro·5.0.x.</p> | 270 | <p><em>Note</em>:·the·behaviour·on·invalid·strings·is·different·from·Allegro·5.0.x.</p> |
281 | </blockquote> | 271 | </blockquote> |
282 | <p>See·also:·<a·href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>,·<a·href="color.html#al_color_rgb_to_html">al_color_rgb_to_html</a></p> | 272 | <p>See·also:·<a·href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>,·<a·href="color.html#al_color_rgb_to_html">al_color_rgb_to_html</a></p> |
283 | <h1·id="al_color_html_to_rgb">al_color_html_to_rgb</h1> | 273 | <h1·id="al_color_html_to_rgb">al_color_html_to_rgb</h1> |
284 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">bool</span>·al_color_html_to_rgb(<span·class="dt">char</span>·<span·class="dt">const</span>·*string,</a> | 274 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">bool</span>·al_color_html_to_rgb(<span·class="dt">char</span>·<span·class="dt">const</span>·*string,</a> |
285 | <a·class="sourceLine"·id="cb9-2"·title="2">···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a> | 275 | <a·class="sourceLine"·id="cb9-2"·title="2">···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a></code></pre></div> |
286 | <a·class="sourceLine"·id="cb9-3"·title="3"><span·class="dt">bool</span>·al_color_html_to_rgb(<span·class="dt">char</span>·<span·class="dt">const</span>·*string,</a> | ||
287 | <a·class="sourceLine"·id="cb9-4"·title="4">···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</a></code></pre></div> | ||
288 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L538">Source·Code</a></p> | 276 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L538">Source·Code</a></p> |
289 | <p>Interprets·an·HTML-style·hex·number·(e.g.·#00faff)·as·a·color.·The·only·accepted·formats·are·“#RRGGBB”·and·“RRGGBB”·where·R,·G,·B·are·hexadecimal·digits·[0-9A-Fa-f].</p> | 277 | <p>Interprets·an·HTML-style·hex·number·(e.g.·#00faff)·as·a·color.·The·only·accepted·formats·are·“#RRGGBB”·and·“RRGGBB”·where·R,·G,·B·are·hexadecimal·digits·[0-9A-Fa-f].</p> |
290 | <p>Returns·true·on·success,·false·on·failure.·On·failure·all·components·are·set·to·zero.</p> | 278 | <p>Returns·true·on·success,·false·on·failure.·On·failure·all·components·are·set·to·zero.</p> |
291 | <blockquote> | 279 | <blockquote> |
292 | <p><em>Note</em>:·the·behaviour·on·invalid·strings·is·different·from·Allegro·5.0.x.</p> | 280 | <p><em>Note</em>:·the·behaviour·on·invalid·strings·is·different·from·Allegro·5.0.x.</p> |
293 | </blockquote> | 281 | </blockquote> |
294 | <p>See·also:·<a·href="color.html#al_color_html">al_color_html</a>,·<a·href="color.html#al_color_rgb_to_html">al_color_rgb_to_html</a></p> | 282 | <p>See·also:·<a·href="color.html#al_color_html">al_color_html</a>,·<a·href="color.html#al_color_rgb_to_html">al_color_rgb_to_html</a></p> |
295 | <h1·id="al_color_rgb_to_html">al_color_rgb_to_html</h1> | 283 | <h1·id="al_color_rgb_to_html">al_color_rgb_to_html</h1> |
296 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="dt">void</span>·al_color_rgb_to_html(<span·class="dt">float</span>·red,·<span·class="dt">float</span>·green,·<span·class="dt">float</span>·blue,</a> | 284 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="dt">void</span>·al_color_rgb_to_html(<span·class="dt">float</span>·red,·<span·class="dt">float</span>·green,·<span·class="dt">float</span>·blue,</a> |
297 | <a·class="sourceLine"·id="cb10-2"·title="2">····<span·class="dt">char</span>·*string)</a> | 285 | <a·class="sourceLine"·id="cb10-2"·title="2">····<span·class="dt">char</span>·*string)</a></code></pre></div> |
298 | <a·class="sourceLine"·id="cb10-3"·title="3"><span·class="dt">void</span>·al_color_rgb_to_html(<span·class="dt">float</span>·red,·<span·class="dt">float</span>·green,·<span·class="dt">float</span>·blue,</a> | ||
299 | <a·class="sourceLine"·id="cb10-4"·title="4">····<span·class="dt">char</span>·*string)</a></code></pre></div> | ||
300 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L528">Source·Code</a></p> | 286 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L528">Source·Code</a></p> |
301 | <p>Create·an·HTML-style·string·representation·of·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·e.g.·#00faff.</p> | 287 | <p>Create·an·HTML-style·string·representation·of·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·e.g.·#00faff.</p> |
302 | <p>Parameters:</p> | 288 | <p>Parameters:</p> |
303 | <ul> | 289 | <ul> |
304 | <li>red,·green,·blue·-·The·color·components·in·the·range·0..1.</li> | 290 | <li>red,·green,·blue·-·The·color·components·in·the·range·0..1.</li> |
305 | <li>string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result·will·be·written·(including·the·NUL·terminator).</li> | 291 | <li>string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result·will·be·written·(including·the·NUL·terminator).</li> |
306 | </ul> | 292 | </ul> |
307 | <p>Example:</p> | 293 | <p>Example:</p> |
308 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="dt">char</span>·html[<span·class="dv">8</span>];</a> | 294 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="dt">char</span>·html[<span·class="dv">8</span>];</a> |
309 | <a·class="sourceLine"·id="cb11-2"·title="2">al_color_rgb_to_html(<span·class="dv">1</span>,·<span·class="dv">0</span>,·<span·class="dv">0</span>,·html);</a></code></pre></div> | 295 | <a·class="sourceLine"·id="cb11-2"·title="2">al_color_rgb_to_html(<span·class="dv">1</span>,·<span·class="dv">0</span>,·<span·class="dv">0</span>,·html);</a></code></pre></div> |
310 | <p>Now·html·will·contain·“#ff0000”.</p> | 296 | <p>Now·html·will·contain·“#ff0000”.</p> |
311 | <p>See·also:·<a·href="color.html#al_color_html">al_color_html</a>,·<a·href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a></p> | 297 | <p>See·also:·<a·href="color.html#al_color_html">al_color_html</a>,·<a·href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a></p> |
312 | <h1·id="al_color_name">al_color_name</h1> | 298 | <h1·id="al_color_name">al_color_name</h1> |
313 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1">ALLEGRO_COLOR·al_color_name(<span·class="dt">char</span>·<span·class="dt">const</span>·*name)</a> | 299 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1">ALLEGRO_COLOR·al_color_name(<span·class="dt">char</span>·<span·class="dt">const</span>·*name)</a></code></pre></div> |
314 | <a·class="sourceLine"·id="cb12-2"·title="2">ALLEGRO_COLOR·al_color_name(<span·class="dt">char</span>·<span·class="dt">const</span>·*name)</a></code></pre></div> | ||
315 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L254">Source·Code</a></p> | 300 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L254">Source·Code</a></p> |
316 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·with·the·given·name.·If·the·color·is·not·found·then·black·is·returned.</p> | 301 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·with·the·given·name.·If·the·color·is·not·found·then·black·is·returned.</p> |
317 | <p>See·<a·href="color.html#al_color_name_to_rgb">al_color_name_to_rgb</a>·for·the·list·of·names.</p> | 302 | <p>See·<a·href="color.html#al_color_name_to_rgb">al_color_name_to_rgb</a>·for·the·list·of·names.</p> |
318 | <h1·id="al_color_name_to_rgb">al_color_name_to_rgb</h1> | 303 | <h1·id="al_color_name_to_rgb">al_color_name_to_rgb</h1> |
319 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb13-1"·title="1"><span·class="dt">bool</span>·al_color_name_to_rgb(<span·class="dt">char</span>·<span·class="dt">const</span>·*name,·<span·class="dt">float</span>·*r,·<span·class="dt">float</span>·*g,·<span·class="dt">float</span>·*b)</a> | 304 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb13-1"·title="1"><span·class="dt">bool</span>·al_color_name_to_rgb(<span·class="dt">char</span>·<span·class="dt">const</span>·*name,·<span·class="dt">float</span>·*r,·<span·class="dt">float</span>·*g,·<span·class="dt">float</span>·*b)</a></code></pre></div> |
320 | <a·class="sourceLine"·id="cb13-2"·title="2"><span·class="dt">bool</span>·al_color_name_to_rgb(<span·class="dt">char</span>·<span·class="dt">const</span>·*name,·<span·class="dt">float</span>·*r,·<span·class="dt">float</span>·*g,·<span·class="dt">float</span>·*b)</a></code></pre></div> | ||
321 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L210">Source·Code</a></p> | 305 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L210">Source·Code</a></p> |
322 | <p>Parameters:</p> | 306 | <p>Parameters:</p> |
323 | <ul> | 307 | <ul> |
324 | <li>name·-·The·(lowercase)·name·of·the·color.</li> | 308 | <li>name·-·The·(lowercase)·name·of·the·color.</li> |
325 | <li>r,·g,·b·-·If·one·of·the·recognized·color·names·below·is·passed,·the·corresponding·RGB·values·in·the·range·0..1·are·written.</li> | 309 | <li>r,·g,·b·-·If·one·of·the·recognized·color·names·below·is·passed,·the·corresponding·RGB·values·in·the·range·0..1·are·written.</li> |
Max diff block lines reached; 30730/48275 bytes (63.66%) of diff not shown. |
Offset 202, 27 lines modified | Offset 202, 24 lines modified | ||
202 | <p>It·can·then·be·accessed·like·this·(make·sure·to·check·for·errors·in·an·actual·program):</p> | 202 | <p>It·can·then·be·accessed·like·this·(make·sure·to·check·for·errors·in·an·actual·program):</p> |
203 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1">ALLEGRO_CONFIG*·cfg·=·al_load_config_file(<span·class="st">"test.cfg"</span>);</a> | 203 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1">ALLEGRO_CONFIG*·cfg·=·al_load_config_file(<span·class="st">"test.cfg"</span>);</a> |
204 | <a·class="sourceLine"·id="cb3-2"·title="2">printf(<span·class="st">"%s</span><span·class="sc">\n</span><span·class="st">"</span>,·al_get_config_value(cfg,·<span·class="st">""</span>,·<span·class="st">"monster·name"</span>));·<span·class="co">/*·Prints:·Allegro·Developer·*/</span></a> | 204 | <a·class="sourceLine"·id="cb3-2"·title="2">printf(<span·class="st">"%s</span><span·class="sc">\n</span><span·class="st">"</span>,·al_get_config_value(cfg,·<span·class="st">""</span>,·<span·class="st">"monster·name"</span>));·<span·class="co">/*·Prints:·Allegro·Developer·*/</span></a> |
205 | <a·class="sourceLine"·id="cb3-3"·title="3">printf(<span·class="st">"%s</span><span·class="sc">\n</span><span·class="st">"</span>,·al_get_config_value(cfg,·<span·class="st">"weapon·0"</span>,·<span·class="st">"damage"</span>));·<span·class="co">/*·Prints:·443·*/</span></a> | 205 | <a·class="sourceLine"·id="cb3-3"·title="3">printf(<span·class="st">"%s</span><span·class="sc">\n</span><span·class="st">"</span>,·al_get_config_value(cfg,·<span·class="st">"weapon·0"</span>,·<span·class="st">"damage"</span>));·<span·class="co">/*·Prints:·443·*/</span></a> |
206 | <a·class="sourceLine"·id="cb3-4"·title="4">printf(<span·class="st">"%s</span><span·class="sc">\n</span><span·class="st">"</span>,·al_get_config_value(cfg,·<span·class="st">"weapon·1"</span>,·<span·class="st">"damage"</span>));·<span·class="co">/*·Prints:·503·*/</span></a> | 206 | <a·class="sourceLine"·id="cb3-4"·title="4">printf(<span·class="st">"%s</span><span·class="sc">\n</span><span·class="st">"</span>,·al_get_config_value(cfg,·<span·class="st">"weapon·1"</span>,·<span·class="st">"damage"</span>));·<span·class="co">/*·Prints:·503·*/</span></a> |
207 | <a·class="sourceLine"·id="cb3-5"·title="5">al_destroy_config(cfg);</a></code></pre></div> | 207 | <a·class="sourceLine"·id="cb3-5"·title="5">al_destroy_config(cfg);</a></code></pre></div> |
208 | <h1·id="allegro_config">ALLEGRO_CONFIG</h1> | 208 | <h1·id="allegro_config">ALLEGRO_CONFIG</h1> |
209 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG;</a> | 209 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG;</a></code></pre></div> |
210 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG;</a></code></pre></div> | ||
211 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source·Code</a></p> | 210 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source·Code</a></p> |
212 | <p>An·abstract·configuration·structure.</p> | 211 | <p>An·abstract·configuration·structure.</p> |
213 | <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</h1> | 212 | <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</h1> |
214 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION;</a> | 213 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION;</a></code></pre></div> |
215 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION;</a></code></pre></div> | ||
216 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source·Code</a></p> | 214 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source·Code</a></p> |
217 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a·configuration·structure.</p> | 215 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a·configuration·structure.</p> |
218 | <p>See·also:·<a·href="config.html#al_get_first_config_section">al_get_first_config_section</a>,·<a·href="config.html#al_get_next_config_section">al_get_next_config_section</a></p> | 216 | <p>See·also:·<a·href="config.html#al_get_first_config_section">al_get_first_config_section</a>,·<a·href="config.html#al_get_next_config_section">al_get_next_config_section</a></p> |
219 | <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1> | 217 | <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1> |
220 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY;</a> | 218 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY;</a></code></pre></div> |
221 | <a·class="sourceLine"·id="cb6-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY;</a></code></pre></div> | ||
222 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source·Code</a></p> | 219 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source·Code</a></p> |
223 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a·configuration·section.</p> | 220 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a·configuration·section.</p> |
224 | <p>See·also:·<a·href="config.html#al_get_first_config_entry">al_get_first_config_entry</a>,·<a·href="config.html#al_get_next_config_entry">al_get_next_config_entry</a></p> | 221 | <p>See·also:·<a·href="config.html#al_get_first_config_entry">al_get_first_config_entry</a>,·<a·href="config.html#al_get_next_config_entry">al_get_next_config_entry</a></p> |
225 | <h1·id="al_create_config">al_create_config</h1> | 222 | <h1·id="al_create_config">al_create_config</h1> |
226 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1">ALLEGRO_CONFIG·*al_create_config(<span·class="dt">void</span>)</a></code></pre></div> | 223 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1">ALLEGRO_CONFIG·*al_create_config(<span·class="dt">void</span>)</a></code></pre></div> |
227 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L37">Source·Code</a></p> | 224 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L37">Source·Code</a></p> |
228 | <p>Create·an·empty·configuration·structure.</p> | 225 | <p>Create·an·empty·configuration·structure.</p> |
Offset 323, 12 lines modified | Offset 320, 12 lines modified | ||
323 | <h1·id="al_merge_config_into">al_merge_config_into</h1> | 320 | <h1·id="al_merge_config_into">al_merge_config_into</h1> |
324 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb24-1"·title="1"><span·class="dt">void</span>·al_merge_config_into(ALLEGRO_CONFIG·*master,·<span·class="dt">const</span>·ALLEGRO_CONFIG·*add)</a></code></pre></div> | 321 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb24-1"·title="1"><span·class="dt">void</span>·al_merge_config_into(ALLEGRO_CONFIG·*master,·<span·class="dt">const</span>·ALLEGRO_CONFIG·*add)</a></code></pre></div> |
325 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L515">Source·Code</a></p> | 322 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L515">Source·Code</a></p> |
326 | <p>Merge·one·configuration·structure·into·another.·Values·in·configuration·‘add’·override·those·in·‘master’.·‘master’·is·modified.·Comments·from·‘add’·are·not·retained.</p> | 323 | <p>Merge·one·configuration·structure·into·another.·Values·in·configuration·‘add’·override·those·in·‘master’.·‘master’·is·modified.·Comments·from·‘add’·are·not·retained.</p> |
327 | <p>See·also:·<a·href="config.html#al_merge_config">al_merge_config</a></p> | 324 | <p>See·also:·<a·href="config.html#al_merge_config">al_merge_config</a></p> |
328 | <p·class="timestamp"> | 325 | <p·class="timestamp"> |
329 | Allegro·version·5.2.4 | 326 | Allegro·version·5.2.4 |
330 | ·-·Last·updated:·202 | 327 | ·-·Last·updated:·2020-04-29·17:01:35·UTC |
331 | </p> | 328 | </p> |
332 | </div> | 329 | </div> |
333 | </body> | 330 | </body> |
334 | </html> | 331 | </html> |
Offset 237, 12 lines modified | Offset 237, 12 lines modified | ||
237 | <a·class="sourceLine"·id="cb11-2"·title="2">···<span·class="dt">void</span>·(*callback)(ALLEGRO_DISPLAY·*display))</a></code></pre></div> | 237 | <a·class="sourceLine"·id="cb11-2"·title="2">···<span·class="dt">void</span>·(*callback)(ALLEGRO_DISPLAY·*display))</a></code></pre></div> |
238 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L214">Source·Code</a></p> | 238 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L214">Source·Code</a></p> |
239 | <p>The·callback·will·be·called·whenever·a·D3D·device·that·has·been·reset·is·restored.·In·the·callback·you·should·restore·any·d3d·resources·you·have·created·yourself.·The·callback·receives·the·affected·display·as·a·parameter.</p> | 239 | <p>The·callback·will·be·called·whenever·a·D3D·device·that·has·been·reset·is·restored.·In·the·callback·you·should·restore·any·d3d·resources·you·have·created·yourself.·The·callback·receives·the·affected·display·as·a·parameter.</p> |
240 | <p>Pass·NULL·to·disable·the·callback.</p> | 240 | <p>Pass·NULL·to·disable·the·callback.</p> |
241 | <p>Since:·5.1.0</p> | 241 | <p>Since:·5.1.0</p> |
242 | <p·class="timestamp"> | 242 | <p·class="timestamp"> |
243 | Allegro·version·5.2.4 | 243 | Allegro·version·5.2.4 |
244 | ·-·Last·updated:·202 | 244 | ·-·Last·updated:·2020-04-29·17:01:43·UTC |
245 | </p> | 245 | </p> |
246 | </div> | 246 | </div> |
247 | </body> | 247 | </body> |
248 | </html> | 248 | </html> |
Offset 227, 16 lines modified | Offset 227, 15 lines modified | ||
227 | <p>Before·creating·a·display·with·<a·href="display.html#al_create_display">al_create_display</a>,·flags·and·options·can·be·set·with·<a·href="display.html#al_set_new_display_flags">al_set_new_display_flags</a>·and·<a·href="display.html#al_set_new_display_option">al_set_new_display_option</a>.·For·example,·you·can·enable·the·use·of·shaders·or·choose·between·the·OpenGL·and·Direct3D·backends·(on·platforms·that·support·both)·with·<a·href="display.html#al_set_new_display_flags">al_set_new_display_flags</a>.·Display·options·are·rather·optional·settings·that·do·not·affect·Allegro·itself,·e.g. they·allow·you·to·specify·whether·you·want·a·depth·buffer·or·enable·multisampling.</p> | 227 | <p>Before·creating·a·display·with·<a·href="display.html#al_create_display">al_create_display</a>,·flags·and·options·can·be·set·with·<a·href="display.html#al_set_new_display_flags">al_set_new_display_flags</a>·and·<a·href="display.html#al_set_new_display_option">al_set_new_display_option</a>.·For·example,·you·can·enable·the·use·of·shaders·or·choose·between·the·OpenGL·and·Direct3D·backends·(on·platforms·that·support·both)·with·<a·href="display.html#al_set_new_display_flags">al_set_new_display_flags</a>.·Display·options·are·rather·optional·settings·that·do·not·affect·Allegro·itself,·e.g. they·allow·you·to·specify·whether·you·want·a·depth·buffer·or·enable·multisampling.</p> |
228 | <p>The·actual·properties·of·a·display·that·has·been·successfully·created·can·be·queried·via·<a·href="display.html#al_get_display_option">al_get_display_option</a>,·<a·href="display.html#al_get_display_flags">al_get_display_flags</a>,·<a·href="display.html#al_get_display_width">al_get_display_width</a>·etc.·Note·that·you·can·query·some·additional·read-only·properties·such·as·the·maximum·allowed·bitmap·(i.e. texture)·size·via·<a·href="display.html#al_get_display_option">al_get_display_option</a>.</p> | 228 | <p>The·actual·properties·of·a·display·that·has·been·successfully·created·can·be·queried·via·<a·href="display.html#al_get_display_option">al_get_display_option</a>,·<a·href="display.html#al_get_display_flags">al_get_display_flags</a>,·<a·href="display.html#al_get_display_width">al_get_display_width</a>·etc.·Note·that·you·can·query·some·additional·read-only·properties·such·as·the·maximum·allowed·bitmap·(i.e. texture)·size·via·<a·href="display.html#al_get_display_option">al_get_display_option</a>.</p> |
229 | <p>Each·display·has·a·backbuffer·associated·to·it·which·is·the·default·target·for·any·drawing·operations.·In·order·to·make·visible·what·has·been·drawn·previously,·you·have·to·to·call·<a·href="display.html#al_flip_display">al_flip_display</a>.·Note·that·it·is·generally·advisable·to·redraw·the·whole·screen·(or·<a·href="graphics.html#al_clear_to_color">clear</a>·it·in·advance)·to·avoid·artefacts·of·uninitialised·memory·becoming·visible·with·some·drivers.</p> | 229 | <p>Each·display·has·a·backbuffer·associated·to·it·which·is·the·default·target·for·any·drawing·operations.·In·order·to·make·visible·what·has·been·drawn·previously,·you·have·to·to·call·<a·href="display.html#al_flip_display">al_flip_display</a>.·Note·that·it·is·generally·advisable·to·redraw·the·whole·screen·(or·<a·href="graphics.html#al_clear_to_color">clear</a>·it·in·advance)·to·avoid·artefacts·of·uninitialised·memory·becoming·visible·with·some·drivers.</p> |
230 | <p>You·don’t·have·to·use·Allegro’s·drawing·routines,·however:·since·creating·a·display·implies·the·creation·of·an·OpenGL·context·or·Direct3D·device·respectively,·you·can·use·these·APIs·directly·if·you·prefer·to·do·so.·Allegro·provides·integration·for·both·(see·the·OpenGL·/·Direct3D·sections),·so·you·can·retrieve·the·underlying·textures·of·<a·href="graphics.html#allegro_bitmap">ALLEGRO_BITMAP</a>s,·for·example.</p> | 230 | <p>You·don’t·have·to·use·Allegro’s·drawing·routines,·however:·since·creating·a·display·implies·the·creation·of·an·OpenGL·context·or·Direct3D·device·respectively,·you·can·use·these·APIs·directly·if·you·prefer·to·do·so.·Allegro·provides·integration·for·both·(see·the·OpenGL·/·Direct3D·sections),·so·you·can·retrieve·the·underlying·textures·of·<a·href="graphics.html#allegro_bitmap">ALLEGRO_BITMAP</a>s,·for·example.</p> |
231 | <p>In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that·displays·will·also·inform·you·about·important·<a·href="events.html#allegro_event_display_expose">events</a>·via·their·<a·href="display.html#al_get_display_event_source">event·sources</a>.</p> | 231 | <p>In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that·displays·will·also·inform·you·about·important·<a·href="events.html#allegro_event_display_expose">events</a>·via·their·<a·href="display.html#al_get_display_event_source">event·sources</a>.</p> |
232 | <h1·id="display-creation">Display·creation</h1> | 232 | <h1·id="display-creation">Display·creation</h1> |
233 | <h2·id="allegro_display">ALLEGRO_DISPLAY</h2> | 233 | <h2·id="allegro_display">ALLEGRO_DISPLAY</h2> |
234 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY;</a> | 234 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY;</a></code></pre></div> |
235 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY;</a></code></pre></div> | ||
236 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L108">Source·Code</a></p> | 235 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L108">Source·Code</a></p> |
237 | <p>An·opaque·type·representing·an·open·display·or·window.</p> | 236 | <p>An·opaque·type·representing·an·open·display·or·window.</p> |
238 | <h2·id="al_create_display">al_create_display</h2> | 237 | <h2·id="al_create_display">al_create_display</h2> |
239 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1">ALLEGRO_DISPLAY·*al_create_display(<span·class="dt">int</span>·w,·<span·class="dt">int</span>·h)</a></code></pre></div> | 238 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1">ALLEGRO_DISPLAY·*al_create_display(<span·class="dt">int</span>·w,·<span·class="dt">int</span>·h)</a></code></pre></div> |
240 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source·Code</a></p> | 239 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source·Code</a></p> |
241 | <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of·the·display·are·determined·by·the·last·calls·to·al_set_new_display_*.·Default·parameters·are·used·if·none·are·set·explicitly.·Creating·a·new·display·will·automatically·make·it·the·active·one,·with·the·backbuffer·selected·for·drawing.</p> | 240 | <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of·the·display·are·determined·by·the·last·calls·to·al_set_new_display_*.·Default·parameters·are·used·if·none·are·set·explicitly.·Creating·a·new·display·will·automatically·make·it·the·active·one,·with·the·backbuffer·selected·for·drawing.</p> |
242 | <p>Returns·NULL·on·error.</p> | 241 | <p>Returns·NULL·on·error.</p> |
Offset 607, 16 lines modified | Offset 606, 15 lines modified | ||
607 | <h2·id="al_set_new_window_title">al_set_new_window_title</h2> | 606 | <h2·id="al_set_new_window_title">al_set_new_window_title</h2> |
608 | <div·class="sourceCode"·id="cb36"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb36-1"·title="1"><span·class="dt">void</span>·al_set_new_window_title(<span·class="dt">const</span>·<span·class="dt">char</span>·*title)</a></code></pre></div> | 607 | <div·class="sourceCode"·id="cb36"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb36-1"·title="1"><span·class="dt">void</span>·al_set_new_window_title(<span·class="dt">const</span>·<span·class="dt">char</span>·*title)</a></code></pre></div> |
609 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L203">Source·Code</a></p> | 608 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L203">Source·Code</a></p> |
610 | <p>Set·the·title·that·will·be·used·when·a·new·display·is·created.·Allegro·uses·a·static·buffer·of·<a·href="display.html#allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</a>·to·store·this,·so·the·length·of·the·titme·you·set·must·be·less·than·this.</p> | 609 | <p>Set·the·title·that·will·be·used·when·a·new·display·is·created.·Allegro·uses·a·static·buffer·of·<a·href="display.html#allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</a>·to·store·this,·so·the·length·of·the·titme·you·set·must·be·less·than·this.</p> |
611 | <p>See·also:·<a·href="display.html#al_set_window_title">al_set_window_title</a>,·<a·href="display.html#al_get_new_window_title">al_get_new_window_title</a>,·<a·href="display.html#al_create_display">al_create_display</a>,·<a·href="display.html#allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</a></p> | 610 | <p>See·also:·<a·href="display.html#al_set_window_title">al_set_window_title</a>,·<a·href="display.html#al_get_new_window_title">al_get_new_window_title</a>,·<a·href="display.html#al_create_display">al_create_display</a>,·<a·href="display.html#allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</a></p> |
612 | <p>Since:·5.1.12</p> | 611 | <p>Since:·5.1.12</p> |
613 | <h2·id="allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</h2> | 612 | <h2·id="allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</h2> |
614 | <div·class="sourceCode"·id="cb37"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb37-1"·title="1"><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255</span></a> | 613 | <div·class="sourceCode"·id="cb37"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb37-1"·title="1"><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255</span></a></code></pre></div> |
615 | <a·class="sourceLine"·id="cb37-2"·title="2"><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255</span></a></code></pre></div> | ||
616 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source·Code</a></p> | 614 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source·Code</a></p> |
617 | <p>This·is·the·maximum·size·of·the·title·that·can·be·set·with·<a·href="display.html#al_set_new_window_title">al_set_new_window_title</a>.</p> | 615 | <p>This·is·the·maximum·size·of·the·title·that·can·be·set·with·<a·href="display.html#al_set_new_window_title">al_set_new_window_title</a>.</p> |
618 | <p>See·also:·<a·href="display.html#al_set_new_window_title">al_set_new_window_title</a></p> | 616 | <p>See·also:·<a·href="display.html#al_set_new_window_title">al_set_new_window_title</a></p> |
619 | <p>Since:·5.1.12</p> | 617 | <p>Since:·5.1.12</p> |
620 | <h2·id="al_get_new_window_title">al_get_new_window_title</h2> | 618 | <h2·id="al_get_new_window_title">al_get_new_window_title</h2> |
621 | <div·class="sourceCode"·id="cb38"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb38-1"·title="1"><span·class="dt">const</span>·<span·class="dt">char</span>·*al_get_new_window_title(<span·class="dt">void</span>)</a></code></pre></div> | 619 | <div·class="sourceCode"·id="cb38"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb38-1"·title="1"><span·class="dt">const</span>·<span·class="dt">char</span>·*al_get_new_window_title(<span·class="dt">void</span>)</a></code></pre></div> |
622 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L224">Source·Code</a></p> | 620 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L224">Source·Code</a></p> |
Offset 675, 12 lines modified | Offset 673, 12 lines modified | ||
675 | <div·class="sourceCode"·id="cb46"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb46-1"·title="1"><span·class="dt">bool</span>·al_clipboard_has_text(ALLEGRO_DISPLAY·*display)</a></code></pre></div> | 673 | <div·class="sourceCode"·id="cb46"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb46-1"·title="1"><span·class="dt">bool</span>·al_clipboard_has_text(ALLEGRO_DISPLAY·*display)</a></code></pre></div> |
676 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/clipboard.c#L64">Source·Code</a></p> | 674 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/clipboard.c#L64">Source·Code</a></p> |
677 | <p>This·function·returns·true·if·and·only·if·the·clipboard·has·text·available.</p> | 675 | <p>This·function·returns·true·if·and·only·if·the·clipboard·has·text·available.</p> |
678 | <p>Since:·5.1.12</p> | 676 | <p>Since:·5.1.12</p> |
679 | <p>See·also:·<a·href="display.html#al_set_clipboard_text">al_set_clipboard_text</a>,·<a·href="display.html#al_get_clipboard_text">al_get_clipboard_text</a></p> | 677 | <p>See·also:·<a·href="display.html#al_set_clipboard_text">al_set_clipboard_text</a>,·<a·href="display.html#al_get_clipboard_text">al_get_clipboard_text</a></p> |
680 | <p·class="timestamp"> | 678 | <p·class="timestamp"> |
681 | Allegro·version·5.2.4 | 679 | Allegro·version·5.2.4 |
682 | ·-·Last·updated:·202 | 680 | ·-·Last·updated:·2020-04-29·17:01:36·UTC |
683 | </p> | 681 | </p> |
684 | </div> | 682 | </div> |
685 | </body> | 683 | </body> |
686 | </html> | 684 | </html> |
Offset 226, 16 lines modified | Offset 226, 15 lines modified | ||
226 | <p>Events·are·generated·by·event·sources.·Most·notably,·each·of·the·input·subsystems·provides·an·event·source,·but·also·timers,·displays,·and·audio·streams·will·generate·events.</p> | 226 | <p>Events·are·generated·by·event·sources.·Most·notably,·each·of·the·input·subsystems·provides·an·event·source,·but·also·timers,·displays,·and·audio·streams·will·generate·events.</p> |
227 | <p>Event·sources·are·registered·to·event·queues·which·aggregate·events·from·multiple·sources.·A·single·event·source·can·also·be·registered·to·multiple·event·queues.</p> | 227 | <p>Event·sources·are·registered·to·event·queues·which·aggregate·events·from·multiple·sources.·A·single·event·source·can·also·be·registered·to·multiple·event·queues.</p> |
228 | <p>Event·queues·can·then·be·queried·for·events.·In·particular,·it·is·possible·to·wait·until·events·become·available·in·order·to·save·CPU·time.·You·can·combine·this·with·<a·href="timer.html#allegro_timer">timers</a>·to·make·your·main-loop·run·at·a·specific·speed·without·wasting·CPU·time·or·missing·events.</p> | 228 | <p>Event·queues·can·then·be·queried·for·events.·In·particular,·it·is·possible·to·wait·until·events·become·available·in·order·to·save·CPU·time.·You·can·combine·this·with·<a·href="timer.html#allegro_timer">timers</a>·to·make·your·main-loop·run·at·a·specific·speed·without·wasting·CPU·time·or·missing·events.</p> |
229 | <p>In·addition·to·the·predefined·event·types,·Allegro·also·allows·for·user-defined·events·that·can·be·generated·by·user-defined·event·sources.</p> | 229 | <p>In·addition·to·the·predefined·event·types,·Allegro·also·allows·for·user-defined·events·that·can·be·generated·by·user-defined·event·sources.</p> |
230 | <p>The·appropriate·reaction·to·an·event·is·determined·by·examining·the·fields·of·the·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>·union·according·to·the·event·type.</p> | 230 | <p>The·appropriate·reaction·to·an·event·is·determined·by·examining·the·fields·of·the·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>·union·according·to·the·event·type.</p> |
231 | <p>In·addition·to·the·events·sent·by·Allegro·core,·there’s·also·events·send·by·the·addons,·see·<a·href="audio.html#allegro_audio_event_type">ALLEGRO_AUDIO_EVENT_TYPE</a>·and·<a·href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> | 231 | <p>In·addition·to·the·events·sent·by·Allegro·core,·there’s·also·events·send·by·the·addons,·see·<a·href="audio.html#allegro_audio_event_type">ALLEGRO_AUDIO_EVENT_TYPE</a>·and·<a·href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> |
232 | <h1·id="allegro_event">ALLEGRO_EVENT</h1> | 232 | <h1·id="allegro_event">ALLEGRO_EVENT</h1> |
233 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT;</a> | 233 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT;</a></code></pre></div> |
234 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT;</a></code></pre></div> | ||
235 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L202">Source·Code</a></p> | 234 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L202">Source·Code</a></p> |
236 | <p>An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it·is·an·object·large·enough·to·hold·the·data·of·any·event·type.·All·events·have·the·following·fields·in·common:</p> | 235 | <p>An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it·is·an·object·large·enough·to·hold·the·data·of·any·event·type.·All·events·have·the·following·fields·in·common:</p> |
237 | <dl> | 236 | <dl> |
238 | <dt>type·(ALLEGRO_EVENT_TYPE)</dt> | 237 | <dt>type·(ALLEGRO_EVENT_TYPE)</dt> |
239 | <dd>Indicates·the·type·of·event. | 238 | <dd>Indicates·the·type·of·event. |
240 | </dd> | 239 | </dd> |
241 | <dt>any.source·(ALLEGRO_EVENT_SOURCE·*)</dt> | 240 | <dt>any.source·(ALLEGRO_EVENT_SOURCE·*)</dt> |
Offset 638, 16 lines modified | Offset 637, 15 lines modified | ||
638 | <p>This·event·is·sent·when·a·physical·display·is·disconnected·from·the·device·Allegro·runs·on.·Currently,·on·most·platforms,·Allegro·supports·only·a·single·physical·display.·However,·on·iOS,·a·secondary·physical·display·is·supported.</p> | 637 | <p>This·event·is·sent·when·a·physical·display·is·disconnected·from·the·device·Allegro·runs·on.·Currently,·on·most·platforms,·Allegro·supports·only·a·single·physical·display.·However,·on·iOS,·a·secondary·physical·display·is·supported.</p> |
639 | <dl> | 638 | <dl> |
640 | <dt>display.source·(ALLEGRO_DISPLAY·*)</dt> | 639 | <dt>display.source·(ALLEGRO_DISPLAY·*)</dt> |
641 | <dd>The·display·which·was·disconnected. | 640 | <dd>The·display·which·was·disconnected. |
642 | </dd> | 641 | </dd> |
643 | </dl> | 642 | </dl> |
644 | <h1·id="allegro_user_event">ALLEGRO_USER_EVENT</h1> | 643 | <h1·id="allegro_user_event">ALLEGRO_USER_EVENT</h1> |
645 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT;</a> | 644 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT;</a></code></pre></div> |
646 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT;</a></code></pre></div> | ||
647 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L186">Source·Code</a></p> | 645 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L186">Source·Code</a></p> |
648 | <p>An·event·structure·that·can·be·emitted·by·user·event·sources.·These·are·the·public·fields:</p> | 646 | <p>An·event·structure·that·can·be·emitted·by·user·event·sources.·These·are·the·public·fields:</p> |
649 | <ul> | 647 | <ul> |
650 | <li>ALLEGRO_EVENT_SOURCE·*source;</li> | 648 | <li>ALLEGRO_EVENT_SOURCE·*source;</li> |
651 | <li>intptr_t·data1;</li> | 649 | <li>intptr_t·data1;</li> |
652 | <li>intptr_t·data2;</li> | 650 | <li>intptr_t·data2;</li> |
653 | <li>intptr_t·data3;</li> | 651 | <li>intptr_t·data3;</li> |
Offset 672, 35 lines modified | Offset 670, 31 lines modified | ||
672 | <a·class="sourceLine"·id="cb4-8"·title="8">my_event.user.data1·=·<span·class="dv">1</span>;</a> | 670 | <a·class="sourceLine"·id="cb4-8"·title="8">my_event.user.data1·=·<span·class="dv">1</span>;</a> |
673 | <a·class="sourceLine"·id="cb4-9"·title="9">my_event.user.data2·=·&some_var;</a> | 671 | <a·class="sourceLine"·id="cb4-9"·title="9">my_event.user.data2·=·&some_var;</a> |
674 | <a·class="sourceLine"·id="cb4-10"·title="10"></a> | 672 | <a·class="sourceLine"·id="cb4-10"·title="10"></a> |
675 | <a·class="sourceLine"·id="cb4-11"·title="11">al_emit_user_event(&my_event_source,·&my_event,·NULL);</a></code></pre></div> | 673 | <a·class="sourceLine"·id="cb4-11"·title="11">al_emit_user_event(&my_event_source,·&my_event,·NULL);</a></code></pre></div> |
676 | <p>Event·type·identifiers·for·user·events·are·assigned·by·the·user.·Please·see·the·documentation·for·<a·href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>·for·the·rules·you·should·follow·when·assigning·identifiers.</p> | 674 | <p>Event·type·identifiers·for·user·events·are·assigned·by·the·user.·Please·see·the·documentation·for·<a·href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>·for·the·rules·you·should·follow·when·assigning·identifiers.</p> |
677 | <p>See·also:·<a·href="events.html#al_emit_user_event">al_emit_user_event</a>,·<a·href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a·href="events.html#al_init_user_event_source">al_init_user_event_source</a></p> | 675 | <p>See·also:·<a·href="events.html#al_emit_user_event">al_emit_user_event</a>,·<a·href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a·href="events.html#al_init_user_event_source">al_init_user_event_source</a></p> |
678 | <h1·id="allegro_event_queue">ALLEGRO_EVENT_QUEUE</h1> | 676 | <h1·id="allegro_event_queue">ALLEGRO_EVENT_QUEUE</h1> |
679 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE;</a> | 677 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE;</a></code></pre></div> |
680 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE;</a></code></pre></div> | ||
681 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L243">Source·Code</a></p> | 678 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L243">Source·Code</a></p> |
682 | <p>An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are·registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated.·Access·is·in·a·strictly·FIFO·(first-in-first-out)·order.</p> | 679 | <p>An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are·registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated.·Access·is·in·a·strictly·FIFO·(first-in-first-out)·order.</p> |
683 | <p>See·also:·<a·href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a></p> | 680 | <p>See·also:·<a·href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a></p> |
684 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> | 681 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> |
685 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE;</a> | 682 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE;</a></code></pre></div> |
686 | <a·class="sourceLine"·id="cb6-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE;</a></code></pre></div> | ||
687 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L72">Source·Code</a></p> | 683 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L72">Source·Code</a></p> |
688 | <p>An·event·source·is·any·object·which·can·generate·events.·For·example,·an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with·<a·href="display.html#al_get_display_event_source">al_get_display_event_source</a>.</p> | 684 | <p>An·event·source·is·any·object·which·can·generate·events.·For·example,·an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with·<a·href="display.html#al_get_display_event_source">al_get_display_event_source</a>.</p> |
689 | <p>You·may·create·your·own·“user”·event·sources·that·emit·custom·events.</p> | 685 | <p>You·may·create·your·own·“user”·event·sources·that·emit·custom·events.</p> |
690 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a·href="events.html#al_init_user_event_source">al_init_user_event_source</a>,·<a·href="events.html#al_emit_user_event">al_emit_user_event</a></p> | 686 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a·href="events.html#al_init_user_event_source">al_init_user_event_source</a>,·<a·href="events.html#al_emit_user_event">al_emit_user_event</a></p> |
691 | <h1·id="allegro_event_type">ALLEGRO_EVENT_TYPE</h1> | 687 | <h1·id="allegro_event_type">ALLEGRO_EVENT_TYPE</h1> |
692 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="kw">typedef</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·ALLEGRO_EVENT_TYPE;</a> | 688 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="kw">typedef</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·ALLEGRO_EVENT_TYPE;</a></code></pre></div> |
693 | <a·class="sourceLine"·id="cb7-2"·title="2"><span·class="kw">typedef</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·ALLEGRO_EVENT_TYPE;</a></code></pre></div> | ||
694 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source·Code</a></p> | 689 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source·Code</a></p> |
695 | <p>An·integer·used·to·distinguish·between·different·types·of·events.</p> | 690 | <p>An·integer·used·to·distinguish·between·different·types·of·events.</p> |
696 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a·href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a·href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> | 691 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a·href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a·href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> |
697 | <h1·id="allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</h1> | 692 | <h1·id="allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</h1> |
698 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="pp">#define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d)</span></a> | 693 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="pp">#define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d)</span></a></code></pre></div> |
699 | <a·class="sourceLine"·id="cb8-2"·title="2"><span·class="pp">#define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d)</span></a></code></pre></div> | ||
700 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L67">Source·Code</a></p> | 694 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L67">Source·Code</a></p> |
701 | <p>Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not·necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example:</p> | 695 | <p>Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not·necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example:</p> |
702 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="er">#defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')</span></a></code></pre></div> | 696 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="er">#defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')</span></a></code></pre></div> |
703 | <p>IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Don’t·use·anything·lower·than·<code>ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0)</code>.</p> | 697 | <p>IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Don’t·use·anything·lower·than·<code>ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0)</code>.</p> |
704 | <p>You·should·try·to·make·your·IDs·unique·so·they·don’t·clash·with·any·3rd·party·code·you·may·be·using.·Be·creative.·Numbering·from·1024·is·not·creative.</p> | 698 | <p>You·should·try·to·make·your·IDs·unique·so·they·don’t·clash·with·any·3rd·party·code·you·may·be·using.·Be·creative.·Numbering·from·1024·is·not·creative.</p> |
705 | <p>If·you·need·multiple·identifiers,·you·could·define·them·like·this:</p> | 699 | <p>If·you·need·multiple·identifiers,·you·could·define·them·like·this:</p> |
706 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="er">#defin··BASE_EVENT···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')</span></a> | 700 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="er">#defin··BASE_EVENT···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')</span></a> |
Offset 712, 16 lines modified | Offset 706, 15 lines modified | ||
712 | <a·class="sourceLine"·id="cb10-7"·title="7"><span·class="kw">enum</span>·{</a> | 706 | <a·class="sourceLine"·id="cb10-7"·title="7"><span·class="kw">enum</span>·{</a> |
713 | <a·class="sourceLine"·id="cb10-8"·title="8">···BARK_EVENT·=·ALLEGRO_GET_EVENT_TYPE(<span·class="ch">'M'</span>,<span·class="ch">'I'</span>,<span·class="ch">'N'</span>,<span·class="ch">'E'</span>),</a> | 707 | <a·class="sourceLine"·id="cb10-8"·title="8">···BARK_EVENT·=·ALLEGRO_GET_EVENT_TYPE(<span·class="ch">'M'</span>,<span·class="ch">'I'</span>,<span·class="ch">'N'</span>,<span·class="ch">'E'</span>),</a> |
714 | <a·class="sourceLine"·id="cb10-9"·title="9">···MEOW_EVENT,</a> | 708 | <a·class="sourceLine"·id="cb10-9"·title="9">···MEOW_EVENT,</a> |
715 | <a·class="sourceLine"·id="cb10-10"·title="10">···SQUAWK_EVENT</a> | 709 | <a·class="sourceLine"·id="cb10-10"·title="10">···SQUAWK_EVENT</a> |
716 | <a·class="sourceLine"·id="cb10-11"·title="11">};</a></code></pre></div> | 710 | <a·class="sourceLine"·id="cb10-11"·title="11">};</a></code></pre></div> |
717 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a·href="events.html#allegro_user_event">ALLEGRO_USER_EVENT</a>,·<a·href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> | 711 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a·href="events.html#allegro_user_event">ALLEGRO_USER_EVENT</a>,·<a·href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> |
718 | <h1·id="allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</h1> | 712 | <h1·id="allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</h1> |
719 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512)</span></a> | 713 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512)</span></a></code></pre></div> |
720 | <a·class="sourceLine"·id="cb11-2"·title="2"><span·class="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512)</span></a></code></pre></div> | ||
721 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L62">Source·Code</a></p> | 714 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L62">Source·Code</a></p> |
722 | <p>A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event·type,·i.e. one·of·those·described·in·<a·href="events.html#allegro_event_type">ALLEGRO_EVENT_TYPE</a>.</p> | 715 | <p>A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event·type,·i.e. one·of·those·described·in·<a·href="events.html#allegro_event_type">ALLEGRO_EVENT_TYPE</a>.</p> |
723 | <h1·id="al_create_event_queue">al_create_event_queue</h1> | 716 | <h1·id="al_create_event_queue">al_create_event_queue</h1> |
724 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1">ALLEGRO_EVENT_QUEUE·*al_create_event_queue(<span·class="dt">void</span>)</a></code></pre></div> | 717 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1">ALLEGRO_EVENT_QUEUE·*al_create_event_queue(<span·class="dt">void</span>)</a></code></pre></div> |
725 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L90">Source·Code</a></p> | 718 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L90">Source·Code</a></p> |
726 | <p>Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created·object·if·successful.·Returns·NULL·on·error.</p> | 719 | <p>Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created·object·if·successful.·Returns·NULL·on·error.</p> |
727 | <p>See·also:·<a·href="events.html#al_register_event_source">al_register_event_source</a>,·<a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a>,·<a·href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> | 720 | <p>See·also:·<a·href="events.html#al_register_event_source">al_register_event_source</a>,·<a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a>,·<a·href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> |
Offset 869, 12 lines modified | Offset 862, 12 lines modified | ||
869 | <h1·id="al_set_event_source_data">al_set_event_source_data</h1> | 862 | <h1·id="al_set_event_source_data">al_set_event_source_data</h1> |
870 | <div·class="sourceCode"·id="cb33"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb33-1"·title="1"><span·class="dt">void</span>·al_set_event_source_data(ALLEGRO_EVENT_SOURCE·*source,·<span·class="dt">intptr_t</span>·data)</a></code></pre></div> | 863 | <div·class="sourceCode"·id="cb33"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb33-1"·title="1"><span·class="dt">void</span>·al_set_event_source_data(ALLEGRO_EVENT_SOURCE·*source,·<span·class="dt">intptr_t</span>·data)</a></code></pre></div> |
871 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/evtsrc.c#L264">Source·Code</a></p> | 864 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/evtsrc.c#L264">Source·Code</a></p> |
872 | <p>Assign·the·abstract·user·data·to·the·event·source.·Allegro·does·not·use·the·data·internally·for·anything;·it·is·simply·meant·as·a·convenient·way·to·associate·your·own·data·or·objects·with·events.</p> | 865 | <p>Assign·the·abstract·user·data·to·the·event·source.·Allegro·does·not·use·the·data·internally·for·anything;·it·is·simply·meant·as·a·convenient·way·to·associate·your·own·data·or·objects·with·events.</p> |
873 | <p>See·also:·<a·href="events.html#al_get_event_source_data">al_get_event_source_data</a></p> | 866 | <p>See·also:·<a·href="events.html#al_get_event_source_data">al_get_event_source_data</a></p> |
874 | <p·class="timestamp"> | 867 | <p·class="timestamp"> |
875 | Allegro·version·5.2.4 | 868 | Allegro·version·5.2.4 |
876 | ·-·Last·updated:·202 | 869 | ·-·Last·updated:·2020-04-29·17:01:38·UTC |
877 | </p> | 870 | </p> |
878 | </div> | 871 | </div> |
879 | </body> | 872 | </body> |
880 | </html> | 873 | </html> |
Offset 205, 21 lines modified | Offset 205, 19 lines modified | ||
205 | <li><a·href="#al_get_file_userdata">al_get_file_userdata</a></li> | 205 | <li><a·href="#al_get_file_userdata">al_get_file_userdata</a></li> |
206 | </ul></li> | 206 | </ul></li> |
207 | </ul> | 207 | </ul> |
208 | </nav> | 208 | </nav> |
209 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 209 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
210 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 210 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
211 | <h1·id="allegro_file">ALLEGRO_FILE</h1> | 211 | <h1·id="allegro_file">ALLEGRO_FILE</h1> |
212 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE;</a> | 212 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE;</a></code></pre></div> |
213 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE;</a></code></pre></div> | ||
214 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L15">Source·Code</a></p> | 213 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L15">Source·Code</a></p> |
215 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk·or·a·virtual·file.</p> | 214 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk·or·a·virtual·file.</p> |
216 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> | 215 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> |
217 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</a> | 216 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</a></code></pre></div> |
218 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</a></code></pre></div> | ||
219 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source·Code</a></p> | 217 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source·Code</a></p> |
220 | <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”,·real·or·virtual.·See·the·full·discussion·in·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> | 218 | <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”,·real·or·virtual.·See·the·full·discussion·in·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> |
221 | <p>The·fields·are:</p> | 219 | <p>The·fields·are:</p> |
222 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="dt">void</span>*·········(*fi_fopen)(<span·class="dt">const</span>·<span·class="dt">char</span>·*path,·<span·class="dt">const</span>·<span·class="dt">char</span>·*mode);</a> | 220 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="dt">void</span>*·········(*fi_fopen)(<span·class="dt">const</span>·<span·class="dt">char</span>·*path,·<span·class="dt">const</span>·<span·class="dt">char</span>·*mode);</a> |
223 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="dt">bool</span>··········(*fi_fclose)(ALLEGRO_FILE·*f);</a> | 221 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="dt">bool</span>··········(*fi_fclose)(ALLEGRO_FILE·*f);</a> |
224 | <a·class="sourceLine"·id="cb4-3"·title="3"><span·class="dt">size_t</span>········(*fi_fread)(ALLEGRO_FILE·*f,·<span·class="dt">void</span>·*ptr,·<span·class="dt">size_t</span>·size);</a> | 222 | <a·class="sourceLine"·id="cb4-3"·title="3"><span·class="dt">size_t</span>········(*fi_fread)(ALLEGRO_FILE·*f,·<span·class="dt">void</span>·*ptr,·<span·class="dt">size_t</span>·size);</a> |
225 | <a·class="sourceLine"·id="cb4-4"·title="4"><span·class="dt">size_t</span>········(*fi_fwrite)(ALLEGRO_FILE·*f,·<span·class="dt">const</span>·<span·class="dt">void</span>·*ptr,·<span·class="dt">size_t</span>·size);</a> | 223 | <a·class="sourceLine"·id="cb4-4"·title="4"><span·class="dt">size_t</span>········(*fi_fwrite)(ALLEGRO_FILE·*f,·<span·class="dt">const</span>·<span·class="dt">void</span>·*ptr,·<span·class="dt">size_t</span>·size);</a> |
Offset 232, 16 lines modified | Offset 230, 15 lines modified | ||
232 | <a·class="sourceLine"·id="cb4-11"·title="11"><span·class="dt">void</span>··········(*fi_fclearerr)(ALLEGRO_FILE·*f);</a> | 230 | <a·class="sourceLine"·id="cb4-11"·title="11"><span·class="dt">void</span>··········(*fi_fclearerr)(ALLEGRO_FILE·*f);</a> |
233 | <a·class="sourceLine"·id="cb4-12"·title="12"><span·class="dt">int</span>···········(*fi_fungetc)(ALLEGRO_FILE·*f,·<span·class="dt">int</span>·c);</a> | 231 | <a·class="sourceLine"·id="cb4-12"·title="12"><span·class="dt">int</span>···········(*fi_fungetc)(ALLEGRO_FILE·*f,·<span·class="dt">int</span>·c);</a> |
234 | <a·class="sourceLine"·id="cb4-13"·title="13">off_t·········(*fi_fsize)(ALLEGRO_FILE·*f);</a></code></pre></div> | 232 | <a·class="sourceLine"·id="cb4-13"·title="13">off_t·········(*fi_fsize)(ALLEGRO_FILE·*f);</a></code></pre></div> |
235 | <p>The·fi_open·function·must·allocate·memory·for·whatever·userdata·structure·it·needs.·The·pointer·to·that·memory·must·be·returned;·it·will·then·be·associated·with·the·file.·The·other·functions·can·access·that·data·by·calling·<a·href="file.html#al_get_file_userdata">al_get_file_userdata</a>·on·the·file·handle.·If·fi_open·returns·NULL·then·<a·href="file.html#al_fopen">al_fopen</a>·will·also·return·NULL.</p> | 233 | <p>The·fi_open·function·must·allocate·memory·for·whatever·userdata·structure·it·needs.·The·pointer·to·that·memory·must·be·returned;·it·will·then·be·associated·with·the·file.·The·other·functions·can·access·that·data·by·calling·<a·href="file.html#al_get_file_userdata">al_get_file_userdata</a>·on·the·file·handle.·If·fi_open·returns·NULL·then·<a·href="file.html#al_fopen">al_fopen</a>·will·also·return·NULL.</p> |
236 | <p>The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but·Allegro·will·free·the·<a·href="file.html#allegro_file">ALLEGRO_FILE</a>·handle.</p> | 234 | <p>The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but·Allegro·will·free·the·<a·href="file.html#allegro_file">ALLEGRO_FILE</a>·handle.</p> |
237 | <p>If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16·char·long·buffer·will·be·used.</p> | 235 | <p>If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16·char·long·buffer·will·be·used.</p> |
238 | <h1·id="allegro_seek">ALLEGRO_SEEK</h1> | 236 | <h1·id="allegro_seek">ALLEGRO_SEEK</h1> |
239 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</a> | 237 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</a></code></pre></div> |
240 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</a></code></pre></div> | ||
241 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L40">Source·Code</a></p> | 238 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L40">Source·Code</a></p> |
242 | <ul> | 239 | <ul> |
243 | <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li> | 240 | <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li> |
244 | <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li> | 241 | <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li> |
245 | <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li> | 242 | <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li> |
246 | </ul> | 243 | </ul> |
247 | <p>See·also:·<a·href="file.html#al_fseek">al_fseek</a></p> | 244 | <p>See·also:·<a·href="file.html#al_fseek">al_fseek</a></p> |
Offset 511, 12 lines modified | Offset 508, 12 lines modified | ||
511 | <p>See·also:·<a·href="file.html#al_fopen">al_fopen</a>,·<a·href="file.html#al_fclose">al_fclose</a>,·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a></p> | 508 | <p>See·also:·<a·href="file.html#al_fopen">al_fopen</a>,·<a·href="file.html#al_fclose">al_fclose</a>,·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a></p> |
512 | <h2·id="al_get_file_userdata">al_get_file_userdata</h2> | 509 | <h2·id="al_get_file_userdata">al_get_file_userdata</h2> |
513 | <div·class="sourceCode"·id="cb44"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb44-1"·title="1"><span·class="dt">void</span>·*al_get_file_userdata(ALLEGRO_FILE·*f)</a></code></pre></div> | 510 | <div·class="sourceCode"·id="cb44"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb44-1"·title="1"><span·class="dt">void</span>·*al_get_file_userdata(ALLEGRO_FILE·*f)</a></code></pre></div> |
514 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L533">Source·Code</a></p> | 511 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L533">Source·Code</a></p> |
515 | <p>Returns·a·pointer·to·the·custom·userdata·that·is·attached·to·the·file·handle.·This·is·intended·to·be·used·by·functions·that·extend·<a·href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>.</p> | 512 | <p>Returns·a·pointer·to·the·custom·userdata·that·is·attached·to·the·file·handle.·This·is·intended·to·be·used·by·functions·that·extend·<a·href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>.</p> |
516 | <p·class="timestamp"> | 513 | <p·class="timestamp"> |
517 | Allegro·version·5.2.4 | 514 | Allegro·version·5.2.4 |
518 | ·-·Last·updated:·202 | 515 | ·-·Last·updated:·2020-04-29·17:01:38·UTC |
519 | </p> | 516 | </p> |
520 | </div> | 517 | </div> |
521 | </body> | 518 | </body> |
522 | </html> | 519 | </html> |
Offset 185, 16 lines modified | Offset 185, 15 lines modified | ||
185 | <li><a·href="#al_fixhypot">al_fixhypot</a></li> | 185 | <li><a·href="#al_fixhypot">al_fixhypot</a></li> |
186 | </ul></li> | 186 | </ul></li> |
187 | </ul> | 187 | </ul> |
188 | </nav> | 188 | </nav> |
189 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 189 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
190 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 190 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
191 | <h1·id="al_fixed">al_fixed</h1> | 191 | <h1·id="al_fixed">al_fixed</h1> |
192 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="dt">int32_t</span>·al_fixed;</a> | 192 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="dt">int32_t</span>·al_fixed;</a></code></pre></div> |
193 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="dt">int32_t</span>·al_fixed;</a></code></pre></div> | ||
194 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fixed.h#L30">Source·Code</a></p> | 193 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fixed.h#L30">Source·Code</a></p> |
195 | <p>A·fixed·point·number.</p> | 194 | <p>A·fixed·point·number.</p> |
196 | <p>Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and·defines·the·type·<code>al_fixed</code>·to·be·a·signed·32-bit·integer.·The·high·word·is·used·for·the·integer·part·and·the·low·word·for·the·fraction,·giving·a·range·of·-32768·to·32767·and·an·accuracy·of·about·four·or·five·decimal·places.·Fixed·point·numbers·can·be·assigned,·compared,·added,·subtracted,·negated·and·shifted·(for·multiplying·or·dividing·by·powers·of·two)·using·the·normal·integer·operators,·but·you·should·take·care·to·use·the·appropriate·conversion·routines·when·mixing·fixed·point·with·integer·or·floating·point·values.·Writing·<code>fixed_point_1·+·fixed_point_2</code>·is·OK,·but·<code>fixed_point·+·integer</code>·is·not.</p> | 195 | <p>Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and·defines·the·type·<code>al_fixed</code>·to·be·a·signed·32-bit·integer.·The·high·word·is·used·for·the·integer·part·and·the·low·word·for·the·fraction,·giving·a·range·of·-32768·to·32767·and·an·accuracy·of·about·four·or·five·decimal·places.·Fixed·point·numbers·can·be·assigned,·compared,·added,·subtracted,·negated·and·shifted·(for·multiplying·or·dividing·by·powers·of·two)·using·the·normal·integer·operators,·but·you·should·take·care·to·use·the·appropriate·conversion·routines·when·mixing·fixed·point·with·integer·or·floating·point·values.·Writing·<code>fixed_point_1·+·fixed_point_2</code>·is·OK,·but·<code>fixed_point·+·integer</code>·is·not.</p> |
197 | <p>The·only·advantage·of·fixed·point·math·routines·is·that·you·don’t·require·a·floating·point·coprocessor·to·use·them.·This·was·great·in·the·time·period·of·i386·and·i486·machines,·but·stopped·being·so·useful·with·the·coming·of·the·Pentium·class·of·processors.·From·Pentium·onwards,·CPUs·have·increased·their·strength·in·floating·point·operations,·equaling·or·even·surpassing·integer·math·performance.·However,·many·embedded·processors·have·no·FPUs·so·fixed·point·maths·can·still·be·useful·there.</p> | 196 | <p>The·only·advantage·of·fixed·point·math·routines·is·that·you·don’t·require·a·floating·point·coprocessor·to·use·them.·This·was·great·in·the·time·period·of·i386·and·i486·machines,·but·stopped·being·so·useful·with·the·coming·of·the·Pentium·class·of·processors.·From·Pentium·onwards,·CPUs·have·increased·their·strength·in·floating·point·operations,·equaling·or·even·surpassing·integer·math·performance.·However,·many·embedded·processors·have·no·FPUs·so·fixed·point·maths·can·still·be·useful·there.</p> |
198 | <p>Depending·on·the·type·of·operations·your·program·may·need,·using·floating·point·types·may·be·faster·than·fixed·types·if·you·are·targeting·a·specific·machine·class.</p> | 197 | <p>Depending·on·the·type·of·operations·your·program·may·need,·using·floating·point·types·may·be·faster·than·fixed·types·if·you·are·targeting·a·specific·machine·class.</p> |
199 | <h1·id="al_itofix">al_itofix</h1> | 198 | <h1·id="al_itofix">al_itofix</h1> |
200 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1">al_fixed·al_itofix(<span·class="dt">int</span>·x);</a></code></pre></div> | 199 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1">al_fixed·al_itofix(<span·class="dt">int</span>·x);</a></code></pre></div> |
Offset 475, 12 lines modified | Offset 474, 12 lines modified | ||
475 | <p>This·finds·out·the·non·negative·square·root·of·<code>x</code>.·If·<code>x</code>·is·negative,·Allegro’s·errno·is·set·to·EDOM·and·the·function·returns·zero.</p> | 474 | <p>This·finds·out·the·non·negative·square·root·of·<code>x</code>.·If·<code>x</code>·is·negative,·Allegro’s·errno·is·set·to·EDOM·and·the·function·returns·zero.</p> |
476 | <h2·id="al_fixhypot">al_fixhypot</h2> | 475 | <h2·id="al_fixhypot">al_fixhypot</h2> |
477 | <div·class="sourceCode"·id="cb42"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb42-1"·title="1">al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y)</a></code></pre></div> | 476 | <div·class="sourceCode"·id="cb42"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb42-1"·title="1">al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y)</a></code></pre></div> |
478 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source·Code</a></p> | 477 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source·Code</a></p> |
479 | <p>Fixed·point·hypotenuse·(returns·the·square·root·of·<code>x*x·+·y*y</code>).·This·should·be·better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much·smaller.</p> | 478 | <p>Fixed·point·hypotenuse·(returns·the·square·root·of·<code>x*x·+·y*y</code>).·This·should·be·better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much·smaller.</p> |
480 | <p·class="timestamp"> | 479 | <p·class="timestamp"> |
481 | Allegro·version·5.2.4 | 480 | Allegro·version·5.2.4 |
482 | ·-·Last·updated:·202 | 481 | ·-·Last·updated:·2020-04-29·17:01:38·UTC |
483 | </p> | 482 | </p> |
484 | </div> | 483 | </div> |
485 | </body> | 484 | </body> |
486 | </html> | 485 | </html> |
Offset 217, 21 lines modified | Offset 217, 19 lines modified | ||
217 | </ul></li> | 217 | </ul></li> |
218 | </ul> | 218 | </ul> |
219 | </nav> | 219 | </nav> |
220 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_font.</p> | 220 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_font.</p> |
221 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_font.h></span></a></code></pre></div> | 221 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_font.h></span></a></code></pre></div> |
222 | <h1·id="general-font-routines">General·font·routines</h1> | 222 | <h1·id="general-font-routines">General·font·routines</h1> |
223 | <h2·id="allegro_font">ALLEGRO_FONT</h2> | 223 | <h2·id="allegro_font">ALLEGRO_FONT</h2> |
224 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FONT·ALLEGRO_FONT;</a> | 224 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FONT·ALLEGRO_FONT;</a></code></pre></div> |
225 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FONT·ALLEGRO_FONT;</a></code></pre></div> | ||
226 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L48">Source·Code</a></p> | 225 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L48">Source·Code</a></p> |
227 | <p>A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with·<a·href="font.html#al_load_font">al_load_font</a>·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded·with·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>·and·a·font·in·Allegro’s·bitmap·font·format·will·be·created·from·it·with·<a·href="font.html#al_grab_font_from_bitmap">al_grab_font_from_bitmap</a>.</p> | 226 | <p>A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with·<a·href="font.html#al_load_font">al_load_font</a>·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded·with·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>·and·a·font·in·Allegro’s·bitmap·font·format·will·be·created·from·it·with·<a·href="font.html#al_grab_font_from_bitmap">al_grab_font_from_bitmap</a>.</p> |
228 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> | 227 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> |
229 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH;</a> | 228 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH;</a></code></pre></div> |
230 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH;</a></code></pre></div> | ||
231 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source·Code</a></p> | 229 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source·Code</a></p> |
232 | <p>A·structure·containing·the·properties·of·a·character·in·a·font.</p> | 230 | <p>A·structure·containing·the·properties·of·a·character·in·a·font.</p> |
233 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·{</a> | 231 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·{</a> |
234 | <a·class="sourceLine"·id="cb4-2"·title="2">···ALLEGRO_BITMAP·*bitmap;···<span·class="co">//·the·bitmap·the·character·is·on</span></a> | 232 | <a·class="sourceLine"·id="cb4-2"·title="2">···ALLEGRO_BITMAP·*bitmap;···<span·class="co">//·the·bitmap·the·character·is·on</span></a> |
235 | <a·class="sourceLine"·id="cb4-3"·title="3">···<span·class="dt">int</span>·x;····················<span·class="co">//·the·x·position·of·the·glyph·on·bitmap</span></a> | 233 | <a·class="sourceLine"·id="cb4-3"·title="3">···<span·class="dt">int</span>·x;····················<span·class="co">//·the·x·position·of·the·glyph·on·bitmap</span></a> |
236 | <a·class="sourceLine"·id="cb4-4"·title="4">···<span·class="dt">int</span>·y;····················<span·class="co">//·the·y·position·of·the·glyph·on·bitmap</span></a> | 234 | <a·class="sourceLine"·id="cb4-4"·title="4">···<span·class="dt">int</span>·y;····················<span·class="co">//·the·y·position·of·the·glyph·on·bitmap</span></a> |
237 | <a·class="sourceLine"·id="cb4-5"·title="5">···<span·class="dt">int</span>·w;····················<span·class="co">//·the·width·of·the·glyph·in·pixels</span></a> | 235 | <a·class="sourceLine"·id="cb4-5"·title="5">···<span·class="dt">int</span>·w;····················<span·class="co">//·the·width·of·the·glyph·in·pixels</span></a> |
Offset 247, 55 lines modified | Offset 245, 48 lines modified | ||
247 | <p>advance·is·the·number·of·pixels·to·add·to·your·x·position·to·advance·to·the·next·character·in·a·string·and·includes·kerning.</p> | 245 | <p>advance·is·the·number·of·pixels·to·add·to·your·x·position·to·advance·to·the·next·character·in·a·string·and·includes·kerning.</p> |
248 | <p>Since:·5.2.1</p> | 246 | <p>Since:·5.2.1</p> |
249 | <blockquote> | 247 | <blockquote> |
250 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p> | 248 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p> |
251 | </blockquote> | 249 | </blockquote> |
252 | <p>See·also:·<a·href="font.html#al_get_glyph">al_get_glyph</a></p> | 250 | <p>See·also:·<a·href="font.html#al_get_glyph">al_get_glyph</a></p> |
253 | <h2·id="al_init_font_addon">al_init_font_addon</h2> | 251 | <h2·id="al_init_font_addon">al_init_font_addon</h2> |
254 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">bool</span>·al_init_font_addon(<span·class="dt">void</span>)</a> | 252 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">bool</span>·al_init_font_addon(<span·class="dt">void</span>)</a></code></pre></div> |
255 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="dt">bool</span>·al_init_font_addon(<span·class="dt">void</span>)</a></code></pre></div> | ||
256 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L365">Source·Code</a></p> | 253 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L365">Source·Code</a></p> |
257 | <p>Initialise·the·font·addon.</p> | 254 | <p>Initialise·the·font·addon.</p> |
258 | <p>Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to·initialise·allegro_image·separately·(unless·you·are·using·another·library·to·load·images).</p> | 255 | <p>Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to·initialise·allegro_image·separately·(unless·you·are·using·another·library·to·load·images).</p> |
259 | <p>Similarly,·if·you·wish·to·load·truetype-fonts,·do·not·forget·to·also·call·<a·href="font.html#al_init_ttf_addon">al_init_ttf_addon</a>.</p> | 256 | <p>Similarly,·if·you·wish·to·load·truetype-fonts,·do·not·forget·to·also·call·<a·href="font.html#al_init_ttf_addon">al_init_ttf_addon</a>.</p> |
260 | <p>Returns·true·on·success,·false·on·failure.·On·the·5.0·branch,·this·function·has·no·return·value.·You·may·wish·to·avoid·checking·the·return·value·if·your·code·needs·to·be·compatible·with·Allegro·5.0.·Currently,·the·function·will·never·return·false.</p> | 257 | <p>Returns·true·on·success,·false·on·failure.·On·the·5.0·branch,·this·function·has·no·return·value.·You·may·wish·to·avoid·checking·the·return·value·if·your·code·needs·to·be·compatible·with·Allegro·5.0.·Currently,·the·function·will·never·return·false.</p> |
261 | <p>See·also:·<a·href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a·href="font.html#al_init_ttf_addon">al_init_ttf_addon</a>,·<a·href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> | 258 | <p>See·also:·<a·href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a·href="font.html#al_init_ttf_addon">al_init_ttf_addon</a>,·<a·href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> |
262 | <h2·id="al_shutdown_font_addon">al_shutdown_font_addon</h2> | 259 | <h2·id="al_shutdown_font_addon">al_shutdown_font_addon</h2> |
263 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="dt">void</span>·al_shutdown_font_addon(<span·class="dt">void</span>)</a> | 260 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="dt">void</span>·al_shutdown_font_addon(<span·class="dt">void</span>)</a></code></pre></div> |
264 | <a·class="sourceLine"·id="cb6-2"·title="2"><span·class="dt">void</span>·al_shutdown_font_addon(<span·class="dt">void</span>)</a></code></pre></div> | ||
265 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L392">Source·Code</a></p> | 261 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L392">Source·Code</a></p> |
266 | <p>Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> | 262 | <p>Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> |
267 | <p>See·also:·<a·href="font.html#al_init_font_addon">al_init_font_addon</a></p> | 263 | <p>See·also:·<a·href="font.html#al_init_font_addon">al_init_font_addon</a></p> |
268 | <h2·id="al_load_font">al_load_font</h2> | 264 | <h2·id="al_load_font">al_load_font</h2> |
269 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1">ALLEGRO_FONT·*al_load_font(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename,·<span·class="dt">int</span>·size,·<span·class="dt">int</span>·flags)</a> | 265 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1">ALLEGRO_FONT·*al_load_font(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename,·<span·class="dt">int</span>·size,·<span·class="dt">int</span>·flags)</a></code></pre></div> |
270 | <a·class="sourceLine"·id="cb7-2"·title="2">ALLEGRO_FONT·*al_load_font(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename,·<span·class="dt">int</span>·size,·<span·class="dt">int</span>·flags)</a></code></pre></div> | ||
271 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L440">Source·Code</a></p> | 266 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L440">Source·Code</a></p> |
272 | <p>Loads·a·font·from·disk.·This·will·use·<a·href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a>·if·you·pass·the·name·of·a·known·bitmap·format,·or·else·<a·href="font.html#al_load_ttf_font">al_load_ttf_font</a>.</p> | 267 | <p>Loads·a·font·from·disk.·This·will·use·<a·href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a>·if·you·pass·the·name·of·a·known·bitmap·format,·or·else·<a·href="font.html#al_load_ttf_font">al_load_ttf_font</a>.</p> |
273 | <p>The·flags·parameter·is·passed·through·to·either·of·those·functions.·Bitmap·and·TTF·fonts·are·also·affected·by·the·current·<a·href="graphics.html#al_set_new_bitmap_flags">bitmap·flags</a>·at·the·time·the·font·is·loaded.</p> | 268 | <p>The·flags·parameter·is·passed·through·to·either·of·those·functions.·Bitmap·and·TTF·fonts·are·also·affected·by·the·current·<a·href="graphics.html#al_set_new_bitmap_flags">bitmap·flags</a>·at·the·time·the·font·is·loaded.</p> |
274 | <p>See·also:·<a·href="font.html#al_destroy_font">al_destroy_font</a>,·<a·href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a·href="font.html#al_register_font_loader">al_register_font_loader</a>,·<a·href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a>,·<a·href="font.html#al_load_ttf_font">al_load_ttf_font</a></p> | 269 | <p>See·also:·<a·href="font.html#al_destroy_font">al_destroy_font</a>,·<a·href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a·href="font.html#al_register_font_loader">al_register_font_loader</a>,·<a·href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a>,·<a·href="font.html#al_load_ttf_font">al_load_ttf_font</a></p> |
275 | <h2·id="al_destroy_font">al_destroy_font</h2> | 270 | <h2·id="al_destroy_font">al_destroy_font</h2> |
276 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="dt">void</span>·al_destroy_font(ALLEGRO_FONT·*f)</a> | 271 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="dt">void</span>·al_destroy_font(ALLEGRO_FONT·*f)</a></code></pre></div> |
277 | <a·class="sourceLine"·id="cb8-2"·title="2"><span·class="dt">void</span>·al_destroy_font(ALLEGRO_FONT·*f)</a></code></pre></div> | ||
278 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L358">Source·Code</a></p> | 272 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L358">Source·Code</a></p> |
279 | <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL.</p> | 273 | <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL.</p> |
280 | <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p> | 274 | <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p> |
281 | <h2·id="al_register_font_loader">al_register_font_loader</h2> | 275 | <h2·id="al_register_font_loader">al_register_font_loader</h2> |
282 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">bool</span>·al_register_font_loader(<span·class="dt">char</span>·<span·class="dt">const</span>·*extension,</a> | 276 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">bool</span>·al_register_font_loader(<span·class="dt">char</span>·<span·class="dt">const</span>·*extension,</a> |
283 | <a·class="sourceLine"·id="cb9-2"·title="2">···ALLEGRO_FONT·*(*load_font)(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename,·<span·class="dt">int</span>·size,·<span·class="dt">int</span>·flags))</a> | 277 | <a·class="sourceLine"·id="cb9-2"·title="2">···ALLEGRO_FONT·*(*load_font)(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename,·<span·class="dt">int</span>·size,·<span·class="dt">int</span>·flags))</a></code></pre></div> |
284 | <a·class="sourceLine"·id="cb9-3"·title="3"><span·class="dt">bool</span>·al_register_font_loader(<span·class="dt">char</span>·<span·class="dt">const</span>·*extension,</a> | ||
285 | <a·class="sourceLine"·id="cb9-4"·title="4">···ALLEGRO_FONT·*(*load_font)(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename,·<span·class="dt">int</span>·size,·<span·class="dt">int</span>·flags))</a></code></pre></div> | ||
286 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L416">Source·Code</a></p> | 278 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L416">Source·Code</a></p> |
287 | <p>Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this·format.</p> | 279 | <p>Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this·format.</p> |
288 | <p>The·<code>extension</code>·should·include·the·leading·dot·(‘.’)·character.·It·will·be·matched·case-insensitively.</p> | 280 | <p>The·<code>extension</code>·should·include·the·leading·dot·(‘.’)·character.·It·will·be·matched·case-insensitively.</p> |
289 | <p>The·<code>load_font</code>·argument·may·be·NULL·to·unregister·an·entry.</p> | 281 | <p>The·<code>load_font</code>·argument·may·be·NULL·to·unregister·an·entry.</p> |
290 | <p>Returns·true·on·success,·false·on·error.·Returns·false·if·unregistering·an·entry·that·doesn’t·exist.</p> | 282 | <p>Returns·true·on·success,·false·on·error.·Returns·false·if·unregistering·an·entry·that·doesn’t·exist.</p> |
291 | <p>See·also:·<a·href="font.html#al_init_font_addon">al_init_font_addon</a></p> | 283 | <p>See·also:·<a·href="font.html#al_init_font_addon">al_init_font_addon</a></p> |
292 | <h2·id="al_get_font_line_height">al_get_font_line_height</h2> | 284 | <h2·id="al_get_font_line_height">al_get_font_line_height</h2> |
293 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="dt">int</span>·al_get_font_line_height(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</a> | 285 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="dt">int</span>·al_get_font_line_height(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</a></code></pre></div> |
294 | <a·class="sourceLine"·id="cb10-2"·title="2"><span·class="dt">int</span>·al_get_font_line_height(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</a></code></pre></div> | ||
295 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L298">Source·Code</a></p> | 286 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L298">Source·Code</a></p> |
296 | <p>Returns·the·usual·height·of·a·line·of·text·in·the·specified·font.·For·bitmap·fonts·this·is·simply·the·height·of·all·glyph·bitmaps.·For·truetype·fonts·it·is·whatever·the·font·file·specifies.·In·particular,·some·special·glyphs·may·be·higher·than·the·height·returned·here.</p> | 287 | <p>Returns·the·usual·height·of·a·line·of·text·in·the·specified·font.·For·bitmap·fonts·this·is·simply·the·height·of·all·glyph·bitmaps.·For·truetype·fonts·it·is·whatever·the·font·file·specifies.·In·particular,·some·special·glyphs·may·be·higher·than·the·height·returned·here.</p> |
297 | <p>If·the·X·is·the·position·you·specify·to·draw·text,·the·meaning·of·ascent·and·descent·and·the·line·height·is·like·in·the·figure·below.</p> | 288 | <p>If·the·X·is·the·position·you·specify·to·draw·text,·the·meaning·of·ascent·and·descent·and·the·line·height·is·like·in·the·figure·below.</p> |
298 | <pre><code>X------------------------ | 289 | <pre><code>X------------------------ |
299 | ····/\·········|········| | 290 | ····/\·········|········| |
300 | ···/··\········|········| | 291 | ···/··\········|········| |
301 | ··/____\·······ascent···| | 292 | ··/____\·······ascent···| |
Offset 304, 44 lines modified | Offset 295, 37 lines modified | ||
304 | ----------------········| | 295 | ----------------········| |
305 | ···············|········| | 296 | ···············|········| |
306 | ···············descent··| | 297 | ···············descent··| |
307 | ···············|········| | 298 | ···············|········| |
308 | -------------------------</code></pre> | 299 | -------------------------</code></pre> |
309 | <p>See·also:·<a·href="font.html#al_get_text_width">al_get_text_width</a>,·<a·href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p> | 300 | <p>See·also:·<a·href="font.html#al_get_text_width">al_get_text_width</a>,·<a·href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p> |
310 | <h2·id="al_get_font_ascent">al_get_font_ascent</h2> | 301 | <h2·id="al_get_font_ascent">al_get_font_ascent</h2> |
311 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1"><span·class="dt">int</span>·al_get_font_ascent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</a> | 302 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1"><span·class="dt">int</span>·al_get_font_ascent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</a></code></pre></div> |
312 | <a·class="sourceLine"·id="cb12-2"·title="2"><span·class="dt">int</span>·al_get_font_ascent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</a></code></pre></div> | ||
313 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L308">Source·Code</a></p> | 303 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L308">Source·Code</a></p> |
314 | <p>Returns·the·ascent·of·the·specified·font.</p> | 304 | <p>Returns·the·ascent·of·the·specified·font.</p> |
315 | <p>See·also:·<a·href="font.html#al_get_font_descent">al_get_font_descent</a>,·<a·href="font.html#al_get_font_line_height">al_get_font_line_height</a></p> | 305 | <p>See·also:·<a·href="font.html#al_get_font_descent">al_get_font_descent</a>,·<a·href="font.html#al_get_font_line_height">al_get_font_line_height</a></p> |
316 | <h2·id="al_get_font_descent">al_get_font_descent</h2> | 306 | <h2·id="al_get_font_descent">al_get_font_descent</h2> |
317 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb13-1"·title="1"><span·class="dt">int</span>·al_get_font_descent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</a> | 307 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb13-1"·title="1"><span·class="dt">int</span>·al_get_font_descent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</a></code></pre></div> |
318 | <a·class="sourceLine"·id="cb13-2"·title="2"><span·class="dt">int</span>·al_get_font_descent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</a></code></pre></div> | ||
319 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L318">Source·Code</a></p> | 308 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L318">Source·Code</a></p> |
320 | <p>Returns·the·descent·of·the·specified·font.</p> | 309 | <p>Returns·the·descent·of·the·specified·font.</p> |
321 | <p>See·also:·<a·href="font.html#al_get_font_ascent">al_get_font_ascent</a>,·<a·href="font.html#al_get_font_line_height">al_get_font_line_height</a></p> | 310 | <p>See·also:·<a·href="font.html#al_get_font_ascent">al_get_font_ascent</a>,·<a·href="font.html#al_get_font_line_height">al_get_font_line_height</a></p> |
322 | <h2·id="al_get_text_width">al_get_text_width</h2> | 311 | <h2·id="al_get_text_width">al_get_text_width</h2> |
323 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1"><span·class="dt">int</span>·al_get_text_width(<span·class="dt">const</span>·ALLEGRO_FONT·*f,·<span·class="dt">const</span>·<span·class="dt">char</span>·*str)</a> | 312 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1"><span·class="dt">int</span>·al_get_text_width(<span·class="dt">const</span>·ALLEGRO_FONT·*f,·<span·class="dt">const</span>·<span·class="dt">char</span>·*str)</a></code></pre></div> |
324 | <a·class="sourceLine"·id="cb14-2"·title="2"><span·class="dt">int</span>·al_get_text_width(<span·class="dt">const</span>·ALLEGRO_FONT·*f,·<span·class="dt">const</span>·<span·class="dt">char</span>·*str)</a></code></pre></div> | ||
325 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L282">Source·Code</a></p> | 313 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L282">Source·Code</a></p> |
326 | <p>Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels.</p> | 314 | <p>Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels.</p> |
327 | <p>See·also:·<a·href="font.html#al_get_ustr_width">al_get_ustr_width</a>,·<a·href="font.html#al_get_font_line_height">al_get_font_line_height</a>,·<a·href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p> | 315 | <p>See·also:·<a·href="font.html#al_get_ustr_width">al_get_ustr_width</a>,·<a·href="font.html#al_get_font_line_height">al_get_font_line_height</a>,·<a·href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p> |
328 | <h2·id="al_get_ustr_width">al_get_ustr_width</h2> | 316 | <h2·id="al_get_ustr_width">al_get_ustr_width</h2> |
329 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb15-1"·title="1"><span·class="dt">int</span>·al_get_ustr_width(<span·class="dt">const</span>·ALLEGRO_FONT·*f,·ALLEGRO_USTR·<span·class="dt">const</span>·*ustr)</a> | 317 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb15-1"·title="1"><span·class="dt">int</span>·al_get_ustr_width(<span·class="dt">const</span>·ALLEGRO_FONT·*f,·ALLEGRO_USTR·<span·class="dt">const</span>·*ustr)</a></code></pre></div> |
330 | <a·class="sourceLine"·id="cb15-2"·title="2"><span·class="dt">int</span>·al_get_ustr_width(<span·class="dt">const</span>·ALLEGRO_FONT·*f,·ALLEGRO_USTR·<span·class="dt">const</span>·*ustr)</a></code></pre></div> | ||
331 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L270">Source·Code</a></p> | 318 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L270">Source·Code</a></p> |
332 | <p>Like·<a·href="font.html#al_get_text_width">al_get_text_width</a>·but·expects·an·ALLEGRO_USTR.</p> | 319 | <p>Like·<a·href="font.html#al_get_text_width">al_get_text_width</a>·but·expects·an·ALLEGRO_USTR.</p> |
333 | <p>See·also:·<a·href="font.html#al_get_text_width">al_get_text_width</a>,·<a·href="font.html#al_get_ustr_dimensions">al_get_ustr_dimensions</a></p> | 320 | <p>See·also:·<a·href="font.html#al_get_text_width">al_get_text_width</a>,·<a·href="font.html#al_get_ustr_dimensions">al_get_ustr_dimensions</a></p> |
334 | <h2·id="al_draw_text">al_draw_text</h2> | 321 | <h2·id="al_draw_text">al_draw_text</h2> |
335 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb16-1"·title="1"><span·class="dt">void</span>·al_draw_text(<span·class="dt">const</span>·ALLEGRO_FONT·*font,</a> | 322 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb16-1"·title="1"><span·class="dt">void</span>·al_draw_text(<span·class="dt">const</span>·ALLEGRO_FONT·*font,</a> |
336 | <a·class="sourceLine"·id="cb16-2"·title="2">···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·x,·<span·class="dt">float</span>·y,·<span·class="dt">int</span>·flags,</a> | 323 | <a·class="sourceLine"·id="cb16-2"·title="2">···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·x,·<span·class="dt">float</span>·y,·<span·class="dt">int</span>·flags,</a> |
337 | <a·class="sourceLine"·id="cb16-3"·title="3">···<span·class="dt">char</span>·<span·class="dt">const</span>·*text)·</a> | 324 | <a·class="sourceLine"·id="cb16-3"·title="3">···<span·class="dt">char</span>·<span·class="dt">const</span>·*text)·</a></code></pre></div> |
338 | <a·class="sourceLine"·id="cb16-4"·title="4"><span·class="dt">void</span>·al_draw_text(<span·class="dt">const</span>·ALLEGRO_FONT·*font,</a> | ||
339 | <a·class="sourceLine"·id="cb16-5"·title="5">···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·x,·<span·class="dt">float</span>·y,·<span·class="dt">int</span>·flags,</a> | ||
340 | <a·class="sourceLine"·id="cb16-6"·title="6">···<span·class="dt">char</span>·<span·class="dt">const</span>·*text)·</a></code></pre></div> | ||
341 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L102">Source·Code</a></p> | 325 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L102">Source·Code</a></p> |
342 | <p>Writes·the·NUL-terminated·string·<code>text</code>·onto·the·target·bitmap·at·position·<code>x</code>,·<code>y</code>,·using·the·specified·<code>font</code>.</p> | 326 | <p>Writes·the·NUL-terminated·string·<code>text</code>·onto·the·target·bitmap·at·position·<code>x</code>,·<code>y</code>,·using·the·specified·<code>font</code>.</p> |
343 | <p>The·<code>flags</code>·parameter·can·be·0·or·one·of·the·following·flags:</p> | 327 | <p>The·<code>flags</code>·parameter·can·be·0·or·one·of·the·following·flags:</p> |
344 | <ul> | 328 | <ul> |
345 | <li>ALLEGRO_ALIGN_LEFT·-·Draw·the·text·left-aligned·(same·as·0).</li> | 329 | <li>ALLEGRO_ALIGN_LEFT·-·Draw·the·text·left-aligned·(same·as·0).</li> |
346 | <li>ALLEGRO_ALIGN_CENTRE·-·Draw·the·text·centered·around·the·given·position.</li> | 330 | <li>ALLEGRO_ALIGN_CENTRE·-·Draw·the·text·centered·around·the·given·position.</li> |
347 | <li>ALLEGRO_ALIGN_RIGHT·-·Draw·the·text·right-aligned·to·the·given·position.</li> | 331 | <li>ALLEGRO_ALIGN_RIGHT·-·Draw·the·text·right-aligned·to·the·given·position.</li> |
Offset 351, 148 lines modified | Offset 335, 118 lines modified | ||
351 | <li>ALLEGRO_ALIGN_INTEGER·-·Always·draw·text·aligned·to·an·integer·pixel·position.·This·was·formerly·the·default·behaviour.·Since:·5.0.8,·5.1.4</li> | 335 | <li>ALLEGRO_ALIGN_INTEGER·-·Always·draw·text·aligned·to·an·integer·pixel·position.·This·was·formerly·the·default·behaviour.·Since:·5.0.8,·5.1.4</li> |
352 | </ul> | 336 | </ul> |
353 | <p>This·function·does·not·support·newline·characters·(<code>\n</code>),·but·you·can·use·<a·href="font.html#al_draw_multiline_text">al_draw_multiline_text</a>·for·multi·line·text·output.</p> | 337 | <p>This·function·does·not·support·newline·characters·(<code>\n</code>),·but·you·can·use·<a·href="font.html#al_draw_multiline_text">al_draw_multiline_text</a>·for·multi·line·text·output.</p> |
354 | <p>See·also:·<a·href="font.html#al_draw_ustr">al_draw_ustr</a>,·<a·href="font.html#al_draw_textf">al_draw_textf</a>,·<a·href="font.html#al_draw_justified_text">al_draw_justified_text</a>,·<a·href="font.html#al_draw_multiline_text">al_draw_multiline_text</a>.</p> | 338 | <p>See·also:·<a·href="font.html#al_draw_ustr">al_draw_ustr</a>,·<a·href="font.html#al_draw_textf">al_draw_textf</a>,·<a·href="font.html#al_draw_justified_text">al_draw_justified_text</a>,·<a·href="font.html#al_draw_multiline_text">al_draw_multiline_text</a>.</p> |
Max diff block lines reached; 59544/78954 bytes (75.42%) of diff not shown. |
Offset 194, 21 lines modified | Offset 194, 19 lines modified | ||
194 | </ul></li> | 194 | </ul></li> |
195 | </ul> | 195 | </ul> |
196 | </nav> | 196 | </nav> |
197 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 197 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
198 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 198 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
199 | <p>These·functions·allow·access·to·the·filesystem.·This·can·either·be·the·real·filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a·.zip·archive·(or·whatever·else·you·or·an·addon·makes·it·do).</p> | 199 | <p>These·functions·allow·access·to·the·filesystem.·This·can·either·be·the·real·filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a·.zip·archive·(or·whatever·else·you·or·an·addon·makes·it·do).</p> |
200 | <h1·id="allegro_fs_entry">ALLEGRO_FS_ENTRY</h1> | 200 | <h1·id="allegro_fs_entry">ALLEGRO_FS_ENTRY</h1> |
201 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY;</a> | 201 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY;</a></code></pre></div> |
202 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY;</a></code></pre></div> | ||
203 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source·Code</a></p> | 202 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source·Code</a></p> |
204 | <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory·(check·with·<a·href="fshook.html#al_get_fs_entry_mode">al_get_fs_entry_mode</a>).·There·are·no·user·accessible·member·variables.</p> | 203 | <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory·(check·with·<a·href="fshook.html#al_get_fs_entry_mode">al_get_fs_entry_mode</a>).·There·are·no·user·accessible·member·variables.</p> |
205 | <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1> | 204 | <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1> |
206 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</a> | 205 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</a></code></pre></div> |
207 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</a></code></pre></div> | ||
208 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source·Code</a></p> | 206 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source·Code</a></p> |
209 | <p>Filesystem·modes/types</p> | 207 | <p>Filesystem·modes/types</p> |
210 | <ul> | 208 | <ul> |
211 | <li>ALLEGRO_FILEMODE_READ·-·Readable</li> | 209 | <li>ALLEGRO_FILEMODE_READ·-·Readable</li> |
212 | <li>ALLEGRO_FILEMODE_WRITE·-·Writable</li> | 210 | <li>ALLEGRO_FILEMODE_WRITE·-·Writable</li> |
213 | <li>ALLEGRO_FILEMODE_EXECUTE·-·Executable</li> | 211 | <li>ALLEGRO_FILEMODE_EXECUTE·-·Executable</li> |
214 | <li>ALLEGRO_FILEMODE_HIDDEN·-·Hidden</li> | 212 | <li>ALLEGRO_FILEMODE_HIDDEN·-·Hidden</li> |
Offset 326, 16 lines modified | Offset 324, 15 lines modified | ||
326 | <h2·id="al_open_fs_entry">al_open_fs_entry</h2> | 324 | <h2·id="al_open_fs_entry">al_open_fs_entry</h2> |
327 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb23-1"·title="1">ALLEGRO_FILE·*al_open_fs_entry(ALLEGRO_FS_ENTRY·*e,·<span·class="dt">const</span>·<span·class="dt">char</span>·*mode)</a></code></pre></div> | 325 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb23-1"·title="1">ALLEGRO_FILE·*al_open_fs_entry(ALLEGRO_FS_ENTRY·*e,·<span·class="dt">const</span>·<span·class="dt">char</span>·*mode)</a></code></pre></div> |
328 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/fshook.c#L226">Source·Code</a></p> | 326 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/fshook.c#L226">Source·Code</a></p> |
329 | <p>Open·an·<a·href="file.html#allegro_file">ALLEGRO_FILE</a>·handle·to·a·filesystem·entry,·for·the·given·access·mode.·This·is·like·calling·<a·href="file.html#al_fopen">al_fopen</a>·with·the·name·of·the·filesystem·entry,·but·uses·the·appropriate·file·interface,·not·whatever·was·set·with·the·latest·call·to·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> | 327 | <p>Open·an·<a·href="file.html#allegro_file">ALLEGRO_FILE</a>·handle·to·a·filesystem·entry,·for·the·given·access·mode.·This·is·like·calling·<a·href="file.html#al_fopen">al_fopen</a>·with·the·name·of·the·filesystem·entry,·but·uses·the·appropriate·file·interface,·not·whatever·was·set·with·the·latest·call·to·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> |
330 | <p>Returns·the·handle·on·success,·NULL·on·error.</p> | 328 | <p>Returns·the·handle·on·success,·NULL·on·error.</p> |
331 | <p>See·also:·<a·href="file.html#al_fopen">al_fopen</a></p> | 329 | <p>See·also:·<a·href="file.html#al_fopen">al_fopen</a></p> |
332 | <h2·id="allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</h2> | 330 | <h2·id="allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</h2> |
333 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb24-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{</a> | 331 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb24-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{</a></code></pre></div> |
334 | <a·class="sourceLine"·id="cb24-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{</a></code></pre></div> | ||
335 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L124">Source·Code</a></p> | 332 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L124">Source·Code</a></p> |
336 | <p>Return·values·for·the·callbacks·of·<a·href="fshook.html#al_for_each_fs_entry">al_for_each_fs_entry</a>·and·for·that·function·itself.</p> | 333 | <p>Return·values·for·the·callbacks·of·<a·href="fshook.html#al_for_each_fs_entry">al_for_each_fs_entry</a>·and·for·that·function·itself.</p> |
337 | <ul> | 334 | <ul> |
338 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·-·An·error·ocurred.</li> | 335 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·-·An·error·ocurred.</li> |
339 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_OK·-·Continue·normally·and·recurse·into·directories.</li> | 336 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_OK·-·Continue·normally·and·recurse·into·directories.</li> |
340 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_SKIP·-·Continue·but·do·NOT·recusively·descend.</li> | 337 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_SKIP·-·Continue·but·do·NOT·recusively·descend.</li> |
341 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_STOP·-·Stop·iterating·and·return.</li> | 338 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_STOP·-·Stop·iterating·and·return.</li> |
Offset 355, 16 lines modified | Offset 352, 15 lines modified | ||
355 | <p>This·function·will·skip·any·files·or·directories·named·<code>.</code>·or·<code>..</code>·which·may·exist·on·certain·platforms·and·may·signify·the·current·and·the·parent·directory.·The·<code>callback</code>·will·not·be·called·for·files·or·directories·with·such·a·name.</p> | 352 | <p>This·function·will·skip·any·files·or·directories·named·<code>.</code>·or·<code>..</code>·which·may·exist·on·certain·platforms·and·may·signify·the·current·and·the·parent·directory.·The·<code>callback</code>·will·not·be·called·for·files·or·directories·with·such·a·name.</p> |
356 | <p>Returns·ALLEGRO_FOR_EACH_FS_ENTRY_OK·if·successful,·or·ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·if·something·went·wrong·in·processing·the·directory.·In·that·case·it·will·use·<a·href="state.html#al_set_errno">al_set_errno</a>·to·indicate·the·type·of·error·which·occurred.·This·function·returns·ALLEGRO_FOR_EACH_FS_ENTRY_STOP·in·case·iteration·was·stopped·by·making·<code>callback</code>·return·that·value.·In·this·case,·<a·href="state.html#al_set_errno">al_set_errno</a>·will·not·be·used.</p> | 353 | <p>Returns·ALLEGRO_FOR_EACH_FS_ENTRY_OK·if·successful,·or·ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·if·something·went·wrong·in·processing·the·directory.·In·that·case·it·will·use·<a·href="state.html#al_set_errno">al_set_errno</a>·to·indicate·the·type·of·error·which·occurred.·This·function·returns·ALLEGRO_FOR_EACH_FS_ENTRY_STOP·in·case·iteration·was·stopped·by·making·<code>callback</code>·return·that·value.·In·this·case,·<a·href="state.html#al_set_errno">al_set_errno</a>·will·not·be·used.</p> |
357 | <p>See·also:·<a·href="fshook.html#allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</a></p> | 354 | <p>See·also:·<a·href="fshook.html#allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</a></p> |
358 | <p>Since:·5.1.9</p> | 355 | <p>Since:·5.1.9</p> |
359 | <h1·id="alternative-filesystem-functions">Alternative·filesystem·functions</h1> | 356 | <h1·id="alternative-filesystem-functions">Alternative·filesystem·functions</h1> |
360 | <p>By·default,·Allegro·uses·platform·specific·filesystem·functions·for·things·like·directory·access.·However·if·for·example·the·files·of·your·game·are·not·in·the·local·filesystem·but·inside·some·file·archive,·you·can·provide·your·own·set·of·functions·(or·use·an·addon·which·does·this·for·you,·for·example·our·physfs·addon·allows·access·to·the·most·common·archive·formats).</p> | 357 | <p>By·default,·Allegro·uses·platform·specific·filesystem·functions·for·things·like·directory·access.·However·if·for·example·the·files·of·your·game·are·not·in·the·local·filesystem·but·inside·some·file·archive,·you·can·provide·your·own·set·of·functions·(or·use·an·addon·which·does·this·for·you,·for·example·our·physfs·addon·allows·access·to·the·most·common·archive·formats).</p> |
361 | <h2·id="allegro_fs_interface">ALLEGRO_FS_INTERFACE</h2> | 358 | <h2·id="allegro_fs_interface">ALLEGRO_FS_INTERFACE</h2> |
362 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb26-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE;</a> | 359 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb26-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE;</a></code></pre></div> |
363 | <a·class="sourceLine"·id="cb26-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE;</a></code></pre></div> | ||
364 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L64">Source·Code</a></p> | 360 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L64">Source·Code</a></p> |
365 | <p>The·available·functions·you·can·provide·for·a·filesystem.·They·are:</p> | 361 | <p>The·available·functions·you·can·provide·for·a·filesystem.·They·are:</p> |
366 | <pre><code>···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); | 362 | <pre><code>···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); |
367 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); | 363 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); |
368 | ···const·char·*········fs_entry_name·····(ALLEGRO_FS_ENTRY·*e); | 364 | ···const·char·*········fs_entry_name·····(ALLEGRO_FS_ENTRY·*e); |
369 | ···bool················fs_update_entry···(ALLEGRO_FS_ENTRY·*e); | 365 | ···bool················fs_update_entry···(ALLEGRO_FS_ENTRY·*e); |
370 | ···uint32_t············fs_entry_mode·····(ALLEGRO_FS_ENTRY·*e); | 366 | ···uint32_t············fs_entry_mode·····(ALLEGRO_FS_ENTRY·*e); |
Offset 399, 12 lines modified | Offset 395, 12 lines modified | ||
399 | <h2·id="al_get_fs_interface">al_get_fs_interface</h2> | 395 | <h2·id="al_get_fs_interface">al_get_fs_interface</h2> |
400 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb30-1"·title="1"><span·class="dt">const</span>·ALLEGRO_FS_INTERFACE·*al_get_fs_interface(<span·class="dt">void</span>)</a></code></pre></div> | 396 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb30-1"·title="1"><span·class="dt">const</span>·ALLEGRO_FS_INTERFACE·*al_get_fs_interface(<span·class="dt">void</span>)</a></code></pre></div> |
401 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L874">Source·Code</a></p> | 397 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L874">Source·Code</a></p> |
402 | <p>Return·a·pointer·to·the·<a·href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·table·in·effect·for·the·calling·thread.</p> | 398 | <p>Return·a·pointer·to·the·<a·href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·table·in·effect·for·the·calling·thread.</p> |
403 | <p>See·also:·<a·href="state.html#al_store_state">al_store_state</a>,·<a·href="state.html#al_restore_state">al_restore_state</a>.</p> | 399 | <p>See·also:·<a·href="state.html#al_store_state">al_store_state</a>,·<a·href="state.html#al_restore_state">al_restore_state</a>.</p> |
404 | <p·class="timestamp"> | 400 | <p·class="timestamp"> |
405 | Allegro·version·5.2.4 | 401 | Allegro·version·5.2.4 |
406 | ·-·Last·updated:·202 | 402 | ·-·Last·updated:·2020-04-29·17:01:39·UTC |
407 | </p> | 403 | </p> |
408 | </div> | 404 | </div> |
409 | </body> | 405 | </body> |
410 | </html> | 406 | </html> |
Offset 164, 16 lines modified | Offset 164, 15 lines modified | ||
164 | <li><a·href="#al_get_display_mode">al_get_display_mode</a></li> | 164 | <li><a·href="#al_get_display_mode">al_get_display_mode</a></li> |
165 | <li><a·href="#al_get_num_display_modes">al_get_num_display_modes</a></li> | 165 | <li><a·href="#al_get_num_display_modes">al_get_num_display_modes</a></li> |
166 | </ul> | 166 | </ul> |
167 | </nav> | 167 | </nav> |
168 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 168 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
169 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 169 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
170 | <h1·id="allegro_display_mode">ALLEGRO_DISPLAY_MODE</h1> | 170 | <h1·id="allegro_display_mode">ALLEGRO_DISPLAY_MODE</h1> |
171 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE</a> | 171 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE</a></code></pre></div> |
172 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE</a></code></pre></div> | ||
173 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fullscreen_mode.h#L13">Source·Code</a></p> | 172 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fullscreen_mode.h#L13">Source·Code</a></p> |
174 | <p>Used·for·fullscreen·mode·queries.·Contains·information·about·a·supported·fullscreen·modes.</p> | 173 | <p>Used·for·fullscreen·mode·queries.·Contains·information·about·a·supported·fullscreen·modes.</p> |
175 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE·{</a> | 174 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE·{</a> |
176 | <a·class="sourceLine"·id="cb3-2"·title="2">···<span·class="dt">int</span>·width;··········<span·class="co">//·Screen·width</span></a> | 175 | <a·class="sourceLine"·id="cb3-2"·title="2">···<span·class="dt">int</span>·width;··········<span·class="co">//·Screen·width</span></a> |
177 | <a·class="sourceLine"·id="cb3-3"·title="3">···<span·class="dt">int</span>·height;·········<span·class="co">//·Screen·height</span></a> | 176 | <a·class="sourceLine"·id="cb3-3"·title="3">···<span·class="dt">int</span>·height;·········<span·class="co">//·Screen·height</span></a> |
178 | <a·class="sourceLine"·id="cb3-4"·title="4">···<span·class="dt">int</span>·format;·········<span·class="co">//·The·pixel·format·of·the·mode</span></a> | 177 | <a·class="sourceLine"·id="cb3-4"·title="4">···<span·class="dt">int</span>·format;·········<span·class="co">//·The·pixel·format·of·the·mode</span></a> |
179 | <a·class="sourceLine"·id="cb3-5"·title="5">···<span·class="dt">int</span>·refresh_rate;···<span·class="co">//·The·refresh·rate·of·the·mode</span></a> | 178 | <a·class="sourceLine"·id="cb3-5"·title="5">···<span·class="dt">int</span>·refresh_rate;···<span·class="co">//·The·refresh·rate·of·the·mode</span></a> |
Offset 189, 12 lines modified | Offset 188, 12 lines modified | ||
189 | <h1·id="al_get_num_display_modes">al_get_num_display_modes</h1> | 188 | <h1·id="al_get_num_display_modes">al_get_num_display_modes</h1> |
190 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">int</span>·al_get_num_display_modes(<span·class="dt">void</span>)</a></code></pre></div> | 189 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">int</span>·al_get_num_display_modes(<span·class="dt">void</span>)</a></code></pre></div> |
191 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/fullscreen_mode.c#L23">Source·Code</a></p> | 190 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/fullscreen_mode.c#L23">Source·Code</a></p> |
192 | <p>Get·the·number·of·available·fullscreen·display·modes·for·the·current·set·of·display·parameters.·This·will·use·the·values·set·with·<a·href="display.html#al_set_new_display_refresh_rate">al_set_new_display_refresh_rate</a>,·and·<a·href="display.html#al_set_new_display_flags">al_set_new_display_flags</a>·to·find·the·number·of·modes·that·match.·Settings·the·new·display·parameters·to·zero·will·give·a·list·of·all·modes·for·the·default·driver.</p> | 191 | <p>Get·the·number·of·available·fullscreen·display·modes·for·the·current·set·of·display·parameters.·This·will·use·the·values·set·with·<a·href="display.html#al_set_new_display_refresh_rate">al_set_new_display_refresh_rate</a>,·and·<a·href="display.html#al_set_new_display_flags">al_set_new_display_flags</a>·to·find·the·number·of·modes·that·match.·Settings·the·new·display·parameters·to·zero·will·give·a·list·of·all·modes·for·the·default·driver.</p> |
193 | <p>See·also:·<a·href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a></p> | 192 | <p>See·also:·<a·href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a></p> |
194 | <p·class="timestamp"> | 193 | <p·class="timestamp"> |
195 | Allegro·version·5.2.4 | 194 | Allegro·version·5.2.4 |
196 | ·-·Last·updated:·202 | 195 | ·-·Last·updated:·2020-04-29·17:01:39·UTC |
197 | </p> | 196 | </p> |
198 | </div> | 197 | </div> |
199 | </body> | 198 | </body> |
200 | </html> | 199 | </html> |
Offset 179, 12 lines modified | Offset 179, 12 lines modified | ||
179 | <p>Some·of·Allegro’s·API·is·marked·as·unstable,·which·means·that·in·future·versions·of·Allegro·it·may·change·or·even·be·removed·entirely!·If·you·want·to·experiment·with·the·unstable·API,·define·<code>ALLEGRO_UNSTABLE</code>·macro·before·including·Allegro’s·headers.</p> | 179 | <p>Some·of·Allegro’s·API·is·marked·as·unstable,·which·means·that·in·future·versions·of·Allegro·it·may·change·or·even·be·removed·entirely!·If·you·want·to·experiment·with·the·unstable·API,·define·<code>ALLEGRO_UNSTABLE</code>·macro·before·including·Allegro’s·headers.</p> |
180 | <p>Note·that·when·you·define·that·macro,·the·version·check·performed·by·<a·href="system.html#al_install_system">al_install_system</a>·and·<a·href="system.html#al_init">al_init</a>·becomes·more·scrict.·See·documentation·of·those·functions·for·details.</p> | 180 | <p>Note·that·when·you·define·that·macro,·the·version·check·performed·by·<a·href="system.html#al_install_system">al_install_system</a>·and·<a·href="system.html#al_init">al_init</a>·becomes·more·scrict.·See·documentation·of·those·functions·for·details.</p> |
181 | <h1·id="not-the-end">Not·the·end</h1> | 181 | <h1·id="not-the-end">Not·the·end</h1> |
182 | <p>There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet.</p> | 182 | <p>There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet.</p> |
183 | <p>Enjoy!</p> | 183 | <p>Enjoy!</p> |
184 | <p·class="timestamp"> | 184 | <p·class="timestamp"> |
185 | Allegro·version·5.2.4 | 185 | Allegro·version·5.2.4 |
186 | ·-·Last·updated:·202 | 186 | ·-·Last·updated:·2020-04-29·17:01:35·UTC |
187 | </p> | 187 | </p> |
188 | </div> | 188 | </div> |
189 | </body> | 189 | </body> |
190 | </html> | 190 | </html> |
Offset 290, 16 lines modified | Offset 290, 15 lines modified | ||
290 | </ul></li> | 290 | </ul></li> |
291 | </ul> | 291 | </ul> |
292 | </nav> | 292 | </nav> |
293 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 293 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
294 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 294 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
295 | <h1·id="colors">Colors</h1> | 295 | <h1·id="colors">Colors</h1> |
296 | <h2·id="allegro_color">ALLEGRO_COLOR</h2> | 296 | <h2·id="allegro_color">ALLEGRO_COLOR</h2> |
297 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COLOR·ALLEGRO_COLOR;</a> | 297 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COLOR·ALLEGRO_COLOR;</a></code></pre></div> |
298 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COLOR·ALLEGRO_COLOR;</a></code></pre></div> | ||
299 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source·Code</a></p> | 298 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source·Code</a></p> |
300 | <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a·href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate·from·and·to·various·color·representations.</p> | 299 | <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a·href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate·from·and·to·various·color·representations.</p> |
301 | <h2·id="al_map_rgb">al_map_rgb</h2> | 300 | <h2·id="al_map_rgb">al_map_rgb</h2> |
302 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1">ALLEGRO_COLOR·al_map_rgb(</a> | 301 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1">ALLEGRO_COLOR·al_map_rgb(</a> |
303 | <a·class="sourceLine"·id="cb3-2"·title="2">···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r,·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g,·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b)</a></code></pre></div> | 302 | <a·class="sourceLine"·id="cb3-2"·title="2">···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r,·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g,·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b)</a></code></pre></div> |
304 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L599">Source·Code</a></p> | 303 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L599">Source·Code</a></p> |
305 | <p>Convert·r,·g,·b·(ranging·from·0-255)·into·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·using·255·for·alpha.</p> | 304 | <p>Convert·r,·g,·b·(ranging·from·0-255)·into·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·using·255·for·alpha.</p> |
Offset 370, 16 lines modified | Offset 369, 15 lines modified | ||
370 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1"><span·class="dt">void</span>·al_unmap_rgba_f(ALLEGRO_COLOR·color,</a> | 369 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1"><span·class="dt">void</span>·al_unmap_rgba_f(ALLEGRO_COLOR·color,</a> |
371 | <a·class="sourceLine"·id="cb14-2"·title="2">···<span·class="dt">float</span>·*r,·<span·class="dt">float</span>·*g,·<span·class="dt">float</span>·*b,·<span·class="dt">float</span>·*a)</a></code></pre></div> | 370 | <a·class="sourceLine"·id="cb14-2"·title="2">···<span·class="dt">float</span>·*r,·<span·class="dt">float</span>·*g,·<span·class="dt">float</span>·*b,·<span·class="dt">float</span>·*a)</a></code></pre></div> |
372 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L668">Source·Code</a></p> | 371 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L668">Source·Code</a></p> |
373 | <p>Retrieves·components·of·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>.·Components·will·range·from·0.0f-1.0f.</p> | 372 | <p>Retrieves·components·of·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>.·Components·will·range·from·0.0f-1.0f.</p> |
374 | <p>See·also:·<a·href="graphics.html#al_unmap_rgba">al_unmap_rgba</a>,·<a·href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>,·<a·href="graphics.html#al_unmap_rgb_f">al_unmap_rgb_f</a></p> | 373 | <p>See·also:·<a·href="graphics.html#al_unmap_rgba">al_unmap_rgba</a>,·<a·href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>,·<a·href="graphics.html#al_unmap_rgb_f">al_unmap_rgb_f</a></p> |
375 | <h1·id="locking-and-pixel-formats">Locking·and·pixel·formats</h1> | 374 | <h1·id="locking-and-pixel-formats">Locking·and·pixel·formats</h1> |
376 | <h2·id="allegro_locked_region">ALLEGRO_LOCKED_REGION</h2> | 375 | <h2·id="allegro_locked_region">ALLEGRO_LOCKED_REGION</h2> |
377 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb15-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION;</a> | 376 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb15-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION;</a></code></pre></div> |
378 | <a·class="sourceLine"·id="cb15-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION;</a></code></pre></div> | ||
379 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap_lock.h#L23">Source·Code</a></p> | 377 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap_lock.h#L23">Source·Code</a></p> |
380 | <p>Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to·lock·it·first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the·bitmap.·This·call·will·work·with·any·bitmap,·including·memory·bitmaps.</p> | 378 | <p>Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to·lock·it·first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the·bitmap.·This·call·will·work·with·any·bitmap,·including·memory·bitmaps.</p> |
381 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb16-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·{</a> | 379 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb16-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·{</a> |
382 | <a·class="sourceLine"·id="cb16-2"·title="2">···<span·class="dt">void</span>·*data;</a> | 380 | <a·class="sourceLine"·id="cb16-2"·title="2">···<span·class="dt">void</span>·*data;</a> |
383 | <a·class="sourceLine"·id="cb16-3"·title="3">···<span·class="dt">int</span>·format;</a> | 381 | <a·class="sourceLine"·id="cb16-3"·title="3">···<span·class="dt">int</span>·format;</a> |
384 | <a·class="sourceLine"·id="cb16-4"·title="4">···<span·class="dt">int</span>·pitch;</a> | 382 | <a·class="sourceLine"·id="cb16-4"·title="4">···<span·class="dt">int</span>·pitch;</a> |
385 | <a·class="sourceLine"·id="cb16-5"·title="5">···<span·class="dt">int</span>·pixel_size;</a> | 383 | <a·class="sourceLine"·id="cb16-5"·title="5">···<span·class="dt">int</span>·pixel_size;</a> |
Offset 388, 16 lines modified | Offset 386, 15 lines modified | ||
388 | <li><p><em>data</em>·points·to·the·leftmost·pixel·of·the·first·row·(row·0)·of·the·locked·region.·For·blocked·formats,·this·points·to·the·leftmost·block·of·the·first·row·of·blocks.</p></li> | 386 | <li><p><em>data</em>·points·to·the·leftmost·pixel·of·the·first·row·(row·0)·of·the·locked·region.·For·blocked·formats,·this·points·to·the·leftmost·block·of·the·first·row·of·blocks.</p></li> |
389 | <li><p><em>format</em>·indicates·the·pixel·format·of·the·data.</p></li> | 387 | <li><p><em>format</em>·indicates·the·pixel·format·of·the·data.</p></li> |
390 | <li><p><em>pitch</em>·gives·the·size·in·bytes·of·a·single·row·(also·known·as·the·stride).·The·pitch·may·be·greater·than·<code>width·*·pixel_size</code>·due·to·padding;·this·is·not·uncommon.·It·is·also·<em>not</em>·uncommon·for·the·pitch·to·be·negative·(the·bitmap·may·be·upside·down).·For·blocked·formats,·‘row’·refers·to·the·row·of·blocks,·not·of·pixels.</p></li> | 388 | <li><p><em>pitch</em>·gives·the·size·in·bytes·of·a·single·row·(also·known·as·the·stride).·The·pitch·may·be·greater·than·<code>width·*·pixel_size</code>·due·to·padding;·this·is·not·uncommon.·It·is·also·<em>not</em>·uncommon·for·the·pitch·to·be·negative·(the·bitmap·may·be·upside·down).·For·blocked·formats,·‘row’·refers·to·the·row·of·blocks,·not·of·pixels.</p></li> |
391 | <li><p><em>pixel_size</em>·is·the·number·of·bytes·used·to·represent·a·single·block·of·pixels·for·the·pixel·format·of·this·locked·region.·For·most·formats·(and·historically,·this·used·to·be·true·for·all·formats),·this·is·just·the·size·of·a·single·pixel,·but·for·blocked·pixel·formats·this·value·is·different.</p></li> | 389 | <li><p><em>pixel_size</em>·is·the·number·of·bytes·used·to·represent·a·single·block·of·pixels·for·the·pixel·format·of·this·locked·region.·For·most·formats·(and·historically,·this·used·to·be·true·for·all·formats),·this·is·just·the·size·of·a·single·pixel,·but·for·blocked·pixel·formats·this·value·is·different.</p></li> |
392 | </ul> | 390 | </ul> |
393 | <p>See·also:·<a·href="graphics.html#al_lock_bitmap">al_lock_bitmap</a>,·<a·href="graphics.html#al_lock_bitmap_region">al_lock_bitmap_region</a>,·<a·href="graphics.html#al_unlock_bitmap">al_unlock_bitmap</a>,·<a·href="graphics.html#allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</a></p> | 391 | <p>See·also:·<a·href="graphics.html#al_lock_bitmap">al_lock_bitmap</a>,·<a·href="graphics.html#al_lock_bitmap_region">al_lock_bitmap_region</a>,·<a·href="graphics.html#al_unlock_bitmap">al_unlock_bitmap</a>,·<a·href="graphics.html#allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</a></p> |
394 | <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2> | 392 | <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2> |
395 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb17-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</a> | 393 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb17-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</a></code></pre></div> |
396 | <a·class="sourceLine"·id="cb17-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</a></code></pre></div> | ||
397 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source·Code</a></p> | 394 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source·Code</a></p> |
398 | <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a·pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for·example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000.</p> | 395 | <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a·pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for·example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000.</p> |
399 | <blockquote> | 396 | <blockquote> |
400 | <p><em>Note:</em></p> | 397 | <p><em>Note:</em></p> |
401 | <p>The·pixel·format·is·independent·of·endianness.·That·is,·in·the·above·example·you·can·always·get·the·red·component·with</p> | 398 | <p>The·pixel·format·is·independent·of·endianness.·That·is,·in·the·above·example·you·can·always·get·the·red·component·with</p> |
402 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb18-1"·title="1">(pixel·&·<span·class="bn">0x00ff0000</span>)·>>·<span·class="dv">16</span></a></code></pre></div> | 399 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb18-1"·title="1">(pixel·&·<span·class="bn">0x00ff0000</span>)·>>·<span·class="dv">16</span></a></code></pre></div> |
403 | <p>But·you·can·<em>not</em>·rely·on·this·code:</p> | 400 | <p>But·you·can·<em>not</em>·rely·on·this·code:</p> |
Offset 517, 16 lines modified | Offset 514, 15 lines modified | ||
517 | <a·class="sourceLine"·id="cb29-2"·title="2">···<span·class="dt">int</span>·x_block,·<span·class="dt">int</span>·y_block,·<span·class="dt">int</span>·width_block,·<span·class="dt">int</span>·height_block,·<span·class="dt">int</span>·flags)</a></code></pre></div> | 514 | <a·class="sourceLine"·id="cb29-2"·title="2">···<span·class="dt">int</span>·x_block,·<span·class="dt">int</span>·y_block,·<span·class="dt">int</span>·width_block,·<span·class="dt">int</span>·height_block,·<span·class="dt">int</span>·flags)</a></code></pre></div> |
518 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_lock.c#L189">Source·Code</a></p> | 515 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_lock.c#L189">Source·Code</a></p> |
519 | <p>Like·<a·href="graphics.html#al_lock_bitmap_blocked">al_lock_bitmap_blocked</a>,·but·allows·locking·a·sub-region,·for·performance.·Unlike·<a·href="graphics.html#al_lock_bitmap_region">al_lock_bitmap_region</a>·the·region·specified·in·terms·of·blocks·and·not·pixels.</p> | 516 | <p>Like·<a·href="graphics.html#al_lock_bitmap_blocked">al_lock_bitmap_blocked</a>,·but·allows·locking·a·sub-region,·for·performance.·Unlike·<a·href="graphics.html#al_lock_bitmap_region">al_lock_bitmap_region</a>·the·region·specified·in·terms·of·blocks·and·not·pixels.</p> |
520 | <p>Since:·5.1.9</p> | 517 | <p>Since:·5.1.9</p> |
521 | <p>See·also:·<a·href="graphics.html#al_lock_bitmap_region">al_lock_bitmap_region</a>,·<a·href="graphics.html#al_lock_bitmap_blocked">al_lock_bitmap_blocked</a></p> | 518 | <p>See·also:·<a·href="graphics.html#al_lock_bitmap_region">al_lock_bitmap_region</a>,·<a·href="graphics.html#al_lock_bitmap_blocked">al_lock_bitmap_blocked</a></p> |
522 | <h1·id="bitmap-creation">Bitmap·creation</h1> | 519 | <h1·id="bitmap-creation">Bitmap·creation</h1> |
523 | <h2·id="allegro_bitmap">ALLEGRO_BITMAP</h2> | 520 | <h2·id="allegro_bitmap">ALLEGRO_BITMAP</h2> |
524 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb30-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP;</a> | 521 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb30-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP;</a></code></pre></div> |
525 | <a·class="sourceLine"·id="cb30-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP;</a></code></pre></div> | ||
526 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L12">Source·Code</a></p> | 522 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L12">Source·Code</a></p> |
527 | <p>Abstract·type·representing·a·bitmap·(2D·image).</p> | 523 | <p>Abstract·type·representing·a·bitmap·(2D·image).</p> |
528 | <h2·id="al_create_bitmap">al_create_bitmap</h2> | 524 | <h2·id="al_create_bitmap">al_create_bitmap</h2> |
529 | <div·class="sourceCode"·id="cb31"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb31-1"·title="1">ALLEGRO_BITMAP·*al_create_bitmap(<span·class="dt">int</span>·w,·<span·class="dt">int</span>·h)</a></code></pre></div> | 525 | <div·class="sourceCode"·id="cb31"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb31-1"·title="1">ALLEGRO_BITMAP·*al_create_bitmap(<span·class="dt">int</span>·w,·<span·class="dt">int</span>·h)</a></code></pre></div> |
530 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L183">Source·Code</a></p> | 526 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L183">Source·Code</a></p> |
531 | <p>Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the·current·thread.·Blitting·between·bitmaps·of·differing·formats,·or·blitting·between·memory·bitmaps·and·display·bitmaps·may·be·slow.</p> | 527 | <p>Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the·current·thread.·Blitting·between·bitmaps·of·differing·formats,·or·blitting·between·memory·bitmaps·and·display·bitmaps·may·be·slow.</p> |
532 | <p>Unless·you·set·the·ALLEGRO_MEMORY_BITMAP·flag,·the·bitmap·is·created·for·the·current·display.·Blitting·to·another·display·may·be·slow.</p> | 528 | <p>Unless·you·set·the·ALLEGRO_MEMORY_BITMAP·flag,·the·bitmap·is·created·for·the·current·display.·Blitting·to·another·display·may·be·slow.</p> |
Offset 1323, 16 lines modified | Offset 1319, 15 lines modified | ||
1323 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_io.c#L296">Source·Code</a></p> | 1319 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_io.c#L296">Source·Code</a></p> |
1324 | <p>Tries·to·guess·the·bitmap·file·type·of·the·open·ALLEGRO_FILE·by·reading·the·first·few·bytes.·By·default·Allegro·cannot·recognize·any·file·types,·but·calling·<a·href="image.html#al_init_image_addon">al_init_image_addon</a>·will·add·detection·of·(some·of)·the·types·it·can·read.·You·can·also·use·<a·href="graphics.html#al_register_bitmap_identifier">al_register_bitmap_identifier</a>·to·add·identification·for·custom·file·types.</p> | 1320 | <p>Tries·to·guess·the·bitmap·file·type·of·the·open·ALLEGRO_FILE·by·reading·the·first·few·bytes.·By·default·Allegro·cannot·recognize·any·file·types,·but·calling·<a·href="image.html#al_init_image_addon">al_init_image_addon</a>·will·add·detection·of·(some·of)·the·types·it·can·read.·You·can·also·use·<a·href="graphics.html#al_register_bitmap_identifier">al_register_bitmap_identifier</a>·to·add·identification·for·custom·file·types.</p> |
1325 | <p>Returns·a·pointer·to·a·static·string·with·a·file·extension·for·the·type,·including·the·leading·dot.·For·example·“.png”·or·“.jpg”.·Returns·NULL·if·the·bitmap·type·cannot·be·determined.</p> | 1321 | <p>Returns·a·pointer·to·a·static·string·with·a·file·extension·for·the·type,·including·the·leading·dot.·For·example·“.png”·or·“.jpg”.·Returns·NULL·if·the·bitmap·type·cannot·be·determined.</p> |
1326 | <p>Since:·5.1.12</p> | 1322 | <p>Since:·5.1.12</p> |
1327 | <p>See·also:·<a·href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a·href="graphics.html#al_identify_bitmap">al_identify_bitmap</a>,·<a·href="graphics.html#al_register_bitmap_identifier">al_register_bitmap_identifier</a></p> | 1323 | <p>See·also:·<a·href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a·href="graphics.html#al_identify_bitmap">al_identify_bitmap</a>,·<a·href="graphics.html#al_register_bitmap_identifier">al_register_bitmap_identifier</a></p> |
1328 | <h1·id="render-state">Render·State</h1> | 1324 | <h1·id="render-state">Render·State</h1> |
1329 | <h2·id="allegro_render_state">ALLEGRO_RENDER_STATE</h2> | 1325 | <h2·id="allegro_render_state">ALLEGRO_RENDER_STATE</h2> |
1330 | <div·class="sourceCode"·id="cb141"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb141-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·{</a> | 1326 | <div·class="sourceCode"·id="cb141"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb141-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·{</a></code></pre></div> |
1331 | <a·class="sourceLine"·id="cb141-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·{</a></code></pre></div> | ||
1332 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L12">Source·Code</a></p> | 1327 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L12">Source·Code</a></p> |
1333 | <p>Possible·render·states·which·can·be·set·with·<a·href="graphics.html#al_set_render_state">al_set_render_state</a>:</p> | 1328 | <p>Possible·render·states·which·can·be·set·with·<a·href="graphics.html#al_set_render_state">al_set_render_state</a>:</p> |
1334 | <dl> | 1329 | <dl> |
1335 | <dt>ALLEGRO_ALPHA_TEST</dt> | 1330 | <dt>ALLEGRO_ALPHA_TEST</dt> |
1336 | <dd>If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and·ALLEGRO_ALPHA_TEST_VALUE·define·a·comparison·function·which·is·performed·for·each·pixel.·Only·if·it·evaluates·to·true·the·pixel·is·written.·Otherwise·no·subsequent·processing·(like·depth·test·or·blending)·is·performed. | 1331 | <dd>If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and·ALLEGRO_ALPHA_TEST_VALUE·define·a·comparison·function·which·is·performed·for·each·pixel.·Only·if·it·evaluates·to·true·the·pixel·is·written.·Otherwise·no·subsequent·processing·(like·depth·test·or·blending)·is·performed. |
1337 | </dd> | 1332 | </dd> |
1338 | <dt>ALLEGRO_ALPHA_FUNCTION</dt> | 1333 | <dt>ALLEGRO_ALPHA_FUNCTION</dt> |
Offset 1350, 16 lines modified | Offset 1345, 15 lines modified | ||
1350 | <dt>ALLEGRO_DEPTH_FUNCTION</dt> | 1345 | <dt>ALLEGRO_DEPTH_FUNCTION</dt> |
1351 | <dd>One·of·<a·href="graphics.html#allegro_render_function">ALLEGRO_RENDER_FUNCTION</a>,·only·used·when·ALLEGRO_DEPTH_TEST·is·1. | 1346 | <dd>One·of·<a·href="graphics.html#allegro_render_function">ALLEGRO_RENDER_FUNCTION</a>,·only·used·when·ALLEGRO_DEPTH_TEST·is·1. |
1352 | </dd> | 1347 | </dd> |
1353 | </dl> | 1348 | </dl> |
1354 | <p>Since:·5.1.2</p> | 1349 | <p>Since:·5.1.2</p> |
1355 | <p>See·also:·<a·href="graphics.html#al_set_render_state">al_set_render_state</a>,·<a·href="graphics.html#allegro_render_function">ALLEGRO_RENDER_FUNCTION</a>,·<a·href="graphics.html#allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</a></p> | 1350 | <p>See·also:·<a·href="graphics.html#al_set_render_state">al_set_render_state</a>,·<a·href="graphics.html#allegro_render_function">ALLEGRO_RENDER_FUNCTION</a>,·<a·href="graphics.html#allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</a></p> |
1356 | <h2·id="allegro_render_function">ALLEGRO_RENDER_FUNCTION</h2> | 1351 | <h2·id="allegro_render_function">ALLEGRO_RENDER_FUNCTION</h2> |
1357 | <div·class="sourceCode"·id="cb142"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb142-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·{</a> | 1352 | <div·class="sourceCode"·id="cb142"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb142-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·{</a></code></pre></div> |
1358 | <a·class="sourceLine"·id="cb142-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·{</a></code></pre></div> | ||
1359 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L26">Source·Code</a></p> | 1353 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L26">Source·Code</a></p> |
1360 | <p>Possible·functions·are:</p> | 1354 | <p>Possible·functions·are:</p> |
1361 | <ul> | 1355 | <ul> |
1362 | <li>ALLEGRO_RENDER_NEVER</li> | 1356 | <li>ALLEGRO_RENDER_NEVER</li> |
1363 | <li>ALLEGRO_RENDER_ALWAYS</li> | 1357 | <li>ALLEGRO_RENDER_ALWAYS</li> |
1364 | <li>ALLEGRO_RENDER_LESS</li> | 1358 | <li>ALLEGRO_RENDER_LESS</li> |
1365 | <li>ALLEGRO_RENDER_EQUAL</li> | 1359 | <li>ALLEGRO_RENDER_EQUAL</li> |
Offset 1369, 16 lines modified | Offset 1363, 15 lines modified | ||
1369 | </li> | 1363 | </li> |
1370 | <li>ALLEGRO_RENDER_NOT_EQUAL</li> | 1364 | <li>ALLEGRO_RENDER_NOT_EQUAL</li> |
1371 | <li>ALLEGRO_RENDER_GREATER_EQUAL</li> | 1365 | <li>ALLEGRO_RENDER_GREATER_EQUAL</li> |
1372 | </ul> | 1366 | </ul> |
1373 | <p>Since:·5.1.2</p> | 1367 | <p>Since:·5.1.2</p> |
1374 | <p>See·also:·<a·href="graphics.html#al_set_render_state">al_set_render_state</a></p> | 1368 | <p>See·also:·<a·href="graphics.html#al_set_render_state">al_set_render_state</a></p> |
1375 | <h2·id="allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</h2> | 1369 | <h2·id="allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</h2> |
1376 | <div·class="sourceCode"·id="cb143"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb143-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_WRITE_MASK_FLAGS·{</a> | 1370 | <div·class="sourceCode"·id="cb143"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb143-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_WRITE_MASK_FLAGS·{</a></code></pre></div> |
1377 | <a·class="sourceLine"·id="cb143-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_WRITE_MASK_FLAGS·{</a></code></pre></div> | ||
1378 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L39">Source·Code</a></p> | 1371 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L39">Source·Code</a></p> |
1379 | <p>Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled·bit·means·it·is·not.</p> | 1372 | <p>Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled·bit·means·it·is·not.</p> |
1380 | <ul> | 1373 | <ul> |
1381 | <li>ALLEGRO_MASK_RED</li> | 1374 | <li>ALLEGRO_MASK_RED</li> |
1382 | <li>ALLEGRO_MASK_GREEN</li> | 1375 | <li>ALLEGRO_MASK_GREEN</li> |
1383 | <li>ALLEGRO_MASK_BLUE</li> | 1376 | <li>ALLEGRO_MASK_BLUE</li> |
1384 | <li>ALLEGRO_MASK_ALPHA</li> | 1377 | <li>ALLEGRO_MASK_ALPHA</li> |
Offset 1412, 12 lines modified | Offset 1405, 12 lines modified | ||
1412 | <p>Since:·5.2.1</p> | 1405 | <p>Since:·5.2.1</p> |
1413 | <blockquote> | 1406 | <blockquote> |
1414 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p> | 1407 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p> |
1415 | </blockquote> | 1408 | </blockquote> |
1416 | <p>See·also:·<a·href="graphics.html#al_backup_dirty_bitmap">al_backup_dirty_bitmap</a></p> | 1409 | <p>See·also:·<a·href="graphics.html#al_backup_dirty_bitmap">al_backup_dirty_bitmap</a></p> |
1417 | <p·class="timestamp"> | 1410 | <p·class="timestamp"> |
1418 | Allegro·version·5.2.4 | 1411 | Allegro·version·5.2.4 |
1419 | ·-·Last·updated:·202 | 1412 | ·-·Last·updated:·2020-04-29·17:01:39·UTC |
Max diff block lines reached; 26/15400 bytes (0.17%) of diff not shown. |
Offset 197, 26 lines modified | Offset 197, 24 lines modified | ||
197 | <li><a·href="#al_rumble_haptic">al_rumble_haptic</a></li> | 197 | <li><a·href="#al_rumble_haptic">al_rumble_haptic</a></li> |
198 | </ul> | 198 | </ul> |
199 | </nav> | 199 | </nav> |
200 | <p>Haptic·functions·support·force·feedback·and·vibration·on·input·devices.·These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 200 | <p>Haptic·functions·support·force·feedback·and·vibration·on·input·devices.·These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
201 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 201 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
202 | <p>Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows·for·DirectInput·compatible·devices.·There·is·also·minimal·support·for·Android.·It·is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput·compatible·devices.</p> | 202 | <p>Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows·for·DirectInput·compatible·devices.·There·is·also·minimal·support·for·Android.·It·is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput·compatible·devices.</p> |
203 | <h1·id="allegro_haptic">ALLEGRO_HAPTIC</h1> | 203 | <h1·id="allegro_haptic">ALLEGRO_HAPTIC</h1> |
204 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC;</a> | 204 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC;</a></code></pre></div> |
205 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC;</a></code></pre></div> | ||
206 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L64">Source·Code</a></p> | 205 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L64">Source·Code</a></p> |
207 | <p>This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force·feedback·or·vibration.</p> | 206 | <p>This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force·feedback·or·vibration.</p> |
208 | <p>Since:·5.1.8</p> | 207 | <p>Since:·5.1.8</p> |
209 | <blockquote> | 208 | <blockquote> |
210 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all·the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from·users.</p> | 209 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all·the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from·users.</p> |
211 | </blockquote> | 210 | </blockquote> |
212 | <p>See·also:·<a·href="haptic.html#al_get_haptic_from_joystick">al_get_haptic_from_joystick</a></p> | 211 | <p>See·also:·<a·href="haptic.html#al_get_haptic_from_joystick">al_get_haptic_from_joystick</a></p> |
213 | <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1> | 212 | <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1> |
214 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</a> | 213 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</a></code></pre></div> |
215 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</a></code></pre></div> | ||
216 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source·Code</a></p> | 214 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source·Code</a></p> |
217 | <p>This·enum·contains·flags·that·are·used·to·define·haptic·effects·and·capabilities.·If·the·flag·is·set·in·the·return·value·of·<a·href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>,·it·means·the·device·supports·the·given·effect.·The·value·of·these·flags·should·be·set·into·a·<a·href="haptic.html#allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</a>·struct·to·determine·what·kind·of·haptic·effect·should·be·played.</p> | 215 | <p>This·enum·contains·flags·that·are·used·to·define·haptic·effects·and·capabilities.·If·the·flag·is·set·in·the·return·value·of·<a·href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>,·it·means·the·device·supports·the·given·effect.·The·value·of·these·flags·should·be·set·into·a·<a·href="haptic.html#allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</a>·struct·to·determine·what·kind·of·haptic·effect·should·be·played.</p> |
218 | <ul> | 216 | <ul> |
219 | <li>ALLEGRO_HAPTIC_RUMBLE·-·simple·vibration·effects</li> | 217 | <li>ALLEGRO_HAPTIC_RUMBLE·-·simple·vibration·effects</li> |
220 | <li>ALLEGRO_HAPTIC_PERIODIC·-·periodic,·wave-form·effects</li> | 218 | <li>ALLEGRO_HAPTIC_PERIODIC·-·periodic,·wave-form·effects</li> |
221 | <li>ALLEGRO_HAPTIC_CONSTANT·-·constant·effects</li> | 219 | <li>ALLEGRO_HAPTIC_CONSTANT·-·constant·effects</li> |
222 | <li>ALLEGRO_HAPTIC_SPRING·-·spring·effects</li> | 220 | <li>ALLEGRO_HAPTIC_SPRING·-·spring·effects</li> |
Offset 238, 16 lines modified | Offset 236, 15 lines modified | ||
238 | </ul> | 236 | </ul> |
239 | <p>Since:·5.1.8</p> | 237 | <p>Since:·5.1.8</p> |
240 | <blockquote> | 238 | <blockquote> |
241 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all·the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from·users.</p> | 239 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all·the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from·users.</p> |
242 | </blockquote> | 240 | </blockquote> |
243 | <p>See·also:·<a·href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>,·<a·href="haptic.html#allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</a></p> | 241 | <p>See·also:·<a·href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>,·<a·href="haptic.html#allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</a></p> |
244 | <h1·id="allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</h1> | 242 | <h1·id="allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</h1> |
245 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT</a> | 243 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT</a></code></pre></div> |
246 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT</a></code></pre></div> | ||
247 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L169">Source·Code</a></p> | 244 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L169">Source·Code</a></p> |
248 | <p>This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs·to·be·filled·in·correctly·and·uploaded·to·a·haptic·device·before·the·device·can·play·it·back.</p> | 245 | <p>This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs·to·be·filled·in·correctly·and·uploaded·to·a·haptic·device·before·the·device·can·play·it·back.</p> |
249 | <p><em>Fields:</em></p> | 246 | <p><em>Fields:</em></p> |
250 | <dl> | 247 | <dl> |
251 | <dt>type</dt> | 248 | <dt>type</dt> |
252 | <dd><p>The·type·of·the·haptic·effect.·May·be·one·of·the·ALLEGRO_HAPTIC_CONSTANTS·constants·between·or·equal·to·ALLEGRO_HAPTIC_RUMBLE·and·ALLEGRO_HAPTIC_RAMP.</p> | 249 | <dd><p>The·type·of·the·haptic·effect.·May·be·one·of·the·ALLEGRO_HAPTIC_CONSTANTS·constants·between·or·equal·to·ALLEGRO_HAPTIC_RUMBLE·and·ALLEGRO_HAPTIC_RAMP.</p> |
253 | <ul> | 250 | <ul> |
Offset 293, 16 lines modified | Offset 290, 15 lines modified | ||
293 | </dd> | 290 | </dd> |
294 | </dl> | 291 | </dl> |
295 | <p>Since:·5.1.8</p> | 292 | <p>Since:·5.1.8</p> |
296 | <blockquote> | 293 | <blockquote> |
297 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all·the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from·users.</p> | 294 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all·the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from·users.</p> |
298 | </blockquote> | 295 | </blockquote> |
299 | <h1·id="allegro_haptic_effect_id">ALLEGRO_HAPTIC_EFFECT_ID</h1> | 296 | <h1·id="allegro_haptic_effect_id">ALLEGRO_HAPTIC_EFFECT_ID</h1> |
300 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID;</a> | 297 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID;</a></code></pre></div> |
301 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID;</a></code></pre></div> | ||
302 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L183">Source·Code</a></p> | 298 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L183">Source·Code</a></p> |
303 | <p>This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect·and·should·be·considered·opaque.·Its·implementation·is·visible·merely·to·allow·allocation·by·the·users·of·the·Allegro·library.</p> | 299 | <p>This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect·and·should·be·considered·opaque.·Its·implementation·is·visible·merely·to·allow·allocation·by·the·users·of·the·Allegro·library.</p> |
304 | <p>Since:·5.1.8</p> | 300 | <p>Since:·5.1.8</p> |
305 | <blockquote> | 301 | <blockquote> |
306 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all·the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from·users.</p> | 302 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all·the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from·users.</p> |
307 | </blockquote> | 303 | </blockquote> |
308 | <h1·id="al_install_haptic">al_install_haptic</h1> | 304 | <h1·id="al_install_haptic">al_install_haptic</h1> |
Offset 569, 12 lines modified | Offset 565, 12 lines modified | ||
569 | <p>In·case·false·is·returned,·the·rumble·effect·will·be·automatically·released·as·if·<a·href="haptic.html#al_release_haptic_effect">al_release_haptic_effect</a>·had·been·called,·so·there·is·no·need·to·call·it·again·manually·in·this·case.·However,·if·true·is·returned,·it·is·necessary·to·call·<a·href="haptic.html#al_release_haptic_effect">al_release_haptic_effect</a>·when·the·effect·isn’t·needed·anymore,·to·prevent·the·amount·of·available·effects·on·the·haptic·device·from·running·out.</p> | 565 | <p>In·case·false·is·returned,·the·rumble·effect·will·be·automatically·released·as·if·<a·href="haptic.html#al_release_haptic_effect">al_release_haptic_effect</a>·had·been·called,·so·there·is·no·need·to·call·it·again·manually·in·this·case.·However,·if·true·is·returned,·it·is·necessary·to·call·<a·href="haptic.html#al_release_haptic_effect">al_release_haptic_effect</a>·when·the·effect·isn’t·needed·anymore,·to·prevent·the·amount·of·available·effects·on·the·haptic·device·from·running·out.</p> |
570 | <p>Since:·5.1.8</p> | 566 | <p>Since:·5.1.8</p> |
571 | <blockquote> | 567 | <blockquote> |
572 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all·the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from·users.</p> | 568 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all·the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from·users.</p> |
573 | </blockquote> | 569 | </blockquote> |
574 | <p·class="timestamp"> | 570 | <p·class="timestamp"> |
575 | Allegro·version·5.2.4 | 571 | Allegro·version·5.2.4 |
576 | ·-·Last·updated:·202 | 572 | ·-·Last·updated:·2020-04-29·17:01:39·UTC |
577 | </p> | 573 | </p> |
578 | </div> | 574 | </div> |
579 | </body> | 575 | </body> |
580 | </html> | 576 | </html> |
Offset 165, 30 lines modified | Offset 165, 28 lines modified | ||
165 | <li><a·href="#al_get_allegro_image_version">al_get_allegro_image_version</a></li> | 165 | <li><a·href="#al_get_allegro_image_version">al_get_allegro_image_version</a></li> |
166 | </ul> | 166 | </ul> |
167 | </nav> | 167 | </nav> |
168 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_image.</p> | 168 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_image.</p> |
169 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_image.h></span></a></code></pre></div> | 169 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_image.h></span></a></code></pre></div> |
170 | <p>Some·of·the·format·handlers·define·configuration·options·for·specifying·things·like·compression·level·or·gamma·handling.·Refer·to·<a·href="system.html#al_get_system_config">al_get_system_config</a>·for·their·documentation.</p> | 170 | <p>Some·of·the·format·handlers·define·configuration·options·for·specifying·things·like·compression·level·or·gamma·handling.·Refer·to·<a·href="system.html#al_get_system_config">al_get_system_config</a>·for·their·documentation.</p> |
171 | <h1·id="al_init_image_addon">al_init_image_addon</h1> | 171 | <h1·id="al_init_image_addon">al_init_image_addon</h1> |
172 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="dt">bool</span>·al_init_image_addon(<span·class="dt">void</span>)</a> | 172 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="dt">bool</span>·al_init_image_addon(<span·class="dt">void</span>)</a></code></pre></div> |
173 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="dt">bool</span>·al_init_image_addon(<span·class="dt">void</span>)</a></code></pre></div> | ||
174 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L14">Source·Code</a></p> | 173 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L14">Source·Code</a></p> |
175 | <p>Initializes·the·image·addon.·This·registers·bitmap·format·handlers·for·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>,·<a·href="graphics.html#al_load_bitmap_f">al_load_bitmap_f</a>,·<a·href="graphics.html#al_save_bitmap">al_save_bitmap</a>,·<a·href="graphics.html#al_save_bitmap_f">al_save_bitmap_f</a>.</p> | 174 | <p>Initializes·the·image·addon.·This·registers·bitmap·format·handlers·for·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>,·<a·href="graphics.html#al_load_bitmap_f">al_load_bitmap_f</a>,·<a·href="graphics.html#al_save_bitmap">al_save_bitmap</a>,·<a·href="graphics.html#al_save_bitmap_f">al_save_bitmap_f</a>.</p> |
176 | <p>The·following·types·are·built·into·the·Allegro·image·addon·and·guaranteed·to·be·available:·BMP,·DDS,·PCX,·TGA.·Every·platform·also·supports·JPEG·and·PNG·via·external·dependencies.</p> | 175 | <p>The·following·types·are·built·into·the·Allegro·image·addon·and·guaranteed·to·be·available:·BMP,·DDS,·PCX,·TGA.·Every·platform·also·supports·JPEG·and·PNG·via·external·dependencies.</p> |
177 | <p>Other·formats·may·be·available·depending·on·the·operating·system·and·installed·libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to·be·universally·available.</p> | 176 | <p>Other·formats·may·be·available·depending·on·the·operating·system·and·installed·libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to·be·universally·available.</p> |
178 | <p>The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file·contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when·loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will·have·the·pixel·format·matching·the·format·in·the·file.</p> | 177 | <p>The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file·contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when·loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will·have·the·pixel·format·matching·the·format·in·the·file.</p> |
179 | <h1·id="al_shutdown_image_addon">al_shutdown_image_addon</h1> | 178 | <h1·id="al_shutdown_image_addon">al_shutdown_image_addon</h1> |
180 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">void</span>·al_shutdown_image_addon(<span·class="dt">void</span>)</a> | 179 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">void</span>·al_shutdown_image_addon(<span·class="dt">void</span>)</a></code></pre></div> |
181 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="dt">void</span>·al_shutdown_image_addon(<span·class="dt">void</span>)</a></code></pre></div> | ||
182 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L150">Source·Code</a></p> | 180 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L150">Source·Code</a></p> |
183 | <p>Shut·down·the·image·addon.·This·is·done·automatically·at·program·exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> | 181 | <p>Shut·down·the·image·addon.·This·is·done·automatically·at·program·exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> |
184 | <h1·id="al_get_allegro_image_version">al_get_allegro_image_version</h1> | 182 | <h1·id="al_get_allegro_image_version">al_get_allegro_image_version</h1> |
185 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_image_version(<span·class="dt">void</span>)</a></code></pre></div> | 183 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_image_version(<span·class="dt">void</span>)</a></code></pre></div> |
186 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L158">Source·Code</a></p> | 184 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L158">Source·Code</a></p> |
187 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 185 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
188 | <p·class="timestamp"> | 186 | <p·class="timestamp"> |
189 | Allegro·version·5.2.4 | 187 | Allegro·version·5.2.4 |
190 | ·-·Last·updated:·202 | 188 | ·-·Last·updated:·2020-04-29·17:01:45·UTC |
191 | </p> | 189 | </p> |
192 | </div> | 190 | </div> |
193 | </body> | 191 | </body> |
194 | </html> | 192 | </html> |
Offset 150, 12 lines modified | Offset 150, 12 lines modified | ||
150 | <li><a·href="native_dialog.html">Native·dialogs·addon</a></li> | 150 | <li><a·href="native_dialog.html">Native·dialogs·addon</a></li> |
151 | <li><a·href="physfs.html">PhysicsFS·addon</a></li> | 151 | <li><a·href="physfs.html">PhysicsFS·addon</a></li> |
152 | <li><a·href="primitives.html">Primitives·addon</a></li> | 152 | <li><a·href="primitives.html">Primitives·addon</a></li> |
153 | <li><a·href="video.html">Video·streaming·addon</a></li> | 153 | <li><a·href="video.html">Video·streaming·addon</a></li> |
154 | </ul> | 154 | </ul> |
155 | <p·class="timestamp"> | 155 | <p·class="timestamp"> |
156 | Allegro·version·5.2.4 | 156 | Allegro·version·5.2.4 |
157 | ·-·Last·updated:·202 | 157 | ·-·Last·updated:·2020-04-29·17:01:47·UTC |
158 | </p> | 158 | </p> |
159 | </div> | 159 | </div> |
160 | </body> | 160 | </body> |
161 | </html> | 161 | </html> |
Offset 1264, 12 lines modified | Offset 1264, 12 lines modified | ||
1264 | <li><a·href="platform.html#al_win_add_window_callback">al_win_add_window_callback</a>·<!--·--></li> | 1264 | <li><a·href="platform.html#al_win_add_window_callback">al_win_add_window_callback</a>·<!--·--></li> |
1265 | <li><a·href="platform.html#al_win_remove_window_callback">al_win_remove_window_callback</a>·<!--·--></li> | 1265 | <li><a·href="platform.html#al_win_remove_window_callback">al_win_remove_window_callback</a>·<!--·--></li> |
1266 | <li><a·href="platform.html#al_x_set_initial_icon">al_x_set_initial_icon</a>·<!--·--></li> | 1266 | <li><a·href="platform.html#al_x_set_initial_icon">al_x_set_initial_icon</a>·<!--·--></li> |
1267 | <li><a·href="platform.html#iphone">iPhone</a>·<!--·--></li> | 1267 | <li><a·href="platform.html#iphone">iPhone</a>·<!--·--></li> |
1268 | </ul> | 1268 | </ul> |
1269 | <p·class="timestamp"> | 1269 | <p·class="timestamp"> |
1270 | Allegro·version·5.2.4 | 1270 | Allegro·version·5.2.4 |
1271 | ·-·Last·updated:·202 | 1271 | ·-·Last·updated:·2020-04-29·17:01:48·UTC |
1272 | </p> | 1272 | </p> |
1273 | </div> | 1273 | </div> |
1274 | </body> | 1274 | </body> |
1275 | </html> | 1275 | </html> |
Offset 183, 32 lines modified | Offset 183, 29 lines modified | ||
183 | <li><a·href="#al_get_joystick_event_source">al_get_joystick_event_source</a></li> | 183 | <li><a·href="#al_get_joystick_event_source">al_get_joystick_event_source</a></li> |
184 | </ul> | 184 | </ul> |
185 | </nav> | 185 | </nav> |
186 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 186 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
187 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 187 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
188 | <p>On·Windows·there·are·two·joystick·drivers,·a·DirectInput·one·and·an·Xinput·one.·If·support·for·XInput·was·compiled·in,·then·it·can·be·enabled·by·calling·al_set_config_value(al_get_system_config(),·“joystick”,·“driver”,·“xinput”)·before·calling·al_install_joystick,·or·by·setting·the·same·option·in·the·allegro5.cfg·configuration·file.·The·Xinput·and·DirectInput·drivers·are·mutually·exclusive.·The·haptics·subsystem·will·use·the·same·driver·as·the·joystick·system·does.</p> | 188 | <p>On·Windows·there·are·two·joystick·drivers,·a·DirectInput·one·and·an·Xinput·one.·If·support·for·XInput·was·compiled·in,·then·it·can·be·enabled·by·calling·al_set_config_value(al_get_system_config(),·“joystick”,·“driver”,·“xinput”)·before·calling·al_install_joystick,·or·by·setting·the·same·option·in·the·allegro5.cfg·configuration·file.·The·Xinput·and·DirectInput·drivers·are·mutually·exclusive.·The·haptics·subsystem·will·use·the·same·driver·as·the·joystick·system·does.</p> |
189 | <h1·id="allegro_joystick">ALLEGRO_JOYSTICK</h1> | 189 | <h1·id="allegro_joystick">ALLEGRO_JOYSTICK</h1> |
190 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK;</a> | 190 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK;</a></code></pre></div> |
191 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK;</a></code></pre></div> | ||
192 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L35">Source·Code</a></p> | 191 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L35">Source·Code</a></p> |
193 | <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p> | 192 | <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p> |
194 | <p>See·also:·<a·href="joystick.html#al_get_joystick">al_get_joystick</a></p> | 193 | <p>See·also:·<a·href="joystick.html#al_get_joystick">al_get_joystick</a></p> |
195 | <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1> | 194 | <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1> |
196 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE;</a> | 195 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE;</a></code></pre></div> |
197 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE;</a></code></pre></div> | ||
198 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L41">Source·Code</a></p> | 196 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L41">Source·Code</a></p> |
199 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s·axes·and·buttons·at·a·particular·instant.·All·fields·public·and·read-only.</p> | 197 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s·axes·and·buttons·at·a·particular·instant.·All·fields·public·and·read-only.</p> |
200 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">struct</span>·{</a> | 198 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">struct</span>·{</a> |
201 | <a·class="sourceLine"·id="cb4-2"·title="2">···<span·class="dt">float</span>·axis[num_axes];·············<span·class="co">//·-1.0·to·1.0</span></a> | 199 | <a·class="sourceLine"·id="cb4-2"·title="2">···<span·class="dt">float</span>·axis[num_axes];·············<span·class="co">//·-1.0·to·1.0</span></a> |
202 | <a·class="sourceLine"·id="cb4-3"·title="3">}·stick[num_sticks];</a> | 200 | <a·class="sourceLine"·id="cb4-3"·title="3">}·stick[num_sticks];</a> |
203 | <a·class="sourceLine"·id="cb4-4"·title="4"><span·class="dt">int</span>·button[num_buttons];·············<span·class="co">//·0·to·32767</span></a></code></pre></div> | 201 | <a·class="sourceLine"·id="cb4-4"·title="4"><span·class="dt">int</span>·button[num_buttons];·············<span·class="co">//·0·to·32767</span></a></code></pre></div> |
204 | <p>See·also:·<a·href="joystick.html#al_get_joystick_state">al_get_joystick_state</a></p> | 202 | <p>See·also:·<a·href="joystick.html#al_get_joystick_state">al_get_joystick_state</a></p> |
205 | <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1> | 203 | <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1> |
206 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</a> | 204 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</a></code></pre></div> |
207 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</a></code></pre></div> | ||
208 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L54">Source·Code</a></p> | 205 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L54">Source·Code</a></p> |
209 | <ul> | 206 | <ul> |
210 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> | 207 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> |
211 | <li>ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input</li> | 208 | <li>ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input</li> |
212 | </ul> | 209 | </ul> |
213 | <p>(this·enum·is·a·holdover·from·the·old·API·and·may·be·removed)</p> | 210 | <p>(this·enum·is·a·holdover·from·the·old·API·and·may·be·removed)</p> |
214 | <p>See·also:·<a·href="joystick.html#al_get_joystick_stick_flags">al_get_joystick_stick_flags</a></p> | 211 | <p>See·also:·<a·href="joystick.html#al_get_joystick_stick_flags">al_get_joystick_stick_flags</a></p> |
Offset 303, 11 lines modified | Offset 300, 14 lines modified | ||
303 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L294">Source·Code</a></p> | 300 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L294">Source·Code</a></p> |
304 | <p>Get·the·current·joystick·state.</p> | 301 | <p>Get·the·current·joystick·state.</p> |
305 | <p>See·also:·<a·href="joystick.html#allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</a>,·<a·href="joystick.html#al_get_joystick_num_buttons">al_get_joystick_num_buttons</a>,·<a·href="joystick.html#al_get_joystick_num_axes">al_get_joystick_num_axes</a></p> | 302 | <p>See·also:·<a·href="joystick.html#allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</a>,·<a·href="joystick.html#al_get_joystick_num_buttons">al_get_joystick_num_buttons</a>,·<a·href="joystick.html#al_get_joystick_num_axes">al_get_joystick_num_axes</a></p> |
306 | <h1·id="al_get_joystick_event_source">al_get_joystick_event_source</h1> | 303 | <h1·id="al_get_joystick_event_source">al_get_joystick_event_source</h1> |
307 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb23-1"·title="1">ALLEGRO_EVENT_SOURCE·*al_get_joystick_event_source(<span·class="dt">void</span>)</a></code></pre></div> | 304 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb23-1"·title="1">ALLEGRO_EVENT_SOURCE·*al_get_joystick_event_source(<span·class="dt">void</span>)</a></code></pre></div> |
308 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L114">Source·Code</a></p> | 305 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L114">Source·Code</a></p> |
309 | <p>Returns·the·global·joystick·event·source.·All·<a·href="events.html#allegro_event_joystick_axis">joystick·events</a>·are·generated·by·this·event·source.</p> | 306 | <p>Returns·the·global·joystick·event·source.·All·<a·href="events.html#allegro_event_joystick_axis">joystick·events</a>·are·generated·by·this·event·source.</p> |
307 | <p·class="timestamp"> | ||
308 | Allegro·version·5.2.4 | ||
309 | ·-·Last·updated:·2020-04-29·17:01:39·UTC | ||
310 | </p> | ||
310 | </div> | 311 | </div> |
311 | </body> | 312 | </body> |
312 | </html> | 313 | </html> |
Offset 173, 16 lines modified | Offset 173, 15 lines modified | ||
173 | <li><a·href="#al_set_keyboard_leds">al_set_keyboard_leds</a></li> | 173 | <li><a·href="#al_set_keyboard_leds">al_set_keyboard_leds</a></li> |
174 | <li><a·href="#al_get_keyboard_event_source">al_get_keyboard_event_source</a></li> | 174 | <li><a·href="#al_get_keyboard_event_source">al_get_keyboard_event_source</a></li> |
175 | </ul> | 175 | </ul> |
176 | </nav> | 176 | </nav> |
177 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 177 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
178 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 178 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
179 | <h1·id="allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</h1> | 179 | <h1·id="allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</h1> |
180 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE;</a> | 180 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE;</a></code></pre></div> |
181 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE;</a></code></pre></div> | ||
182 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/keyboard.h#L33">Source·Code</a></p> | 181 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/keyboard.h#L33">Source·Code</a></p> |
183 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s·state·at·a·particular·instant.·It·contains·the·following·publically·readable·fields:</p> | 182 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s·state·at·a·particular·instant.·It·contains·the·following·publically·readable·fields:</p> |
184 | <ul> | 183 | <ul> |
185 | <li>display·-·points·to·the·display·that·had·keyboard·focus·at·the·time·the·state·was·saved.·If·no·display·was·focused,·this·points·to·NULL.</li> | 184 | <li>display·-·points·to·the·display·that·had·keyboard·focus·at·the·time·the·state·was·saved.·If·no·display·was·focused,·this·points·to·NULL.</li> |
186 | </ul> | 185 | </ul> |
187 | <p>You·cannot·read·the·state·of·keys·directly.·Use·the·function·<a·href="keyboard.html#al_key_down">al_key_down</a>.</p> | 186 | <p>You·cannot·read·the·state·of·keys·directly.·Use·the·function·<a·href="keyboard.html#al_key_down">al_key_down</a>.</p> |
188 | <h1·id="key-codes">Key·codes</h1> | 187 | <h1·id="key-codes">Key·codes</h1> |
Offset 342, 12 lines modified | Offset 341, 12 lines modified | ||
342 | <h1·id="al_get_keyboard_event_source">al_get_keyboard_event_source</h1> | 341 | <h1·id="al_get_keyboard_event_source">al_get_keyboard_event_source</h1> |
343 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1">ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(<span·class="dt">void</span>)</a></code></pre></div> | 342 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1">ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(<span·class="dt">void</span>)</a></code></pre></div> |
344 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L293">Source·Code</a></p> | 343 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L293">Source·Code</a></p> |
345 | <p>Retrieve·the·keyboard·event·source.·All·<a·href="events.html#allegro_event_key_down">keyboard·events</a>·are·generated·by·this·event·source.</p> | 344 | <p>Retrieve·the·keyboard·event·source.·All·<a·href="events.html#allegro_event_key_down">keyboard·events</a>·are·generated·by·this·event·source.</p> |
346 | <p>Returns·NULL·if·the·keyboard·subsystem·was·not·installed.</p> | 345 | <p>Returns·NULL·if·the·keyboard·subsystem·was·not·installed.</p> |
347 | <p·class="timestamp"> | 346 | <p·class="timestamp"> |
348 | Allegro·version·5.2.4 | 347 | Allegro·version·5.2.4 |
349 | ·-·Last·updated:·202 | 348 | ·-·Last·updated:·2020-04-29·17:01:40·UTC |
350 | </p> | 349 | </p> |
351 | </div> | 350 | </div> |
352 | </body> | 351 | </body> |
353 | </html> | 352 | </html> |
Offset 162, 12 lines modified | Offset 162, 12 lines modified | ||
162 | <p>On·platforms·that·require·this·functionality·(e.g. OSX)·this·addon·contains·a·C·<code>main</code>·function·that·invokes·<a·href="misc.html#al_run_main">al_run_main</a>·with·the·user’s·own·<code>main</code>·function,·where·the·user’s·<code>main</code>·function·has·had·its·name·mangled·to·something·else.·The·file·that·defines·the·user·<code>main</code>·function·must·include·the·header·file·<code>allegro5/allegro.h</code>;·that·header·performs·the·name·mangling·using·some·macros.</p> | 162 | <p>On·platforms·that·require·this·functionality·(e.g. OSX)·this·addon·contains·a·C·<code>main</code>·function·that·invokes·<a·href="misc.html#al_run_main">al_run_main</a>·with·the·user’s·own·<code>main</code>·function,·where·the·user’s·<code>main</code>·function·has·had·its·name·mangled·to·something·else.·The·file·that·defines·the·user·<code>main</code>·function·must·include·the·header·file·<code>allegro5/allegro.h</code>;·that·header·performs·the·name·mangling·using·some·macros.</p> |
163 | <p>If·the·user·<code>main</code>·function·is·defined·in·C++,·then·it·must·have·the·following·signature·for·this·addon·to·work:</p> | 163 | <p>If·the·user·<code>main</code>·function·is·defined·in·C++,·then·it·must·have·the·following·signature·for·this·addon·to·work:</p> |
164 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1"><span·class="dt">int</span>·main(<span·class="dt">int</span>·argc,·<span·class="dt">char</span>·**argv)</a></code></pre></div> | 164 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1"><span·class="dt">int</span>·main(<span·class="dt">int</span>·argc,·<span·class="dt">char</span>·**argv)</a></code></pre></div> |
165 | <p>This·addon·does·nothing·on·platforms·that·don’t·require·its·functionality,·but·you·should·keep·it·in·mind·in·case·you·need·to·port·to·platforms·that·do·require·it.</p> | 165 | <p>This·addon·does·nothing·on·platforms·that·don’t·require·its·functionality,·but·you·should·keep·it·in·mind·in·case·you·need·to·port·to·platforms·that·do·require·it.</p> |
166 | <p>Link·with·allegro_main.</p> | 166 | <p>Link·with·allegro_main.</p> |
167 | <p·class="timestamp"> | 167 | <p·class="timestamp"> |
168 | Allegro·version·5.2.4 | 168 | Allegro·version·5.2.4 |
169 | ·-·Last·updated:·202 | 169 | ·-·Last·updated:·2020-04-29·17:01:45·UTC |
170 | </p> | 170 | </p> |
171 | </div> | 171 | </div> |
172 | </body> | 172 | </body> |
173 | </html> | 173 | </html> |
Offset 164, 25 lines modified | Offset 164, 23 lines modified | ||
164 | <li><a·href="#al_get_allegro_memfile_version">al_get_allegro_memfile_version</a></li> | 164 | <li><a·href="#al_get_allegro_memfile_version">al_get_allegro_memfile_version</a></li> |
165 | </ul> | 165 | </ul> |
166 | </nav> | 166 | </nav> |
167 | <p>The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous·memory·as·a·file·that·can·be·used·with·Allegro’s·I/O·functions.</p> | 167 | <p>The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous·memory·as·a·file·that·can·be·used·with·Allegro’s·I/O·functions.</p> |
168 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_memfile.</p> | 168 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_memfile.</p> |
169 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_memfile.h></span></a></code></pre></div> | 169 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_memfile.h></span></a></code></pre></div> |
170 | <h1·id="al_open_memfile">al_open_memfile</h1> | 170 | <h1·id="al_open_memfile">al_open_memfile</h1> |
171 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1">ALLEGRO_FILE·*al_open_memfile(<span·class="dt">void</span>·*mem,·<span·class="dt">int64_t</span>·size,·<span·class="dt">const</span>·<span·class="dt">char</span>·*mode)</a> | 171 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1">ALLEGRO_FILE·*al_open_memfile(<span·class="dt">void</span>·*mem,·<span·class="dt">int64_t</span>·size,·<span·class="dt">const</span>·<span·class="dt">char</span>·*mode)</a></code></pre></div> |
172 | <a·class="sourceLine"·id="cb2-2"·title="2">ALLEGRO_FILE·*al_open_memfile(<span·class="dt">void</span>·*mem,·<span·class="dt">int64_t</span>·size,·<span·class="dt">const</span>·<span·class="dt">char</span>·*mode)</a></code></pre></div> | ||
173 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L169">Source·Code</a></p> | 172 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L169">Source·Code</a></p> |
174 | <p>Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write·operations·act·upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open.</p> | 173 | <p>Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write·operations·act·upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open.</p> |
175 | <p>The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable).·Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is·fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary·mode,·which·means·that·no·newline·translation·is·performed.</p> | 174 | <p>The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable).·Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is·fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary·mode,·which·means·that·no·newline·translation·is·performed.</p> |
176 | <p>It·should·be·closed·with·<a·href="file.html#al_fclose">al_fclose</a>.·After·the·file·is·closed,·you·are·responsible·for·freeing·the·memory·(if·needed).</p> | 175 | <p>It·should·be·closed·with·<a·href="file.html#al_fclose">al_fclose</a>.·After·the·file·is·closed,·you·are·responsible·for·freeing·the·memory·(if·needed).</p> |
177 | <h1·id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> | 176 | <h1·id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> |
178 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version(<span·class="dt">void</span>)</a> | 177 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version(<span·class="dt">void</span>)</a></code></pre></div> |
179 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version(<span·class="dt">void</span>)</a></code></pre></div> | ||
180 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source·Code</a></p> | 178 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source·Code</a></p> |
181 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 179 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
182 | <p·class="timestamp"> | 180 | <p·class="timestamp"> |
183 | Allegro·version·5.2.4 | 181 | Allegro·version·5.2.4 |
184 | ·-·Last·updated:·202 | 182 | ·-·Last·updated:·2020-04-29·17:01:46·UTC |
185 | </p> | 183 | </p> |
186 | </div> | 184 | </div> |
187 | </body> | 185 | </body> |
188 | </html> | 186 | </html> |
Offset 172, 45 lines modified | Offset 172, 37 lines modified | ||
172 | <li><a·href="#al_set_memory_interface">al_set_memory_interface</a></li> | 172 | <li><a·href="#al_set_memory_interface">al_set_memory_interface</a></li> |
173 | </ul> | 173 | </ul> |
174 | </nav> | 174 | </nav> |
175 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 175 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
176 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 176 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
177 | <h1·id="al_malloc">al_malloc</h1> | 177 | <h1·id="al_malloc">al_malloc</h1> |
178 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="pp">#define·al_malloc(n)·\</span></a> | 178 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="pp">#define·al_malloc(n)·\</span></a> |
179 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="pp">···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__))</span></a> | 179 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="pp">···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__))</span></a></code></pre></div> |
180 | <a·class="sourceLine"·id="cb2-3"·title="3"><span·class="pp">#define·al_malloc(n)·\</span></a> | ||
181 | <a·class="sourceLine"·id="cb2-4"·title="4"><span·class="pp">···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__))</span></a></code></pre></div> | ||
182 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L42">Source·Code</a></p> | 180 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L42">Source·Code</a></p> |
183 | <p>Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> | 181 | <p>Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> |
184 | <p>This·is·a·macro.</p> | 182 | <p>This·is·a·macro.</p> |
185 | <p>See·also:·<a·href="memory.html#al_free">al_free</a>,·<a·href="memory.html#al_realloc">al_realloc</a>,·<a·href="memory.html#al_calloc">al_calloc</a>,·<a·href="memory.html#al_malloc_with_context">al_malloc_with_context</a>,·<a·href="memory.html#al_set_memory_interface">al_set_memory_interface</a></p> | 183 | <p>See·also:·<a·href="memory.html#al_free">al_free</a>,·<a·href="memory.html#al_realloc">al_realloc</a>,·<a·href="memory.html#al_calloc">al_calloc</a>,·<a·href="memory.html#al_malloc_with_context">al_malloc_with_context</a>,·<a·href="memory.html#al_set_memory_interface">al_set_memory_interface</a></p> |
186 | <h1·id="al_free">al_free</h1> | 184 | <h1·id="al_free">al_free</h1> |
187 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="pp">#define·al_free(p)·\</span></a> | 185 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="pp">#define·al_free(p)·\</span></a> |
188 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="pp">···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__))</span></a> | 186 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="pp">···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__))</span></a></code></pre></div> |
189 | <a·class="sourceLine"·id="cb3-3"·title="3"><span·class="pp">#define·al_free(p)·\</span></a> | ||
190 | <a·class="sourceLine"·id="cb3-4"·title="4"><span·class="pp">···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__))</span></a></code></pre></div> | ||
191 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source·Code</a></p> | 187 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source·Code</a></p> |
192 | <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> | 188 | <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> |
193 | <p>Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed·from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a·pointer·that·must·be·freed,·you·must·use·<a·href="memory.html#al_free">al_free</a>·for·portability·to·Windows.</p> | 189 | <p>Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed·from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a·pointer·that·must·be·freed,·you·must·use·<a·href="memory.html#al_free">al_free</a>·for·portability·to·Windows.</p> |
194 | <p>This·is·a·macro.</p> | 190 | <p>This·is·a·macro.</p> |
195 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a·href="memory.html#al_free_with_context">al_free_with_context</a></p> | 191 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a·href="memory.html#al_free_with_context">al_free_with_context</a></p> |
196 | <h1·id="al_realloc">al_realloc</h1> | 192 | <h1·id="al_realloc">al_realloc</h1> |
197 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="pp">#define·al_realloc(p,·n)·\</span></a> | 193 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="pp">#define·al_realloc(p,·n)·\</span></a> |
198 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="pp">···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__))</span></a> | 194 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="pp">···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__))</span></a></code></pre></div> |
199 | <a·class="sourceLine"·id="cb4-3"·title="3"><span·class="pp">#define·al_realloc(p,·n)·\</span></a> | ||
200 | <a·class="sourceLine"·id="cb4-4"·title="4"><span·class="pp">···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__))</span></a></code></pre></div> | ||
201 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source·Code</a></p> | 195 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source·Code</a></p> |
202 | <p>Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> | 196 | <p>Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> |
203 | <p>This·is·a·macro.</p> | 197 | <p>This·is·a·macro.</p> |
204 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a·href="memory.html#al_realloc_with_context">al_realloc_with_context</a></p> | 198 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a·href="memory.html#al_realloc_with_context">al_realloc_with_context</a></p> |
205 | <h1·id="al_calloc">al_calloc</h1> | 199 | <h1·id="al_calloc">al_calloc</h1> |
206 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="pp">#define·al_calloc(c,·n)·\</span></a> | 200 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="pp">#define·al_calloc(c,·n)·\</span></a> |
207 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="pp">··· | 201 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="pp">···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__))</span></a></code></pre></div> |
208 | <a·class="sourceLine"·id="cb5-3"·title="3"><span·class="pp">#define·al_calloc(c,·n)·\</span></a> | ||
209 | <a·class="sourceLine"·id="cb5-4"·title="4"><span·class="pp">···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__))</span></a></code></pre></div> | ||
210 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L57">Source·Code</a></p> | 202 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L57">Source·Code</a></p> |
211 | <p>Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> | 203 | <p>Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> |
212 | <p>This·is·a·macro.</p> | 204 | <p>This·is·a·macro.</p> |
213 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a·href="memory.html#al_calloc_with_context">al_calloc_with_context</a></p> | 205 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a·href="memory.html#al_calloc_with_context">al_calloc_with_context</a></p> |
214 | <h1·id="al_malloc_with_context">al_malloc_with_context</h1> | 206 | <h1·id="al_malloc_with_context">al_malloc_with_context</h1> |
215 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="dt">void</span>·*al_malloc_with_context(<span·class="dt">size_t</span>·n,</a> | 207 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="dt">void</span>·*al_malloc_with_context(<span·class="dt">size_t</span>·n,</a> |
216 | <a·class="sourceLine"·id="cb6-2"·title="2">···<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,·<span·class="dt">const</span>·<span·class="dt">char</span>·*func)</a></code></pre></div> | 208 | <a·class="sourceLine"·id="cb6-2"·title="2">···<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,·<span·class="dt">const</span>·<span·class="dt">char</span>·*func)</a></code></pre></div> |
Offset 232, 16 lines modified | Offset 224, 15 lines modified | ||
232 | <h1·id="al_calloc_with_context">al_calloc_with_context</h1> | 224 | <h1·id="al_calloc_with_context">al_calloc_with_context</h1> |
233 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">void</span>·*al_calloc_with_context(<span·class="dt">size_t</span>·count,·<span·class="dt">size_t</span>·n,</a> | 225 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">void</span>·*al_calloc_with_context(<span·class="dt">size_t</span>·count,·<span·class="dt">size_t</span>·n,</a> |
234 | <a·class="sourceLine"·id="cb9-2"·title="2">···<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,·<span·class="dt">const</span>·<span·class="dt">char</span>·*func)</a></code></pre></div> | 226 | <a·class="sourceLine"·id="cb9-2"·title="2">···<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,·<span·class="dt">const</span>·<span·class="dt">char</span>·*func)</a></code></pre></div> |
235 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L77">Source·Code</a></p> | 227 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L77">Source·Code</a></p> |
236 | <p>This·calls·calloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless·overridden·with·<a·href="memory.html#al_set_memory_interface">al_set_memory_interface</a>,</p> | 228 | <p>This·calls·calloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless·overridden·with·<a·href="memory.html#al_set_memory_interface">al_set_memory_interface</a>,</p> |
237 | <p>Generally·you·should·use·the·<a·href="memory.html#al_calloc">al_calloc</a>·macro.</p> | 229 | <p>Generally·you·should·use·the·<a·href="memory.html#al_calloc">al_calloc</a>·macro.</p> |
238 | <h1·id="allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</h1> | 230 | <h1·id="allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</h1> |
239 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE;</a> | 231 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE;</a></code></pre></div> |
240 | <a·class="sourceLine"·id="cb10-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE;</a></code></pre></div> | ||
241 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L28">Source·Code</a></p> | 232 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L28">Source·Code</a></p> |
242 | <p>This·structure·has·the·following·fields.</p> | 233 | <p>This·structure·has·the·following·fields.</p> |
243 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="dt">void</span>·*(*mi_malloc)(<span·class="dt">size_t</span>·n,·<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,·<span·class="dt">const</span>·<span·class="dt">char</span>·*func);</a> | 234 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="dt">void</span>·*(*mi_malloc)(<span·class="dt">size_t</span>·n,·<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,·<span·class="dt">const</span>·<span·class="dt">char</span>·*func);</a> |
244 | <a·class="sourceLine"·id="cb11-2"·title="2"><span·class="dt">void</span>·(*mi_free)(<span·class="dt">void</span>·*ptr,·<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,·<span·class="dt">const</span>·<span·class="dt">char</span>·*func);</a> | 235 | <a·class="sourceLine"·id="cb11-2"·title="2"><span·class="dt">void</span>·(*mi_free)(<span·class="dt">void</span>·*ptr,·<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,·<span·class="dt">const</span>·<span·class="dt">char</span>·*func);</a> |
245 | <a·class="sourceLine"·id="cb11-3"·title="3"><span·class="dt">void</span>·*(*mi_realloc)(<span·class="dt">void</span>·*ptr,·<span·class="dt">size_t</span>·n,·<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,</a> | 236 | <a·class="sourceLine"·id="cb11-3"·title="3"><span·class="dt">void</span>·*(*mi_realloc)(<span·class="dt">void</span>·*ptr,·<span·class="dt">size_t</span>·n,·<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,</a> |
246 | <a·class="sourceLine"·id="cb11-4"·title="4">····················<span·class="dt">const</span>·<span·class="dt">char</span>·*func);</a> | 237 | <a·class="sourceLine"·id="cb11-4"·title="4">····················<span·class="dt">const</span>·<span·class="dt">char</span>·*func);</a> |
247 | <a·class="sourceLine"·id="cb11-5"·title="5"><span·class="dt">void</span>·*(*mi_calloc)(<span·class="dt">size_t</span>·count,·<span·class="dt">size_t</span>·n,·<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,</a> | 238 | <a·class="sourceLine"·id="cb11-5"·title="5"><span·class="dt">void</span>·*(*mi_calloc)(<span·class="dt">size_t</span>·count,·<span·class="dt">size_t</span>·n,·<span·class="dt">int</span>·line,·<span·class="dt">const</span>·<span·class="dt">char</span>·*file,</a> |
Offset 251, 12 lines modified | Offset 242, 12 lines modified | ||
251 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1"><span·class="dt">void</span>·al_set_memory_interface(ALLEGRO_MEMORY_INTERFACE·*memory_interface)</a></code></pre></div> | 242 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1"><span·class="dt">void</span>·al_set_memory_interface(ALLEGRO_MEMORY_INTERFACE·*memory_interface)</a></code></pre></div> |
252 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L29">Source·Code</a></p> | 243 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L29">Source·Code</a></p> |
253 | <p>Override·the·memory·management·functions·with·implementations·of·<a·href="memory.html#al_malloc_with_context">al_malloc_with_context</a>,·<a·href="memory.html#al_free_with_context">al_free_with_context</a>,·<a·href="memory.html#al_realloc_with_context">al_realloc_with_context</a>·and·<a·href="memory.html#al_calloc_with_context">al_calloc_with_context</a>.·The·context·arguments·may·be·used·for·debugging.·The·new·functions·should·be·thread·safe.</p> | 244 | <p>Override·the·memory·management·functions·with·implementations·of·<a·href="memory.html#al_malloc_with_context">al_malloc_with_context</a>,·<a·href="memory.html#al_free_with_context">al_free_with_context</a>,·<a·href="memory.html#al_realloc_with_context">al_realloc_with_context</a>·and·<a·href="memory.html#al_calloc_with_context">al_calloc_with_context</a>.·The·context·arguments·may·be·used·for·debugging.·The·new·functions·should·be·thread·safe.</p> |
254 | <p>If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored.</p> | 245 | <p>If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored.</p> |
255 | <p>See·also:·<a·href="memory.html#allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</a></p> | 246 | <p>See·also:·<a·href="memory.html#allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</a></p> |
256 | <p·class="timestamp"> | 247 | <p·class="timestamp"> |
257 | Allegro·version·5.2.4 | 248 | Allegro·version·5.2.4 |
258 | ·-·Last·updated:·202 | 249 | ·-·Last·updated:·2020-04-29·17:01:40·UTC |
259 | </p> | 250 | </p> |
260 | </div> | 251 | </div> |
261 | </body> | 252 | </body> |
262 | </html> | 253 | </html> |
Offset 163, 23 lines modified | Offset 163, 22 lines modified | ||
163 | <li><a·href="#allegro_pi">ALLEGRO_PI</a></li> | 163 | <li><a·href="#allegro_pi">ALLEGRO_PI</a></li> |
164 | <li><a·href="#al_run_main">al_run_main</a></li> | 164 | <li><a·href="#al_run_main">al_run_main</a></li> |
165 | </ul> | 165 | </ul> |
166 | </nav> | 166 | </nav> |
167 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 167 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
168 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 168 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
169 | <h1·id="allegro_pi">ALLEGRO_PI</h1> | 169 | <h1·id="allegro_pi">ALLEGRO_PI</h1> |
170 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="pp">#define·ALLEGRO_PI········3.14159265358979323846</span></a> | 170 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="pp">#define·ALLEGRO_PI········3.14159265358979323846</span></a></code></pre></div> |
171 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="pp">#define·ALLEGRO_PI········3.14159265358979323846</span></a></code></pre></div> | ||
172 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L93">Source·Code</a></p> | 171 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L93">Source·Code</a></p> |
173 | <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but·you·can·use·this·one·instead.</p> | 172 | <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but·you·can·use·this·one·instead.</p> |
174 | <h1·id="al_run_main">al_run_main</h1> | 173 | <h1·id="al_run_main">al_run_main</h1> |
175 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">int</span>·al_run_main(<span·class="dt">int</span>·argc,·<span·class="dt">char</span>·**argv,·<span·class="dt">int</span>·(*user_main)(<span·class="dt">int</span>,·<span·class="dt">char</span>·**))</a></code></pre></div> | 174 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">int</span>·al_run_main(<span·class="dt">int</span>·argc,·<span·class="dt">char</span>·**argv,·<span·class="dt">int</span>·(*user_main)(<span·class="dt">int</span>,·<span·class="dt">char</span>·**))</a></code></pre></div> |
176 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L36">Source·Code</a></p> | 175 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L36">Source·Code</a></p> |
177 | <p>This·function·is·useful·in·cases·where·you·don’t·have·a·main()·function·but·want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and·Linux·this·is·no·problem·because·you·simply·can·call·<a·href="system.html#al_install_system">al_install_system</a>.·But·some·other·system·(like·OSX)·don’t·allow·calling·<a·href="system.html#al_install_system">al_install_system</a>·in·the·main·thread.·al_run_main·will·know·what·to·do·in·that·case.</p> | 176 | <p>This·function·is·useful·in·cases·where·you·don’t·have·a·main()·function·but·want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and·Linux·this·is·no·problem·because·you·simply·can·call·<a·href="system.html#al_install_system">al_install_system</a>.·But·some·other·system·(like·OSX)·don’t·allow·calling·<a·href="system.html#al_install_system">al_install_system</a>·in·the·main·thread.·al_run_main·will·know·what·to·do·in·that·case.</p> |
178 | <p>The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and·the·return·value·of·user_main·will·be·returned.</p> | 177 | <p>The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and·the·return·value·of·user_main·will·be·returned.</p> |
179 | <p·class="timestamp"> | 178 | <p·class="timestamp"> |
180 | Allegro·version·5.2.4 | 179 | Allegro·version·5.2.4 |
181 | ·-·Last·updated:·202 | 180 | ·-·Last·updated:·2020-04-29·17:01:41·UTC |
182 | </p> | 181 | </p> |
183 | </div> | 182 | </div> |
184 | </body> | 183 | </body> |
185 | </html> | 184 | </html> |
Offset 166, 16 lines modified | Offset 166, 15 lines modified | ||
166 | <li><a·href="#al_get_monitor_info">al_get_monitor_info</a></li> | 166 | <li><a·href="#al_get_monitor_info">al_get_monitor_info</a></li> |
167 | <li><a·href="#al_get_num_video_adapters">al_get_num_video_adapters</a></li> | 167 | <li><a·href="#al_get_num_video_adapters">al_get_num_video_adapters</a></li> |
168 | </ul> | 168 | </ul> |
169 | </nav> | 169 | </nav> |
170 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 170 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
171 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 171 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
172 | <h1·id="allegro_monitor_info">ALLEGRO_MONITOR_INFO</h1> | 172 | <h1·id="allegro_monitor_info">ALLEGRO_MONITOR_INFO</h1> |
173 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</a> | 173 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</a></code></pre></div> |
174 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</a></code></pre></div> | ||
175 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/monitor.h#L13">Source·Code</a></p> | 174 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/monitor.h#L13">Source·Code</a></p> |
176 | <p>Describes·a·monitor’s·size·and·position·relative·to·other·monitors.·x1,·y1·will·be·0,·0·on·the·primary·display.·Other·monitors·can·have·negative·values·if·they·are·to·the·left·or·above·the·primary·display.·x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that·x2-x1·gives·the·width·and·y2-y1·gives·the·height·of·the·display.</p> | 175 | <p>Describes·a·monitor’s·size·and·position·relative·to·other·monitors.·x1,·y1·will·be·0,·0·on·the·primary·display.·Other·monitors·can·have·negative·values·if·they·are·to·the·left·or·above·the·primary·display.·x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that·x2-x1·gives·the·width·and·y2-y1·gives·the·height·of·the·display.</p> |
177 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</a> | 176 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</a> |
178 | <a·class="sourceLine"·id="cb3-2"·title="2">{</a> | 177 | <a·class="sourceLine"·id="cb3-2"·title="2">{</a> |
179 | <a·class="sourceLine"·id="cb3-3"·title="3">···<span·class="dt">int</span>·x1;</a> | 178 | <a·class="sourceLine"·id="cb3-3"·title="3">···<span·class="dt">int</span>·x1;</a> |
180 | <a·class="sourceLine"·id="cb3-4"·title="4">···<span·class="dt">int</span>·y1;</a> | 179 | <a·class="sourceLine"·id="cb3-4"·title="4">···<span·class="dt">int</span>·y1;</a> |
181 | <a·class="sourceLine"·id="cb3-5"·title="5">···<span·class="dt">int</span>·x2;</a> | 180 | <a·class="sourceLine"·id="cb3-5"·title="5">···<span·class="dt">int</span>·x2;</a> |
Offset 204, 12 lines modified | Offset 203, 12 lines modified | ||
204 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="dt">int</span>·al_get_num_video_adapters(<span·class="dt">void</span>)</a></code></pre></div> | 203 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="dt">int</span>·al_get_num_video_adapters(<span·class="dt">void</span>)</a></code></pre></div> |
205 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L23">Source·Code</a></p> | 204 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L23">Source·Code</a></p> |
206 | <p>Get·the·number·of·video·“adapters”·attached·to·the·computer.·Each·video·card·attached·to·the·computer·counts·as·one·or·more·adapters.·An·adapter·is·thus·really·a·video·port·that·can·have·a·monitor·connected·to·it.</p> | 205 | <p>Get·the·number·of·video·“adapters”·attached·to·the·computer.·Each·video·card·attached·to·the·computer·counts·as·one·or·more·adapters.·An·adapter·is·thus·really·a·video·port·that·can·have·a·monitor·connected·to·it.</p> |
207 | <p>On·Windows,·use·<a·href="display.html#al_set_new_display_flags">al_set_new_display_flags</a>·to·switch·between·Direct3D·and·OpenGL·backends,·which·will·often·have·different·adapters·available.</p> | 206 | <p>On·Windows,·use·<a·href="display.html#al_set_new_display_flags">al_set_new_display_flags</a>·to·switch·between·Direct3D·and·OpenGL·backends,·which·will·often·have·different·adapters·available.</p> |
208 | <p>See·also:·<a·href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> | 207 | <p>See·also:·<a·href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> |
209 | <p·class="timestamp"> | 208 | <p·class="timestamp"> |
210 | Allegro·version·5.2.4 | 209 | Allegro·version·5.2.4 |
211 | ·-·Last·updated:·202 | 210 | ·-·Last·updated:·2020-04-29·17:01:41·UTC |
212 | </p> | 211 | </p> |
213 | </div> | 212 | </div> |
214 | </body> | 213 | </body> |
215 | </html> | 214 | </html> |
Offset 188, 16 lines modified | Offset 188, 15 lines modified | ||
188 | <li><a·href="#al_ungrab_mouse">al_ungrab_mouse</a></li> | 188 | <li><a·href="#al_ungrab_mouse">al_ungrab_mouse</a></li> |
189 | </ul></li> | 189 | </ul></li> |
190 | </ul> | 190 | </ul> |
191 | </nav> | 191 | </nav> |
192 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 192 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
193 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 193 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
194 | <h1·id="allegro_mouse_state">ALLEGRO_MOUSE_STATE</h1> | 194 | <h1·id="allegro_mouse_state">ALLEGRO_MOUSE_STATE</h1> |
195 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE;</a> | 195 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE;</a></code></pre></div> |
196 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE;</a></code></pre></div> | ||
197 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/mouse.h#L35">Source·Code</a></p> | 196 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/mouse.h#L35">Source·Code</a></p> |
198 | <p>Public·fields·(read·only):</p> | 197 | <p>Public·fields·(read·only):</p> |
199 | <ul> | 198 | <ul> |
200 | <li>x·-·mouse·x·position</li> | 199 | <li>x·-·mouse·x·position</li> |
201 | <li>y·-·mouse·y·position</li> | 200 | <li>y·-·mouse·y·position</li> |
202 | <li>w,·z·-·mouse·wheel·position·(2D·‘ball’)</li> | 201 | <li>w,·z·-·mouse·wheel·position·(2D·‘ball’)</li> |
203 | <li><p>buttons·-·mouse·buttons·bitfield</p> | 202 | <li><p>buttons·-·mouse·buttons·bitfield</p> |
Offset 392, 12 lines modified | Offset 391, 12 lines modified | ||
392 | <p>Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the·program.</p> | 391 | <p>Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the·program.</p> |
393 | <blockquote> | 392 | <blockquote> |
394 | <p><em>Note:</em>·not·yet·implemented·on·Mac·OS·X.</p> | 393 | <p><em>Note:</em>·not·yet·implemented·on·Mac·OS·X.</p> |
395 | </blockquote> | 394 | </blockquote> |
396 | <p>See·also:·<a·href="mouse.html#al_grab_mouse">al_grab_mouse</a></p> | 395 | <p>See·also:·<a·href="mouse.html#al_grab_mouse">al_grab_mouse</a></p> |
397 | <p·class="timestamp"> | 396 | <p·class="timestamp"> |
398 | Allegro·version·5.2.4 | 397 | Allegro·version·5.2.4 |
399 | ·-·Last·updated:·202 | 398 | ·-·Last·updated:·2020-04-29·17:01:41·UTC |
400 | </p> | 399 | </p> |
401 | </div> | 400 | </div> |
402 | </body> | 401 | </body> |
403 | </html> | 402 | </html> |
Offset 205, 52 lines modified | Offset 205, 43 lines modified | ||
205 | <li><a·href="#al_remove_display_menu">al_remove_display_menu</a></li> | 205 | <li><a·href="#al_remove_display_menu">al_remove_display_menu</a></li> |
206 | </ul></li> | 206 | </ul></li> |
207 | </ul> | 207 | </ul> |
208 | </nav> | 208 | </nav> |
209 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_dialog.</p> | 209 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_dialog.</p> |
210 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_native_dialog.h></span></a></code></pre></div> | 210 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_native_dialog.h></span></a></code></pre></div> |
211 | <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1> | 211 | <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1> |
212 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER;</a> | 212 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER;</a></code></pre></div> |
213 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER;</a></code></pre></div> | ||
214 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source·Code</a></p> | 213 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source·Code</a></p> |
215 | <p>Opaque·handle·to·a·native·file·dialog.</p> | 214 | <p>Opaque·handle·to·a·native·file·dialog.</p> |
216 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> | 215 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> |
217 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG;</a> | 216 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG;</a></code></pre></div> |
218 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG;</a></code></pre></div> | ||
219 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source·Code</a></p> | 217 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source·Code</a></p> |
220 | <p>Opaque·handle·to·a·text·log·window.</p> | 218 | <p>Opaque·handle·to·a·text·log·window.</p> |
221 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> | 219 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> |
222 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="dt">bool</span>·al_init_native_dialog_addon(<span·class="dt">void</span>)</a> | 220 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="dt">bool</span>·al_init_native_dialog_addon(<span·class="dt">void</span>)</a></code></pre></div> |
223 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="dt">bool</span>·al_init_native_dialog_addon(<span·class="dt">void</span>)</a></code></pre></div> | ||
224 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L15">Source·Code</a></p> | 221 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L15">Source·Code</a></p> |
225 | <p>Initialise·the·native·dialog·addon.</p> | 222 | <p>Initialise·the·native·dialog·addon.</p> |
226 | <p>Returns·true·on·success,·false·on·error.</p> | 223 | <p>Returns·true·on·success,·false·on·error.</p> |
227 | <p>Since:·5.0.9,·5.1.0</p> | 224 | <p>Since:·5.0.9,·5.1.0</p> |
228 | <blockquote> | 225 | <blockquote> |
229 | <p><em>Note:</em>·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called·without·explicit·initialisation,·but·that·is·now·deprecated.·Future·functionality·may·require·explicit·initialisation.·An·exception·is·<a·href="native_dialog.html#al_show_native_message_box">al_show_native_message_box</a>,·which·may·be·useful·to·show·an·error·message·if·Allegro·fails·to·initialise.</p> | 226 | <p><em>Note:</em>·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called·without·explicit·initialisation,·but·that·is·now·deprecated.·Future·functionality·may·require·explicit·initialisation.·An·exception·is·<a·href="native_dialog.html#al_show_native_message_box">al_show_native_message_box</a>,·which·may·be·useful·to·show·an·error·message·if·Allegro·fails·to·initialise.</p> |
230 | </blockquote> | 227 | </blockquote> |
231 | <p>See·also:·<a·href="native_dialog.html#al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</a></p> | 228 | <p>See·also:·<a·href="native_dialog.html#al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</a></p> |
232 | <h1·id="al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</h1> | 229 | <h1·id="al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</h1> |
233 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">void</span>·al_shutdown_native_dialog_addon(<span·class="dt">void</span>)</a> | 230 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">void</span>·al_shutdown_native_dialog_addon(<span·class="dt">void</span>)</a></code></pre></div> |
234 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="dt">void</span>·al_shutdown_native_dialog_addon(<span·class="dt">void</span>)</a></code></pre></div> | ||
235 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L32">Source·Code</a></p> | 231 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L32">Source·Code</a></p> |
236 | <p>Shut·down·the·native·dialog·addon.</p> | 232 | <p>Shut·down·the·native·dialog·addon.</p> |
237 | <p>Since:·5.0.9,·5.1.5</p> | 233 | <p>Since:·5.0.9,·5.1.5</p> |
238 | <p>See·also:·<a·href="native_dialog.html#al_init_native_dialog_addon">al_init_native_dialog_addon</a></p> | 234 | <p>See·also:·<a·href="native_dialog.html#al_init_native_dialog_addon">al_init_native_dialog_addon</a></p> |
239 | <h1·id="al_create_native_file_dialog">al_create_native_file_dialog</h1> | 235 | <h1·id="al_create_native_file_dialog">al_create_native_file_dialog</h1> |
240 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1">ALLEGRO_FILECHOOSER·*al_create_native_file_dialog(</a> | 236 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1">ALLEGRO_FILECHOOSER·*al_create_native_file_dialog(</a> |
241 | <a·class="sourceLine"·id="cb6-2"·title="2">···<span·class="dt">char</span>·<span·class="dt">const</span>·*initial_path,</a> | 237 | <a·class="sourceLine"·id="cb6-2"·title="2">···<span·class="dt">char</span>·<span·class="dt">const</span>·*initial_path,</a> |
242 | <a·class="sourceLine"·id="cb6-3"·title="3">···<span·class="dt">char</span>·<span·class="dt">const</span>·*title,</a> | 238 | <a·class="sourceLine"·id="cb6-3"·title="3">···<span·class="dt">char</span>·<span·class="dt">const</span>·*title,</a> |
243 | <a·class="sourceLine"·id="cb6-4"·title="4">···<span·class="dt">char</span>·<span·class="dt">const</span>·*patterns,</a> | 239 | <a·class="sourceLine"·id="cb6-4"·title="4">···<span·class="dt">char</span>·<span·class="dt">const</span>·*patterns,</a> |
244 | <a·class="sourceLine"·id="cb6-5"·title="5">···<span·class="dt">int</span>·mode)</a> | 240 | <a·class="sourceLine"·id="cb6-5"·title="5">···<span·class="dt">int</span>·mode)</a></code></pre></div> |
245 | <a·class="sourceLine"·id="cb6-6"·title="6">ALLEGRO_FILECHOOSER·*al_create_native_file_dialog(</a> | ||
246 | <a·class="sourceLine"·id="cb6-7"·title="7">···<span·class="dt">char</span>·<span·class="dt">const</span>·*initial_path,</a> | ||
247 | <a·class="sourceLine"·id="cb6-8"·title="8">···<span·class="dt">char</span>·<span·class="dt">const</span>·*title,</a> | ||
248 | <a·class="sourceLine"·id="cb6-9"·title="9">···<span·class="dt">char</span>·<span·class="dt">const</span>·*patterns,</a> | ||
249 | <a·class="sourceLine"·id="cb6-10"·title="10">···<span·class="dt">int</span>·mode)</a></code></pre></div> | ||
250 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L43">Source·Code</a></p> | 241 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L43">Source·Code</a></p> |
251 | <p>Creates·a·new·native·file·dialog.·You·should·only·have·one·such·dialog·opened·at·a·time.</p> | 242 | <p>Creates·a·new·native·file·dialog.·You·should·only·have·one·such·dialog·opened·at·a·time.</p> |
252 | <p>Parameters:</p> | 243 | <p>Parameters:</p> |
253 | <ul> | 244 | <ul> |
254 | <li><p><code>initial_path</code>:·The·initial·search·path·and·filename.·Can·be·NULL.·To·start·with·a·blank·file·name·the·string·should·end·with·a·directory·separator·(this·should·be·the·common·case).</p></li> | 245 | <li><p><code>initial_path</code>:·The·initial·search·path·and·filename.·Can·be·NULL.·To·start·with·a·blank·file·name·the·string·should·end·with·a·directory·separator·(this·should·be·the·common·case).</p></li> |
255 | <li><p><code>title</code>:·Title·of·the·dialog.</p></li> | 246 | <li><p><code>title</code>:·Title·of·the·dialog.</p></li> |
256 | <li><p><code>patterns</code>:·A·list·of·semi-colon·separated·patterns·to·match.·This·should·not·contain·any·whitespace·characters.·If·a·pattern·contains·the·‘/’·character,·then·it·is·treated·as·a·MIME·type·(e.g.·‘image/png’).·Not·all·platforms·support·file·patterns.·If·the·native·dialog·does·not·provide·support,·this·parameter·is·ignored.</p></li> | 247 | <li><p><code>patterns</code>:·A·list·of·semi-colon·separated·patterns·to·match.·This·should·not·contain·any·whitespace·characters.·If·a·pattern·contains·the·‘/’·character,·then·it·is·treated·as·a·MIME·type·(e.g.·‘image/png’).·Not·all·platforms·support·file·patterns.·If·the·native·dialog·does·not·provide·support,·this·parameter·is·ignored.</p></li> |
Offset 277, 45 lines modified | Offset 268, 36 lines modified | ||
277 | </dd> | 268 | </dd> |
278 | </dl> | 269 | </dl> |
279 | <p>Returns:</p> | 270 | <p>Returns:</p> |
280 | <p>A·handle·to·the·dialog·which·you·can·pass·to·<a·href="native_dialog.html#al_show_native_file_dialog">al_show_native_file_dialog</a>·to·display·it,·and·from·which·you·then·can·query·the·results·using·<a·href="native_dialog.html#al_get_native_file_dialog_count">al_get_native_file_dialog_count</a>·and·<a·href="native_dialog.html#al_get_native_file_dialog_path">al_get_native_file_dialog_path</a>.·When·you·are·done,·call·<a·href="native_dialog.html#al_destroy_native_file_dialog">al_destroy_native_file_dialog</a>·on·it.</p> | 271 | <p>A·handle·to·the·dialog·which·you·can·pass·to·<a·href="native_dialog.html#al_show_native_file_dialog">al_show_native_file_dialog</a>·to·display·it,·and·from·which·you·then·can·query·the·results·using·<a·href="native_dialog.html#al_get_native_file_dialog_count">al_get_native_file_dialog_count</a>·and·<a·href="native_dialog.html#al_get_native_file_dialog_path">al_get_native_file_dialog_path</a>.·When·you·are·done,·call·<a·href="native_dialog.html#al_destroy_native_file_dialog">al_destroy_native_file_dialog</a>·on·it.</p> |
281 | <p>If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL.</p> | 272 | <p>If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL.</p> |
282 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> | 273 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> |
283 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="dt">bool</span>·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display,</a> | 274 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="dt">bool</span>·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display,</a> |
284 | <a·class="sourceLine"·id="cb7-2"·title="2">···ALLEGRO_FILECHOOSER·*dialog)</a> | 275 | <a·class="sourceLine"·id="cb7-2"·title="2">···ALLEGRO_FILECHOOSER·*dialog)</a></code></pre></div> |
285 | <a·class="sourceLine"·id="cb7-3"·title="3"><span·class="dt">bool</span>·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display,</a> | ||
286 | <a·class="sourceLine"·id="cb7-4"·title="4">···ALLEGRO_FILECHOOSER·*dialog)</a></code></pre></div> | ||
287 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L67">Source·Code</a></p> | 276 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L67">Source·Code</a></p> |
288 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the·parent·if·possible.</p> | 277 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the·parent·if·possible.</p> |
289 | <p>This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to·spawn·a·thread·with·<a·href="threads.html#al_create_thread">al_create_thread</a>·and·call·it·from·inside·that·thread.</p> | 278 | <p>This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to·spawn·a·thread·with·<a·href="threads.html#al_create_thread">al_create_thread</a>·and·call·it·from·inside·that·thread.</p> |
290 | <p>Returns·true·on·success,·false·on·failure.</p> | 279 | <p>Returns·true·on·success,·false·on·failure.</p> |
291 | <h1·id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> | 280 | <h1·id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> |
292 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="dt">int</span>·al_get_native_file_dialog_count(<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·*dialog)</a> | 281 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="dt">int</span>·al_get_native_file_dialog_count(<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·*dialog)</a></code></pre></div> |
293 | <a·class="sourceLine"·id="cb8-2"·title="2"><span·class="dt">int</span>·al_get_native_file_dialog_count(<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·*dialog)</a></code></pre></div> | ||
294 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L76">Source·Code</a></p> | 282 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L76">Source·Code</a></p> |
295 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled.</p> | 283 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled.</p> |
296 | <h1·id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> | 284 | <h1·id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> |
297 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">const</span>·<span·class="dt">char</span>·*al_get_native_file_dialog_path(</a> | 285 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">const</span>·<span·class="dt">char</span>·*al_get_native_file_dialog_path(</a> |
298 | <a·class="sourceLine"·id="cb9-2"·title="2">···<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·*dialog,·<span·class="dt">size_t</span>·i)</a> | 286 | <a·class="sourceLine"·id="cb9-2"·title="2">···<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·*dialog,·<span·class="dt">size_t</span>·i)</a></code></pre></div> |
299 | <a·class="sourceLine"·id="cb9-3"·title="3"><span·class="dt">const</span>·<span·class="dt">char</span>·*al_get_native_file_dialog_path(</a> | ||
300 | <a·class="sourceLine"·id="cb9-4"·title="4">···<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·*dialog,·<span·class="dt">size_t</span>·i)</a></code></pre></div> | ||
301 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L84">Source·Code</a></p> | 287 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L84">Source·Code</a></p> |
302 | <p>Returns·one·of·the·selected·paths·with·index·<code>i</code>.·The·index·should·range·from·<code>0</code>·to·the·return·value·of·<a·href="native_dialog.html#al_get_native_file_dialog_count">al_get_native_file_dialog_count</a>·<code>-1</code>.</p> | 288 | <p>Returns·one·of·the·selected·paths·with·index·<code>i</code>.·The·index·should·range·from·<code>0</code>·to·the·return·value·of·<a·href="native_dialog.html#al_get_native_file_dialog_count">al_get_native_file_dialog_count</a>·<code>-1</code>.</p> |
303 | <h1·id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1> | 289 | <h1·id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1> |
304 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="dt">void</span>·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog)</a> | 290 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="dt">void</span>·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog)</a></code></pre></div> |
305 | <a·class="sourceLine"·id="cb10-2"·title="2"><span·class="dt">void</span>·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog)</a></code></pre></div> | ||
306 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L95">Source·Code</a></p> | 291 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L95">Source·Code</a></p> |
307 | <p>Frees·up·all·resources·used·by·the·file·dialog.</p> | 292 | <p>Frees·up·all·resources·used·by·the·file·dialog.</p> |
308 | <h1·id="al_show_native_message_box">al_show_native_message_box</h1> | 293 | <h1·id="al_show_native_message_box">al_show_native_message_box</h1> |
309 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="dt">int</span>·al_show_native_message_box(ALLEGRO_DISPLAY·*display,</a> | 294 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="dt">int</span>·al_show_native_message_box(ALLEGRO_DISPLAY·*display,</a> |
310 | <a·class="sourceLine"·id="cb11-2"·title="2">···<span·class="dt">char</span>·<span·class="dt">const</span>·*title,·<span·class="dt">char</span>·<span·class="dt">const</span>·*heading,·<span·class="dt">char</span>·<span·class="dt">const</span>·*text,</a> | 295 | <a·class="sourceLine"·id="cb11-2"·title="2">···<span·class="dt">char</span>·<span·class="dt">const</span>·*title,·<span·class="dt">char</span>·<span·class="dt">const</span>·*heading,·<span·class="dt">char</span>·<span·class="dt">const</span>·*text,</a> |
311 | <a·class="sourceLine"·id="cb11-3"·title="3">···<span·class="dt">char</span>·<span·class="dt">const</span>·*buttons,·<span·class="dt">int</span>·flags)</a> | 296 | <a·class="sourceLine"·id="cb11-3"·title="3">···<span·class="dt">char</span>·<span·class="dt">const</span>·*buttons,·<span·class="dt">int</span>·flags)</a></code></pre></div> |
312 | <a·class="sourceLine"·id="cb11-4"·title="4"><span·class="dt">int</span>·al_show_native_message_box(ALLEGRO_DISPLAY·*display,</a> | ||
313 | <a·class="sourceLine"·id="cb11-5"·title="5">···<span·class="dt">char</span>·<span·class="dt">const</span>·*title,·<span·class="dt">char</span>·<span·class="dt">const</span>·*heading,·<span·class="dt">char</span>·<span·class="dt">const</span>·*text,</a> | ||
314 | <a·class="sourceLine"·id="cb11-6"·title="6">···<span·class="dt">char</span>·<span·class="dt">const</span>·*buttons,·<span·class="dt">int</span>·flags)</a></code></pre></div> | ||
315 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L117">Source·Code</a></p> | 297 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L117">Source·Code</a></p> |
316 | <p>Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error·message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the·parent·if·possible.</p> | 298 | <p>Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error·message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the·parent·if·possible.</p> |
317 | <p>The·message·box·will·have·a·single·“OK”·button·and·use·the·style·informative·dialog·boxes·usually·have·on·the·native·system.·If·the·<code>buttons</code>·parameter·is·not·NULL,·you·can·instead·specify·the·button·text·in·a·string,·with·buttons·separated·by·a·vertical·bar·(|).</p> | 299 | <p>The·message·box·will·have·a·single·“OK”·button·and·use·the·style·informative·dialog·boxes·usually·have·on·the·native·system.·If·the·<code>buttons</code>·parameter·is·not·NULL,·you·can·instead·specify·the·button·text·in·a·string,·with·buttons·separated·by·a·vertical·bar·(|).</p> |
318 | <blockquote> | 300 | <blockquote> |
319 | <p><em>Note:</em>·<code>buttons</code>·parameter·is·currently·unimplemented·on·Windows.</p> | 301 | <p><em>Note:</em>·<code>buttons</code>·parameter·is·currently·unimplemented·on·Windows.</p> |
320 | </blockquote> | 302 | </blockquote> |
321 | <p>The·flags·available·are:</p> | 303 | <p>The·flags·available·are:</p> |
Offset 355, 16 lines modified | Offset 337, 15 lines modified | ||
355 | <a·class="sourceLine"·id="cb12-6"·title="6">··<span·class="st">"is·your·response·to·the·query·which·you·have·"</span></a> | 337 | <a·class="sourceLine"·id="cb12-6"·title="6">··<span·class="st">"is·your·response·to·the·query·which·you·have·"</span></a> |
356 | <a·class="sourceLine"·id="cb12-7"·title="7">··<span·class="st">"generated·by·the·action·you·took·to·open·this·"</span></a> | 338 | <a·class="sourceLine"·id="cb12-7"·title="7">··<span·class="st">"generated·by·the·action·you·took·to·open·this·"</span></a> |
357 | <a·class="sourceLine"·id="cb12-8"·title="8">··<span·class="st">"message·box."</span>,</a> | 339 | <a·class="sourceLine"·id="cb12-8"·title="8">··<span·class="st">"message·box."</span>,</a> |
358 | <a·class="sourceLine"·id="cb12-9"·title="9">··NULL,</a> | 340 | <a·class="sourceLine"·id="cb12-9"·title="9">··NULL,</a> |
359 | <a·class="sourceLine"·id="cb12-10"·title="10">··ALLEGRO_MESSAGEBOX_YES_NO</a> | 341 | <a·class="sourceLine"·id="cb12-10"·title="10">··ALLEGRO_MESSAGEBOX_YES_NO</a> |
360 | <a·class="sourceLine"·id="cb12-11"·title="11">);</a></code></pre></div> | 342 | <a·class="sourceLine"·id="cb12-11"·title="11">);</a></code></pre></div> |
361 | <h1·id="al_open_native_text_log">al_open_native_text_log</h1> | 343 | <h1·id="al_open_native_text_log">al_open_native_text_log</h1> |
362 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb13-1"·title="1">ALLEGRO_TEXTLOG·*al_open_native_text_log(<span·class="dt">char</span>·<span·class="dt">const</span>·*title,·<span·class="dt">int</span>·flags)</a> | 344 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb13-1"·title="1">ALLEGRO_TEXTLOG·*al_open_native_text_log(<span·class="dt">char</span>·<span·class="dt">const</span>·*title,·<span·class="dt">int</span>·flags)</a></code></pre></div> |
363 | <a·class="sourceLine"·id="cb13-2"·title="2">ALLEGRO_TEXTLOG·*al_open_native_text_log(<span·class="dt">char</span>·<span·class="dt">const</span>·*title,·<span·class="dt">int</span>·flags)</a></code></pre></div> | ||
364 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/textlog.c#L39">Source·Code</a></p> | 345 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/textlog.c#L39">Source·Code</a></p> |
365 | <p>Opens·a·window·to·which·you·can·append·log·messages·with·<a·href="native_dialog.html#al_append_native_text_log">al_append_native_text_log</a>.·This·can·be·useful·for·debugging·if·you·don’t·want·to·depend·on·a·console·being·available.</p> | 346 | <p>Opens·a·window·to·which·you·can·append·log·messages·with·<a·href="native_dialog.html#al_append_native_text_log">al_append_native_text_log</a>.·This·can·be·useful·for·debugging·if·you·don’t·want·to·depend·on·a·console·being·available.</p> |
366 | <p>Use·<a·href="native_dialog.html#al_close_native_text_log">al_close_native_text_log</a>·to·close·the·window·again.</p> | 347 | <p>Use·<a·href="native_dialog.html#al_close_native_text_log">al_close_native_text_log</a>·to·close·the·window·again.</p> |
367 | <p>The·flags·available·are:</p> | 348 | <p>The·flags·available·are:</p> |
368 | <dl> | 349 | <dl> |
369 | <dt>ALLEGRO_TEXTLOG_NO_CLOSE</dt> | 350 | <dt>ALLEGRO_TEXTLOG_NO_CLOSE</dt> |
370 | <dd>Prevent·the·window·from·having·a·close·button.·Otherwise,·if·the·close·button·is·pressed,·an·event·is·generated;·see·<a·href="native_dialog.html#al_get_native_text_log_event_source">al_get_native_text_log_event_source</a>. | 351 | <dd>Prevent·the·window·from·having·a·close·button.·Otherwise,·if·the·close·button·is·pressed,·an·event·is·generated;·see·<a·href="native_dialog.html#al_get_native_text_log_event_source">al_get_native_text_log_event_source</a>. |
Offset 372, 43 lines modified | Offset 353, 37 lines modified | ||
372 | <dt>ALLEGRO_TEXTLOG_MONOSPACE</dt> | 353 | <dt>ALLEGRO_TEXTLOG_MONOSPACE</dt> |
373 | <dd>Use·a·monospace·font·to·display·the·text. | 354 | <dd>Use·a·monospace·font·to·display·the·text. |
374 | </dd> | 355 | </dd> |
375 | </dl> | 356 | </dl> |
376 | <p>Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows·are·not·implemented·on·the·platform.</p> | 357 | <p>Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows·are·not·implemented·on·the·platform.</p> |
377 | <p>See·also:·<a·href="native_dialog.html#al_append_native_text_log">al_append_native_text_log</a>,·<a·href="native_dialog.html#al_close_native_text_log">al_close_native_text_log</a></p> | 358 | <p>See·also:·<a·href="native_dialog.html#al_append_native_text_log">al_append_native_text_log</a>,·<a·href="native_dialog.html#al_close_native_text_log">al_close_native_text_log</a></p> |
378 | <h1·id="al_close_native_text_log">al_close_native_text_log</h1> | 359 | <h1·id="al_close_native_text_log">al_close_native_text_log</h1> |
379 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1"><span·class="dt">void</span>·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog)</a> | 360 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1"><span·class="dt">void</span>·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog)</a></code></pre></div> |
380 | <a·class="sourceLine"·id="cb14-2"·title="2"><span·class="dt">void</span>·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog)</a></code></pre></div> | ||
381 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/textlog.c#L92">Source·Code</a></p> | 361 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/textlog.c#L92">Source·Code</a></p> |
382 | <p>Closes·a·message·log·window·opened·with·<a·href="native_dialog.html#al_open_native_text_log">al_open_native_text_log</a>·earlier.</p> | 362 | <p>Closes·a·message·log·window·opened·with·<a·href="native_dialog.html#al_open_native_text_log">al_open_native_text_log</a>·earlier.</p> |
Max diff block lines reached; 41787/59549 bytes (70.17%) of diff not shown. |
Offset 288, 12 lines modified | Offset 288, 12 lines modified | ||
288 | <p>You·can·disable·the·detection·of·any·OpenGL·extension·by·Allegro·with·a·section·like·this·in·allegro5.cfg:</p> | 288 | <p>You·can·disable·the·detection·of·any·OpenGL·extension·by·Allegro·with·a·section·like·this·in·allegro5.cfg:</p> |
289 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·ini"><code·class="sourceCode·ini"><a·class="sourceLine"·id="cb18-1"·title="1"><span·class="kw">[opengl_disabled_extensions]</span></a> | 289 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·ini"><code·class="sourceCode·ini"><a·class="sourceLine"·id="cb18-1"·title="1"><span·class="kw">[opengl_disabled_extensions]</span></a> |
290 | <a·class="sourceLine"·id="cb18-2"·title="2"><span·class="dt">GL_ARB_texture_non_power_of_two</span><span·class="ot">=</span><span·class="dv">0</span></a> | 290 | <a·class="sourceLine"·id="cb18-2"·title="2"><span·class="dt">GL_ARB_texture_non_power_of_two</span><span·class="ot">=</span><span·class="dv">0</span></a> |
291 | <a·class="sourceLine"·id="cb18-3"·title="3"><span·class="dt">GL_EXT_framebuffer_object</span><span·class="ot">=</span><span·class="dv">0</span></a></code></pre></div> | 291 | <a·class="sourceLine"·id="cb18-3"·title="3"><span·class="dt">GL_EXT_framebuffer_object</span><span·class="ot">=</span><span·class="dv">0</span></a></code></pre></div> |
292 | <p>Any·extension·which·appears·in·the·section·is·treated·as·not·available·(it·does·not·matter·if·you·set·it·to·0·or·any·other·value).</p> | 292 | <p>Any·extension·which·appears·in·the·section·is·treated·as·not·available·(it·does·not·matter·if·you·set·it·to·0·or·any·other·value).</p> |
293 | <p·class="timestamp"> | 293 | <p·class="timestamp"> |
294 | Allegro·version·5.2.4 | 294 | Allegro·version·5.2.4 |
295 | ·-·Last·updated:·202 | 295 | ·-·Last·updated:·2020-04-29·17:01:44·UTC |
296 | </p> | 296 | </p> |
297 | </div> | 297 | </div> |
298 | </body> | 298 | </body> |
299 | </html> | 299 | </html> |
Offset 321, 12 lines modified | Offset 321, 12 lines modified | ||
321 | <h1·id="al_make_path_canonical">al_make_path_canonical</h1> | 321 | <h1·id="al_make_path_canonical">al_make_path_canonical</h1> |
322 | <div·class="sourceCode"·id="cb25"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb25-1"·title="1"><span·class="dt">bool</span>·al_make_path_canonical(ALLEGRO_PATH·*path)</a></code></pre></div> | 322 | <div·class="sourceCode"·id="cb25"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb25-1"·title="1"><span·class="dt">bool</span>·al_make_path_canonical(ALLEGRO_PATH·*path)</a></code></pre></div> |
323 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L566">Source·Code</a></p> | 323 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L566">Source·Code</a></p> |
324 | <p>Removes·any·leading·‘..’·directory·components·in·absolute·paths.·Removes·all·‘.’·directory·components.</p> | 324 | <p>Removes·any·leading·‘..’·directory·components·in·absolute·paths.·Removes·all·‘.’·directory·components.</p> |
325 | <p>Note·that·this·does·<em>not</em>·collapse·“x/../y”·sections·into·“y”.·This·is·by·design.·If·“/foo”·on·your·system·is·a·symlink·to·“/bar/baz”,·then·“/foo/../quux”·is·actually·“/bar/quux”,·not·“/quux”·as·a·naive·removal·of·“..”·components·would·give·you.</p> | 325 | <p>Note·that·this·does·<em>not</em>·collapse·“x/../y”·sections·into·“y”.·This·is·by·design.·If·“/foo”·on·your·system·is·a·symlink·to·“/bar/baz”,·then·“/foo/../quux”·is·actually·“/bar/quux”,·not·“/quux”·as·a·naive·removal·of·“..”·components·would·give·you.</p> |
326 | <p·class="timestamp"> | 326 | <p·class="timestamp"> |
327 | Allegro·version·5.2.4 | 327 | Allegro·version·5.2.4 |
328 | ·-·Last·updated:·202 | 328 | ·-·Last·updated:·2020-04-29·17:01:41·UTC |
329 | </p> | 329 | </p> |
330 | </div> | 330 | </div> |
331 | </body> | 331 | </body> |
332 | </html> | 332 | </html> |
Offset 166, 32 lines modified | Offset 166, 30 lines modified | ||
166 | </nav> | 166 | </nav> |
167 | <p>PhysicsFS·is·a·library·to·provide·abstract·access·to·various·archives.·See·<a·href="http://icculus.org/physfs/"·class="uri">http://icculus.org/physfs/</a>·for·more·information.</p> | 167 | <p>PhysicsFS·is·a·library·to·provide·abstract·access·to·various·archives.·See·<a·href="http://icculus.org/physfs/"·class="uri">http://icculus.org/physfs/</a>·for·more·information.</p> |
168 | <p>This·addon·makes·it·possible·to·read·and·write·files·(on·disk·or·inside·archives)·using·PhysicsFS,·through·Allegro’s·file·I/O·API.·For·example,·that·means·you·can·use·the·Image·I/O·addon·to·load·images·from·.zip·files.</p> | 168 | <p>This·addon·makes·it·possible·to·read·and·write·files·(on·disk·or·inside·archives)·using·PhysicsFS,·through·Allegro’s·file·I/O·API.·For·example,·that·means·you·can·use·the·Image·I/O·addon·to·load·images·from·.zip·files.</p> |
169 | <p>You·must·set·up·PhysicsFS·through·its·own·API.·When·you·want·to·open·an·ALLEGRO_FILE·using·PhysicsFS,·first·call·<a·href="physfs.html#al_set_physfs_file_interface">al_set_physfs_file_interface</a>,·then·<a·href="file.html#al_fopen">al_fopen</a>·or·another·function·that·calls·<a·href="file.html#al_fopen">al_fopen</a>.</p> | 169 | <p>You·must·set·up·PhysicsFS·through·its·own·API.·When·you·want·to·open·an·ALLEGRO_FILE·using·PhysicsFS,·first·call·<a·href="physfs.html#al_set_physfs_file_interface">al_set_physfs_file_interface</a>,·then·<a·href="file.html#al_fopen">al_fopen</a>·or·another·function·that·calls·<a·href="file.html#al_fopen">al_fopen</a>.</p> |
170 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_physfs.</p> | 170 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_physfs.</p> |
171 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_physfs.h></span></a></code></pre></div> | 171 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_physfs.h></span></a></code></pre></div> |
172 | <h1·id="al_set_physfs_file_interface">al_set_physfs_file_interface</h1> | 172 | <h1·id="al_set_physfs_file_interface">al_set_physfs_file_interface</h1> |
173 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="dt">void</span>·al_set_physfs_file_interface(<span·class="dt">void</span>)</a> | 173 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="dt">void</span>·al_set_physfs_file_interface(<span·class="dt">void</span>)</a></code></pre></div> |
174 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="dt">void</span>·al_set_physfs_file_interface(<span·class="dt">void</span>)</a></code></pre></div> | ||
175 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L295">Source·Code</a></p> | 174 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L295">Source·Code</a></p> |
176 | <p>This·function·sets·<em>both</em>·the·<a·href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>·and·<a·href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·for·the·calling·thread.</p> | 175 | <p>This·function·sets·<em>both</em>·the·<a·href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>·and·<a·href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·for·the·calling·thread.</p> |
177 | <p>Subsequent·calls·to·<a·href="file.html#al_fopen">al_fopen</a>·on·the·calling·thread·will·be·handled·by·PHYSFS_open().·Operations·on·the·files·returned·by·<a·href="file.html#al_fopen">al_fopen</a>·will·then·be·performed·through·PhysicsFS.·Calls·to·the·Allegro·filesystem·functions,·such·as·<a·href="fshook.html#al_read_directory">al_read_directory</a>·or·<a·href="fshook.html#al_create_fs_entry">al_create_fs_entry</a>,·on·the·calling·thread·will·be·diverted·to·PhysicsFS.</p> | 176 | <p>Subsequent·calls·to·<a·href="file.html#al_fopen">al_fopen</a>·on·the·calling·thread·will·be·handled·by·PHYSFS_open().·Operations·on·the·files·returned·by·<a·href="file.html#al_fopen">al_fopen</a>·will·then·be·performed·through·PhysicsFS.·Calls·to·the·Allegro·filesystem·functions,·such·as·<a·href="fshook.html#al_read_directory">al_read_directory</a>·or·<a·href="fshook.html#al_create_fs_entry">al_create_fs_entry</a>,·on·the·calling·thread·will·be·diverted·to·PhysicsFS.</p> |
178 | <p>To·remember·and·restore·another·file·I/O·backend,·you·can·use·<a·href="state.html#al_store_state">al_store_state</a>/<a·href="state.html#al_restore_state">al_restore_state</a>.</p> | 177 | <p>To·remember·and·restore·another·file·I/O·backend,·you·can·use·<a·href="state.html#al_store_state">al_store_state</a>/<a·href="state.html#al_restore_state">al_restore_state</a>.</p> |
179 | <blockquote> | 178 | <blockquote> |
180 | <p><em>Note:</em>·due·to·an·oversight,·this·function·differs·from·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>·and·<a·href="file.html#al_set_standard_file_interface">al_set_standard_file_interface</a>·which·only·alter·the·current·<a·href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>.</p> | 179 | <p><em>Note:</em>·due·to·an·oversight,·this·function·differs·from·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>·and·<a·href="file.html#al_set_standard_file_interface">al_set_standard_file_interface</a>·which·only·alter·the·current·<a·href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>.</p> |
181 | </blockquote> | 180 | </blockquote> |
182 | <blockquote> | 181 | <blockquote> |
183 | <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and·writing,·which·means·that·Windows-style·newlines·will·not·be·preserved.</p> | 182 | <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and·writing,·which·means·that·Windows-style·newlines·will·not·be·preserved.</p> |
184 | </blockquote> | 183 | </blockquote> |
185 | <p>See·also:·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> | 184 | <p>See·also:·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> |
186 | <h1·id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> | 185 | <h1·id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> |
187 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version(<span·class="dt">void</span>)</a> | 186 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version(<span·class="dt">void</span>)</a></code></pre></div> |
188 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version(<span·class="dt">void</span>)</a></code></pre></div> | ||
189 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L304">Source·Code</a></p> | 187 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L304">Source·Code</a></p> |
190 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 188 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
191 | <p·class="timestamp"> | 189 | <p·class="timestamp"> |
192 | Allegro·version·5.2.4 | 190 | Allegro·version·5.2.4 |
193 | ·-·Last·updated:·202 | 191 | ·-·Last·updated:·2020-04-29·17:01:46·UTC |
194 | </p> | 192 | </p> |
195 | </div> | 193 | </div> |
196 | </body> | 194 | </body> |
197 | </html> | 195 | </html> |
Offset 306, 12 lines modified | Offset 306, 12 lines modified | ||
306 | <p>On·some·window·managers·(notably·Ubuntu’s·Unity)·al_set_display_icon·doesn’t·work·and·you·need·to·use·a·.desktop·file.·But·with·this·function·you·can·set·an·icon·before·calling·al_create_display.·This·works·by·setting·the·icon·before·XMapWindow.</p> | 306 | <p>On·some·window·managers·(notably·Ubuntu’s·Unity)·al_set_display_icon·doesn’t·work·and·you·need·to·use·a·.desktop·file.·But·with·this·function·you·can·set·an·icon·before·calling·al_create_display.·This·works·by·setting·the·icon·before·XMapWindow.</p> |
307 | <p>Since:·5.2.3</p> | 307 | <p>Since:·5.2.3</p> |
308 | <blockquote> | 308 | <blockquote> |
309 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·New·API.</p> | 309 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·New·API.</p> |
310 | </blockquote> | 310 | </blockquote> |
311 | <p·class="timestamp"> | 311 | <p·class="timestamp"> |
312 | Allegro·version·5.2.4 | 312 | Allegro·version·5.2.4 |
313 | ·-·Last·updated:·202 | 313 | ·-·Last·updated:·2020-04-29·17:01:43·UTC |
314 | </p> | 314 | </p> |
315 | </div> | 315 | </div> |
316 | </body> | 316 | </body> |
317 | </html> | 317 | </html> |
Offset 238, 28 lines modified | Offset 238, 25 lines modified | ||
238 | </ul></li> | 238 | </ul></li> |
239 | </ul> | 239 | </ul> |
240 | </nav> | 240 | </nav> |
241 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_primitives.</p> | 241 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_primitives.</p> |
242 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_primitives.h></span></a></code></pre></div> | 242 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_primitives.h></span></a></code></pre></div> |
243 | <h1·id="general">General</h1> | 243 | <h1·id="general">General</h1> |
244 | <h2·id="al_get_allegro_primitives_version">al_get_allegro_primitives_version</h2> | 244 | <h2·id="al_get_allegro_primitives_version">al_get_allegro_primitives_version</h2> |
245 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_primitives_version(<span·class="dt">void</span>)</a> | 245 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_primitives_version(<span·class="dt">void</span>)</a></code></pre></div> |
246 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="dt">uint32_t</span>·al_get_allegro_primitives_version(<span·class="dt">void</span>)</a></code></pre></div> | ||
247 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L151">Source·Code</a></p> | 246 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L151">Source·Code</a></p> |
248 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 247 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
249 | <h2·id="al_init_primitives_addon">al_init_primitives_addon</h2> | 248 | <h2·id="al_init_primitives_addon">al_init_primitives_addon</h2> |
250 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">bool</span>·al_init_primitives_addon(<span·class="dt">void</span>)</a> | 249 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="dt">bool</span>·al_init_primitives_addon(<span·class="dt">void</span>)</a></code></pre></div> |
251 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="dt">bool</span>·al_init_primitives_addon(<span·class="dt">void</span>)</a></code></pre></div> | ||
252 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L46">Source·Code</a></p> | 250 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L46">Source·Code</a></p> |
253 | <p>Initializes·the·primitives·addon.</p> | 251 | <p>Initializes·the·primitives·addon.</p> |
254 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> | 252 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> |
255 | <p>See·also:·<a·href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> | 253 | <p>See·also:·<a·href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> |
256 | <h2·id="al_shutdown_primitives_addon">al_shutdown_primitives_addon</h2> | 254 | <h2·id="al_shutdown_primitives_addon">al_shutdown_primitives_addon</h2> |
257 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="dt">void</span>·al_shutdown_primitives_addon(<span·class="dt">void</span>)</a> | 255 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="dt">void</span>·al_shutdown_primitives_addon(<span·class="dt">void</span>)</a></code></pre></div> |
258 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="dt">void</span>·al_shutdown_primitives_addon(<span·class="dt">void</span>)</a></code></pre></div> | ||
259 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L60">Source·Code</a></p> | 256 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L60">Source·Code</a></p> |
260 | <p>Shut·down·the·primitives·addon.·This·is·done·automatically·at·program·exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> | 257 | <p>Shut·down·the·primitives·addon.·This·is·done·automatically·at·program·exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> |
261 | <p>See·also:·<a·href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a></p> | 258 | <p>See·also:·<a·href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a></p> |
262 | <h1·id="high-level-drawing-routines">High·level·drawing·routines</h1> | 259 | <h1·id="high-level-drawing-routines">High·level·drawing·routines</h1> |
263 | <p>High·level·drawing·routines·encompass·the·most·common·usage·of·this·addon:·to·draw·geometric·primitives,·both·smooth·(variations·on·the·circle·theme)·and·piecewise·linear.·Outlined·primitives·support·the·concept·of·thickness·with·two·distinct·modes·of·output:·hairline·lines·and·thick·lines.·Hairline·lines·are·specifically·designed·to·be·exactly·a·pixel·wide,·and·are·commonly·used·for·drawing·outlined·figures·that·need·to·be·a·pixel·wide.·Hairline·thickness·is·designated·as·thickness·less·than·or·equal·to·0.·Unfortunately,·the·exact·rasterization·rules·for·drawing·these·hairline·lines·vary·from·one·video·card·to·another,·and·sometimes·leave·gaps·where·the·lines·meet.·If·that·matters·to·you,·then·you·should·use·thick·lines.·In·many·cases,·having·a·thickness·of·1·will·produce·1·pixel·wide·lines·that·look·better·than·hairline·lines.·Obviously,·hairline·lines·cannot·replicate·thicknesses·greater·than·1.·Thick·lines·grow·symmetrically·around·the·generating·shape·as·thickness·is·increased.</p> | 260 | <p>High·level·drawing·routines·encompass·the·most·common·usage·of·this·addon:·to·draw·geometric·primitives,·both·smooth·(variations·on·the·circle·theme)·and·piecewise·linear.·Outlined·primitives·support·the·concept·of·thickness·with·two·distinct·modes·of·output:·hairline·lines·and·thick·lines.·Hairline·lines·are·specifically·designed·to·be·exactly·a·pixel·wide,·and·are·commonly·used·for·drawing·outlined·figures·that·need·to·be·a·pixel·wide.·Hairline·thickness·is·designated·as·thickness·less·than·or·equal·to·0.·Unfortunately,·the·exact·rasterization·rules·for·drawing·these·hairline·lines·vary·from·one·video·card·to·another,·and·sometimes·leave·gaps·where·the·lines·meet.·If·that·matters·to·you,·then·you·should·use·thick·lines.·In·many·cases,·having·a·thickness·of·1·will·produce·1·pixel·wide·lines·that·look·better·than·hairline·lines.·Obviously,·hairline·lines·cannot·replicate·thicknesses·greater·than·1.·Thick·lines·grow·symmetrically·around·the·generating·shape·as·thickness·is·increased.</p> |
264 | <h2·id="pixel-precise-output">Pixel-precise·output</h2> | 261 | <h2·id="pixel-precise-output">Pixel-precise·output</h2> |
265 | <p>While·normally·you·should·not·be·too·concerned·with·which·pixels·are·displayed·when·the·high·level·primitives·are·drawn,·it·is·nevertheless·possible·to·control·that·precisely·by·carefully·picking·the·coordinates·at·which·you·draw·those·primitives.</p> | 262 | <p>While·normally·you·should·not·be·too·concerned·with·which·pixels·are·displayed·when·the·high·level·primitives·are·drawn,·it·is·nevertheless·possible·to·control·that·precisely·by·carefully·picking·the·coordinates·at·which·you·draw·those·primitives.</p> |
Offset 282, 116 lines modified | Offset 279, 99 lines modified | ||
282 | </figure> | 279 | </figure> |
283 | <p>It·can·be·seen·that·lines·are·generated·by·making·a·rectangle·based·on·the·dashed·line·between·the·two·endpoints.·The·thickness·causes·the·rectangle·to·grow·symmetrically·about·that·generating·line,·as·can·be·seen·by·comparing·the·red·and·blue·lines.·Note·that·to·get·proper·pixel·coverage,·the·coordinates·passed·to·the·<code>al_draw_line</code>·had·to·be·offset·by·0.5·in·the·appropriate·dimensions.</p> | 280 | <p>It·can·be·seen·that·lines·are·generated·by·making·a·rectangle·based·on·the·dashed·line·between·the·two·endpoints.·The·thickness·causes·the·rectangle·to·grow·symmetrically·about·that·generating·line,·as·can·be·seen·by·comparing·the·red·and·blue·lines.·Note·that·to·get·proper·pixel·coverage,·the·coordinates·passed·to·the·<code>al_draw_line</code>·had·to·be·offset·by·0.5·in·the·appropriate·dimensions.</p> |
284 | <p>Filled·rectangles·are·generated·by·making·a·rectangle·between·the·endpoints·passed·to·the·<code>al_draw_filled_rectangle</code>.</p> | 281 | <p>Filled·rectangles·are·generated·by·making·a·rectangle·between·the·endpoints·passed·to·the·<code>al_draw_filled_rectangle</code>.</p> |
285 | <p>Outlined·rectangles·are·generated·by·symmetrically·expanding·an·outline·of·a·rectangle.·With·a·thickness·of·1,·as·depicted·in·the·diagram,·this·means·that·an·offset·of·0.5·is·needed·for·both·sets·of·endpoint·coordinates·to·exactly·line·up·with·the·pixels·of·the·display·raster.</p> | 282 | <p>Outlined·rectangles·are·generated·by·symmetrically·expanding·an·outline·of·a·rectangle.·With·a·thickness·of·1,·as·depicted·in·the·diagram,·this·means·that·an·offset·of·0.5·is·needed·for·both·sets·of·endpoint·coordinates·to·exactly·line·up·with·the·pixels·of·the·display·raster.</p> |
286 | <p>The·above·rules·only·apply·when·multisampling·is·turned·off.·When·multisampling·is·turned·on,·the·area·of·a·pixel·that·is·covered·by·a·shape·is·taken·into·account·when·choosing·what·color·to·draw·there.·This·also·means·that·shapes·no·longer·have·to·contain·the·pixel’s·center·to·affect·its·color.·For·example,·the·green·rectangle·in·the·first·diagram·may·in·fact·be·drawn·as·two·(or·one)·semi-transparent·pixels.·The·advantages·of·multisampling·is·that·slanted·shapes·will·look·smoother·because·they·will·not·have·jagged·edges.·A·disadvantage·of·multisampling·is·that·it·may·make·vertical·and·horizontal·edges·blurry.·While·the·exact·rules·for·multisampling·are·unspecified,·and·may·vary·from·GPU·to·GPU,·it·is·usually·safe·to·assume·that·as·long·as·a·pixel·is·either·completely·covered·by·a·shape·or·completely·not·covered,·then·the·shape·edges·will·be·sharp.·The·offsets·used·in·the·second·diagram·were·chosen·so·that·this·is·the·case:·if·you·use·those·offsets,·your·shapes·(if·they·are·oriented·the·same·way·as·they·are·on·the·diagram)·should·look·the·same·whether·multisampling·is·turned·on·or·off.</p> | 283 | <p>The·above·rules·only·apply·when·multisampling·is·turned·off.·When·multisampling·is·turned·on,·the·area·of·a·pixel·that·is·covered·by·a·shape·is·taken·into·account·when·choosing·what·color·to·draw·there.·This·also·means·that·shapes·no·longer·have·to·contain·the·pixel’s·center·to·affect·its·color.·For·example,·the·green·rectangle·in·the·first·diagram·may·in·fact·be·drawn·as·two·(or·one)·semi-transparent·pixels.·The·advantages·of·multisampling·is·that·slanted·shapes·will·look·smoother·because·they·will·not·have·jagged·edges.·A·disadvantage·of·multisampling·is·that·it·may·make·vertical·and·horizontal·edges·blurry.·While·the·exact·rules·for·multisampling·are·unspecified,·and·may·vary·from·GPU·to·GPU,·it·is·usually·safe·to·assume·that·as·long·as·a·pixel·is·either·completely·covered·by·a·shape·or·completely·not·covered,·then·the·shape·edges·will·be·sharp.·The·offsets·used·in·the·second·diagram·were·chosen·so·that·this·is·the·case:·if·you·use·those·offsets,·your·shapes·(if·they·are·oriented·the·same·way·as·they·are·on·the·diagram)·should·look·the·same·whether·multisampling·is·turned·on·or·off.</p> |
287 | <h2·id="al_draw_line">al_draw_line</h2> | 284 | <h2·id="al_draw_line">al_draw_line</h2> |
288 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="dt">void</span>·al_draw_line(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | 285 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="dt">void</span>·al_draw_line(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> |
289 | <a·class="sourceLine"·id="cb6-2"·title="2">···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a> | 286 | <a·class="sourceLine"·id="cb6-2"·title="2">···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a></code></pre></div> |
290 | <a·class="sourceLine"·id="cb6-3"·title="3"><span·class="dt">void</span>·al_draw_line(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | ||
291 | <a·class="sourceLine"·id="cb6-4"·title="4">···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a></code></pre></div> | ||
292 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L77">Source·Code</a></p> | 287 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L77">Source·Code</a></p> |
293 | <p>Draws·a·line·segment·between·two·points.</p> | 288 | <p>Draws·a·line·segment·between·two·points.</p> |
294 | <p><em>Parameters:</em></p> | 289 | <p><em>Parameters:</em></p> |
295 | <ul> | 290 | <ul> |
296 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> | 291 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> |
297 | <li>color·-·Color·of·the·line</li> | 292 | <li>color·-·Color·of·the·line</li> |
298 | <li>thickness·-·Thickness·of·the·line,·pass·<code><=·0</code>·to·draw·hairline·lines</li> | 293 | <li>thickness·-·Thickness·of·the·line,·pass·<code><=·0</code>·to·draw·hairline·lines</li> |
299 | </ul> | 294 | </ul> |
300 | <p>See·also:·<a·href="primitives.html#al_draw_soft_line">al_draw_soft_line</a></p> | 295 | <p>See·also:·<a·href="primitives.html#al_draw_soft_line">al_draw_soft_line</a></p> |
301 | <h2·id="al_draw_triangle">al_draw_triangle</h2> | 296 | <h2·id="al_draw_triangle">al_draw_triangle</h2> |
302 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="dt">void</span>·al_draw_triangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | 297 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1"><span·class="dt">void</span>·al_draw_triangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> |
303 | <a·class="sourceLine"·id="cb7-2"·title="2">···<span·class="dt">float</span>·x3,·<span·class="dt">float</span>·y3,·ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a> | 298 | <a·class="sourceLine"·id="cb7-2"·title="2">···<span·class="dt">float</span>·x3,·<span·class="dt">float</span>·y3,·ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a></code></pre></div> |
304 | <a·class="sourceLine"·id="cb7-3"·title="3"><span·class="dt">void</span>·al_draw_triangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | ||
305 | <a·class="sourceLine"·id="cb7-4"·title="4">···<span·class="dt">float</span>·x3,·<span·class="dt">float</span>·y3,·ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a></code></pre></div> | ||
306 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L122">Source·Code</a></p> | 299 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L122">Source·Code</a></p> |
307 | <p>Draws·an·outlined·triangle.</p> | 300 | <p>Draws·an·outlined·triangle.</p> |
308 | <p><em>Parameters:</em></p> | 301 | <p><em>Parameters:</em></p> |
309 | <ul> | 302 | <ul> |
310 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> | 303 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> |
311 | <li>color·-·Color·of·the·triangle</li> | 304 | <li>color·-·Color·of·the·triangle</li> |
312 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> | 305 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> |
313 | </ul> | 306 | </ul> |
314 | <p>See·also:·<a·href="primitives.html#al_draw_filled_triangle">al_draw_filled_triangle</a>,·<a·href="primitives.html#al_draw_soft_triangle">al_draw_soft_triangle</a></p> | 307 | <p>See·also:·<a·href="primitives.html#al_draw_filled_triangle">al_draw_filled_triangle</a>,·<a·href="primitives.html#al_draw_soft_triangle">al_draw_soft_triangle</a></p> |
315 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> | 308 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> |
316 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="dt">void</span>·al_draw_filled_triangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | 309 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="dt">void</span>·al_draw_filled_triangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> |
317 | <a·class="sourceLine"·id="cb8-2"·title="2">···<span·class="dt">float</span>·x3,·<span·class="dt">float</span>·y3,·ALLEGRO_COLOR·color)</a> | 310 | <a·class="sourceLine"·id="cb8-2"·title="2">···<span·class="dt">float</span>·x3,·<span·class="dt">float</span>·y3,·ALLEGRO_COLOR·color)</a></code></pre></div> |
318 | <a·class="sourceLine"·id="cb8-3"·title="3"><span·class="dt">void</span>·al_draw_filled_triangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | ||
319 | <a·class="sourceLine"·id="cb8-4"·title="4">···<span·class="dt">float</span>·x3,·<span·class="dt">float</span>·y3,·ALLEGRO_COLOR·color)</a></code></pre></div> | ||
320 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L335">Source·Code</a></p> | 311 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L335">Source·Code</a></p> |
321 | <p>Draws·a·filled·triangle.</p> | 312 | <p>Draws·a·filled·triangle.</p> |
322 | <p><em>Parameters:</em></p> | 313 | <p><em>Parameters:</em></p> |
323 | <ul> | 314 | <ul> |
324 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> | 315 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> |
325 | <li>color·-·Color·of·the·triangle</li> | 316 | <li>color·-·Color·of·the·triangle</li> |
326 | </ul> | 317 | </ul> |
327 | <p>See·also:·<a·href="primitives.html#al_draw_triangle">al_draw_triangle</a></p> | 318 | <p>See·also:·<a·href="primitives.html#al_draw_triangle">al_draw_triangle</a></p> |
328 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> | 319 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> |
329 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">void</span>·al_draw_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | 320 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">void</span>·al_draw_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> |
330 | <a·class="sourceLine"·id="cb9-2"·title="2">···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a> | 321 | <a·class="sourceLine"·id="cb9-2"·title="2">···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a></code></pre></div> |
331 | <a·class="sourceLine"·id="cb9-3"·title="3"><span·class="dt">void</span>·al_draw_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | ||
332 | <a·class="sourceLine"·id="cb9-4"·title="4">···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a></code></pre></div> | ||
333 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L357">Source·Code</a></p> | 322 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L357">Source·Code</a></p> |
334 | <p>Draws·an·outlined·rectangle.</p> | 323 | <p>Draws·an·outlined·rectangle.</p> |
335 | <p><em>Parameters:</em></p> | 324 | <p><em>Parameters:</em></p> |
336 | <ul> | 325 | <ul> |
337 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> | 326 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> |
338 | <li>color·-·Color·of·the·rectangle</li> | 327 | <li>color·-·Color·of·the·rectangle</li> |
339 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> | 328 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> |
340 | </ul> | 329 | </ul> |
341 | <p>See·also:·<a·href="primitives.html#al_draw_filled_rectangle">al_draw_filled_rectangle</a>,·<a·href="primitives.html#al_draw_rounded_rectangle">al_draw_rounded_rectangle</a></p> | 330 | <p>See·also:·<a·href="primitives.html#al_draw_filled_rectangle">al_draw_filled_rectangle</a>,·<a·href="primitives.html#al_draw_rounded_rectangle">al_draw_rounded_rectangle</a></p> |
342 | <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2> | 331 | <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2> |
343 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="dt">void</span>·al_draw_filled_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | 332 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="dt">void</span>·al_draw_filled_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> |
344 | <a·class="sourceLine"·id="cb10-2"·title="2">···ALLEGRO_COLOR·color)</a> | 333 | <a·class="sourceLine"·id="cb10-2"·title="2">···ALLEGRO_COLOR·color)</a></code></pre></div> |
345 | <a·class="sourceLine"·id="cb10-3"·title="3"><span·class="dt">void</span>·al_draw_filled_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | ||
346 | <a·class="sourceLine"·id="cb10-4"·title="4">···ALLEGRO_COLOR·color)</a></code></pre></div> | ||
347 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L402">Source·Code</a></p> | 334 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L402">Source·Code</a></p> |
348 | <p>Draws·a·filled·rectangle.</p> | 335 | <p>Draws·a·filled·rectangle.</p> |
349 | <p><em>Parameters:</em></p> | 336 | <p><em>Parameters:</em></p> |
350 | <ul> | 337 | <ul> |
351 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> | 338 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> |
352 | <li>color·-·Color·of·the·rectangle</li> | 339 | <li>color·-·Color·of·the·rectangle</li> |
353 | </ul> | 340 | </ul> |
354 | <p>See·also:·<a·href="primitives.html#al_draw_rectangle">al_draw_rectangle</a>,·<a·href="primitives.html#al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</a></p> | 341 | <p>See·also:·<a·href="primitives.html#al_draw_rectangle">al_draw_rectangle</a>,·<a·href="primitives.html#al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</a></p> |
355 | <h2·id="al_draw_rounded_rectangle">al_draw_rounded_rectangle</h2> | 342 | <h2·id="al_draw_rounded_rectangle">al_draw_rounded_rectangle</h2> |
356 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="dt">void</span>·al_draw_rounded_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | 343 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1"><span·class="dt">void</span>·al_draw_rounded_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> |
357 | <a·class="sourceLine"·id="cb11-2"·title="2">···<span·class="dt">float</span>·rx,·<span·class="dt">float</span>·ry,·ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a> | 344 | <a·class="sourceLine"·id="cb11-2"·title="2">···<span·class="dt">float</span>·rx,·<span·class="dt">float</span>·ry,·ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a></code></pre></div> |
358 | <a·class="sourceLine"·id="cb11-3"·title="3"><span·class="dt">void</span>·al_draw_rounded_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | ||
359 | <a·class="sourceLine"·id="cb11-4"·title="4">···<span·class="dt">float</span>·rx,·<span·class="dt">float</span>·ry,·ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</a></code></pre></div> | ||
360 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L851">Source·Code</a></p> | 345 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L851">Source·Code</a></p> |
361 | <p>Draws·an·outlined·rounded·rectangle.</p> | 346 | <p>Draws·an·outlined·rounded·rectangle.</p> |
362 | <p><em>Parameters:</em></p> | 347 | <p><em>Parameters:</em></p> |
363 | <ul> | 348 | <ul> |
364 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> | 349 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> |
365 | <li>color·-·Color·of·the·rectangle</li> | 350 | <li>color·-·Color·of·the·rectangle</li> |
366 | <li>rx,·ry·-·The·radii·of·the·round</li> | 351 | <li>rx,·ry·-·The·radii·of·the·round</li> |
367 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> | 352 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> |
368 | </ul> | 353 | </ul> |
369 | <p>See·also:·<a·href="primitives.html#al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</a>,·<a·href="primitives.html#al_draw_rectangle">al_draw_rectangle</a></p> | 354 | <p>See·also:·<a·href="primitives.html#al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</a>,·<a·href="primitives.html#al_draw_rectangle">al_draw_rectangle</a></p> |
370 | <h2·id="al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</h2> | 355 | <h2·id="al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</h2> |
371 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1"><span·class="dt">void</span>·al_draw_filled_rounded_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | 356 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1"><span·class="dt">void</span>·al_draw_filled_rounded_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> |
372 | <a·class="sourceLine"·id="cb12-2"·title="2">···<span·class="dt">float</span>·rx,·<span·class="dt">float</span>·ry,·ALLEGRO_COLOR·color)</a> | 357 | <a·class="sourceLine"·id="cb12-2"·title="2">···<span·class="dt">float</span>·rx,·<span·class="dt">float</span>·ry,·ALLEGRO_COLOR·color)</a></code></pre></div> |
373 | <a·class="sourceLine"·id="cb12-3"·title="3"><span·class="dt">void</span>·al_draw_filled_rounded_rectangle(<span·class="dt">float</span>·x1,·<span·class="dt">float</span>·y1,·<span·class="dt">float</span>·x2,·<span·class="dt">float</span>·y2,</a> | ||
374 | <a·class="sourceLine"·id="cb12-4"·title="4">···<span·class="dt">float</span>·rx,·<span·class="dt">float</span>·ry,·ALLEGRO_COLOR·color)</a></code></pre></div> | ||
375 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L949">Source·Code</a></p> | 358 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L949">Source·Code</a></p> |
376 | <p>Draws·an·filled·rounded·rectangle.</p> | 359 | <p>Draws·an·filled·rounded·rectangle.</p> |
377 | <p><em>Parameters:</em></p> | 360 | <p><em>Parameters:</em></p> |
378 | <ul> | 361 | <ul> |
379 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> | 362 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> |
Max diff block lines reached; 92281/110040 bytes (83.86%) of diff not shown. |
Offset 180, 23 lines modified | Offset 180, 21 lines modified | ||
180 | <li><a·href="#al_set_shader_float_vector">al_set_shader_float_vector</a></li> | 180 | <li><a·href="#al_set_shader_float_vector">al_set_shader_float_vector</a></li> |
181 | <li><a·href="#al_get_default_shader_source">al_get_default_shader_source</a></li> | 181 | <li><a·href="#al_get_default_shader_source">al_get_default_shader_source</a></li> |
182 | </ul> | 182 | </ul> |
183 | </nav> | 183 | </nav> |
184 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 184 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
185 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 185 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
186 | <h1·id="allegro_shader">ALLEGRO_SHADER</h1> | 186 | <h1·id="allegro_shader">ALLEGRO_SHADER</h1> |
187 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SHADER·ALLEGRO_SHADER;</a> | 187 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SHADER·ALLEGRO_SHADER;</a></code></pre></div> |
188 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SHADER·ALLEGRO_SHADER;</a></code></pre></div> | ||
189 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L14">Source·Code</a></p> | 188 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L14">Source·Code</a></p> |
190 | <p>An·<a·href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex·and·a·pixel·shader.·(In·OpenGL·terms,·an·<a·href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·actually·a·<em>program</em>·which·has·one·or·more·<em>shaders</em>·attached.·This·can·be·confusing.)</p> | 189 | <p>An·<a·href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex·and·a·pixel·shader.·(In·OpenGL·terms,·an·<a·href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·actually·a·<em>program</em>·which·has·one·or·more·<em>shaders</em>·attached.·This·can·be·confusing.)</p> |
191 | <p>The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be·provided·either·as·GLSL·or·HLSL,·depending·on·the·value·of·<a·href="shader.html#allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</a>·used·when·creating·it.</p> | 190 | <p>The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be·provided·either·as·GLSL·or·HLSL,·depending·on·the·value·of·<a·href="shader.html#allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</a>·used·when·creating·it.</p> |
192 | <p>Since:·5.1.0</p> | 191 | <p>Since:·5.1.0</p> |
193 | <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1> | 192 | <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1> |
194 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE;</a> | 193 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE;</a></code></pre></div> |
195 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE;</a></code></pre></div> | ||
196 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source·Code</a></p> | 194 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source·Code</a></p> |
197 | <p>Used·with·<a·href="shader.html#al_attach_shader_source">al_attach_shader_source</a>·and·<a·href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a>·to·specify·how·to·interpret·the·attached·source.</p> | 195 | <p>Used·with·<a·href="shader.html#al_attach_shader_source">al_attach_shader_source</a>·and·<a·href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a>·to·specify·how·to·interpret·the·attached·source.</p> |
198 | <dl> | 196 | <dl> |
199 | <dt>ALLEGRO_VERTEX_SHADER</dt> | 197 | <dt>ALLEGRO_VERTEX_SHADER</dt> |
200 | <dd><p>A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program·will·output·exactly·one·vertex·at·a·time.</p> | 198 | <dd><p>A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program·will·output·exactly·one·vertex·at·a·time.</p> |
201 | <p>When·Allegro’s·graphics·are·being·used·then·in·addition·to·all·vertices·of·primitives·from·the·primitives·addon,·each·drawn·bitmap·also·consists·of·four·vertices.</p> | 199 | <p>When·Allegro’s·graphics·are·being·used·then·in·addition·to·all·vertices·of·primitives·from·the·primitives·addon,·each·drawn·bitmap·also·consists·of·four·vertices.</p> |
202 | </dd> | 200 | </dd> |
Offset 204, 16 lines modified | Offset 202, 15 lines modified | ||
204 | <dd><p>A·pixel·shader·is·executed·for·each·pixel·it·is·used·with.·The·program·will·output·exactly·one·pixel·at·a·time·-·either·in·the·backbuffer·or·in·the·current·target·bitmap.</p> | 202 | <dd><p>A·pixel·shader·is·executed·for·each·pixel·it·is·used·with.·The·program·will·output·exactly·one·pixel·at·a·time·-·either·in·the·backbuffer·or·in·the·current·target·bitmap.</p> |
205 | <p>With·Allegro’s·builtin·graphics·this·means·the·shader·is·for·example·called·for·each·destination·pixel·of·the·output·of·an·<a·href="graphics.html#al_draw_bitmap">al_draw_bitmap</a>·call.</p> | 203 | <p>With·Allegro’s·builtin·graphics·this·means·the·shader·is·for·example·called·for·each·destination·pixel·of·the·output·of·an·<a·href="graphics.html#al_draw_bitmap">al_draw_bitmap</a>·call.</p> |
206 | <p>A·more·accurate·term·for·pixel·shader·would·be·fragment·shader·since·one·final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only·a·single·output·but·of·multiple·fragments·(for·example·when·multi-sampling·is·being·used).</p> | 204 | <p>A·more·accurate·term·for·pixel·shader·would·be·fragment·shader·since·one·final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only·a·single·output·but·of·multiple·fragments·(for·example·when·multi-sampling·is·being·used).</p> |
207 | </dd> | 205 | </dd> |
208 | </dl> | 206 | </dl> |
209 | <p>Since:·5.1.0</p> | 207 | <p>Since:·5.1.0</p> |
210 | <h1·id="allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</h1> | 208 | <h1·id="allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</h1> |
211 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM;</a> | 209 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM;</a></code></pre></div> |
212 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM;</a></code></pre></div> | ||
213 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L33">Source·Code</a></p> | 210 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L33">Source·Code</a></p> |
214 | <p>The·underlying·platform·which·the·<a·href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·built·on·top·of,·which·dictates·the·language·used·to·program·the·shader.</p> | 211 | <p>The·underlying·platform·which·the·<a·href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·built·on·top·of,·which·dictates·the·language·used·to·program·the·shader.</p> |
215 | <ul> | 212 | <ul> |
216 | <li>ALLEGRO_SHADER_AUTO</li> | 213 | <li>ALLEGRO_SHADER_AUTO</li> |
217 | <li>ALLEGRO_SHADER_GLSL·-·OpenGL·Shading·Language</li> | 214 | <li>ALLEGRO_SHADER_GLSL·-·OpenGL·Shading·Language</li> |
218 | <li>ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D)</li> | 215 | <li>ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D)</li> |
219 | </ul> | 216 | </ul> |
Offset 406, 12 lines modified | Offset 403, 12 lines modified | ||
406 | <a·class="sourceLine"·id="cb21-2"·title="2">···ALLEGRO_SHADER_TYPE·type)</a></code></pre></div> | 403 | <a·class="sourceLine"·id="cb21-2"·title="2">···ALLEGRO_SHADER_TYPE·type)</a></code></pre></div> |
407 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L381">Source·Code</a></p> | 404 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L381">Source·Code</a></p> |
408 | <p>Returns·a·string·containing·the·source·code·to·Allegro’s·default·vertex·or·pixel·shader·appropriate·for·the·passed·platform.·The·ALLEGRO_SHADER_AUTO·value·means·GLSL·is·used·if·OpenGL·is·being·used·otherwise·HLSL.·ALLEGRO_SHADER_AUTO·requires·that·there·is·a·current·display·set·on·the·calling·thread.·This·function·can·return·NULL·if·Allegro·was·built·without·support·for·shaders·of·the·selected·platform.</p> | 405 | <p>Returns·a·string·containing·the·source·code·to·Allegro’s·default·vertex·or·pixel·shader·appropriate·for·the·passed·platform.·The·ALLEGRO_SHADER_AUTO·value·means·GLSL·is·used·if·OpenGL·is·being·used·otherwise·HLSL.·ALLEGRO_SHADER_AUTO·requires·that·there·is·a·current·display·set·on·the·calling·thread.·This·function·can·return·NULL·if·Allegro·was·built·without·support·for·shaders·of·the·selected·platform.</p> |
409 | <p>Since:·5.1.6</p> | 406 | <p>Since:·5.1.6</p> |
410 | <p>See·also:·<a·href="shader.html#al_attach_shader_source">al_attach_shader_source</a></p> | 407 | <p>See·also:·<a·href="shader.html#al_attach_shader_source">al_attach_shader_source</a></p> |
411 | <p·class="timestamp"> | 408 | <p·class="timestamp"> |
412 | Allegro·version·5.2.4 | 409 | Allegro·version·5.2.4 |
413 | ·-·Last·updated:·202 | 410 | ·-·Last·updated:·2020-04-29·17:01:46·UTC |
414 | </p> | 411 | </p> |
415 | </div> | 412 | </div> |
416 | </body> | 413 | </body> |
417 | </html> | 414 | </html> |
Offset 167, 16 lines modified | Offset 167, 15 lines modified | ||
167 | <li><a·href="#al_get_errno">al_get_errno</a></li> | 167 | <li><a·href="#al_get_errno">al_get_errno</a></li> |
168 | <li><a·href="#al_set_errno">al_set_errno</a></li> | 168 | <li><a·href="#al_set_errno">al_set_errno</a></li> |
169 | </ul> | 169 | </ul> |
170 | </nav> | 170 | </nav> |
171 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 171 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
172 | <pre><code>·#include·<allegro5/allegro.h></code></pre> | 172 | <pre><code>·#include·<allegro5/allegro.h></code></pre> |
173 | <h1·id="allegro_state">ALLEGRO_STATE</h1> | 173 | <h1·id="allegro_state">ALLEGRO_STATE</h1> |
174 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_STATE·ALLEGRO_STATE;</a> | 174 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_STATE·ALLEGRO_STATE;</a></code></pre></div> |
175 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_STATE·ALLEGRO_STATE;</a></code></pre></div> | ||
176 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L49">Source·Code</a></p> | 175 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L49">Source·Code</a></p> |
177 | <p>Opaque·type·which·is·passed·to·<a·href="state.html#al_store_state">al_store_state</a>/<a·href="state.html#al_restore_state">al_restore_state</a>.</p> | 176 | <p>Opaque·type·which·is·passed·to·<a·href="state.html#al_store_state">al_store_state</a>/<a·href="state.html#al_restore_state">al_restore_state</a>.</p> |
178 | <p>The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this:</p> | 177 | <p>The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this:</p> |
179 | <pre><code>··global | 178 | <pre><code>··global |
180 | ······active·system·driver | 179 | ······active·system·driver |
181 | ··········current·config | 180 | ··········current·config |
182 | ··per·thread | 181 | ··per·thread |
Offset 191, 16 lines modified | Offset 190, 15 lines modified | ||
191 | ··········current·transformation | 190 | ··········current·transformation |
192 | ··········current·projection·transformation | 191 | ··········current·projection·transformation |
193 | ··········current·clipping·rectangle | 192 | ··········current·clipping·rectangle |
194 | ··········bitmap·locking | 193 | ··········bitmap·locking |
195 | ··········current·shader</code></pre> | 194 | ··········current·shader</code></pre> |
196 | <p>In·general,·the·only·real·global·state·is·the·active·system·driver.·All·other·global·state·is·per-thread,·so·if·your·application·has·multiple·separate·threads·they·never·will·interfere·with·each·other.·(Except·if·there·are·objects·accessed·by·multiple·threads·of·course.·Usually·you·want·to·minimize·that·though·and·for·the·remaining·cases·use·synchronization·primitives·described·in·the·threads·section·or·events·described·in·the·events·section·to·control·inter-thread·communication.)</p> | 195 | <p>In·general,·the·only·real·global·state·is·the·active·system·driver.·All·other·global·state·is·per-thread,·so·if·your·application·has·multiple·separate·threads·they·never·will·interfere·with·each·other.·(Except·if·there·are·objects·accessed·by·multiple·threads·of·course.·Usually·you·want·to·minimize·that·though·and·for·the·remaining·cases·use·synchronization·primitives·described·in·the·threads·section·or·events·described·in·the·events·section·to·control·inter-thread·communication.)</p> |
197 | <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1> | 196 | <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1> |
198 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</a> | 197 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</a></code></pre></div> |
199 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</a></code></pre></div> | ||
200 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source·Code</a></p> | 198 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source·Code</a></p> |
201 | <p>Flags·which·can·be·passed·to·<a·href="state.html#al_store_state">al_store_state</a>/<a·href="state.html#al_restore_state">al_restore_state</a>·as·bit·combinations.·See·<a·href="state.html#al_store_state">al_store_state</a>·for·the·list·of·flags.</p> | 199 | <p>Flags·which·can·be·passed·to·<a·href="state.html#al_store_state">al_store_state</a>/<a·href="state.html#al_restore_state">al_restore_state</a>·as·bit·combinations.·See·<a·href="state.html#al_store_state">al_store_state</a>·for·the·list·of·flags.</p> |
202 | <h1·id="al_restore_state">al_restore_state</h1> | 200 | <h1·id="al_restore_state">al_restore_state</h1> |
203 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">void</span>·al_restore_state(ALLEGRO_STATE·<span·class="dt">const</span>·*state)</a></code></pre></div> | 201 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">void</span>·al_restore_state(ALLEGRO_STATE·<span·class="dt">const</span>·*state)</a></code></pre></div> |
204 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L764">Source·Code</a></p> | 202 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L764">Source·Code</a></p> |
205 | <p>Restores·part·of·the·state·of·the·current·thread·from·the·given·<a·href="state.html#allegro_state">ALLEGRO_STATE</a>·object.</p> | 203 | <p>Restores·part·of·the·state·of·the·current·thread·from·the·given·<a·href="state.html#allegro_state">ALLEGRO_STATE</a>·object.</p> |
206 | <p>See·also:·<a·href="state.html#al_store_state">al_store_state</a>,·<a·href="state.html#allegro_state_flags">ALLEGRO_STATE_FLAGS</a></p> | 204 | <p>See·also:·<a·href="state.html#al_store_state">al_store_state</a>,·<a·href="state.html#allegro_state_flags">ALLEGRO_STATE_FLAGS</a></p> |
Offset 229, 12 lines modified | Offset 227, 12 lines modified | ||
229 | <h1·id="al_set_errno">al_set_errno</h1> | 227 | <h1·id="al_set_errno">al_set_errno</h1> |
230 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="dt">void</span>·al_set_errno(<span·class="dt">int</span>·errnum)</a> | 228 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="dt">void</span>·al_set_errno(<span·class="dt">int</span>·errnum)</a> |
231 | <a·class="sourceLine"·id="cb8-2"·title="2">SETTER(allegro_errno,·errnum)</a></code></pre></div> | 229 | <a·class="sourceLine"·id="cb8-2"·title="2">SETTER(allegro_errno,·errnum)</a></code></pre></div> |
232 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L933">Source·Code</a></p> | 230 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L933">Source·Code</a></p> |
233 | <p>Set·the·error·number·for·the·calling·thread.</p> | 231 | <p>Set·the·error·number·for·the·calling·thread.</p> |
234 | <p·class="timestamp"> | 232 | <p·class="timestamp"> |
235 | Allegro·version·5.2.4 | 233 | Allegro·version·5.2.4 |
236 | ·-·Last·updated:·202 | 234 | ·-·Last·updated:·2020-04-29·17:01:41·UTC |
237 | </p> | 235 | </p> |
238 | </div> | 236 | </div> |
239 | </body> | 237 | </body> |
240 | </html> | 238 | </html> |
Offset 187, 16 lines modified | Offset 187, 15 lines modified | ||
187 | <p>The·version·field·should·always·be·set·to·ALLEGRO_VERSION_INT.</p> | 187 | <p>The·version·field·should·always·be·set·to·ALLEGRO_VERSION_INT.</p> |
188 | <p>If·atexit_ptr·is·non-NULL,·and·if·hasn’t·been·done·already,·<a·href="system.html#al_uninstall_system">al_uninstall_system</a>·will·be·registered·as·an·atexit·function.</p> | 188 | <p>If·atexit_ptr·is·non-NULL,·and·if·hasn’t·been·done·already,·<a·href="system.html#al_uninstall_system">al_uninstall_system</a>·will·be·registered·as·an·atexit·function.</p> |
189 | <p>Returns·true·if·Allegro·was·successfully·initialized·by·this·function·call·(or·already·was·initialized·previously),·false·if·Allegro·cannot·be·used.·A·common·reason·for·this·function·to·fail·is·when·the·version·of·Allegro·you·compiled·your·game·against·is·not·compatible·with·the·version·of·the·shared·libraries·that·were·found·on·the·system.</p> | 189 | <p>Returns·true·if·Allegro·was·successfully·initialized·by·this·function·call·(or·already·was·initialized·previously),·false·if·Allegro·cannot·be·used.·A·common·reason·for·this·function·to·fail·is·when·the·version·of·Allegro·you·compiled·your·game·against·is·not·compatible·with·the·version·of·the·shared·libraries·that·were·found·on·the·system.</p> |
190 | <p>The·version·compatibility·check·works·as·follows.·Let·A·=·xa.ya.za.*·be·the·version·of·Allegro·you·compiled·with,·and·B·=·xb.yb.zb.*·be·the·version·of·Allegro·found·in·the·system·shared·library.</p> | 190 | <p>The·version·compatibility·check·works·as·follows.·Let·A·=·xa.ya.za.*·be·the·version·of·Allegro·you·compiled·with,·and·B·=·xb.yb.zb.*·be·the·version·of·Allegro·found·in·the·system·shared·library.</p> |
191 | <p>If·you·defined·<code>ALLEGRO_UNSTABLE</code>·before·including·Allegro·headers,·then·version·A·is·compatible·with·B·only·if·xa.ya.za·=·xb.yb.zb.·Otherwise,·A·is·compatible·with·B·only·if·xa.ya·=·xb.yb.</p> | 191 | <p>If·you·defined·<code>ALLEGRO_UNSTABLE</code>·before·including·Allegro·headers,·then·version·A·is·compatible·with·B·only·if·xa.ya.za·=·xb.yb.zb.·Otherwise,·A·is·compatible·with·B·only·if·xa.ya·=·xb.yb.</p> |
192 | <p>See·also:·<a·href="system.html#al_init">al_init</a></p> | 192 | <p>See·also:·<a·href="system.html#al_init">al_init</a></p> |
193 | <h1·id="al_init">al_init</h1> | 193 | <h1·id="al_init">al_init</h1> |
194 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="pp">#define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit))</span></a> | 194 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="pp">#define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit))</span></a></code></pre></div> |
195 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="pp">#define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit))</span></a></code></pre></div> | ||
196 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L15">Source·Code</a></p> | 195 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L15">Source·Code</a></p> |
197 | <p>Like·<a·href="system.html#al_install_system">al_install_system</a>,·but·automatically·passes·in·the·version·and·uses·the·atexit·function·visible·in·the·current·binary.</p> | 196 | <p>Like·<a·href="system.html#al_install_system">al_install_system</a>,·but·automatically·passes·in·the·version·and·uses·the·atexit·function·visible·in·the·current·binary.</p> |
198 | <blockquote> | 197 | <blockquote> |
199 | <p>Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final·game·binary.·In·particular,·do·not·call·it·inside·a·shared·library·unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to·call·al_install_system·either·with·a·<code>NULL</code>·atexit_ptr,·or·with·a·pointer·to·atexit·provided·by·the·user·of·this·shared·library.</p> | 198 | <p>Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final·game·binary.·In·particular,·do·not·call·it·inside·a·shared·library·unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to·call·al_install_system·either·with·a·<code>NULL</code>·atexit_ptr,·or·with·a·pointer·to·atexit·provided·by·the·user·of·this·shared·library.</p> |
200 | </blockquote> | 199 | </blockquote> |
201 | <p>See·also:·<a·href="system.html#al_install_system">al_install_system</a></p> | 200 | <p>See·also:·<a·href="system.html#al_install_system">al_install_system</a></p> |
202 | <h1·id="al_uninstall_system">al_uninstall_system</h1> | 201 | <h1·id="al_uninstall_system">al_uninstall_system</h1> |
Offset 557, 12 lines modified | Offset 556, 12 lines modified | ||
557 | <p>Returns·the·size·in·MB·of·the·random·access·memory·that·the·system·Allegro·is·running·on·has·and·which·could·be·detected,·or·a·negative·number·if·detection·failed.·Even·if·a·positive·number·is·returned,·it·might·be·that·it·is·not·correct.·For·example,·Allegro·running·on·a·virtual·machine·will·return·the·amount·of·RAM·of·the·VM,·and·not·that·of·the·underlying·system.</p> | 556 | <p>Returns·the·size·in·MB·of·the·random·access·memory·that·the·system·Allegro·is·running·on·has·and·which·could·be·detected,·or·a·negative·number·if·detection·failed.·Even·if·a·positive·number·is·returned,·it·might·be·that·it·is·not·correct.·For·example,·Allegro·running·on·a·virtual·machine·will·return·the·amount·of·RAM·of·the·VM,·and·not·that·of·the·underlying·system.</p> |
558 | <p>Furthermore·even·if·the·number·is·correct,·this·only·gives·you·information·about·the·total·physical·memory·of·the·system·Allegro·runs·on.·The·memory·available·to·your·program·may·be·less·or·more·than·what·this·function·returns·due·to·circumstances·such·as·virtual·memory,·and·other·programs·that·are·currently·running.</p> | 557 | <p>Furthermore·even·if·the·number·is·correct,·this·only·gives·you·information·about·the·total·physical·memory·of·the·system·Allegro·runs·on.·The·memory·available·to·your·program·may·be·less·or·more·than·what·this·function·returns·due·to·circumstances·such·as·virtual·memory,·and·other·programs·that·are·currently·running.</p> |
559 | <p>Therefore,·it’s·best·to·use·this·for·advisory·purposes·only.·It·is·certainly·a·bad·idea·to·make·your·program·exclusive·to·systems·for·which·this·function·returns·a·certain·“desirable”·number.</p> | 558 | <p>Therefore,·it’s·best·to·use·this·for·advisory·purposes·only.·It·is·certainly·a·bad·idea·to·make·your·program·exclusive·to·systems·for·which·this·function·returns·a·certain·“desirable”·number.</p> |
560 | <p>This·function·may·be·called·prior·to·<a·href="system.html#al_install_system">al_install_system</a>·or·<a·href="system.html#al_init">al_init</a>.</p> | 559 | <p>This·function·may·be·called·prior·to·<a·href="system.html#al_install_system">al_install_system</a>·or·<a·href="system.html#al_init">al_init</a>.</p> |
561 | <p>Since:·5.1.12</p> | 560 | <p>Since:·5.1.12</p> |
562 | <p·class="timestamp"> | 561 | <p·class="timestamp"> |
563 | Allegro·version·5.2.4 | 562 | Allegro·version·5.2.4 |
564 | ·-·Last·updated:·202 | 563 | ·-·Last·updated:·2020-04-29·17:01:41·UTC |
565 | </p> | 564 | </p> |
566 | </div> | 565 | </div> |
567 | </body> | 566 | </body> |
568 | </html> | 567 | </html> |
Offset 183, 26 lines modified | Offset 183, 23 lines modified | ||
183 | <li><a·href="#al_signal_cond">al_signal_cond</a></li> | 183 | <li><a·href="#al_signal_cond">al_signal_cond</a></li> |
184 | </ul> | 184 | </ul> |
185 | </nav> | 185 | </nav> |
186 | <p>Allegro·includes·a·simple·cross-platform·threading·interface.·It·is·a·thin·layer·on·top·of·two·threading·APIs:·Windows·threads·and·POSIX·Threads·(pthreads).·Enforcing·a·consistent·semantics·on·all·platforms·would·be·difficult·at·best,·hence·the·behaviour·of·the·following·functions·will·differ·subtly·on·different·platforms·(more·so·than·usual).·Your·best·bet·is·to·be·aware·of·this·and·code·to·the·intersection·of·the·semantics·and·avoid·edge·cases.</p> | 186 | <p>Allegro·includes·a·simple·cross-platform·threading·interface.·It·is·a·thin·layer·on·top·of·two·threading·APIs:·Windows·threads·and·POSIX·Threads·(pthreads).·Enforcing·a·consistent·semantics·on·all·platforms·would·be·difficult·at·best,·hence·the·behaviour·of·the·following·functions·will·differ·subtly·on·different·platforms·(more·so·than·usual).·Your·best·bet·is·to·be·aware·of·this·and·code·to·the·intersection·of·the·semantics·and·avoid·edge·cases.</p> |
187 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 187 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
188 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 188 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
189 | <h1·id="allegro_thread">ALLEGRO_THREAD</h1> | 189 | <h1·id="allegro_thread">ALLEGRO_THREAD</h1> |
190 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD;</a> | 190 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD;</a></code></pre></div> |
191 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD;</a></code></pre></div> | ||
192 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source·Code</a></p> | 191 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source·Code</a></p> |
193 | <p>An·opaque·structure·representing·a·thread.</p> | 192 | <p>An·opaque·structure·representing·a·thread.</p> |
194 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> | 193 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> |
195 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX;</a> | 194 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX;</a></code></pre></div> |
196 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX;</a></code></pre></div> | ||
197 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source·Code</a></p> | 195 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source·Code</a></p> |
198 | <p>An·opaque·structure·representing·a·mutex.</p> | 196 | <p>An·opaque·structure·representing·a·mutex.</p> |
199 | <h1·id="allegro_cond">ALLEGRO_COND</h1> | 197 | <h1·id="allegro_cond">ALLEGRO_COND</h1> |
200 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND;</a> | 198 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND;</a></code></pre></div> |
201 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND;</a></code></pre></div> | ||
202 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source·Code</a></p> | 199 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source·Code</a></p> |
203 | <p>An·opaque·structure·representing·a·condition·variable.</p> | 200 | <p>An·opaque·structure·representing·a·condition·variable.</p> |
204 | <h1·id="al_create_thread">al_create_thread</h1> | 201 | <h1·id="al_create_thread">al_create_thread</h1> |
205 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1">ALLEGRO_THREAD·*al_create_thread(</a> | 202 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1">ALLEGRO_THREAD·*al_create_thread(</a> |
206 | <a·class="sourceLine"·id="cb5-2"·title="2">···<span·class="dt">void</span>·*(*proc)(ALLEGRO_THREAD·*thread,·<span·class="dt">void</span>·*arg),·<span·class="dt">void</span>·*arg)</a></code></pre></div> | 203 | <a·class="sourceLine"·id="cb5-2"·title="2">···<span·class="dt">void</span>·*(*proc)(ALLEGRO_THREAD·*thread,·<span·class="dt">void</span>·*arg),·<span·class="dt">void</span>·*arg)</a></code></pre></div> |
207 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L115">Source·Code</a></p> | 204 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L115">Source·Code</a></p> |
208 | <p>Spawn·a·new·thread·which·begins·executing·<code>proc</code>.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·<code>arg</code>.</p> | 205 | <p>Spawn·a·new·thread·which·begins·executing·<code>proc</code>.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·<code>arg</code>.</p> |
Offset 316, 12 lines modified | Offset 313, 12 lines modified | ||
316 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb23-1"·title="1"><span·class="dt">void</span>·al_signal_cond(ALLEGRO_COND·*cond)</a></code></pre></div> | 313 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb23-1"·title="1"><span·class="dt">void</span>·al_signal_cond(ALLEGRO_COND·*cond)</a></code></pre></div> |
317 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L395">Source·Code</a></p> | 314 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L395">Source·Code</a></p> |
318 | <p>Unblock·at·least·one·thread·waiting·on·a·condition·variable.</p> | 315 | <p>Unblock·at·least·one·thread·waiting·on·a·condition·variable.</p> |
319 | <p>Generally·you·should·use·<a·href="threads.html#al_broadcast_cond">al_broadcast_cond</a>·but·<a·href="threads.html#al_signal_cond">al_signal_cond</a>·may·be·more·efficient·when·it’s·applicable.</p> | 316 | <p>Generally·you·should·use·<a·href="threads.html#al_broadcast_cond">al_broadcast_cond</a>·but·<a·href="threads.html#al_signal_cond">al_signal_cond</a>·may·be·more·efficient·when·it’s·applicable.</p> |
320 | <p>See·also:·<a·href="threads.html#al_broadcast_cond">al_broadcast_cond</a>.</p> | 317 | <p>See·also:·<a·href="threads.html#al_broadcast_cond">al_broadcast_cond</a>.</p> |
321 | <p·class="timestamp"> | 318 | <p·class="timestamp"> |
322 | Allegro·version·5.2.4 | 319 | Allegro·version·5.2.4 |
323 | ·-·Last·updated:·202 | 320 | ·-·Last·updated:·2020-04-29·17:01:42·UTC |
324 | </p> | 321 | </p> |
325 | </div> | 322 | </div> |
326 | </body> | 323 | </body> |
327 | </html> | 324 | </html> |
Offset 187, 12 lines modified | Offset 187, 12 lines modified | ||
187 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">void</span>·al_rest(<span·class="dt">double</span>·seconds)</a></code></pre></div> | 187 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">void</span>·al_rest(<span·class="dt">double</span>·seconds)</a></code></pre></div> |
188 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/unix/utime.c#L63">Source·Code</a></p> | 188 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/unix/utime.c#L63">Source·Code</a></p> |
189 | <p>Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the·current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the·accuracy·can·be·in·the·order·of·10ms.·That·is,·even</p> | 189 | <p>Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the·current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the·accuracy·can·be·in·the·order·of·10ms.·That·is,·even</p> |
190 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1">al_rest(<span·class="fl">0.000001</span>)</a></code></pre></div> | 190 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1">al_rest(<span·class="fl">0.000001</span>)</a></code></pre></div> |
191 | <p>might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for·easier·ways·to·time·your·program·without·using·up·all·CPU.</p> | 191 | <p>might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for·easier·ways·to·time·your·program·without·using·up·all·CPU.</p> |
192 | <p·class="timestamp"> | 192 | <p·class="timestamp"> |
193 | Allegro·version·5.2.4 | 193 | Allegro·version·5.2.4 |
194 | ·-·Last·updated:·202 | 194 | ·-·Last·updated:·2020-04-29·17:01:42·UTC |
195 | </p> | 195 | </p> |
196 | </div> | 196 | </div> |
197 | </body> | 197 | </body> |
198 | </html> | 198 | </html> |
Offset 178, 36 lines modified | Offset 178, 31 lines modified | ||
178 | <li><a·href="#al_set_timer_speed">al_set_timer_speed</a></li> | 178 | <li><a·href="#al_set_timer_speed">al_set_timer_speed</a></li> |
179 | <li><a·href="#al_get_timer_event_source">al_get_timer_event_source</a></li> | 179 | <li><a·href="#al_get_timer_event_source">al_get_timer_event_source</a></li> |
180 | </ul> | 180 | </ul> |
181 | </nav> | 181 | </nav> |
182 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 182 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
183 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 183 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
184 | <h1·id="allegro_timer">ALLEGRO_TIMER</h1> | 184 | <h1·id="allegro_timer">ALLEGRO_TIMER</h1> |
185 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER;</a> | 185 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER;</a></code></pre></div> |
186 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER;</a></code></pre></div> | ||
187 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source·Code</a></p> | 186 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source·Code</a></p> |
188 | <p>This·is·an·abstract·data·type·representing·a·timer·object.</p> | 187 | <p>This·is·an·abstract·data·type·representing·a·timer·object.</p> |
189 | <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1> | 188 | <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1> |
190 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="pp">#define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0)</span></a> | 189 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="pp">#define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0)</span></a></code></pre></div> |
191 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="pp">#define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0)</span></a></code></pre></div> | ||
192 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source·Code</a></p> | 190 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source·Code</a></p> |
193 | <p>Convert·microseconds·to·seconds.</p> | 191 | <p>Convert·microseconds·to·seconds.</p> |
194 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> | 192 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> |
195 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="pp">#define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0)</span></a> | 193 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="pp">#define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0)</span></a></code></pre></div> |
196 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="pp">#define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0)</span></a></code></pre></div> | ||
197 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L33">Source·Code</a></p> | 194 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L33">Source·Code</a></p> |
198 | <p>Convert·milliseconds·to·seconds.</p> | 195 | <p>Convert·milliseconds·to·seconds.</p> |
199 | <h1·id="allegro_bps_to_secs">ALLEGRO_BPS_TO_SECS</h1> | 196 | <h1·id="allegro_bps_to_secs">ALLEGRO_BPS_TO_SECS</h1> |
200 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="pp">#define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x))</span></a> | 197 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="pp">#define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x))</span></a></code></pre></div> |
201 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="pp">#define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x))</span></a></code></pre></div> | ||
202 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L37">Source·Code</a></p> | 198 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L37">Source·Code</a></p> |
203 | <p>Convert·beats·per·second·to·seconds.</p> | 199 | <p>Convert·beats·per·second·to·seconds.</p> |
204 | <h1·id="allegro_bpm_to_secs">ALLEGRO_BPM_TO_SECS</h1> | 200 | <h1·id="allegro_bpm_to_secs">ALLEGRO_BPM_TO_SECS</h1> |
205 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="pp">#define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x))</span></a> | 201 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="pp">#define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x))</span></a></code></pre></div> |
206 | <a·class="sourceLine"·id="cb6-2"·title="2"><span·class="pp">#define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x))</span></a></code></pre></div> | ||
207 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L41">Source·Code</a></p> | 202 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L41">Source·Code</a></p> |
208 | <p>Convert·beats·per·minute·to·seconds.</p> | 203 | <p>Convert·beats·per·minute·to·seconds.</p> |
209 | <h1·id="al_create_timer">al_create_timer</h1> | 204 | <h1·id="al_create_timer">al_create_timer</h1> |
210 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1">ALLEGRO_TIMER·*al_create_timer(<span·class="dt">double</span>·speed_secs)</a></code></pre></div> | 205 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1">ALLEGRO_TIMER·*al_create_timer(<span·class="dt">double</span>·speed_secs)</a></code></pre></div> |
211 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L244">Source·Code</a></p> | 206 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L244">Source·Code</a></p> |
212 | <p>Allocates·and·initializes·a·timer.·If·successful,·a·pointer·to·a·new·timer·object·is·returned,·otherwise·NULL·is·returned.·<em>speed_secs</em>·is·in·seconds·per·“tick”,·and·must·be·positive.·The·new·timer·is·initially·stopped.</p> | 207 | <p>Allocates·and·initializes·a·timer.·If·successful,·a·pointer·to·a·new·timer·object·is·returned,·otherwise·NULL·is·returned.·<em>speed_secs</em>·is·in·seconds·per·“tick”,·and·must·be·positive.·The·new·timer·is·initially·stopped.</p> |
213 | <p>Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but·with·some·drivers·might·only·be·milliseconds.</p> | 208 | <p>Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but·with·some·drivers·might·only·be·milliseconds.</p> |
Offset 267, 12 lines modified | Offset 262, 12 lines modified | ||
267 | <p>See·also:·<a·href="timer.html#al_get_timer_speed">al_get_timer_speed</a></p> | 262 | <p>See·also:·<a·href="timer.html#al_get_timer_speed">al_get_timer_speed</a></p> |
268 | <h1·id="al_get_timer_event_source">al_get_timer_event_source</h1> | 263 | <h1·id="al_get_timer_event_source">al_get_timer_event_source</h1> |
269 | <div·class="sourceCode"·id="cb19"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb19-1"·title="1">ALLEGRO_EVENT_SOURCE·*al_get_timer_event_source(ALLEGRO_TIMER·*timer)</a></code></pre></div> | 264 | <div·class="sourceCode"·id="cb19"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb19-1"·title="1">ALLEGRO_EVENT_SOURCE·*al_get_timer_event_source(ALLEGRO_TIMER·*timer)</a></code></pre></div> |
270 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L436">Source·Code</a></p> | 265 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L436">Source·Code</a></p> |
271 | <p>Retrieve·the·associated·event·source.·Timers·will·generate·events·of·type·<a·href="events.html#allegro_event_timer">ALLEGRO_EVENT_TIMER</a>.</p> | 266 | <p>Retrieve·the·associated·event·source.·Timers·will·generate·events·of·type·<a·href="events.html#allegro_event_timer">ALLEGRO_EVENT_TIMER</a>.</p> |
272 | <p·class="timestamp"> | 267 | <p·class="timestamp"> |
273 | Allegro·version·5.2.4 | 268 | Allegro·version·5.2.4 |
274 | ·-·Last·updated:·202 | 269 | ·-·Last·updated:·2020-04-29·17:01:42·UTC |
275 | </p> | 270 | </p> |
276 | </div> | 271 | </div> |
277 | </body> | 272 | </body> |
278 | </html> | 273 | </html> |
Offset 174, 54 lines modified | Offset 174, 49 lines modified | ||
174 | <li><a·href="#al_get_touch_input_event_source">al_get_touch_input_event_source</a></li> | 174 | <li><a·href="#al_get_touch_input_event_source">al_get_touch_input_event_source</a></li> |
175 | <li><a·href="#al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</a></li> | 175 | <li><a·href="#al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</a></li> |
176 | </ul> | 176 | </ul> |
177 | </nav> | 177 | </nav> |
178 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 178 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
179 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> | 179 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></a></code></pre></div> |
180 | <h1·id="allegro_touch_input">ALLEGRO_TOUCH_INPUT</h1> | 180 | <h1·id="allegro_touch_input">ALLEGRO_TOUCH_INPUT</h1> |
181 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT;</a> | 181 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT;</a></code></pre></div> |
182 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT;</a></code></pre></div> | ||
183 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L34">Source·Code</a></p> | 182 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L34">Source·Code</a></p> |
184 | <p>An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad.</p> | 183 | <p>An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad.</p> |
185 | <p>Since:·5.1.0</p> | 184 | <p>Since:·5.1.0</p> |
186 | <h1·id="allegro_touch_input_max_touch_count">ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT</h1> | 185 | <h1·id="allegro_touch_input_max_touch_count">ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT</h1> |
187 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="pp">#define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16</span></a> | 186 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="pp">#define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16</span></a></code></pre></div> |
188 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="pp">#define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16</span></a></code></pre></div> | ||
189 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L29">Source·Code</a></p> | 187 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L29">Source·Code</a></p> |
190 | <p>The·maximum·amount·of·simultaneous·touches·that·can·be·detected.</p> | 188 | <p>The·maximum·amount·of·simultaneous·touches·that·can·be·detected.</p> |
191 | <p>Since:·5.1.0</p> | 189 | <p>Since:·5.1.0</p> |
192 | <h1·id="allegro_touch_state">ALLEGRO_TOUCH_STATE</h1> | 190 | <h1·id="allegro_touch_state">ALLEGRO_TOUCH_STATE</h1> |
193 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE;</a> | 191 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE;</a></code></pre></div> |
194 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE;</a></code></pre></div> | ||
195 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L44">Source·Code</a></p> | 192 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L44">Source·Code</a></p> |
196 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a·particular·instant.</p> | 193 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a·particular·instant.</p> |
197 | <p>Public·fields·(read·only):</p> | 194 | <p>Public·fields·(read·only):</p> |
198 | <ul> | 195 | <ul> |
199 | <li>id·-·identifier·of·the·touch.·If·the·touch·is·valid,·this·is·positive.</li> | 196 | <li>id·-·identifier·of·the·touch.·If·the·touch·is·valid,·this·is·positive.</li> |
200 | <li>x·-·touch·x·position</li> | 197 | <li>x·-·touch·x·position</li> |
201 | <li>y·-·touch·y·position</li> | 198 | <li>y·-·touch·y·position</li> |
202 | <li>dx·-·touch·relative·x·position</li> | 199 | <li>dx·-·touch·relative·x·position</li> |
203 | <li>dy·-·touch·relative·y·position</li> | 200 | <li>dy·-·touch·relative·y·position</li> |
204 | <li>primary·-·TRUE·if·this·touch·is·the·primary·one·(usually·the·first·one).</li> | 201 | <li>primary·-·TRUE·if·this·touch·is·the·primary·one·(usually·the·first·one).</li> |
205 | <li>display·-·The·<a·href="display.html#allegro_display">ALLEGRO_DISPLAY</a>·that·was·touched.</li> | 202 | <li>display·-·The·<a·href="display.html#allegro_display">ALLEGRO_DISPLAY</a>·that·was·touched.</li> |
206 | </ul> | 203 | </ul> |
207 | <p>Since:·5.1.0</p> | 204 | <p>Since:·5.1.0</p> |
208 | <h1·id="allegro_touch_input_state">ALLEGRO_TOUCH_INPUT_STATE</h1> | 205 | <h1·id="allegro_touch_input_state">ALLEGRO_TOUCH_INPUT_STATE</h1> |
209 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE;</a> | 206 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE;</a></code></pre></div> |
210 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE;</a></code></pre></div> | ||
211 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L39">Source·Code</a></p> | 207 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L39">Source·Code</a></p> |
212 | <p>This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at·a·particular·instant.</p> | 208 | <p>This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at·a·particular·instant.</p> |
213 | <p>Public·fields·(read·only):</p> | 209 | <p>Public·fields·(read·only):</p> |
214 | <ul> | 210 | <ul> |
215 | <li>touches·-·an·array·of·<a·href="touch.html#allegro_touch_state">ALLEGRO_TOUCH_STATE</a></li> | 211 | <li>touches·-·an·array·of·<a·href="touch.html#allegro_touch_state">ALLEGRO_TOUCH_STATE</a></li> |
216 | </ul> | 212 | </ul> |
217 | <p>Since:·5.1.0</p> | 213 | <p>Since:·5.1.0</p> |
218 | <h1·id="allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</h1> | 214 | <h1·id="allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</h1> |
219 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</a> | 215 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</a></code></pre></div> |
220 | <a·class="sourceLine"·id="cb6-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</a></code></pre></div> | ||
221 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L71">Source·Code</a></p> | 216 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L71">Source·Code</a></p> |
222 | <p>Type·of·mouse·emulation·to·apply.</p> | 217 | <p>Type·of·mouse·emulation·to·apply.</p> |
223 | <dl> | 218 | <dl> |
224 | <dt>ALLEGRO_MOUSE_EMULATION_NONE</dt> | 219 | <dt>ALLEGRO_MOUSE_EMULATION_NONE</dt> |
225 | <dd>Disables·mouse·emulation. | 220 | <dd>Disables·mouse·emulation. |
226 | </dd> | 221 | </dd> |
227 | <dt>ALLEGRO_MOUSE_EMULATION_TRANSPARENT</dt> | 222 | <dt>ALLEGRO_MOUSE_EMULATION_TRANSPARENT</dt> |
Offset 295, 12 lines modified | Offset 290, 12 lines modified | ||
295 | <p>See·also:·<a·href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a·href="events.html#al_register_event_source">al_register_event_source</a></p> | 290 | <p>See·also:·<a·href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a·href="events.html#al_register_event_source">al_register_event_source</a></p> |
296 | <p>Since:·5.1.0</p> | 291 | <p>Since:·5.1.0</p> |
297 | <blockquote> | 292 | <blockquote> |
298 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Seems·of·limited·value,·as·touch·input·tends·to·have·different·semantics·compared·to·mouse·input.</p> | 293 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·Seems·of·limited·value,·as·touch·input·tends·to·have·different·semantics·compared·to·mouse·input.</p> |
299 | </blockquote> | 294 | </blockquote> |
300 | <p·class="timestamp"> | 295 | <p·class="timestamp"> |
301 | Allegro·version·5.2.4 | 296 | Allegro·version·5.2.4 |
302 | ·-·Last·updated:·202 | 297 | ·-·Last·updated:·2020-04-29·17:01:42·UTC |
303 | </p> | 298 | </p> |
304 | </div> | 299 | </div> |
305 | </body> | 300 | </body> |
306 | </html> | 301 | </html> |
Offset 224, 16 lines modified | Offset 224, 15 lines modified | ||
224 | <a·class="sourceLine"·id="cb4-11"·title="11">al_use_transform(&T);</a></code></pre></div> | 224 | <a·class="sourceLine"·id="cb4-11"·title="11">al_use_transform(&T);</a></code></pre></div> |
225 | <p>it·does·exactly·the·same·as:</p> | 225 | <p>it·does·exactly·the·same·as:</p> |
226 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1">al_identity_transform(&T);</a> | 226 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1">al_identity_transform(&T);</a> |
227 | <a·class="sourceLine"·id="cb5-2"·title="2">al_scale_transform(&T,·<span·class="dv">2</span>,·<span·class="dv">2</span>);</a> | 227 | <a·class="sourceLine"·id="cb5-2"·title="2">al_scale_transform(&T,·<span·class="dv">2</span>,·<span·class="dv">2</span>);</a> |
228 | <a·class="sourceLine"·id="cb5-3"·title="3">al_translate_transform(&T,·<span·class="dv">100</span>,·<span·class="dv">0</span>);</a> | 228 | <a·class="sourceLine"·id="cb5-3"·title="3">al_translate_transform(&T,·<span·class="dv">100</span>,·<span·class="dv">0</span>);</a> |
229 | <a·class="sourceLine"·id="cb5-4"·title="4">al_use_transform(&T);</a></code></pre></div> | 229 | <a·class="sourceLine"·id="cb5-4"·title="4">al_use_transform(&T);</a></code></pre></div> |
230 | <h1·id="allegro_transform">ALLEGRO_TRANSFORM</h1> | 230 | <h1·id="allegro_transform">ALLEGRO_TRANSFORM</h1> |
231 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM;</a> | 231 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM;</a></code></pre></div> |
232 | <a·class="sourceLine"·id="cb6-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM;</a></code></pre></div> | ||
233 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/transformations.h#L12">Source·Code</a></p> | 232 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/transformations.h#L12">Source·Code</a></p> |
234 | <p>Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms·use·only·a·small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values.</p> | 233 | <p>Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms·use·only·a·small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values.</p> |
235 | <p><em>Fields:</em></p> | 234 | <p><em>Fields:</em></p> |
236 | <ul> | 235 | <ul> |
237 | <li>m·-·A·4x4·float·matrix</li> | 236 | <li>m·-·A·4x4·float·matrix</li> |
238 | </ul> | 237 | </ul> |
239 | <h1·id="al_copy_transform">al_copy_transform</h1> | 238 | <h1·id="al_copy_transform">al_copy_transform</h1> |
Offset 534, 12 lines modified | Offset 533, 12 lines modified | ||
534 | <li>trans·-·Transformation·to·alter</li> | 533 | <li>trans·-·Transformation·to·alter</li> |
535 | <li>theta·-·Rotation·angle·in·radians</li> | 534 | <li>theta·-·Rotation·angle·in·radians</li> |
536 | </ul> | 535 | </ul> |
537 | <p>Since:·5.1.7</p> | 536 | <p>Since:·5.1.7</p> |
538 | <p>See·also:·<a·href="transformations.html#al_horizontal_shear_transform">al_horizontal_shear_transform</a></p> | 537 | <p>See·also:·<a·href="transformations.html#al_horizontal_shear_transform">al_horizontal_shear_transform</a></p> |
539 | <p·class="timestamp"> | 538 | <p·class="timestamp"> |
540 | Allegro·version·5.2.4 | 539 | Allegro·version·5.2.4 |
541 | ·-·Last·updated:·202 | 540 | ·-·Last·updated:·2020-04-29·17:01:43·UTC |
542 | </p> | 541 | </p> |
543 | </div> | 542 | </div> |
544 | </body> | 543 | </body> |
545 | </html> | 544 | </html> |
Offset 285, 21 lines modified | Offset 285, 19 lines modified | ||
285 | <p>On·the·other·hand,·UTF-16·represents·each·code·point·by·either·one·or·two·16-bit·code·units·(two·or·four·bytes).·The·representation·of·each·16-bit·code·unit·depends·on·the·byte·order;·here·we·have·demonstrated·little·endian.</p> | 285 | <p>On·the·other·hand,·UTF-16·represents·each·code·point·by·either·one·or·two·16-bit·code·units·(two·or·four·bytes).·The·representation·of·each·16-bit·code·unit·depends·on·the·byte·order;·here·we·have·demonstrated·little·endian.</p> |
286 | <p>Both·UTF-8·and·UTF-16·are·self-synchronising.·Starting·from·any·offset·within·a·string,·it·is·efficient·to·find·the·beginning·of·the·previous·or·next·code·point.</p> | 286 | <p>Both·UTF-8·and·UTF-16·are·self-synchronising.·Starting·from·any·offset·within·a·string,·it·is·efficient·to·find·the·beginning·of·the·previous·or·next·code·point.</p> |
287 | <p>Not·all·sequences·of·bytes·or·16-bit·words·are·valid·UTF-8·and·UTF-16·strings·respectively.·UTF-8·also·has·an·additional·problem·of·overlong·forms,·where·a·code·point·value·is·encoded·using·more·bytes·than·is·strictly·necessary.·This·is·invalid·and·needs·to·be·guarded·against.</p> | 287 | <p>Not·all·sequences·of·bytes·or·16-bit·words·are·valid·UTF-8·and·UTF-16·strings·respectively.·UTF-8·also·has·an·additional·problem·of·overlong·forms,·where·a·code·point·value·is·encoded·using·more·bytes·than·is·strictly·necessary.·This·is·invalid·and·needs·to·be·guarded·against.</p> |
288 | <p>In·the·following·“ustr”·functions,·be·careful·whether·a·function·takes·code·unit·(byte)·or·code·point·indices.·In·general,·all·position·parameters·are·in·code·unit·offsets.·This·may·be·surprising,·but·if·you·think·about·it,·it·is·required·for·good·performance.·(It·also·means·some·functions·will·work·even·if·they·do·not·contain·UTF-8,·since·they·only·care·about·storing·bytes,·so·you·may·actually·store·arbitrary·data·in·the·ALLEGRO_USTRs.)</p> | 288 | <p>In·the·following·“ustr”·functions,·be·careful·whether·a·function·takes·code·unit·(byte)·or·code·point·indices.·In·general,·all·position·parameters·are·in·code·unit·offsets.·This·may·be·surprising,·but·if·you·think·about·it,·it·is·required·for·good·performance.·(It·also·means·some·functions·will·work·even·if·they·do·not·contain·UTF-8,·since·they·only·care·about·storing·bytes,·so·you·may·actually·store·arbitrary·data·in·the·ALLEGRO_USTRs.)</p> |
289 | <p>For·actual·text·processing,·where·you·want·to·specify·positions·with·code·point·indices,·you·should·use·<a·href="utf8.html#al_ustr_offset">al_ustr_offset</a>·to·find·the·code·unit·offset·position.·However,·most·of·the·time·you·would·probably·just·work·with·byte·offsets.</p> | 289 | <p>For·actual·text·processing,·where·you·want·to·specify·positions·with·code·point·indices,·you·should·use·<a·href="utf8.html#al_ustr_offset">al_ustr_offset</a>·to·find·the·code·unit·offset·position.·However,·most·of·the·time·you·would·probably·just·work·with·byte·offsets.</p> |
290 | <h1·id="utf-8-string-types">UTF-8·string·types</h1> | 290 | <h1·id="utf-8-string-types">UTF-8·string·types</h1> |
291 | <h2·id="allegro_ustr">ALLEGRO_USTR</h2> | 291 | <h2·id="allegro_ustr">ALLEGRO_USTR</h2> |
292 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR;</a> | 292 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR;</a></code></pre></div> |
293 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR;</a></code></pre></div> | ||
294 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source·Code</a></p> | 293 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source·Code</a></p> |
295 | <p>An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF-8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including·NULs.</p> | 294 | <p>An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF-8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including·NULs.</p> |
296 | <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2> | 295 | <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2> |
297 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO;</a> | 296 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO;</a></code></pre></div> |
298 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO;</a></code></pre></div> | ||
299 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source·Code</a></p> | 297 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source·Code</a></p> |
300 | <p>A·type·that·holds·additional·information·for·an·<a·href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an·external·memory·buffer.</p> | 298 | <p>A·type·that·holds·additional·information·for·an·<a·href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an·external·memory·buffer.</p> |
301 | <p>See·also:·<a·href="utf8.html#al_ref_cstr">al_ref_cstr</a>,·<a·href="utf8.html#al_ref_buffer">al_ref_buffer</a>·and·<a·href="utf8.html#al_ref_ustr">al_ref_ustr</a>.</p> | 299 | <p>See·also:·<a·href="utf8.html#al_ref_cstr">al_ref_cstr</a>,·<a·href="utf8.html#al_ref_buffer">al_ref_buffer</a>·and·<a·href="utf8.html#al_ref_ustr">al_ref_ustr</a>.</p> |
302 | <h1·id="creating-and-destroying-strings">Creating·and·destroying·strings</h1> | 300 | <h1·id="creating-and-destroying-strings">Creating·and·destroying·strings</h1> |
303 | <h2·id="al_ustr_new">al_ustr_new</h2> | 301 | <h2·id="al_ustr_new">al_ustr_new</h2> |
304 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1">ALLEGRO_USTR·*al_ustr_new(<span·class="dt">const</span>·<span·class="dt">char</span>·*s)</a></code></pre></div> | 302 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1">ALLEGRO_USTR·*al_ustr_new(<span·class="dt">const</span>·<span·class="dt">char</span>·*s)</a></code></pre></div> |
305 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L62">Source·Code</a></p> | 303 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L62">Source·Code</a></p> |
Offset 707, 12 lines modified | Offset 705, 12 lines modified | ||
707 | <div·class="sourceCode"·id="cb72"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb72-1"·title="1"><span·class="dt">size_t</span>·al_utf16_encode(<span·class="dt">uint16_t</span>·s[],·<span·class="dt">int32_t</span>·c)</a></code></pre></div> | 705 | <div·class="sourceCode"·id="cb72"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb72-1"·title="1"><span·class="dt">size_t</span>·al_utf16_encode(<span·class="dt">uint16_t</span>·s[],·<span·class="dt">int32_t</span>·c)</a></code></pre></div> |
708 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L1067">Source·Code</a></p> | 706 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L1067">Source·Code</a></p> |
709 | <p>Encode·the·specified·code·point·to·UTF-16·into·the·buffer·<code>s</code>.·The·buffer·must·have·enough·space·to·hold·the·encoding,·which·takes·either·2·or·4·bytes.·This·routine·will·refuse·to·encode·code·points·above·0x10FFFF.</p> | 707 | <p>Encode·the·specified·code·point·to·UTF-16·into·the·buffer·<code>s</code>.·The·buffer·must·have·enough·space·to·hold·the·encoding,·which·takes·either·2·or·4·bytes.·This·routine·will·refuse·to·encode·code·points·above·0x10FFFF.</p> |
710 | <p>Returns·the·number·of·bytes·written,·which·is·the·same·as·that·returned·by·<a·href="utf8.html#al_utf16_width">al_utf16_width</a>.</p> | 708 | <p>Returns·the·number·of·bytes·written,·which·is·the·same·as·that·returned·by·<a·href="utf8.html#al_utf16_width">al_utf16_width</a>.</p> |
711 | <p>See·also:·<a·href="utf8.html#al_utf8_encode">al_utf8_encode</a>,·<a·href="utf8.html#al_ustr_encode_utf16">al_ustr_encode_utf16</a></p> | 709 | <p>See·also:·<a·href="utf8.html#al_utf8_encode">al_utf8_encode</a>,·<a·href="utf8.html#al_ustr_encode_utf16">al_ustr_encode_utf16</a></p> |
712 | <p·class="timestamp"> | 710 | <p·class="timestamp"> |
713 | Allegro·version·5.2.4 | 711 | Allegro·version·5.2.4 |
714 | ·-·Last·updated:·202 | 712 | ·-·Last·updated:·2020-04-29·17:01:43·UTC |
715 | </p> | 713 | </p> |
716 | </div> | 714 | </div> |
717 | </body> | 715 | </body> |
718 | </html> | 716 | </html> |
Offset 184, 16 lines modified | Offset 184, 15 lines modified | ||
184 | <li><a·href="#al_seek_video">al_seek_video</a></li> | 184 | <li><a·href="#al_seek_video">al_seek_video</a></li> |
185 | </ul> | 185 | </ul> |
186 | </nav> | 186 | </nav> |
187 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_video.</p> | 187 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_video.</p> |
188 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_video.h></span></a></code></pre></div> | 188 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb1-1"·title="1">·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_video.h></span></a></code></pre></div> |
189 | <p>Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·<a·href="http://xiph.org/"·class="uri">http://xiph.org/</a>·for·installation·instructions,·licensing·information·and·supported·video·formats.</p> | 189 | <p>Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·<a·href="http://xiph.org/"·class="uri">http://xiph.org/</a>·for·installation·instructions,·licensing·information·and·supported·video·formats.</p> |
190 | <h1·id="allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</h1> | 190 | <h1·id="allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</h1> |
191 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</a> | 191 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb2-1"·title="1"><span·class="kw">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</a></code></pre></div> |
192 | <a·class="sourceLine"·id="cb2-2"·title="2"><span·class="kw">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</a></code></pre></div> | ||
193 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L35">Source·Code</a></p> | 192 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L35">Source·Code</a></p> |
194 | <p>Events·sent·by·<a·href="video.html#al_get_video_event_source">al_get_video_event_source</a>.</p> | 193 | <p>Events·sent·by·<a·href="video.html#al_get_video_event_source">al_get_video_event_source</a>.</p> |
195 | <h2·id="allegro_event_video_frame_show">ALLEGRO_EVENT_VIDEO_FRAME_SHOW</h2> | 194 | <h2·id="allegro_event_video_frame_show">ALLEGRO_EVENT_VIDEO_FRAME_SHOW</h2> |
196 | <p>This·event·is·sent·when·it·is·time·to·show·a·new·frame.·Once·you·receive·this·event,·you·can·draw·the·current·frame·(as·returned·by·<a·href="video.html#al_get_video_frame">al_get_video_frame</a>).·<a·href="video.html#al_get_video_frame">al_get_video_frame</a>·will·continue·returning·the·same·frame·until·the·next·ALLEGRO_EVENT_VIDEO_FRAME_SHOW·is·sent.</p> | 195 | <p>This·event·is·sent·when·it·is·time·to·show·a·new·frame.·Once·you·receive·this·event,·you·can·draw·the·current·frame·(as·returned·by·<a·href="video.html#al_get_video_frame">al_get_video_frame</a>).·<a·href="video.html#al_get_video_frame">al_get_video_frame</a>·will·continue·returning·the·same·frame·until·the·next·ALLEGRO_EVENT_VIDEO_FRAME_SHOW·is·sent.</p> |
197 | <dl> | 196 | <dl> |
198 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> | 197 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> |
199 | <dd>The·video·which·generated·the·event. | 198 | <dd>The·video·which·generated·the·event. |
Offset 205, 137 lines modified | Offset 204, 119 lines modified | ||
205 | <dl> | 204 | <dl> |
206 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> | 205 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> |
207 | <dd>The·video·which·generated·the·event. | 206 | <dd>The·video·which·generated·the·event. |
208 | </dd> | 207 | </dd> |
209 | </dl> | 208 | </dl> |
210 | <p>Since:·5.1.0</p> | 209 | <p>Since:·5.1.0</p> |
211 | <h1·id="allegro_video_position_type">ALLEGRO_VIDEO_POSITION_TYPE</h1> | 210 | <h1·id="allegro_video_position_type">ALLEGRO_VIDEO_POSITION_TYPE</h1> |
212 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE;</a> | 211 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb3-1"·title="1"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE;</a></code></pre></div> |
213 | <a·class="sourceLine"·id="cb3-2"·title="2"><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE;</a></code></pre></div> | ||
214 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L51">Source·Code</a></p> | 212 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L51">Source·Code</a></p> |
215 | <p>Used·with·<a·href="video.html#al_get_video_position">al_get_video_position</a>·to·specify·which·position·to·retrieve.·If·these·get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the·display·of·the·video.</p> | 213 | <p>Used·with·<a·href="video.html#al_get_video_position">al_get_video_position</a>·to·specify·which·position·to·retrieve.·If·these·get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the·display·of·the·video.</p> |
216 | <ul> | 214 | <ul> |
217 | <li><p>ALLEGRO_VIDEO_POSITION_ACTUAL·-·The·amount·of·time·the·video·has·been·playing.·If·the·video·has·audio·then·this·value·can·be·ahead·of·ALLEGRO_VIDEO_POSITION_VIDEO_DECODE·when·video·decoding·lags.</p></li> | 215 | <li><p>ALLEGRO_VIDEO_POSITION_ACTUAL·-·The·amount·of·time·the·video·has·been·playing.·If·the·video·has·audio·then·this·value·can·be·ahead·of·ALLEGRO_VIDEO_POSITION_VIDEO_DECODE·when·video·decoding·lags.</p></li> |
218 | <li><p>ALLEGRO_VIDEO_POSITION_VIDEO_DECODE·-·The·amount·of·video·that·has·been·decoded.·This·may·lag·behind·the·“actual”·and·audio·positions·if·decoding·is·slower·than·realtime.</p></li> | 216 | <li><p>ALLEGRO_VIDEO_POSITION_VIDEO_DECODE·-·The·amount·of·video·that·has·been·decoded.·This·may·lag·behind·the·“actual”·and·audio·positions·if·decoding·is·slower·than·realtime.</p></li> |
219 | <li><p>ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that·has·been·decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL·if·audio·decode·is·driving·the·position,·which·is·common·to·keep·audio·and·video·in·sync.</p></li> | 217 | <li><p>ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that·has·been·decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL·if·audio·decode·is·driving·the·position,·which·is·common·to·keep·audio·and·video·in·sync.</p></li> |
220 | </ul> | 218 | </ul> |
221 | <p>Since:·5.1.11</p> | 219 | <p>Since:·5.1.11</p> |
222 | <h1·id="al_init_video_addon">al_init_video_addon</h1> | 220 | <h1·id="al_init_video_addon">al_init_video_addon</h1> |
223 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="dt">bool</span>·al_init_video_addon(<span·class="dt">void</span>)</a> | 221 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb4-1"·title="1"><span·class="dt">bool</span>·al_init_video_addon(<span·class="dt">void</span>)</a></code></pre></div> |
224 | <a·class="sourceLine"·id="cb4-2"·title="2"><span·class="dt">bool</span>·al_init_video_addon(<span·class="dt">void</span>)</a></code></pre></div> | ||
225 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L256">Source·Code</a></p> | 222 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L256">Source·Code</a></p> |
226 | <p>Initializes·the·video·addon.</p> | 223 | <p>Initializes·the·video·addon.</p> |
227 | <p>Since:·5.1.12</p> | 224 | <p>Since:·5.1.12</p> |
228 | <h1·id="al_shutdown_video_addon">al_shutdown_video_addon</h1> | 225 | <h1·id="al_shutdown_video_addon">al_shutdown_video_addon</h1> |
229 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">void</span>·al_shutdown_video_addon(<span·class="dt">void</span>)</a> | 226 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb5-1"·title="1"><span·class="dt">void</span>·al_shutdown_video_addon(<span·class="dt">void</span>)</a></code></pre></div> |
230 | <a·class="sourceLine"·id="cb5-2"·title="2"><span·class="dt">void</span>·al_shutdown_video_addon(<span·class="dt">void</span>)</a></code></pre></div> | ||
231 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L278">Source·Code</a></p> | 227 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L278">Source·Code</a></p> |
232 | <p>Shut·down·the·video·addon.·This·is·done·automatically·at·program·exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> | 228 | <p>Shut·down·the·video·addon.·This·is·done·automatically·at·program·exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> |
233 | <p>Since:·5.1.12</p> | 229 | <p>Since:·5.1.12</p> |
234 | <h1·id="al_get_allegro_video_version">al_get_allegro_video_version</h1> | 230 | <h1·id="al_get_allegro_video_version">al_get_allegro_video_version</h1> |
235 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_video_version(<span·class="dt">void</span>)</a> | 231 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb6-1"·title="1"><span·class="dt">uint32_t</span>·al_get_allegro_video_version(<span·class="dt">void</span>)</a></code></pre></div> |
236 | <a·class="sourceLine"·id="cb6-2"·title="2"><span·class="dt">uint32_t</span>·al_get_allegro_video_version(<span·class="dt">void</span>)</a></code></pre></div> | ||
237 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L296">Source·Code</a></p> | 232 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L296">Source·Code</a></p> |
238 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 233 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a·href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
239 | <p>Since:·5.1.12</p> | 234 | <p>Since:·5.1.12</p> |
240 | <h1·id="al_open_video">al_open_video</h1> | 235 | <h1·id="al_open_video">al_open_video</h1> |
241 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1">ALLEGRO_VIDEO·*al_open_video(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename)</a> | 236 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb7-1"·title="1">ALLEGRO_VIDEO·*al_open_video(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename)</a></code></pre></div> |
242 | <a·class="sourceLine"·id="cb7-2"·title="2">ALLEGRO_VIDEO·*al_open_video(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename)</a></code></pre></div> | ||
243 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L94">Source·Code</a></p> | 237 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L94">Source·Code</a></p> |
244 | <p>Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the·meta·info·so·you·can·query·e.g. the·size·or·audio·rate.</p> | 238 | <p>Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the·meta·info·so·you·can·query·e.g. the·size·or·audio·rate.</p> |
245 | <p>Since:·5.1.0</p> | 239 | <p>Since:·5.1.0</p> |
246 | <h1·id="al_close_video">al_close_video</h1> | 240 | <h1·id="al_close_video">al_close_video</h1> |
247 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="dt">void</span>·al_close_video(ALLEGRO_VIDEO·*video)</a> | 241 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb8-1"·title="1"><span·class="dt">void</span>·al_close_video(ALLEGRO_VIDEO·*video)</a></code></pre></div> |
248 | <a·class="sourceLine"·id="cb8-2"·title="2"><span·class="dt">void</span>·al_close_video(ALLEGRO_VIDEO·*video)</a></code></pre></div> | ||
249 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L127">Source·Code</a></p> | 242 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L127">Source·Code</a></p> |
250 | <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is·invalid·after·the·function·returns.</p> | 243 | <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is·invalid·after·the·function·returns.</p> |
251 | <p>Since:·5.1.0</p> | 244 | <p>Since:·5.1.0</p> |
252 | <h1·id="al_start_video">al_start_video</h1> | 245 | <h1·id="al_start_video">al_start_video</h1> |
253 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">void</span>·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer)</a> | 246 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb9-1"·title="1"><span·class="dt">void</span>·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer)</a></code></pre></div> |
254 | <a·class="sourceLine"·id="cb9-2"·title="2"><span·class="dt">void</span>·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer)</a></code></pre></div> | ||
255 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L149">Source·Code</a></p> | 247 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L149">Source·Code</a></p> |
256 | <p>Starts·streaming·the·video·from·the·beginning.</p> | 248 | <p>Starts·streaming·the·video·from·the·beginning.</p> |
257 | <p>Since:·5.1.0</p> | 249 | <p>Since:·5.1.0</p> |
258 | <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1> | 250 | <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1> |
259 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="dt">void</span>·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice)</a> | 251 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb10-1"·title="1"><span·class="dt">void</span>·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice)</a></code></pre></div> |
260 | <a·class="sourceLine"·id="cb10-2"·title="2"><span·class="dt">void</span>·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice)</a></code></pre></div> | ||
261 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L160">Source·Code</a></p> | 252 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L160">Source·Code</a></p> |
262 | <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio·is·routed·to·the·provided·voice.</p> | 253 | <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio·is·routed·to·the·provided·voice.</p> |
263 | <p>Since:·5.1.0</p> | 254 | <p>Since:·5.1.0</p> |
264 | <h1·id="al_get_video_event_source">al_get_video_event_source</h1> | 255 | <h1·id="al_get_video_event_source">al_get_video_event_source</h1> |
265 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1">ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video)</a> | 256 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb11-1"·title="1">ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video)</a></code></pre></div> |
266 | <a·class="sourceLine"·id="cb11-2"·title="2">ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video)</a></code></pre></div> | ||
267 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L141">Source·Code</a></p> | 257 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L141">Source·Code</a></p> |
268 | <p>Get·an·event·source·for·the·video.·The·possible·events·are·described·under·<a·href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> | 258 | <p>Get·an·event·source·for·the·video.·The·possible·events·are·described·under·<a·href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> |
269 | <p>Since:·5.1.0</p> | 259 | <p>Since:·5.1.0</p> |
270 | <h1·id="al_set_video_playing">al_set_video_playing</h1> | 260 | <h1·id="al_set_video_playing">al_set_video_playing</h1> |
271 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1"><span·class="dt">void</span>·al_set_video_playing(ALLEGRO_VIDEO·*video,·<span·class="dt">bool</span>·play)</a> | 261 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb12-1"·title="1"><span·class="dt">void</span>·al_set_video_playing(ALLEGRO_VIDEO·*video,·<span·class="dt">bool</span>·play)</a></code></pre></div> |
272 | <a·class="sourceLine"·id="cb12-2"·title="2"><span·class="dt">void</span>·al_set_video_playing(ALLEGRO_VIDEO·*video,·<span·class="dt">bool</span>·play)</a></code></pre></div> | ||
273 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L171">Source·Code</a></p> | 262 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L171">Source·Code</a></p> |
274 | <p>Paused·or·resumes·playback.</p> | 263 | <p>Paused·or·resumes·playback.</p> |
275 | <p>Since:·5.1.12</p> | 264 | <p>Since:·5.1.12</p> |
276 | <h1·id="al_is_video_playing">al_is_video_playing</h1> | 265 | <h1·id="al_is_video_playing">al_is_video_playing</h1> |
277 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb13-1"·title="1"><span·class="dt">bool</span>·al_is_video_playing(ALLEGRO_VIDEO·*video)</a> | 266 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb13-1"·title="1"><span·class="dt">bool</span>·al_is_video_playing(ALLEGRO_VIDEO·*video)</a></code></pre></div> |
278 | <a·class="sourceLine"·id="cb13-2"·title="2"><span·class="dt">bool</span>·al_is_video_playing(ALLEGRO_VIDEO·*video)</a></code></pre></div> | ||
279 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L183">Source·Code</a></p> | 267 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L183">Source·Code</a></p> |
280 | <p>Returns·true·if·the·video·is·currently·playing.</p> | 268 | <p>Returns·true·if·the·video·is·currently·playing.</p> |
281 | <p>Since:·5.1.12</p> | 269 | <p>Since:·5.1.12</p> |
282 | <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1> | 270 | <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1> |
283 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1"><span·class="dt">double</span>·al_get_video_audio_rate(ALLEGRO_VIDEO·*video)</a> | 271 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb14-1"·title="1"><span·class="dt">double</span>·al_get_video_audio_rate(ALLEGRO_VIDEO·*video)</a></code></pre></div> |
284 | <a·class="sourceLine"·id="cb14-2"·title="2"><span·class="dt">double</span>·al_get_video_audio_rate(ALLEGRO_VIDEO·*video)</a></code></pre></div> | ||
285 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L224">Source·Code</a></p> | 272 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L224">Source·Code</a></p> |
286 | <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p> | 273 | <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p> |
287 | <p>Since:·5.1.0</p> | 274 | <p>Since:·5.1.0</p> |
288 | <h1·id="al_get_video_fps">al_get_video_fps</h1> | 275 | <h1·id="al_get_video_fps">al_get_video_fps</h1> |
289 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb15-1"·title="1"><span·class="dt">double</span>·al_get_video_fps(ALLEGRO_VIDEO·*video)</a> | 276 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb15-1"·title="1"><span·class="dt">double</span>·al_get_video_fps(ALLEGRO_VIDEO·*video)</a></code></pre></div> |
290 | <a·class="sourceLine"·id="cb15-2"·title="2"><span·class="dt">double</span>·al_get_video_fps(ALLEGRO_VIDEO·*video)</a></code></pre></div> | ||
291 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L232">Source·Code</a></p> | 277 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L232">Source·Code</a></p> |
292 | <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an·integer·value.</p> | 278 | <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an·integer·value.</p> |
293 | <p>Since:·5.1.0</p> | 279 | <p>Since:·5.1.0</p> |
294 | <h1·id="al_get_video_scaled_width">al_get_video_scaled_width</h1> | 280 | <h1·id="al_get_video_scaled_width">al_get_video_scaled_width</h1> |
295 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb16-1"·title="1"><span·class="dt">float</span>·al_get_video_scaled_width(ALLEGRO_VIDEO·*video)</a> | 281 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb16-1"·title="1"><span·class="dt">float</span>·al_get_video_scaled_width(ALLEGRO_VIDEO·*video)</a></code></pre></div> |
296 | <a·class="sourceLine"·id="cb16-2"·title="2"><span·class="dt">float</span>·al_get_video_scaled_width(ALLEGRO_VIDEO·*video)</a></code></pre></div> | ||
297 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L240">Source·Code</a></p> | 282 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L240">Source·Code</a></p> |
298 | <p>Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of·the·frame·bitmap.</p> | 283 | <p>Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of·the·frame·bitmap.</p> |
299 | <p>Since:·5.1.12</p> | 284 | <p>Since:·5.1.12</p> |
300 | <p>See·also:·<a·href="video.html#al_get_video_frame">al_get_video_frame</a></p> | 285 | <p>See·also:·<a·href="video.html#al_get_video_frame">al_get_video_frame</a></p> |
301 | <h1·id="al_get_video_scaled_height">al_get_video_scaled_height</h1> | 286 | <h1·id="al_get_video_scaled_height">al_get_video_scaled_height</h1> |
302 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb17-1"·title="1"><span·class="dt">float</span>·al_get_video_scaled_height(ALLEGRO_VIDEO·*video)</a> | 287 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb17-1"·title="1"><span·class="dt">float</span>·al_get_video_scaled_height(ALLEGRO_VIDEO·*video)</a></code></pre></div> |
303 | <a·class="sourceLine"·id="cb17-2"·title="2"><span·class="dt">float</span>·al_get_video_scaled_height(ALLEGRO_VIDEO·*video)</a></code></pre></div> | ||
304 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L248">Source·Code</a></p> | 288 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L248">Source·Code</a></p> |
305 | <p>Returns·the·height·with·which·the·video·frame·should·be·drawn.·Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·height·of·the·frame·bitmap.</p> | 289 | <p>Returns·the·height·with·which·the·video·frame·should·be·drawn.·Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·height·of·the·frame·bitmap.</p> |
306 | <p>See·also:·<a·href="video.html#al_get_video_frame">al_get_video_frame</a></p> | 290 | <p>See·also:·<a·href="video.html#al_get_video_frame">al_get_video_frame</a></p> |
307 | <p>Since:·5.1.12</p> | 291 | <p>Since:·5.1.12</p> |
308 | <h1·id="al_get_video_frame">al_get_video_frame</h1> | 292 | <h1·id="al_get_video_frame">al_get_video_frame</h1> |
309 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb18-1"·title="1">ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video)</a> | 293 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb18-1"·title="1">ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video)</a></code></pre></div> |
310 | <a·class="sourceLine"·id="cb18-2"·title="2">ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video)</a></code></pre></div> | ||
311 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L192">Source·Code</a></p> | 294 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L192">Source·Code</a></p> |
312 | <p>Returns·the·current·video·frame.·The·bitmap·is·owned·by·the·video·so·do·not·attempt·to·free·it.·The·bitmap·will·stay·valid·until·the·next·call·to·al_get_video_frame.</p> | 295 | <p>Returns·the·current·video·frame.·The·bitmap·is·owned·by·the·video·so·do·not·attempt·to·free·it.·The·bitmap·will·stay·valid·until·the·next·call·to·al_get_video_frame.</p> |
313 | <p>Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a·video·frame·would·be·using·code·like·this:</p> | 296 | <p>Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a·video·frame·would·be·using·code·like·this:</p> |
314 | <div·class="sourceCode"·id="cb19"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb19-1"·title="1"><span·class="dt">float</span>·scale·=·<span·class="fl">1.0</span>;·<span·class="co">/*·Adjust·this·to·fit·your·target·bitmap·dimensions.·*/</span></a> | 297 | <div·class="sourceCode"·id="cb19"><pre·class="sourceCode·c"><code·class="sourceCode·c"><a·class="sourceLine"·id="cb19-1"·title="1"><span·class="dt">float</span>·scale·=·<span·class="fl">1.0</span>;·<span·class="co">/*·Adjust·this·to·fit·your·target·bitmap·dimensions.·*/</span></a> |
Max diff block lines reached; 3158/21220 bytes (14.88%) of diff not shown. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·8 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·831 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | enum\·ALLEGRO_AUDIO_DEPTH | 13 | enum\·ALLEGRO_AUDIO_DEPTH |
14 | enum\·ALLEGRO_AUDIO_DEPTH | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Sample·depth·and·type·as·well·as·signedness. | 18 | Sample·depth·and·type·as·well·as·signedness. |
20 | Mixers·only·use·32\-bit·signed·float·(\-1..+1),·or·16\-bit·signed | 19 | Mixers·only·use·32\-bit·signed·float·(\-1..+1),·or·16\-bit·signed |
21 | integers. | 20 | integers. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·9 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·957 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | enum\·ALLEGRO_AUDIO_EVENT_TYPE | 13 | enum\·ALLEGRO_AUDIO_EVENT_TYPE |
14 | enum\·ALLEGRO_AUDIO_EVENT_TYPE | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .SS·ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT | 17 | .SS·ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT |
19 | .PP | 18 | .PP |
20 | Sent·when·a·stream·fragment·is·ready·to·be·filled·in. | 19 | Sent·when·a·stream·fragment·is·ready·to·be·filled·in. |
21 | See·al_get_audio_stream_fragment(3alleg5). | 20 | See·al_get_audio_stream_fragment(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·966 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | #define\·ALLEGRO_AUDIO_PAN_NONE\·\·\·\·\·\·(\-1000.0f) | 13 | #define\·ALLEGRO_AUDIO_PAN_NONE\·\·\·\·\·\·(\-1000.0f) |
14 | #define\·ALLEGRO_AUDIO_PAN_NONE\·\·\·\·\·\·(\-1000.0f) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·special·value·for·the·pan·property·of·sample·instances·and·audio | 18 | A·special·value·for·the·pan·property·of·sample·instances·and·audio |
20 | streams. | 19 | streams. |
21 | Use·this·value·to·disable·panning·on·sample·instances·and·audio·streams, | 20 | Use·this·value·to·disable·panning·on·sample·instances·and·audio·streams, |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·484 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | typedef\·struct\·ALLEGRO_AUDIO_RECORDER\·ALLEGRO_AUDIO_RECORDER; | 13 | typedef\·struct\·ALLEGRO_AUDIO_RECORDER\·ALLEGRO_AUDIO_RECORDER; |
14 | typedef\·struct\·ALLEGRO_AUDIO_RECORDER\·ALLEGRO_AUDIO_RECORDER; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·opaque·datatype·that·represents·a·recording·device. | 18 | An·opaque·datatype·that·represents·a·recording·device. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·847 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | typedef\·struct\·ALLEGRO_AUDIO_RECORDER_EVENT\·ALLEGRO_AUDIO_RECORDER_EVENT; | 13 | typedef\·struct\·ALLEGRO_AUDIO_RECORDER_EVENT\·ALLEGRO_AUDIO_RECORDER_EVENT; |
14 | typedef\·struct\·ALLEGRO_AUDIO_RECORDER_EVENT\·ALLEGRO_AUDIO_RECORDER_EVENT; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Structure·that·holds·the·audio·recorder·event·data. | 18 | Structure·that·holds·the·audio·recorder·event·data. |
20 | Every·event·type·will·contain: | 19 | Every·event·type·will·contain: |
21 | .IP·\[bu]·2 | 20 | .IP·\[bu]·2 |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1968 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | typedef\·struct\·ALLEGRO_AUDIO_STREAM\·ALLEGRO_AUDIO_STREAM; | 13 | typedef\·struct\·ALLEGRO_AUDIO_STREAM\·ALLEGRO_AUDIO_STREAM; |
14 | typedef\·struct\·ALLEGRO_AUDIO_STREAM\·ALLEGRO_AUDIO_STREAM; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the | 18 | An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the |
20 | sound·device,·in·real\-time. | 19 | sound·device,·in·real\-time. |
21 | This·is·done·by·reading·from·a·buffer,·which·is·split·into·a·number·of | 20 | This·is·done·by·reading·from·a·buffer,·which·is·split·into·a·number·of |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·346 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_BITMAP\·ALLEGRO_BITMAP; | 13 | typedef\·struct\·ALLEGRO_BITMAP\·ALLEGRO_BITMAP; |
14 | typedef\·struct\·ALLEGRO_BITMAP\·ALLEGRO_BITMAP; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Abstract·type·representing·a·bitmap·(2D·image). | 18 | Abstract·type·representing·a·bitmap·(2D·image). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·358 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·ALLEGRO_BPM_TO_SECS(x)\·\·\·\·\·\·\·\·(60.0\·/\·(x)) | 13 | #define\·ALLEGRO_BPM_TO_SECS(x)\·\·\·\·\·\·\·\·(60.0\·/\·(x)) |
14 | #define\·ALLEGRO_BPM_TO_SECS(x)\·\·\·\·\·\·\·\·(60.0\·/\·(x)) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Convert·beats·per·minute·to·seconds. | 18 | Convert·beats·per·minute·to·seconds. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·357 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·ALLEGRO_BPS_TO_SECS(x)\·\·\·\·\·\·\·\·(1.0\·/\·(x)) | 13 | #define\·ALLEGRO_BPS_TO_SECS(x)\·\·\·\·\·\·\·\·(1.0\·/\·(x)) |
14 | #define\·ALLEGRO_BPS_TO_SECS(x)\·\·\·\·\·\·\·\·(1.0\·/\·(x)) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Convert·beats·per·second·to·seconds. | 18 | Convert·beats·per·second·to·seconds. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·593 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | enum\·ALLEGRO_CHANNEL_CONF | 13 | enum\·ALLEGRO_CHANNEL_CONF |
14 | enum\·ALLEGRO_CHANNEL_CONF | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Speaker·configuration·(mono,·stereo,·2.1,·etc). | 18 | Speaker·configuration·(mono,·stereo,·2.1,·etc). |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_CHANNEL_CONF_1 | 20 | ALLEGRO_CHANNEL_CONF_1 |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·490 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_COLOR\·ALLEGRO_COLOR; | 13 | typedef\·struct\·ALLEGRO_COLOR\·ALLEGRO_COLOR; |
14 | typedef\·struct\·ALLEGRO_COLOR\·ALLEGRO_COLOR; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent | 18 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent |
20 | way. | 19 | way. |
21 | Use·al_map_rgb(3alleg5)·et·al.\·and·al_unmap_rgb(3alleg5)·et·al.\·to | 20 | Use·al_map_rgb(3alleg5)·et·al.\·and·al_unmap_rgb(3alleg5)·et·al.\·to |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·345 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_COND\·ALLEGRO_COND; | 13 | typedef\·struct\·ALLEGRO_COND\·ALLEGRO_COND; |
14 | typedef\·struct\·ALLEGRO_COND\·ALLEGRO_COND; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·opaque·structure·representing·a·condition·variable. | 18 | An·opaque·structure·representing·a·condition·variable. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·335 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_CONFIG\·ALLEGRO_CONFIG; | 13 | typedef\·struct\·ALLEGRO_CONFIG\·ALLEGRO_CONFIG; |
14 | typedef\·struct\·ALLEGRO_CONFIG\·ALLEGRO_CONFIG; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·abstract·configuration·structure. | 18 | An·abstract·configuration·structure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·491 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_CONFIG_ENTRY\·ALLEGRO_CONFIG_ENTRY; | 13 | typedef\·struct\·ALLEGRO_CONFIG_ENTRY\·ALLEGRO_CONFIG_ENTRY; |
14 | typedef\·struct\·ALLEGRO_CONFIG_ENTRY\·ALLEGRO_CONFIG_ENTRY; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration | 18 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration |
20 | section. | 19 | section. |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·506 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_CONFIG_SECTION\·ALLEGRO_CONFIG_SECTION; | 13 | typedef\·struct\·ALLEGRO_CONFIG_SECTION\·ALLEGRO_CONFIG_SECTION; |
14 | typedef\·struct\·ALLEGRO_CONFIG_SECTION\·ALLEGRO_CONFIG_SECTION; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·opaque·structure·used·for·iterating·across·sections·in·a | 18 | An·opaque·structure·used·for·iterating·across·sections·in·a |
20 | configuration·structure. | 19 | configuration·structure. |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·357 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_DISPLAY\·ALLEGRO_DISPLAY; | 13 | typedef\·struct\·ALLEGRO_DISPLAY\·ALLEGRO_DISPLAY; |
14 | typedef\·struct\·ALLEGRO_DISPLAY\·ALLEGRO_DISPLAY; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·opaque·type·representing·an·open·display·or·window. | 18 | An·opaque·type·representing·an·open·display·or·window. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·9 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·920 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_DISPLAY_MODE | 13 | typedef\·struct\·ALLEGRO_DISPLAY_MODE |
14 | typedef\·struct\·ALLEGRO_DISPLAY_MODE | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Used·for·fullscreen·mode·queries. | 18 | Used·for·fullscreen·mode·queries. |
20 | Contains·information·about·a·supported·fullscreen·modes. | 19 | Contains·information·about·a·supported·fullscreen·modes. |
21 | .IP | 20 | .IP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·165 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·16538 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·union\·ALLEGRO_EVENT\·ALLEGRO_EVENT; | 13 | typedef\·union\·ALLEGRO_EVENT\·ALLEGRO_EVENT; |
14 | typedef\·union\·ALLEGRO_EVENT\·ALLEGRO_EVENT; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e.\·it·is | 18 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e.\·it·is |
20 | an·object·large·enough·to·hold·the·data·of·any·event·type. | 19 | an·object·large·enough·to·hold·the·data·of·any·event·type. |
21 | All·events·have·the·following·fields·in·common: | 20 | All·events·have·the·following·fields·in·common: |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·616 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_EVENT_QUEUE\·ALLEGRO_EVENT_QUEUE; | 13 | typedef\·struct\·ALLEGRO_EVENT_QUEUE\·ALLEGRO_EVENT_QUEUE; |
14 | typedef\·struct\·ALLEGRO_EVENT_QUEUE\·ALLEGRO_EVENT_QUEUE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·event·queue·holds·events·that·have·been·generated·by·event·sources | 18 | An·event·queue·holds·events·that·have·been·generated·by·event·sources |
20 | that·are·registered·with·the·queue. | 19 | that·are·registered·with·the·queue. |
21 | Events·are·stored·in·the·order·they·are·generated. | 20 | Events·are·stored·in·the·order·they·are·generated. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·7 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·735 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_EVENT_SOURCE\·ALLEGRO_EVENT_SOURCE; | 13 | typedef\·struct\·ALLEGRO_EVENT_SOURCE\·ALLEGRO_EVENT_SOURCE; |
14 | typedef\·struct\·ALLEGRO_EVENT_SOURCE\·ALLEGRO_EVENT_SOURCE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·event·source·is·any·object·which·can·generate·events. | 18 | An·event·source·is·any·object·which·can·generate·events. |
20 | For·example,·an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the | 19 | For·example,·an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the |
21 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with | 20 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·477 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·unsigned\·int\·ALLEGRO_EVENT_TYPE; | 13 | typedef\·unsigned\·int\·ALLEGRO_EVENT_TYPE; |
14 | typedef\·unsigned\·int\·ALLEGRO_EVENT_TYPE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·integer·used·to·distinguish·between·different·types·of·events. | 18 | An·integer·used·to·distinguish·between·different·types·of·events. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·482 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·ALLEGRO_EVENT_TYPE_IS_USER(t)\·\·\·\·\·\·\·\·((t)\·>=\·512) | 13 | #define\·ALLEGRO_EVENT_TYPE_IS_USER(t)\·\·\·\·\·\·\·\·((t)\·>=\·512) |
14 | #define\·ALLEGRO_EVENT_TYPE_IS_USER(t)\·\·\·\·\·\·\·\·((t)\·>=\·512) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event | 18 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event |
20 | type,·i.e.\·one·of·those·described·in·ALLEGRO_EVENT_TYPE(3alleg5). | 19 | type,·i.e.\·one·of·those·described·in·ALLEGRO_EVENT_TYPE(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·387 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_FILE\·ALLEGRO_FILE; | 13 | typedef\·struct\·ALLEGRO_FILE\·ALLEGRO_FILE; |
14 | typedef\·struct\·ALLEGRO_FILE\·ALLEGRO_FILE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·opaque·object·representing·an·open·file. | 18 | An·opaque·object·representing·an·open·file. |
20 | This·could·be·a·real·file·on·disk·or·a·virtual·file. | 19 | This·could·be·a·real·file·on·disk·or·a·virtual·file. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·371 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | typedef\·struct\·ALLEGRO_FILECHOOSER\·ALLEGRO_FILECHOOSER; | 13 | typedef\·struct\·ALLEGRO_FILECHOOSER\·ALLEGRO_FILECHOOSER; |
14 | typedef\·struct\·ALLEGRO_FILECHOOSER\·ALLEGRO_FILECHOOSER; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Opaque·handle·to·a·native·file·dialog. | 18 | Opaque·handle·to·a·native·file·dialog. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·19 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1916 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_FILE_INTERFACE | 13 | typedef\·struct\·ALLEGRO_FILE_INTERFACE |
14 | typedef\·struct\·ALLEGRO_FILE_INTERFACE | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·structure·containing·function·pointers·to·handle·a·type·of | 18 | A·structure·containing·function·pointers·to·handle·a·type·of |
20 | \[lq]file\[rq],·real·or·virtual. | 19 | \[lq]file\[rq],·real·or·virtual. |
21 | See·the·full·discussion·in·al_set_new_file_interface(3alleg5). | 20 | See·the·full·discussion·in·al_set_new_file_interface(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·601 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·enum\·ALLEGRO_FILE_MODE | 13 | typedef\·enum\·ALLEGRO_FILE_MODE |
14 | typedef\·enum\·ALLEGRO_FILE_MODE | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Filesystem·modes/types | 18 | Filesystem·modes/types |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_FILEMODE_READ·\-·Readable | 20 | ALLEGRO_FILEMODE_READ·\-·Readable |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·679 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | typedef\·struct\·ALLEGRO_FONT\·ALLEGRO_FONT; | 13 | typedef\·struct\·ALLEGRO_FONT\·ALLEGRO_FONT; |
14 | typedef\·struct\·ALLEGRO_FONT\·ALLEGRO_FONT; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·handle·identifying·any·kind·of·font. | 18 | A·handle·identifying·any·kind·of·font. |
20 | Usually·you·will·create·it·with·al_load_font(3alleg5)·which·supports | 19 | Usually·you·will·create·it·with·al_load_font(3alleg5)·which·supports |
21 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. | 20 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·8 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·814 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·enum\·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT\·{ | 13 | typedef\·enum\·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT\·{ |
14 | typedef\·enum\·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT\·{ | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·values·for·the·callbacks·of·al_for_each_fs_entry(3alleg5)·and·for | 18 | Return·values·for·the·callbacks·of·al_for_each_fs_entry(3alleg5)·and·for |
20 | that·function·itself. | 19 | that·function·itself. |
21 | .IP·\[bu]·2 | 20 | .IP·\[bu]·2 |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·462 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_FS_ENTRY\·ALLEGRO_FS_ENTRY; | 13 | typedef\·struct\·ALLEGRO_FS_ENTRY\·ALLEGRO_FS_ENTRY; |
14 | typedef\·struct\·ALLEGRO_FS_ENTRY\·ALLEGRO_FS_ENTRY; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Opaque·filesystem·entry·object. | 18 | Opaque·filesystem·entry·object. |
20 | Represents·a·file·or·a·directory·(check·with | 19 | Represents·a·file·or·a·directory·(check·with |
21 | al_get_fs_entry_mode(3alleg5)). | 20 | al_get_fs_entry_mode(3alleg5)). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2060 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_FS_INTERFACE\·ALLEGRO_FS_INTERFACE; | 13 | typedef\·struct\·ALLEGRO_FS_INTERFACE\·ALLEGRO_FS_INTERFACE; |
14 | typedef\·struct\·ALLEGRO_FS_INTERFACE\·ALLEGRO_FS_INTERFACE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | The·available·functions·you·can·provide·for·a·filesystem. | 18 | The·available·functions·you·can·provide·for·a·filesystem. |
20 | They·are: | 19 | They·are: |
21 | .IP | 20 | .IP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·15 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1503 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·ALLEGRO_GET_EVENT_TYPE(a,\·b,\·c,\·d)\·\·\·AL_ID(a,\·b,\·c,\·d) | 13 | #define\·ALLEGRO_GET_EVENT_TYPE(a,\·b,\·c,\·d)\·\·\·AL_ID(a,\·b,\·c,\·d) |
14 | #define\·ALLEGRO_GET_EVENT_TYPE(a,\·b,\·c,\·d)\·\·\·AL_ID(a,\·b,\·c,\·d) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Make·an·event·type·identifier,·which·is·a·32\-bit·integer. | 18 | Make·an·event·type·identifier,·which·is·a·32\-bit·integer. |
20 | Usually,·but·not·necessarily,·this·will·be·made·from·four·8\-bit | 19 | Usually,·but·not·necessarily,·this·will·be·made·from·four·8\-bit |
21 | character·codes,·for·example: | 20 | character·codes,·for·example: |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·20 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2018 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | typedef\·struct\·ALLEGRO_GLYPH\·ALLEGRO_GLYPH; | 13 | typedef\·struct\·ALLEGRO_GLYPH\·ALLEGRO_GLYPH; |
14 | typedef\·struct\·ALLEGRO_GLYPH\·ALLEGRO_GLYPH; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·structure·containing·the·properties·of·a·character·in·a·font. | 18 | A·structure·containing·the·properties·of·a·character·in·a·font. |
20 | .IP | 19 | .IP |
21 | .nf | 20 | .nf |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·650 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_HAPTIC\·ALLEGRO_HAPTIC; | 13 | typedef\·struct\·ALLEGRO_HAPTIC\·ALLEGRO_HAPTIC; |
14 | typedef\·struct\·ALLEGRO_HAPTIC\·ALLEGRO_HAPTIC; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports | 18 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports |
20 | force·feedback·or·vibration. | 19 | force·feedback·or·vibration. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·21 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2145 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | enum\·ALLEGRO_HAPTIC_CONSTANTS | 13 | enum\·ALLEGRO_HAPTIC_CONSTANTS |
14 | enum\·ALLEGRO_HAPTIC_CONSTANTS | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and | 18 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and |
20 | capabilities. | 19 | capabilities. |
21 | If·the·flag·is·set·in·the·return·value·of | 20 | If·the·flag·is·set·in·the·return·value·of |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·107 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·10769 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | struct\·ALLEGRO_HAPTIC_EFFECT | 13 | struct\·ALLEGRO_HAPTIC_EFFECT |
14 | struct\·ALLEGRO_HAPTIC_EFFECT | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·struct·models·a·particular·haptic·or·vibration·effect. | 18 | This·struct·models·a·particular·haptic·or·vibration·effect. |
20 | It·needs·to·be·filled·in·correctly·and·uploaded·to·a·haptic·device | 19 | It·needs·to·be·filled·in·correctly·and·uploaded·to·a·haptic·device |
21 | before·the·device·can·play·it·back. | 20 | before·the·device·can·play·it·back. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·732 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_HAPTIC_EFFECT_ID\·ALLEGRO_HAPTIC_EFFECT_ID; | 13 | typedef\·struct\·ALLEGRO_HAPTIC_EFFECT_ID\·ALLEGRO_HAPTIC_EFFECT_ID; |
14 | typedef\·struct\·ALLEGRO_HAPTIC_EFFECT_ID\·ALLEGRO_HAPTIC_EFFECT_ID; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect | 18 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect |
20 | and·should·be·considered·opaque. | 19 | and·should·be·considered·opaque. |
21 | Its·implementation·is·visible·merely·to·allow·allocation·by·the·users·of | 20 | Its·implementation·is·visible·merely·to·allow·allocation·by·the·users·of |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·596 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | typedef\·struct\·ALLEGRO_INDEX_BUFFER\·ALLEGRO_INDEX_BUFFER; | 13 | typedef\·struct\·ALLEGRO_INDEX_BUFFER\·ALLEGRO_INDEX_BUFFER; |
14 | typedef\·struct\·ALLEGRO_INDEX_BUFFER\·ALLEGRO_INDEX_BUFFER; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·GPU·index·buffer·that·you·can·use·to·store·indices·of·vertices·in·a | 18 | A·GPU·index·buffer·that·you·can·use·to·store·indices·of·vertices·in·a |
20 | vertex·buffer·on·the·GPU·instead·of·uploading·them·afresh·during·every | 19 | vertex·buffer·on·the·GPU·instead·of·uploading·them·afresh·during·every |
21 | drawing·operation. | 20 | drawing·operation. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·538 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | enum\·ALLEGRO_JOYFLAGS | 13 | enum\·ALLEGRO_JOYFLAGS |
14 | enum\·ALLEGRO_JOYFLAGS | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
19 | ALLEGRO_JOYFLAG_DIGITAL·\-·the·stick·provides·digital·input | 18 | ALLEGRO_JOYFLAG_DIGITAL·\-·the·stick·provides·digital·input |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_JOYFLAG_ANALOGUE·\-·the·stick·provides·analogue·input | 20 | ALLEGRO_JOYFLAG_ANALOGUE·\-·the·stick·provides·analogue·input |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·412 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_JOYSTICK\·ALLEGRO_JOYSTICK; | 13 | typedef\·struct\·ALLEGRO_JOYSTICK\·ALLEGRO_JOYSTICK; |
14 | typedef\·struct\·ALLEGRO_JOYSTICK\·ALLEGRO_JOYSTICK; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·is·an·abstract·data·type·representing·a·physical·joystick. | 18 | This·is·an·abstract·data·type·representing·a·physical·joystick. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·7 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·728 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_JOYSTICK_STATE\·ALLEGRO_JOYSTICK_STATE; | 13 | typedef\·struct\·ALLEGRO_JOYSTICK_STATE\·ALLEGRO_JOYSTICK_STATE; |
14 | typedef\·struct\·ALLEGRO_JOYSTICK_STATE\·ALLEGRO_JOYSTICK_STATE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a | 18 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a |
20 | joystick's·axes·and·buttons·at·a·particular·instant. | 19 | joystick's·axes·and·buttons·at·a·particular·instant. |
21 | All·fields·public·and·read\-only. | 20 | All·fields·public·and·read\-only. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·7 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·730 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_KEYBOARD_STATE\·ALLEGRO_KEYBOARD_STATE; | 13 | typedef\·struct\·ALLEGRO_KEYBOARD_STATE\·ALLEGRO_KEYBOARD_STATE; |
14 | typedef\·struct\·ALLEGRO_KEYBOARD_STATE\·ALLEGRO_KEYBOARD_STATE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a | 18 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a |
20 | keyboard's·state·at·a·particular·instant. | 19 | keyboard's·state·at·a·particular·instant. |
21 | It·contains·the·following·publically·readable·fields: | 20 | It·contains·the·following·publically·readable·fields: |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·8 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·820 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | typedef\·enum\·ALLEGRO_LINE_CAP | 13 | typedef\·enum\·ALLEGRO_LINE_CAP |
14 | typedef\·enum\·ALLEGRO_LINE_CAP | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
19 | ALLEGRO_LINE_CAP_NONE | 18 | ALLEGRO_LINE_CAP_NONE |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_LINE_CAP_SQUARE | 20 | ALLEGRO_LINE_CAP_SQUARE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·7 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·724 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | typedef\·enum\·ALLEGRO_LINE_JOIN | 13 | typedef\·enum\·ALLEGRO_LINE_JOIN |
14 | typedef\·enum\·ALLEGRO_LINE_JOIN | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
19 | ALLEGRO_LINE_JOIN_NONE | 18 | ALLEGRO_LINE_JOIN_NONE |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_LINE_JOIN_BEVEL | 20 | ALLEGRO_LINE_JOIN_BEVEL |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1780 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_LOCKED_REGION\·ALLEGRO_LOCKED_REGION; | 13 | typedef\·struct\·ALLEGRO_LOCKED_REGION\·ALLEGRO_LOCKED_REGION; |
14 | typedef\·struct\·ALLEGRO_LOCKED_REGION\·ALLEGRO_LOCKED_REGION; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to | 18 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to |
20 | lock·it·first. | 19 | lock·it·first. |
21 | The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the | 20 | The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·9 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·900 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_MEMORY_INTERFACE\·ALLEGRO_MEMORY_INTERFACE; | 13 | typedef\·struct\·ALLEGRO_MEMORY_INTERFACE\·ALLEGRO_MEMORY_INTERFACE; |
14 | typedef\·struct\·ALLEGRO_MEMORY_INTERFACE\·ALLEGRO_MEMORY_INTERFACE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·structure·has·the·following·fields. | 18 | This·structure·has·the·following·fields. |
20 | .IP | 19 | .IP |
21 | .nf | 20 | .nf |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·432 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | typedef\·struct\·ALLEGRO_MENU\·ALLEGRO_MENU; | 13 | typedef\·struct\·ALLEGRO_MENU\·ALLEGRO_MENU; |
14 | typedef\·struct\·ALLEGRO_MENU\·ALLEGRO_MENU; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·opaque·data·type·that·represents·a·menu·that·contains·menu·items. | 18 | An·opaque·data·type·that·represents·a·menu·that·contains·menu·items. |
20 | Each·of·the·menu·items·may·optionally·include·a·sub\-menu. | 19 | Each·of·the·menu·items·may·optionally·include·a·sub\-menu. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·16 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1654 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | typedef\·struct\·ALLEGRO_MENU_INFO\·{ | 13 | typedef\·struct\·ALLEGRO_MENU_INFO\·{ |
14 | typedef\·struct\·ALLEGRO_MENU_INFO\·{ | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·structure·that·defines·how·to·create·a·complete·menu·system. | 18 | A·structure·that·defines·how·to·create·a·complete·menu·system. |
20 | For·standard·menu·items,·the·following·format·is·used: | 19 | For·standard·menu·items,·the·following·format·is·used: |
21 | .IP | 20 | .IP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·884 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | typedef\·struct\·ALLEGRO_MIXER\·ALLEGRO_MIXER; | 13 | typedef\·struct\·ALLEGRO_MIXER\·ALLEGRO_MIXER; |
14 | typedef\·struct\·ALLEGRO_MIXER\·ALLEGRO_MIXER; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·mixer·mixes·together·attached·streams·into·a·single·buffer. | 18 | A·mixer·mixes·together·attached·streams·into·a·single·buffer. |
20 | In·the·process,·it·converts·channel·configurations,·sample·frequencies | 19 | In·the·process,·it·converts·channel·configurations,·sample·frequencies |
21 | and·audio·depths·of·the·attached·sample·instances·and·audio·streams | 20 | and·audio·depths·of·the·attached·sample·instances·and·audio·streams |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·501 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | enum\·ALLEGRO_MIXER_QUALITY | 13 | enum\·ALLEGRO_MIXER_QUALITY |
14 | enum\·ALLEGRO_MIXER_QUALITY | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
19 | ALLEGRO_MIXER_QUALITY_POINT·\-·point·sampling | 18 | ALLEGRO_MIXER_QUALITY_POINT·\-·point·sampling |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_MIXER_QUALITY_LINEAR·\-·linear·interpolation | 20 | ALLEGRO_MIXER_QUALITY_LINEAR·\-·linear·interpolation |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·8 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·836 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_MONITOR_INFO | 13 | typedef\·struct\·ALLEGRO_MONITOR_INFO |
14 | typedef\·struct\·ALLEGRO_MONITOR_INFO | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Describes·a·monitor's·size·and·position·relative·to·other·monitors. | 18 | Describes·a·monitor's·size·and·position·relative·to·other·monitors. |
20 | x1,·y1·will·be·0,·0·on·the·primary·display. | 19 | x1,·y1·will·be·0,·0·on·the·primary·display. |
21 | Other·monitors·can·have·negative·values·if·they·are·to·the·left·or·above | 20 | Other·monitors·can·have·negative·values·if·they·are·to·the·left·or·above |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·9 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·953 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·enum\·ALLEGRO_MOUSE_EMULATION_MODE | 13 | typedef\·enum\·ALLEGRO_MOUSE_EMULATION_MODE |
14 | typedef\·enum\·ALLEGRO_MOUSE_EMULATION_MODE | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Type·of·mouse·emulation·to·apply. | 18 | Type·of·mouse·emulation·to·apply. |
20 | .TP | 19 | .TP |
21 | .B·ALLEGRO_MOUSE_EMULATION_NONE | 20 | .B·ALLEGRO_MOUSE_EMULATION_NONE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·852 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_MOUSE_STATE\·ALLEGRO_MOUSE_STATE; | 13 | typedef\·struct\·ALLEGRO_MOUSE_STATE\·ALLEGRO_MOUSE_STATE; |
14 | typedef\·struct\·ALLEGRO_MOUSE_STATE\·ALLEGRO_MOUSE_STATE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Public·fields·(read·only): | 18 | Public·fields·(read·only): |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | x·\-·mouse·x·position | 20 | x·\-·mouse·x·position |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·358 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·ALLEGRO_MSECS_TO_SECS(x)\·\·\·\·\·\·((x)\·/\·1000.0) | 13 | #define\·ALLEGRO_MSECS_TO_SECS(x)\·\·\·\·\·\·((x)\·/\·1000.0) |
14 | #define\·ALLEGRO_MSECS_TO_SECS(x)\·\·\·\·\·\·((x)\·/\·1000.0) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Convert·milliseconds·to·seconds. | 18 | Convert·milliseconds·to·seconds. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·336 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_MUTEX\·ALLEGRO_MUTEX; | 13 | typedef\·struct\·ALLEGRO_MUTEX\·ALLEGRO_MUTEX; |
14 | typedef\·struct\·ALLEGRO_MUTEX\·ALLEGRO_MUTEX; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·opaque·structure·representing·a·mutex. | 18 | An·opaque·structure·representing·a·mutex. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·499 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE\·255 | 13 | #define\·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE\·255 |
14 | #define\·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE\·255 | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·is·the·maximum·size·of·the·title·that·can·be·set·with | 18 | This·is·the·maximum·size·of·the·title·that·can·be·set·with |
20 | al_set_new_window_title(3alleg5). | 19 | al_set_new_window_title(3alleg5). |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·403 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·ALLEGRO_PI\·\·\·\·\·\·\·\·3.14159265358979323846 | 13 | #define\·ALLEGRO_PI\·\·\·\·\·\·\·\·3.14159265358979323846 |
14 | #define\·ALLEGRO_PI\·\·\·\·\·\·\·\·3.14159265358979323846 | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but | 18 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but |
20 | you·can·use·this·one·instead. | 19 | you·can·use·this·one·instead. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·64 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6440 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·enum\·ALLEGRO_PIXEL_FORMAT | 13 | typedef\·enum\·ALLEGRO_PIXEL_FORMAT |
14 | typedef\·enum\·ALLEGRO_PIXEL_FORMAT | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Pixel·formats. | 18 | Pixel·formats. |
20 | Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a·pixel·in | 19 | Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a·pixel·in |
21 | memory. | 20 | memory. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·418 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | enum\·ALLEGRO_PLAYMODE | 13 | enum\·ALLEGRO_PLAYMODE |
14 | enum\·ALLEGRO_PLAYMODE | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Sample·and·stream·playback·mode. | 18 | Sample·and·stream·playback·mode. |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_PLAYMODE_ONCE | 20 | ALLEGRO_PLAYMODE_ONCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·21 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2106 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | typedef\·enum\·ALLEGRO_PRIM_ATTR | 13 | typedef\·enum\·ALLEGRO_PRIM_ATTR |
14 | typedef\·enum\·ALLEGRO_PRIM_ATTR | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Enumerates·the·types·of·vertex·attributes·that·a·custom·vertex·may·have. | 18 | Enumerates·the·types·of·vertex·attributes·that·a·custom·vertex·may·have. |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_PRIM_POSITION·\-·Position·information,·can·be·stored·only·in | 20 | ALLEGRO_PRIM_POSITION·\-·Position·information,·can·be·stored·only·in |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1193 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | typedef\·enum\·ALLEGRO_PRIM_BUFFER_FLAGS | 13 | typedef\·enum\·ALLEGRO_PRIM_BUFFER_FLAGS |
14 | typedef\·enum\·ALLEGRO_PRIM_BUFFER_FLAGS | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Flags·to·specify·how·to·create·a·vertex·or·an·index·buffer. | 18 | Flags·to·specify·how·to·create·a·vertex·or·an·index·buffer. |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_PRIM_BUFFER_STREAM·\-·Hints·to·the·driver·that·the·buffer·is | 20 | ALLEGRO_PRIM_BUFFER_STREAM·\-·Hints·to·the·driver·that·the·buffer·is |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·546 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | #define\·ALLEGRO_PRIM_QUALITY\·10 | 13 | #define\·ALLEGRO_PRIM_QUALITY\·10 |
14 | #define\·ALLEGRO_PRIM_QUALITY\·10 | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Controls·the·quality·of·the·approximation·of·curved·primitives | 18 | Controls·the·quality·of·the·approximation·of·curved·primitives |
20 | (e.g.\·circles). | 19 | (e.g.\·circles). |
21 | Curved·primitives·are·drawn·by·approximating·them·with·a·sequence·of | 20 | Curved·primitives·are·drawn·by·approximating·them·with·a·sequence·of |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·30 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3055 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | typedef\·enum\·ALLEGRO_PRIM_STORAGE | 13 | typedef\·enum\·ALLEGRO_PRIM_STORAGE |
14 | typedef\·enum\·ALLEGRO_PRIM_STORAGE | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Enumerates·the·types·of·storage·an·attribute·of·a·custom·vertex·may·be | 18 | Enumerates·the·types·of·storage·an·attribute·of·a·custom·vertex·may·be |
20 | stored·in. | 19 | stored·in. |
21 | Many·of·these·can·only·be·used·for·ALLEGRO_PRIM_USER_ATTR·attributes·and | 20 | Many·of·these·can·only·be·used·for·ALLEGRO_PRIM_USER_ATTR·attributes·and |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·11 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1119 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | typedef\·enum\·ALLEGRO_PRIM_TYPE | 13 | typedef\·enum\·ALLEGRO_PRIM_TYPE |
14 | typedef\·enum\·ALLEGRO_PRIM_TYPE | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Enumerates·the·types·of·primitives·this·addon·can·draw. | 18 | Enumerates·the·types·of·primitives·this·addon·can·draw. |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_PRIM_POINT_LIST·\-·A·list·of·points,·each·vertex·defines·a·point | 20 | ALLEGRO_PRIM_POINT_LIST·\-·A·list·of·points,·each·vertex·defines·a·point |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·7 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·708 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·enum\·ALLEGRO_RENDER_FUNCTION\·{ | 13 | typedef\·enum\·ALLEGRO_RENDER_FUNCTION\·{ |
14 | typedef\·enum\·ALLEGRO_RENDER_FUNCTION\·{ | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Possible·functions·are: | 18 | Possible·functions·are: |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_RENDER_NEVER | 20 | ALLEGRO_RENDER_NEVER |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·17 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1744 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·enum\·ALLEGRO_RENDER_STATE\·{ | 13 | typedef\·enum\·ALLEGRO_RENDER_STATE\·{ |
14 | typedef\·enum\·ALLEGRO_RENDER_STATE\·{ | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Possible·render·states·which·can·be·set·with | 18 | Possible·render·states·which·can·be·set·with |
20 | al_set_render_state(3alleg5): | 19 | al_set_render_state(3alleg5): |
21 | .TP | 20 | .TP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·653 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | typedef\·struct\·ALLEGRO_SAMPLE\·ALLEGRO_SAMPLE; | 13 | typedef\·struct\·ALLEGRO_SAMPLE\·ALLEGRO_SAMPLE; |
14 | typedef\·struct\·ALLEGRO_SAMPLE\·ALLEGRO_SAMPLE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing | 18 | An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing |
20 | pre\-defined·digital·audio. | 19 | pre\-defined·digital·audio. |
21 | It·holds·a·user\-specified·PCM·data·buffer·and·information·about·its | 20 | It·holds·a·user\-specified·PCM·data·buffer·and·information·about·its |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·559 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | typedef\·struct\·ALLEGRO_SAMPLE_ID\·ALLEGRO_SAMPLE_ID; | 13 | typedef\·struct\·ALLEGRO_SAMPLE_ID\·ALLEGRO_SAMPLE_ID; |
14 | typedef\·struct\·ALLEGRO_SAMPLE_ID\·ALLEGRO_SAMPLE_ID; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via | 18 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via |
20 | al_play_sample(3alleg5). | 19 | al_play_sample(3alleg5). |
21 | It·can·be·used·to·later·stop·the·sample·with·al_stop_sample(3alleg5). | 20 | It·can·be·used·to·later·stop·the·sample·with·al_stop_sample(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1145 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | typedef\·struct\·ALLEGRO_SAMPLE_INSTANCE\·ALLEGRO_SAMPLE_INSTANCE; | 13 | typedef\·struct\·ALLEGRO_SAMPLE_INSTANCE\·ALLEGRO_SAMPLE_INSTANCE; |
14 | typedef\·struct\·ALLEGRO_SAMPLE_INSTANCE\·ALLEGRO_SAMPLE_INSTANCE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a | 18 | An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a |
20 | predefined·sound·effect. | 19 | predefined·sound·effect. |
21 | It·holds·information·about·how·the·effect·should·be·played:·These | 20 | It·holds·information·about·how·the·effect·should·be·played:·These |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·503 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·enum\·ALLEGRO_SEEK | 13 | typedef\·enum\·ALLEGRO_SEEK |
14 | typedef\·enum\·ALLEGRO_SEEK | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
19 | ALLEGRO_SEEK_SET·\-·seek·relative·to·beginning·of·file | 18 | ALLEGRO_SEEK_SET·\-·seek·relative·to·beginning·of·file |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_SEEK_CUR·\-·seek·relative·to·current·file·position | 20 | ALLEGRO_SEEK_CUR·\-·seek·relative·to·current·file·position |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·759 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_SHADER\·ALLEGRO_SHADER; | 13 | typedef\·struct\·ALLEGRO_SHADER\·ALLEGRO_SHADER; |
14 | typedef\·struct\·ALLEGRO_SHADER\·ALLEGRO_SHADER; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·ALLEGRO_SHADER(3alleg5)·is·a·program·that·runs·on·the·GPU. | 18 | An·ALLEGRO_SHADER(3alleg5)·is·a·program·that·runs·on·the·GPU. |
20 | It·combines·both·a·vertex·and·a·pixel·shader. | 19 | It·combines·both·a·vertex·and·a·pixel·shader. |
21 | (In·OpenGL·terms,·an·ALLEGRO_SHADER(3alleg5)·is·actually·a | 20 | (In·OpenGL·terms,·an·ALLEGRO_SHADER(3alleg5)·is·actually·a |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·654 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·enum\·ALLEGRO_SHADER_PLATFORM\·ALLEGRO_SHADER_PLATFORM; | 13 | typedef\·enum\·ALLEGRO_SHADER_PLATFORM\·ALLEGRO_SHADER_PLATFORM; |
14 | typedef\·enum\·ALLEGRO_SHADER_PLATFORM\·ALLEGRO_SHADER_PLATFORM; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | The·underlying·platform·which·the·ALLEGRO_SHADER(3alleg5)·is·built·on | 18 | The·underlying·platform·which·the·ALLEGRO_SHADER(3alleg5)·is·built·on |
20 | top·of,·which·dictates·the·language·used·to·program·the·shader. | 19 | top·of,·which·dictates·the·language·used·to·program·the·shader. |
21 | .IP·\[bu]·2 | 20 | .IP·\[bu]·2 |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1392 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·enum\·ALLEGRO_SHADER_TYPE\·ALLEGRO_SHADER_TYPE; | 13 | typedef\·enum\·ALLEGRO_SHADER_TYPE\·ALLEGRO_SHADER_TYPE; |
14 | typedef\·enum\·ALLEGRO_SHADER_TYPE\·ALLEGRO_SHADER_TYPE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Used·with·al_attach_shader_source(3alleg5)·and | 18 | Used·with·al_attach_shader_source(3alleg5)·and |
20 | al_attach_shader_source_file(3alleg5)·to·specify·how·to·interpret·the | 19 | al_attach_shader_source_file(3alleg5)·to·specify·how·to·interpret·the |
21 | attached·source. | 20 | attached·source. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·15 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1515 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | typedef\·struct\·ALLEGRO_STATE\·ALLEGRO_STATE; | 12 | typedef\·struct\·ALLEGRO_STATE\·ALLEGRO_STATE; |
13 | typedef\·struct\·ALLEGRO_STATE\·ALLEGRO_STATE; | ||
14 | \f[] | 13 | \f[] |
15 | .fi | 14 | .fi |
16 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
17 | .PP | 16 | .PP |
18 | Opaque·type·which·is·passed·to | 17 | Opaque·type·which·is·passed·to |
19 | al_store_state(3alleg5)/al_restore_state(3alleg5). | 18 | al_store_state(3alleg5)/al_restore_state(3alleg5). |
20 | .PP | 19 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·415 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | typedef\·enum\·ALLEGRO_STATE_FLAGS | 12 | typedef\·enum\·ALLEGRO_STATE_FLAGS |
13 | typedef\·enum\·ALLEGRO_STATE_FLAGS | ||
14 | \f[] | 13 | \f[] |
15 | .fi | 14 | .fi |
16 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
17 | .PP | 16 | .PP |
18 | Flags·which·can·be·passed·to | 17 | Flags·which·can·be·passed·to |
19 | al_store_state(3alleg5)/al_restore_state(3alleg5)·as·bit·combinations. | 18 | al_store_state(3alleg5)/al_restore_state(3alleg5)·as·bit·combinations. |
20 | See·al_store_state(3alleg5)·for·the·list·of·flags. | 19 | See·al_store_state(3alleg5)·for·the·list·of·flags. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·352 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | typedef\·struct\·ALLEGRO_TEXTLOG\·ALLEGRO_TEXTLOG; | 13 | typedef\·struct\·ALLEGRO_TEXTLOG\·ALLEGRO_TEXTLOG; |
14 | typedef\·struct\·ALLEGRO_TEXTLOG\·ALLEGRO_TEXTLOG; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Opaque·handle·to·a·text·log·window. | 18 | Opaque·handle·to·a·text·log·window. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·341 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_THREAD\·ALLEGRO_THREAD; | 13 | typedef\·struct\·ALLEGRO_THREAD\·ALLEGRO_THREAD; |
14 | typedef\·struct\·ALLEGRO_THREAD\·ALLEGRO_THREAD; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·opaque·structure·representing·a·thread. | 18 | An·opaque·structure·representing·a·thread. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·353 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_TIMER\·ALLEGRO_TIMER; | 13 | typedef\·struct\·ALLEGRO_TIMER\·ALLEGRO_TIMER; |
14 | typedef\·struct\·ALLEGRO_TIMER\·ALLEGRO_TIMER; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·is·an·abstract·data·type·representing·a·timer·object. | 18 | This·is·an·abstract·data·type·representing·a·timer·object. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·411 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_TOUCH_INPUT\·ALLEGRO_TOUCH_INPUT; | 13 | typedef\·struct\·ALLEGRO_TOUCH_INPUT\·ALLEGRO_TOUCH_INPUT; |
14 | typedef\·struct\·ALLEGRO_TOUCH_INPUT\·ALLEGRO_TOUCH_INPUT; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. | 18 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·439 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT\·\·\·\·\·\·\·\·16 | 13 | #define\·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT\·\·\·\·\·\·\·\·16 |
14 | #define\·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT\·\·\·\·\·\·\·\·16 | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. | 18 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·552 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_TOUCH_INPUT_STATE\·ALLEGRO_TOUCH_INPUT_STATE; | 13 | typedef\·struct\·ALLEGRO_TOUCH_INPUT_STATE\·ALLEGRO_TOUCH_INPUT_STATE; |
14 | typedef\·struct\·ALLEGRO_TOUCH_INPUT_STATE\·ALLEGRO_TOUCH_INPUT_STATE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at | 18 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at |
20 | a·particular·instant. | 19 | a·particular·instant. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·863 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_TOUCH_STATE\·ALLEGRO_TOUCH_STATE; | 13 | typedef\·struct\·ALLEGRO_TOUCH_STATE\·ALLEGRO_TOUCH_STATE; |
14 | typedef\·struct\·ALLEGRO_TOUCH_STATE\·ALLEGRO_TOUCH_STATE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a·touch | 18 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a·touch |
20 | at·a·particular·instant. | 19 | at·a·particular·instant. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·568 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_TRANSFORM\·ALLEGRO_TRANSFORM; | 13 | typedef\·struct\·ALLEGRO_TRANSFORM\·ALLEGRO_TRANSFORM; |
14 | typedef\·struct\·ALLEGRO_TRANSFORM\·ALLEGRO_TRANSFORM; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Defines·the·generic·transformation·type,·a·4x4·matrix. | 18 | Defines·the·generic·transformation·type,·a·4x4·matrix. |
20 | 2D·transforms·use·only·a·small·subsection·of·this·matrix,·namely·the·top | 19 | 2D·transforms·use·only·a·small·subsection·of·this·matrix,·namely·the·top |
21 | left·2x2·matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values. | 20 | left·2x2·matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·361 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·ALLEGRO_USECS_TO_SECS(x)\·\·\·\·\·\·((x)\·/\·1000000.0) | 13 | #define\·ALLEGRO_USECS_TO_SECS(x)\·\·\·\·\·\·((x)\·/\·1000000.0) |
14 | #define\·ALLEGRO_USECS_TO_SECS(x)\·\·\·\·\·\·((x)\·/\·1000000.0) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Convert·microseconds·to·seconds. | 18 | Convert·microseconds·to·seconds. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1577 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·ALLEGRO_USER_EVENT\·ALLEGRO_USER_EVENT; | 13 | typedef\·struct\·ALLEGRO_USER_EVENT\·ALLEGRO_USER_EVENT; |
14 | typedef\·struct\·ALLEGRO_USER_EVENT\·ALLEGRO_USER_EVENT; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·event·structure·that·can·be·emitted·by·user·event·sources. | 18 | An·event·structure·that·can·be·emitted·by·user·event·sources. |
20 | These·are·the·public·fields: | 19 | These·are·the·public·fields: |
21 | .IP·\[bu]·2 | 20 | .IP·\[bu]·2 |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·450 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·_al_tagbstring\·ALLEGRO_USTR; | 13 | typedef\·struct\·_al_tagbstring\·ALLEGRO_USTR; |
14 | typedef\·struct\·_al_tagbstring\·ALLEGRO_USTR; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | An·opaque·type·representing·a·string. | 18 | An·opaque·type·representing·a·string. |
20 | ALLEGRO_USTRs·normally·contain·UTF\-8·encoded·strings,·but·they·may·be | 19 | ALLEGRO_USTRs·normally·contain·UTF\-8·encoded·strings,·but·they·may·be |
21 | used·to·hold·any·byte·sequences,·including·NULs. | 20 | used·to·hold·any·byte·sequences,·including·NULs. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·508 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·struct\·_al_tagbstring\·ALLEGRO_USTR_INFO; | 13 | typedef\·struct\·_al_tagbstring\·ALLEGRO_USTR_INFO; |
14 | typedef\·struct\·_al_tagbstring\·ALLEGRO_USTR_INFO; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·type·that·holds·additional·information·for·an·ALLEGRO_USTR(3alleg5) | 18 | A·type·that·holds·additional·information·for·an·ALLEGRO_USTR(3alleg5) |
20 | that·references·an·external·memory·buffer. | 19 | that·references·an·external·memory·buffer. |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·10 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1017 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | typedef\·struct\·ALLEGRO_VERTEX\·ALLEGRO_VERTEX; | 13 | typedef\·struct\·ALLEGRO_VERTEX\·ALLEGRO_VERTEX; |
14 | typedef\·struct\·ALLEGRO_VERTEX\·ALLEGRO_VERTEX; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Defines·the·generic·vertex·type,·with·a·3D·position,·color·and·texture | 18 | Defines·the·generic·vertex·type,·with·a·3D·position,·color·and·texture |
20 | coordinates·for·a·single·texture. | 19 | coordinates·for·a·single·texture. |
21 | Note·that·at·this·time,·the·software·driver·for·this·addon·cannot·render | 20 | Note·that·at·this·time,·the·software·driver·for·this·addon·cannot·render |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·573 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | typedef\·struct\·ALLEGRO_VERTEX_BUFFER\·ALLEGRO_VERTEX_BUFFER; | 13 | typedef\·struct\·ALLEGRO_VERTEX_BUFFER\·ALLEGRO_VERTEX_BUFFER; |
14 | typedef\·struct\·ALLEGRO_VERTEX_BUFFER\·ALLEGRO_VERTEX_BUFFER; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·GPU·vertex·buffer·that·you·can·use·to·store·vertices·on·the·GPU | 18 | A·GPU·vertex·buffer·that·you·can·use·to·store·vertices·on·the·GPU |
20 | instead·of·uploading·them·afresh·during·every·drawing·operation. | 19 | instead·of·uploading·them·afresh·during·every·drawing·operation. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·687 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | #define\·ALLEGRO_VERTEX_CACHE_SIZE\·256 | 13 | #define\·ALLEGRO_VERTEX_CACHE_SIZE\·256 |
14 | #define\·ALLEGRO_VERTEX_CACHE_SIZE\·256 | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Defines·the·size·of·the·transformation·vertex·cache·for·the·software | 18 | Defines·the·size·of·the·transformation·vertex·cache·for·the·software |
20 | renderer. | 19 | renderer. |
21 | If·you·pass·less·than·this·many·vertices·to·the·primitive·rendering | 20 | If·you·pass·less·than·this·many·vertices·to·the·primitive·rendering |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·626 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | typedef\·struct\·ALLEGRO_VERTEX_DECL\·ALLEGRO_VERTEX_DECL; | 13 | typedef\·struct\·ALLEGRO_VERTEX_DECL\·ALLEGRO_VERTEX_DECL; |
14 | typedef\·struct\·ALLEGRO_VERTEX_DECL\·ALLEGRO_VERTEX_DECL; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·vertex·declaration. | 18 | A·vertex·declaration. |
20 | This·opaque·structure·is·responsible·for·describing·the·format·and | 19 | This·opaque·structure·is·responsible·for·describing·the·format·and |
21 | layout·of·a·user·defined·custom·vertex. | 20 | layout·of·a·user·defined·custom·vertex. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·20 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2022 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | typedef\·struct\·ALLEGRO_VERTEX_ELEMENT\·ALLEGRO_VERTEX_ELEMENT; | 13 | typedef\·struct\·ALLEGRO_VERTEX_ELEMENT\·ALLEGRO_VERTEX_ELEMENT; |
14 | typedef\·struct\·ALLEGRO_VERTEX_ELEMENT\·ALLEGRO_VERTEX_ELEMENT; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·small·structure·describing·a·certain·element·of·a·vertex. | 18 | A·small·structure·describing·a·certain·element·of·a·vertex. |
20 | E.g. | 19 | E.g. |
21 | the·position·of·the·vertex,·or·its·color. | 20 | the·position·of·the·vertex,·or·its·color. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1097 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | enum\·ALLEGRO_VIDEO_EVENT_TYPE | 13 | enum\·ALLEGRO_VIDEO_EVENT_TYPE |
14 | enum\·ALLEGRO_VIDEO_EVENT_TYPE | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Events·sent·by·al_get_video_event_source(3alleg5). | 18 | Events·sent·by·al_get_video_event_source(3alleg5). |
20 | .SS·ALLEGRO_EVENT_VIDEO_FRAME_SHOW | 19 | .SS·ALLEGRO_EVENT_VIDEO_FRAME_SHOW |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1184 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | typedef\·enum\·ALLEGRO_VIDEO_POSITION_TYPE\·ALLEGRO_VIDEO_POSITION_TYPE; | 13 | typedef\·enum\·ALLEGRO_VIDEO_POSITION_TYPE\·ALLEGRO_VIDEO_POSITION_TYPE; |
14 | typedef\·enum\·ALLEGRO_VIDEO_POSITION_TYPE\·ALLEGRO_VIDEO_POSITION_TYPE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Used·with·al_get_video_position(3alleg5)·to·specify·which·position·to | 18 | Used·with·al_get_video_position(3alleg5)·to·specify·which·position·to |
20 | retrieve. | 19 | retrieve. |
21 | If·these·get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the | 20 | If·these·get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·620 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | typedef\·struct\·ALLEGRO_VOICE\·ALLEGRO_VOICE; | 13 | typedef\·struct\·ALLEGRO_VOICE\·ALLEGRO_VOICE; |
14 | typedef\·struct\·ALLEGRO_VOICE\·ALLEGRO_VOICE; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·voice·represents·an·audio·device·on·the·system,·which·may·be·a·real | 18 | A·voice·represents·an·audio·device·on·the·system,·which·may·be·a·real |
20 | device,·or·an·abstract·device·provided·by·the·operating·system. | 19 | device,·or·an·abstract·device·provided·by·the·operating·system. |
21 | To·play·back·audio,·you·would·attach·a·mixer,·sample·instance·or·audio | 20 | To·play·back·audio,·you·would·attach·a·mixer,·sample·instance·or·audio |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·7 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·735 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·enum\·ALLEGRO_WRITE_MASK_FLAGS\·{ | 13 | typedef\·enum\·ALLEGRO_WRITE_MASK_FLAGS\·{ |
14 | typedef\·enum\·ALLEGRO_WRITE_MASK_FLAGS\·{ | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled | 18 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled |
20 | bit·means·it·is·not. | 19 | bit·means·it·is·not. |
21 | .IP·\[bu]·2 | 20 | .IP·\[bu]·2 |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·620 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | int\·al_append_menu_item(ALLEGRO_MENU\·*parent,\·char\·const\·*title,\·uint16_t\·id, | 13 | int\·al_append_menu_item(ALLEGRO_MENU\·*parent,\·char\·const\·*title,\·uint16_t\·id, |
14 | \·\·\·int\·flags,\·ALLEGRO_BITMAP\·*icon,\·ALLEGRO_MENU\·*submenu) | 14 | \·\·\·int\·flags,\·ALLEGRO_BITMAP\·*icon,\·ALLEGRO_MENU\·*submenu) |
15 | int\·al_append_menu_item(ALLEGRO_MENU\·*parent,\·char\·const\·*title,\·uint16_t\·id, | ||
16 | \·\·\·int\·flags,\·ALLEGRO_BITMAP\·*icon,\·ALLEGRO_MENU\·*submenu) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Appends·a·menu·item·to·the·end·of·the·menu. | 19 | Appends·a·menu·item·to·the·end·of·the·menu. |
22 | See·al_insert_menu_item(3alleg5)·for·more·information. | 20 | See·al_insert_menu_item(3alleg5)·for·more·information. |
23 | .SH·SINCE | 21 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·728 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | void\·al_append_native_text_log(ALLEGRO_TEXTLOG\·*textlog, | 13 | void\·al_append_native_text_log(ALLEGRO_TEXTLOG\·*textlog, |
14 | \·\·\·char\·const\·*format,\·...) | 14 | \·\·\·char\·const\·*format,\·...) |
15 | void\·al_append_native_text_log(ALLEGRO_TEXTLOG\·*textlog, | ||
16 | \·\·\·char\·const\·*format,\·...) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Appends·a·line·of·text·to·the·message·log·window·and·scrolls·to·the | 19 | Appends·a·line·of·text·to·the·message·log·window·and·scrolls·to·the |
22 | bottom·(if·the·line·would·not·be·visible·otherwise). | 20 | bottom·(if·the·line·would·not·be·visible·otherwise). |
23 | This·works·like·printf. | 21 | This·works·like·printf. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·567 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM\·*stream,\·ALLEGRO_MIXER\·*mixer) | 13 | bool\·al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM\·*stream,\·ALLEGRO_MIXER\·*mixer) |
14 | bool\·al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM\·*stream,\·ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Attach·an·audio·stream·to·a·mixer. | 18 | Attach·an·audio·stream·to·a·mixer. |
20 | The·stream·must·not·already·be·attached·to·anything. | 19 | The·stream·must·not·already·be·attached·to·anything. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·986 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM\·*stream, | 13 | bool\·al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM\·*stream, |
14 | \·\·\·ALLEGRO_VOICE\·*voice) | 14 | \·\·\·ALLEGRO_VOICE\·*voice) |
15 | bool\·al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM\·*stream, | ||
16 | \·\·\·ALLEGRO_VOICE\·*voice) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Attaches·an·audio·stream·to·a·voice. | 19 | Attaches·an·audio·stream·to·a·voice. |
22 | The·same·rules·as·al_attach_sample_instance_to_voice(3alleg5)·apply. | 20 | The·same·rules·as·al_attach_sample_instance_to_voice(3alleg5)·apply. |
23 | This·may·fail·if·the·driver·can't·create·a·voice·with·the·buffer·count | 21 | This·may·fail·if·the·driver·can't·create·a·voice·with·the·buffer·count |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·752 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_attach_mixer_to_mixer(ALLEGRO_MIXER\·*stream,\·ALLEGRO_MIXER\·*mixer) | 13 | bool\·al_attach_mixer_to_mixer(ALLEGRO_MIXER\·*stream,\·ALLEGRO_MIXER\·*mixer) |
14 | bool\·al_attach_mixer_to_mixer(ALLEGRO_MIXER\·*stream,\·ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Attaches·the·mixer·passed·as·the·first·argument·onto·the·mixer·passed·as | 18 | Attaches·the·mixer·passed·as·the·first·argument·onto·the·mixer·passed·as |
20 | the·second·argument. | 19 | the·second·argument. |
21 | The·first·mixer·(that·is·going·to·be·attached)·must·not·already·be | 20 | The·first·mixer·(that·is·going·to·be·attached)·must·not·already·be |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·562 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_attach_mixer_to_voice(ALLEGRO_MIXER\·*mixer,\·ALLEGRO_VOICE\·*voice) | 13 | bool\·al_attach_mixer_to_voice(ALLEGRO_MIXER\·*mixer,\·ALLEGRO_VOICE\·*voice) |
14 | bool\·al_attach_mixer_to_voice(ALLEGRO_MIXER\·*mixer,\·ALLEGRO_VOICE\·*voice) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Attaches·a·mixer·to·a·voice. | 18 | Attaches·a·mixer·to·a·voice. |
20 | It·must·have·the·same·frequency·and·channel·configuration,·but·the·depth | 19 | It·must·have·the·same·frequency·and·channel·configuration,·but·the·depth |
21 | may·be·different. | 20 | may·be·different. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·588 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE\·*spl, | 13 | bool\·al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE\·*spl, |
14 | \·\·\·ALLEGRO_MIXER\·*mixer) | 14 | \·\·\·ALLEGRO_MIXER\·*mixer) |
15 | bool\·al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE\·*spl, | ||
16 | \·\·\·ALLEGRO_MIXER\·*mixer) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Attach·a·sample·instance·to·a·mixer. | 19 | Attach·a·sample·instance·to·a·mixer. |
22 | The·instance·must·not·already·be·attached·to·anything. | 20 | The·instance·must·not·already·be·attached·to·anything. |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·899 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE\·*spl, | 13 | bool\·al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE\·*spl, |
14 | \·\·\·ALLEGRO_VOICE\·*voice) | 14 | \·\·\·ALLEGRO_VOICE\·*voice) |
15 | bool\·al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE\·*spl, | ||
16 | \·\·\·ALLEGRO_VOICE\·*voice) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Attaches·a·sample·instance·to·a·voice,·and·allows·it·to·play. | 19 | Attaches·a·sample·instance·to·a·voice,·and·allows·it·to·play. |
22 | The·instance's·gain·and·loop·mode·will·be·ignored,·and·it·must·have·the | 20 | The·instance's·gain·and·loop·mode·will·be·ignored,·and·it·must·have·the |
23 | same·frequency,·channel·configuration·and·depth·(including·signed\-ness) | 21 | same·frequency,·channel·configuration·and·depth·(including·signed\-ness) |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·7 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·730 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_MENU\·*al_build_menu(ALLEGRO_MENU_INFO\·*info) | 13 | ALLEGRO_MENU\·*al_build_menu(ALLEGRO_MENU_INFO\·*info) |
14 | ALLEGRO_MENU\·*al_build_menu(ALLEGRO_MENU_INFO\·*info) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Builds·a·menu·based·on·the·specifications·of·a·sequence·of | 18 | Builds·a·menu·based·on·the·specifications·of·a·sequence·of |
20 | \f[C]ALLEGRO_MENU_INFO\f[]·elements. | 19 | \f[C]ALLEGRO_MENU_INFO\f[]·elements. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3421 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_calculate_arc(float*\·dest,\·int\·stride,\·float\·cx,\·float\·cy, | 13 | void\·al_calculate_arc(float*\·dest,\·int\·stride,\·float\·cx,\·float\·cy, |
14 | \·\·\·float\·rx,\·float\·ry,\·float\·start_theta,\·float\·delta_theta,\·float\·thickness, | 14 | \·\·\·float\·rx,\·float\·ry,\·float\·start_theta,\·float\·delta_theta,\·float\·thickness, |
15 | \·\·\·int\·num_points) | 15 | \·\·\·int\·num_points) |
16 | void\·al_calculate_arc(float*\·dest,\·int\·stride,\·float\·cx,\·float\·cy, | ||
17 | \·\·\·float\·rx,\·float\·ry,\·float\·start_theta,\·float\·delta_theta,\·float\·thickness, | ||
18 | \·\·\·int\·num_points) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | When·\f[C]thickness\·<=\·0\f[]·this·function·computes·positions·of | 20 | When·\f[C]thickness\·<=\·0\f[]·this·function·computes·positions·of |
24 | \f[C]num_points\f[]·regularly·spaced·points·on·an·elliptical·arc. | 21 | \f[C]num_points\f[]·regularly·spaced·points·on·an·elliptical·arc. |
25 | When·\f[C]thickness\·>\·0\f[]·this·function·computes·two·sets·of·points, | 22 | When·\f[C]thickness\·>\·0\f[]·this·function·computes·two·sets·of·points, |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1415 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_calculate_ribbon(float*\·dest,\·int\·dest_stride,\·const\·float\·*points, | 13 | void\·al_calculate_ribbon(float*\·dest,\·int\·dest_stride,\·const\·float\·*points, |
14 | \·\·\·int\·points_stride,\·float\·thickness,\·int\·num_segments) | 14 | \·\·\·int\·points_stride,\·float\·thickness,\·int\·num_segments) |
15 | void\·al_calculate_ribbon(float*\·dest,\·int\·dest_stride,\·const\·float\·*points, | ||
16 | \·\·\·int\·points_stride,\·float\·thickness,\·int\·num_segments) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Calculates·a·ribbon·given·an·array·of·points. | 19 | Calculates·a·ribbon·given·an·array·of·points. |
22 | The·ribbon·will·go·through·all·of·the·passed·points. | 20 | The·ribbon·will·go·through·all·of·the·passed·points. |
23 | If·\f[C]thickness\·<=\·0\f[],·then·\f[C]num_segments\f[]·of·points·are | 21 | If·\f[C]thickness\·<=\·0\f[],·then·\f[C]num_segments\f[]·of·points·are |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1194 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_calculate_spline(float*\·dest,\·int\·stride,\·float\·points[8], | 13 | void\·al_calculate_spline(float*\·dest,\·int\·stride,\·float\·points[8], |
14 | \·\·\·float\·thickness,\·int\·num_segments) | 14 | \·\·\·float\·thickness,\·int\·num_segments) |
15 | void\·al_calculate_spline(float*\·dest,\·int\·stride,\·float\·points[8], | ||
16 | \·\·\·float\·thickness,\·int\·num_segments) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Calculates·a·Bézier·spline·given·4·control·points. | 19 | Calculates·a·Bézier·spline·given·4·control·points. |
22 | If·\f[C]thickness\·<=\·0\f[],·then·\f[C]num_segments\f[]·of·points·are | 20 | If·\f[C]thickness\·<=\·0\f[],·then·\f[C]num_segments\f[]·of·points·are |
23 | required·in·the·destination,·otherwise·twice·as·many·are·needed. | 21 | required·in·the·destination,·otherwise·twice·as·many·are·needed. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·517 |
Offset 8, 16 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·al_calloc(c,\·n)\·\\ | 13 | #define\·al_calloc(c,\·n)\·\\ |
14 | \·\·\·ALLEGRO_TIMEOUT | ||
15 | #define\·al_calloc(c,\·n)\·\\ | ||
16 | \·\·\·(al_calloc_with_context((c),\·(n),\·__LINE__,\·__FILE__,\·__func__)) | 14 | \·\·\·(al_calloc_with_context((c),\·(n),\·__LINE__,\·__FILE__,\·__func__)) |
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be | 19 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be |
22 | overridden. | 20 | overridden. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·563 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_MENU\·*al_clone_menu(ALLEGRO_MENU\·*menu) | 13 | ALLEGRO_MENU\·*al_clone_menu(ALLEGRO_MENU\·*menu) |
14 | ALLEGRO_MENU\·*al_clone_menu(ALLEGRO_MENU\·*menu) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Makes·a·copy·of·a·menu·so·that·it·can·be·reused·on·another·display. | 18 | Makes·a·copy·of·a·menu·so·that·it·can·be·reused·on·another·display. |
20 | The·menu·being·cloned·can·be·anything:·a·regular·menu,·a·popup·menu,·or | 19 | The·menu·being·cloned·can·be·anything:·a·regular·menu,·a·popup·menu,·or |
21 | a·sub\-menu. | 20 | a·sub\-menu. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·480 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_MENU\·*al_clone_menu_for_popup(ALLEGRO_MENU\·*menu) | 13 | ALLEGRO_MENU\·*al_clone_menu_for_popup(ALLEGRO_MENU\·*menu) |
14 | ALLEGRO_MENU\·*al_clone_menu_for_popup(ALLEGRO_MENU\·*menu) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Exactly·like·al_clone_menu(3alleg5),·except·that·the·copy·is·for·a·popup | 18 | Exactly·like·al_clone_menu(3alleg5),·except·that·the·copy·is·for·a·popup |
20 | menu. | 19 | menu. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·506 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | void\·al_close_native_text_log(ALLEGRO_TEXTLOG\·*textlog) | 13 | void\·al_close_native_text_log(ALLEGRO_TEXTLOG\·*textlog) |
14 | void\·al_close_native_text_log(ALLEGRO_TEXTLOG\·*textlog) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Closes·a·message·log·window·opened·with·al_open_native_text_log(3alleg5) | 18 | Closes·a·message·log·window·opened·with·al_open_native_text_log(3alleg5) |
20 | earlier. | 19 | earlier. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·428 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | void\·al_close_video(ALLEGRO_VIDEO\·*video) | 13 | void\·al_close_video(ALLEGRO_VIDEO\·*video) |
14 | void\·al_close_video(ALLEGRO_VIDEO\·*video) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Closes·the·video·and·frees·all·allocated·resources. | 18 | Closes·the·video·and·frees·all·allocated·resources. |
20 | The·video·pointer·is·invalid·after·the·function·returns. | 19 | The·video·pointer·is·invalid·after·the·function·returns. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·495 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | ALLEGRO_COLOR\·al_color_cmyk(float\·c,\·float\·m,\·float\·y,\·float\·k) | 13 | ALLEGRO_COLOR\·al_color_cmyk(float\·c,\·float\·m,\·float\·y,\·float\·k) |
14 | ALLEGRO_COLOR\·al_color_cmyk(float\·c,\·float\·m,\·float\·y,\·float\·k) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CMYK·values·(cyan, | 18 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CMYK·values·(cyan, |
20 | magenta,·yellow,·black). | 19 | magenta,·yellow,·black). |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·511 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_cmyk_to_rgb(float\·cyan,\·float\·magenta,\·float\·yellow, | 13 | void\·al_color_cmyk_to_rgb(float\·cyan,\·float\·magenta,\·float\·yellow, |
14 | \·\·\·\·float\·key,\·float\·*red,\·float\·*green,\·float\·*blue) | 14 | \·\·\·\·float\·key,\·float\·*red,\·float\·*green,\·float\·*blue) |
15 | void\·al_color_cmyk_to_rgb(float\·cyan,\·float\·magenta,\·float\·yellow, | ||
16 | \·\·\·\·float\·key,\·float\·*red,\·float\·*green,\·float\·*blue) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·CMYK·values·to·RGB·values. | 19 | Convert·CMYK·values·to·RGB·values. |
22 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·660 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | ALLEGRO_COLOR\·al_color_hsl(float\·h,\·float\·s,\·float\·l) | 13 | ALLEGRO_COLOR\·al_color_hsl(float\·h,\·float\·s,\·float\·l) |
14 | ALLEGRO_COLOR\·al_color_hsl(float\·h,\·float\·s,\·float\·l) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSL·(hue,·saturation, | 18 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSL·(hue,·saturation, |
20 | lightness)·values. | 19 | lightness)·values. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·806 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_hsl_to_rgb(float\·hue,\·float\·saturation,\·float\·lightness, | 13 | void\·al_color_hsl_to_rgb(float\·hue,\·float\·saturation,\·float\·lightness, |
14 | \·\·\·float\·*red,\·float\·*green,\·float\·*blue) | 14 | \·\·\·float\·*red,\·float\·*green,\·float\·*blue) |
15 | void\·al_color_hsl_to_rgb(float\·hue,\·float\·saturation,\·float\·lightness, | ||
16 | \·\·\·float\·*red,\·float\·*green,\·float\·*blue) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·values·in·HSL·color·model·to·RGB·color·model. | 19 | Convert·values·in·HSL·color·model·to·RGB·color·model. |
22 | .PP | 20 | .PP |
23 | Parameters: | 21 | Parameters: |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·648 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | ALLEGRO_COLOR\·al_color_hsv(float\·h,\·float\·s,\·float\·v) | 13 | ALLEGRO_COLOR\·al_color_hsv(float\·h,\·float\·s,\·float\·v) |
14 | ALLEGRO_COLOR\·al_color_hsv(float\·h,\·float\·s,\·float\·v) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSV·(hue,·saturation, | 18 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSV·(hue,·saturation, |
20 | value)·values. | 19 | value)·values. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·794 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_hsv_to_rgb(float\·hue,\·float\·saturation,\·float\·value, | 13 | void\·al_color_hsv_to_rgb(float\·hue,\·float\·saturation,\·float\·value, |
14 | \·\·\·float\·*red,\·float\·*green,\·float\·*blue) | 14 | \·\·\·float\·*red,\·float\·*green,\·float\·*blue) |
15 | void\·al_color_hsv_to_rgb(float\·hue,\·float\·saturation,\·float\·value, | ||
16 | \·\·\·float\·*red,\·float\·*green,\·float\·*blue) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·values·in·HSV·color·model·to·RGB·color·model. | 19 | Convert·values·in·HSV·color·model·to·RGB·color·model. |
22 | .PP | 20 | .PP |
23 | Parameters: | 21 | Parameters: |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·7 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·714 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | ALLEGRO_COLOR\·al_color_html(char\·const\·*string) | 13 | ALLEGRO_COLOR\·al_color_html(char\·const\·*string) |
14 | ALLEGRO_COLOR\·al_color_html(char\·const\·*string) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Interprets·an·HTML\-style·hex·number·(e.g. | 18 | Interprets·an·HTML\-style·hex·number·(e.g. |
20 | #00faff)·as·a·color. | 19 | #00faff)·as·a·color. |
21 | The·accepted·format·is·the·same·as·al_color_html_to_rgb(3alleg5). | 20 | The·accepted·format·is·the·same·as·al_color_html_to_rgb(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·806 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | bool\·al_color_html_to_rgb(char\·const\·*string, | 13 | bool\·al_color_html_to_rgb(char\·const\·*string, |
14 | \·\·\·float\·*red,\·float\·*green,\·float\·*blue) | 14 | \·\·\·float\·*red,\·float\·*green,\·float\·*blue) |
15 | bool\·al_color_html_to_rgb(char\·const\·*string, | ||
16 | \·\·\·float\·*red,\·float\·*green,\·float\·*blue) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Interprets·an·HTML\-style·hex·number·(e.g. | 19 | Interprets·an·HTML\-style·hex·number·(e.g. |
22 | #00faff)·as·a·color. | 20 | #00faff)·as·a·color. |
23 | The·only·accepted·formats·are·\[lq]#RRGGBB\[rq]·and·\[lq]RRGGBB\[rq] | 21 | The·only·accepted·formats·are·\[lq]#RRGGBB\[rq]·and·\[lq]RRGGBB\[rq] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·10 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1017 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | ALLEGRO_COLOR\·al_color_lab(float\·l,\·float\·a,\·float\·b) | 13 | ALLEGRO_COLOR\·al_color_lab(float\·l,\·float\·a,\·float\·b) |
14 | ALLEGRO_COLOR\·al_color_lab(float\·l,\·float\·a,\·float\·b) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·L*a*b*·values. | 18 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·L*a*b*·values. |
20 | The·L*·component·corresponds·to·luminance·from·0..1. | 19 | The·L*·component·corresponds·to·luminance·from·0..1. |
21 | The·a*·and·b*·components·are·in·the·range·\-1..+1. | 20 | The·a*·and·b*·components·are·in·the·range·\-1..+1. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·516 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_lab_to_rgb(float\·l,\·float\·a,\·float\·b, | 13 | void\·al_color_lab_to_rgb(float\·l,\·float\·a,\·float\·b, |
14 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) | 14 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) |
15 | void\·al_color_lab_to_rgb(float\·l,\·float\·a,\·float\·b, | ||
16 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·CIE·L*a*b*·color·values·to·RGB·color·space. | 19 | Convert·CIE·L*a*b*·color·values·to·RGB·color·space. |
22 | .SH·SINCE | 20 | .SH·SINCE |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·9 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·910 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | ALLEGRO_COLOR\·al_color_lch(float\·l,\·float\·c,\·float\·h) | 13 | ALLEGRO_COLOR\·al_color_lch(float\·l,\·float\·c,\·float\·h) |
14 | ALLEGRO_COLOR\·al_color_lch(float\·l,\·float\·c,\·float\·h) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·LCH·values. | 18 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·LCH·values. |
20 | LCH·colors·are·very·similar·to·HSL,·with·the·same·meaning·of·L·and·H·and | 19 | LCH·colors·are·very·similar·to·HSL,·with·the·same·meaning·of·L·and·H·and |
21 | C·corresponding·to·S. | 20 | C·corresponding·to·S. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·513 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_lch_to_rgb(float\·l,\·float\·c,\·float\·h, | 13 | void\·al_color_lch_to_rgb(float\·l,\·float\·c,\·float\·h, |
14 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) | 14 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) |
15 | void\·al_color_lch_to_rgb(float\·l,\·float\·c,\·float\·h, | ||
16 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·CIE·LCH·color·values·to·RGB·color·space. | 19 | Convert·CIE·LCH·color·values·to·RGB·color·space. |
22 | .SH·SINCE | 20 | .SH·SINCE |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·467 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | ALLEGRO_COLOR\·al_color_name(char\·const\·*name) | 13 | ALLEGRO_COLOR\·al_color_name(char\·const\·*name) |
14 | ALLEGRO_COLOR\·al_color_name(char\·const\·*name) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·an·ALLEGRO_COLOR(3alleg5)·with·the·given·name. | 18 | Return·an·ALLEGRO_COLOR(3alleg5)·with·the·given·name. |
20 | If·the·color·is·not·found·then·black·is·returned. | 19 | If·the·color·is·not·found·then·black·is·returned. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2596 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | bool\·al_color_name_to_rgb(char\·const\·*name,\·float\·*r,\·float\·*g,\·float\·*b) | 13 | bool\·al_color_name_to_rgb(char\·const\·*name,\·float\·*r,\·float\·*g,\·float\·*b) |
14 | bool\·al_color_name_to_rgb(char\·const\·*name,\·float\·*r,\·float\·*g,\·float\·*b) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Parameters: | 18 | Parameters: |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | name·\-·The·(lowercase)·name·of·the·color. | 20 | name·\-·The·(lowercase)·name·of·the·color. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·759 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_rgb_to_cmyk(float\·red,\·float\·green,\·float\·blue, | 13 | void\·al_color_rgb_to_cmyk(float\·red,\·float\·green,\·float\·blue, |
14 | \·\·\·float\·*cyan,\·float\·*magenta,\·float\·*yellow,\·float\·*key) | 14 | \·\·\·float\·*cyan,\·float\·*magenta,\·float\·*yellow,\·float\·*key) |
15 | void\·al_color_rgb_to_cmyk(float\·red,\·float\·green,\·float\·blue, | ||
16 | \·\·\·float\·*cyan,\·float\·*magenta,\·float\·*yellow,\·float\·*key) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Each·RGB·color·can·be·represented·in·CMYK·with·a·K·component·of·0·with | 19 | Each·RGB·color·can·be·represented·in·CMYK·with·a·K·component·of·0·with |
22 | the·following·formula: | 20 | the·following·formula: |
23 | .IP | 21 | .IP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·603 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_rgb_to_hsl(float\·red,\·float\·green,\·float\·blue, | 13 | void\·al_color_rgb_to_hsl(float\·red,\·float\·green,\·float\·blue, |
14 | \·\·\·float\·*hue,\·float\·*saturation,\·float\·*lightness) | 14 | \·\·\·float\·*hue,\·float\·*saturation,\·float\·*lightness) |
15 | void\·al_color_rgb_to_hsl(float\·red,\·float\·green,\·float\·blue, | ||
16 | \·\·\·float\·*hue,\·float\·*saturation,\·float\·*lightness) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue | 19 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue |
22 | in·degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1. | 20 | in·degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1. |
23 | .SH·SEE·ALSO | 21 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·595 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_rgb_to_hsv(float\·red,\·float\·green,\·float\·blue, | 13 | void\·al_color_rgb_to_hsv(float\·red,\·float\·green,\·float\·blue, |
14 | \·\·\·float\·*hue,\·float\·*saturation,\·float\·*value) | 14 | \·\·\·float\·*hue,\·float\·*saturation,\·float\·*value) |
15 | void\·al_color_rgb_to_hsv(float\·red,\·float\·green,\·float\·blue, | ||
16 | \·\·\·float\·*hue,\·float\·*saturation,\·float\·*value) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue | 19 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue |
22 | in·degrees·from·0..360·and·saturation·and·value·in·the·range·0..1. | 20 | in·degrees·from·0..360·and·saturation·and·value·in·the·range·0..1. |
23 | .SH·SEE·ALSO | 21 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·876 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_rgb_to_html(float\·red,\·float\·green,\·float\·blue, | 13 | void\·al_color_rgb_to_html(float\·red,\·float\·green,\·float\·blue, |
14 | \·\·\·\·char\·*string) | 14 | \·\·\·\·char\·*string) |
15 | void\·al_color_rgb_to_html(float\·red,\·float\·green,\·float\·blue, | ||
16 | \·\·\·\·char\·*string) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Create·an·HTML\-style·string·representation·of·an | 19 | Create·an·HTML\-style·string·representation·of·an |
22 | ALLEGRO_COLOR(3alleg5),·e.g. | 20 | ALLEGRO_COLOR(3alleg5),·e.g. |
23 | #00faff. | 21 | #00faff. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·504 |
Offset 8, 16 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_rgb_to_lab(float\·red,\·float\·green,\·float\·blue, | 13 | void\·al_color_rgb_to_lab(float\·red,\·float\·green,\·float\·blue, |
14 | void\·al_color_rgb_to_lab(float\·red,\·float\·green,\·float\·blue, | ||
15 | \·\·\·float\·*l,\·float\·*a,\·float\·*b) | ||
16 | \·\·\·float\·*l,\·float\·*a,\·float\·*b) | 14 | \·\·\·float\·*l,\·float\·*a,\·float\·*b) |
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·RGB·values·to·L*a*b*·color·space. | 19 | Convert·RGB·values·to·L*a*b*·color·space. |
22 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·505 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_rgb_to_lch(float\·red,\·float\·green,\·float\·blue, | 13 | void\·al_color_rgb_to_lch(float\·red,\·float\·green,\·float\·blue, |
14 | \·\·\·float\·*l,\·float\·*c,\·float\·*h) | 14 | \·\·\·float\·*l,\·float\·*c,\·float\·*h) |
15 | void\·al_color_rgb_to_lch(float\·red,\·float\·green,\·float\·blue, | ||
16 | \·\·\·float\·*l,\·float\·*c,\·float\·*h) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·RGB·values·to·CIE·LCH·color·space. | 19 | Convert·RGB·values·to·CIE·LCH·color·space. |
22 | .SH·SINCE | 20 | .SH·SINCE |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·508 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | char\·const\·*al_color_rgb_to_name(float\·r,\·float\·g,\·float\·b) | 13 | char\·const\·*al_color_rgb_to_name(float\·r,\·float\·g,\·float\·b) |
14 | char\·const\·*al_color_rgb_to_name(float\·r,\·float\·g,\·float\·b) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·find·a·color | 18 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·find·a·color |
20 | name·describing·it·approximately. | 19 | name·describing·it·approximately. |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·502 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_rgb_to_xyy(float\·red,\·float\·green,\·float\·blue, | 13 | void\·al_color_rgb_to_xyy(float\·red,\·float\·green,\·float\·blue, |
14 | \·\·\·float\·*x,\·float\·*y,\·float\·*y2) | 14 | \·\·\·float\·*x,\·float\·*y,\·float\·*y2) |
15 | void\·al_color_rgb_to_xyy(float\·red,\·float\·green,\·float\·blue, | ||
16 | \·\·\·float\·*x,\·float\·*y,\·float\·*y2) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·RGB·values·to·xyY·color·space. | 19 | Convert·RGB·values·to·xyY·color·space. |
22 | .SH·SINCE | 20 | .SH·SINCE |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·501 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_rgb_to_xyz(float\·red,\·float\·green,\·float\·blue, | 13 | void\·al_color_rgb_to_xyz(float\·red,\·float\·green,\·float\·blue, |
14 | \·\·\·float\·*x,\·float\·*y,\·float\·*z) | 14 | \·\·\·float\·*x,\·float\·*y,\·float\·*z) |
15 | void\·al_color_rgb_to_xyz(float\·red,\·float\·green,\·float\·blue, | ||
16 | \·\·\·float\·*x,\·float\·*y,\·float\·*z) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·RGB·values·to·XYZ·color·space. | 19 | Convert·RGB·values·to·XYZ·color·space. |
22 | .SH·SINCE | 20 | .SH·SINCE |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·481 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_rgb_to_yuv(float\·red,\·float\·green,\·float\·blue, | 13 | void\·al_color_rgb_to_yuv(float\·red,\·float\·green,\·float\·blue, |
14 | \·\·\·float\·*y,\·float\·*u,\·float\·*v) | 14 | \·\·\·float\·*y,\·float\·*u,\·float\·*v) |
15 | void\·al_color_rgb_to_yuv(float\·red,\·float\·green,\·float\·blue, | ||
16 | \·\·\·float\·*y,\·float\·*u,\·float\·*v) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·RGB·values·to·YUV·color·space. | 19 | Convert·RGB·values·to·YUV·color·space. |
22 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·679 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | ALLEGRO_COLOR\·al_color_xyy(float\·x,\·float\·y,\·float\·y2) | 13 | ALLEGRO_COLOR\·al_color_xyy(float\·x,\·float\·y,\·float\·y2) |
14 | ALLEGRO_COLOR\·al_color_xyy(float\·x,\·float\·y,\·float\·y2) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·xyY·values. | 18 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·xyY·values. |
20 | The·Y·component·in·the·xyY·color·space·is·the·same·as·the·Y·in·XYZ. | 19 | The·Y·component·in·the·xyY·color·space·is·the·same·as·the·Y·in·XYZ. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·510 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_xyy_to_rgb(float\·x,\·float\·y,\·float\·y2, | 13 | void\·al_color_xyy_to_rgb(float\·x,\·float\·y,\·float\·y2, |
14 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) | 14 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) |
15 | void\·al_color_xyy_to_rgb(float\·x,\·float\·y,\·float\·y2, | ||
16 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·xyY·color·values·to·RGB·color·space. | 19 | Convert·xyY·color·values·to·RGB·color·space. |
22 | .SH·SINCE | 20 | .SH·SINCE |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·9 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·929 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | ALLEGRO_COLOR\·al_color_xyz(float\·x,\·float\·y,\·float\·z) | 13 | ALLEGRO_COLOR\·al_color_xyz(float\·x,\·float\·y,\·float\·z) |
14 | ALLEGRO_COLOR\·al_color_xyz(float\·x,\·float\·y,\·float\·z) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·XYZ·values. | 18 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·XYZ·values. |
20 | The·CIE·1931·XYZ·color·space·consists·of·three·components·in·the·range | 19 | The·CIE·1931·XYZ·color·space·consists·of·three·components·in·the·range |
21 | 0..1. | 20 | 0..1. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·509 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_xyz_to_rgb(float\·x,\·float\·y,\·float\·z, | 13 | void\·al_color_xyz_to_rgb(float\·x,\·float\·y,\·float\·z, |
14 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) | 14 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) |
15 | void\·al_color_xyz_to_rgb(float\·x,\·float\·y,\·float\·z, | ||
16 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·XYZ·color·values·to·RGB·color·space. | 19 | Convert·XYZ·color·values·to·RGB·color·space. |
22 | .SH·SINCE | 20 | .SH·SINCE |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·447 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | ALLEGRO_COLOR\·al_color_yuv(float\·y,\·float\·u,\·float\·v) | 13 | ALLEGRO_COLOR\·al_color_yuv(float\·y,\·float\·u,\·float\·v) |
14 | ALLEGRO_COLOR\·al_color_yuv(float\·y,\·float\·u,\·float\·v) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·YUV·values. | 18 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·YUV·values. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·489 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | void\·al_color_yuv_to_rgb(float\·y,\·float\·u,\·float\·v, | 13 | void\·al_color_yuv_to_rgb(float\·y,\·float\·u,\·float\·v, |
14 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) | 14 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) |
15 | void\·al_color_yuv_to_rgb(float\·y,\·float\·u,\·float\·v, | ||
16 | \·\·\·\·float\·*red,\·float\·*green,\·float\·*blue) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Convert·YUV·color·values·to·RGB·color·space. | 19 | Convert·YUV·color·values·to·RGB·color·space. |
22 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1931 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_AUDIO_RECORDER\·*al_create_audio_recorder(size_t\·fragment_count, | 13 | ALLEGRO_AUDIO_RECORDER\·*al_create_audio_recorder(size_t\·fragment_count, |
14 | \·\·\·unsigned\·int\·samples,\·unsigned\·int\·frequency, | 14 | \·\·\·unsigned\·int\·samples,\·unsigned\·int\·frequency, |
15 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) | 15 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) |
16 | ALLEGRO_AUDIO_RECORDER\·*al_create_audio_recorder(size_t\·fragment_count, | ||
17 | \·\·\·unsigned\·int\·samples,\·unsigned\·int\·frequency, | ||
18 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Creates·an·audio·recorder·using·the·system's·default·recording·device. | 20 | Creates·an·audio·recorder·using·the·system's·default·recording·device. |
24 | (So·if·the·returned·device·does·not·work,·try·updating·the·system's | 21 | (So·if·the·returned·device·does·not·work,·try·updating·the·system's |
25 | default·recording·device.) | 22 | default·recording·device.) |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2790 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_AUDIO_STREAM\·*al_create_audio_stream(size_t\·fragment_count, | 13 | ALLEGRO_AUDIO_STREAM\·*al_create_audio_stream(size_t\·fragment_count, |
14 | \·\·\·unsigned\·int\·frag_samples,\·unsigned\·int\·freq,\·ALLEGRO_AUDIO_DEPTH\·depth, | 14 | \·\·\·unsigned\·int\·frag_samples,\·unsigned\·int\·freq,\·ALLEGRO_AUDIO_DEPTH\·depth, |
15 | \·\·\·ALLEGRO_CHANNEL_CONF\·chan_conf) | 15 | \·\·\·ALLEGRO_CHANNEL_CONF\·chan_conf) |
16 | ALLEGRO_AUDIO_STREAM\·*al_create_audio_stream(size_t\·fragment_count, | ||
17 | \·\·\·unsigned\·int\·frag_samples,\·unsigned\·int\·freq,\·ALLEGRO_AUDIO_DEPTH\·depth, | ||
18 | \·\·\·ALLEGRO_CHANNEL_CONF\·chan_conf) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Creates·an·ALLEGRO_AUDIO_STREAM(3alleg5). | 20 | Creates·an·ALLEGRO_AUDIO_STREAM(3alleg5). |
24 | The·stream·will·be·set·to·play·by·default. | 21 | The·stream·will·be·set·to·play·by·default. |
25 | It·will·feed·audio·data·from·a·buffer,·which·is·split·into·a·number·of | 22 | It·will·feed·audio·data·from·a·buffer,·which·is·split·into·a·number·of |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·10 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1032 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | ALLEGRO_FONT\·*al_create_builtin_font(void) | 13 | ALLEGRO_FONT\·*al_create_builtin_font(void) |
14 | ALLEGRO_FONT\·*al_create_builtin_font(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Creates·a·monochrome·bitmap·font·(8x8·pixels·per·character). | 18 | Creates·a·monochrome·bitmap·font·(8x8·pixels·per·character). |
20 | .PP | 19 | .PP |
21 | This·font·is·primarily·intended·to·be·used·for·displaying·information·in | 20 | This·font·is·primarily·intended·to·be·used·for·displaying·information·in |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1457 |
Offset 8, 16 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | ALLEGRO_INDEX_BUFFER*\·al_create_index_buffer(int\·index_size, | 13 | ALLEGRO_INDEX_BUFFER*\·al_create_index_buffer(int\·index_size, |
14 | ALLEGRO_INDEX_BUFFER*\·al_create_index_buffer(int\·index_size, | ||
15 | \·\·\·\·const\·void*\·initial_data,\·int\·num_indices,\·int\·flags) | ||
16 | \·\·\·\·const\·void*\·initial_data,\·int\·num_indices,\·int\·flags) | 14 | \·\·\·\·const\·void*\·initial_data,\·int\·num_indices,\·int\·flags) |
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Creates·a·index·buffer. | 19 | Creates·a·index·buffer. |
22 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system | 20 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·479 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_MENU\·*al_create_menu(void) | 13 | ALLEGRO_MENU\·*al_create_menu(void) |
14 | ALLEGRO_MENU\·*al_create_menu(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Creates·a·menu·container·that·can·hold·menu·items. | 18 | Creates·a·menu·container·that·can·hold·menu·items. |
20 | .PP | 19 | .PP |
21 | Returns·\f[C]NULL\f[]·on·failure. | 20 | Returns·\f[C]NULL\f[]·on·failure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·887 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_MIXER\·*al_create_mixer(unsigned\·int\·freq, | 13 | ALLEGRO_MIXER\·*al_create_mixer(unsigned\·int\·freq, |
14 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) | 14 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) |
15 | ALLEGRO_MIXER\·*al_create_mixer(unsigned\·int\·freq, | ||
16 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Creates·a·mixer·to·attach·sample·instances,·audio·streams,·or·other | 19 | Creates·a·mixer·to·attach·sample·instances,·audio·streams,·or·other |
22 | mixers·to. | 20 | mixers·to. |
23 | It·will·mix·into·a·buffer·at·the·requested·frequency·(in·Hz)·and·channel | 21 | It·will·mix·into·a·buffer·at·the·requested·frequency·(in·Hz)·and·channel |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2472 |
Offset 12, 19 lines modified | Offset 12, 14 lines modified | ||
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_FILECHOOSER\·*al_create_native_file_dialog( | 13 | ALLEGRO_FILECHOOSER\·*al_create_native_file_dialog( |
14 | \·\·\·char\·const\·*initial_path, | 14 | \·\·\·char\·const\·*initial_path, |
15 | \·\·\·char\·const\·*title, | 15 | \·\·\·char\·const\·*title, |
16 | \·\·\·char\·const\·*patterns, | 16 | \·\·\·char\·const\·*patterns, |
17 | \·\·\·int\·mode) | 17 | \·\·\·int\·mode) |
18 | ALLEGRO_FILECHOOSER\·*al_create_native_file_dialog( | ||
19 | \·\·\·char\·const\·*initial_path, | ||
20 | \·\·\·char\·const\·*title, | ||
21 | \·\·\·char\·const\·*patterns, | ||
22 | \·\·\·int\·mode) | ||
23 | \f[] | 18 | \f[] |
24 | .fi | 19 | .fi |
25 | .SH·DESCRIPTION | 20 | .SH·DESCRIPTION |
26 | .PP | 21 | .PP |
27 | Creates·a·new·native·file·dialog. | 22 | Creates·a·new·native·file·dialog. |
28 | You·should·only·have·one·such·dialog·opened·at·a·time. | 23 | You·should·only·have·one·such·dialog·opened·at·a·time. |
29 | .PP | 24 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·619 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_MENU\·*al_create_popup_menu(void) | 13 | ALLEGRO_MENU\·*al_create_popup_menu(void) |
14 | ALLEGRO_MENU\·*al_create_popup_menu(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Creates·a·menu·container·for·popup·menus. | 18 | Creates·a·menu·container·for·popup·menus. |
20 | Only·the·root·(outermost)·menu·should·be·created·with·this·function. | 19 | Only·the·root·(outermost)·menu·should·be·created·with·this·function. |
21 | Sub·menus·of·popups·should·be·created·with·al_create_menu(3alleg5). | 20 | Sub·menus·of·popups·should·be·created·with·al_create_menu(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1599 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_SAMPLE\·*al_create_sample(void\·*buf,\·unsigned\·int\·samples, | 13 | ALLEGRO_SAMPLE\·*al_create_sample(void\·*buf,\·unsigned\·int\·samples, |
14 | \·\·\·unsigned\·int\·freq,\·ALLEGRO_AUDIO_DEPTH\·depth, | 14 | \·\·\·unsigned\·int\·freq,\·ALLEGRO_AUDIO_DEPTH\·depth, |
15 | \·\·\·ALLEGRO_CHANNEL_CONF\·chan_conf,\·bool\·free_buf) | 15 | \·\·\·ALLEGRO_CHANNEL_CONF\·chan_conf,\·bool\·free_buf) |
16 | ALLEGRO_SAMPLE\·*al_create_sample(void\·*buf,\·unsigned\·int\·samples, | ||
17 | \·\·\·unsigned\·int\·freq,\·ALLEGRO_AUDIO_DEPTH\·depth, | ||
18 | \·\·\·ALLEGRO_CHANNEL_CONF\·chan_conf,\·bool\·free_buf) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Create·a·sample·data·structure·from·the·supplied·buffer. | 20 | Create·a·sample·data·structure·from·the·supplied·buffer. |
24 | If·\f[C]free_buf\f[]·is·true·then·the·buffer·will·be·freed·with | 21 | If·\f[C]free_buf\f[]·is·true·then·the·buffer·will·be·freed·with |
25 | al_free(3alleg5)·when·the·sample·data·structure·is·destroyed. | 22 | al_free(3alleg5)·when·the·sample·data·structure·is·destroyed. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·658 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_SAMPLE_INSTANCE\·*al_create_sample_instance(ALLEGRO_SAMPLE\·*sample_data) | 13 | ALLEGRO_SAMPLE_INSTANCE\·*al_create_sample_instance(ALLEGRO_SAMPLE\·*sample_data) |
14 | ALLEGRO_SAMPLE_INSTANCE\·*al_create_sample_instance(ALLEGRO_SAMPLE\·*sample_data) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Creates·a·sample·instance,·using·the·supplied·sample·data. | 18 | Creates·a·sample·instance,·using·the·supplied·sample·data. |
20 | The·instance·must·be·attached·to·a·mixer·(or·voice)·in·order·to·actually | 19 | The·instance·must·be·attached·to·a·mixer·(or·voice)·in·order·to·actually |
21 | produce·output. | 20 | produce·output. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1496 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | ALLEGRO_VERTEX_BUFFER*\·al_create_vertex_buffer(ALLEGRO_VERTEX_DECL*\·decl, | 13 | ALLEGRO_VERTEX_BUFFER*\·al_create_vertex_buffer(ALLEGRO_VERTEX_DECL*\·decl, |
14 | \·\·\·const\·void*\·initial_data,\·int\·num_vertices,\·int\·flags) | 14 | \·\·\·const\·void*\·initial_data,\·int\·num_vertices,\·int\·flags) |
15 | ALLEGRO_VERTEX_BUFFER*\·al_create_vertex_buffer(ALLEGRO_VERTEX_DECL*\·decl, | ||
16 | \·\·\·const\·void*\·initial_data,\·int\·num_vertices,\·int\·flags) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Creates·a·vertex·buffer. | 19 | Creates·a·vertex·buffer. |
22 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system | 20 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system |
23 | only·supports·write\-only·buffers). | 21 | only·supports·write\-only·buffers). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·775 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | ALLEGRO_VERTEX_DECL*\·al_create_vertex_decl(const\·ALLEGRO_VERTEX_ELEMENT*\·elements,\·int\·stride) | 13 | ALLEGRO_VERTEX_DECL*\·al_create_vertex_decl(const\·ALLEGRO_VERTEX_ELEMENT*\·elements,\·int\·stride) |
14 | ALLEGRO_VERTEX_DECL*\·al_create_vertex_decl(const\·ALLEGRO_VERTEX_ELEMENT*\·elements,\·int\·stride) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Creates·a·vertex·declaration,·which·describes·a·custom·vertex·format. | 18 | Creates·a·vertex·declaration,·which·describes·a·custom·vertex·format. |
20 | .PP | 19 | .PP |
21 | \f[I]Parameters:\f[] | 20 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1112 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_VOICE\·*al_create_voice(unsigned\·int\·freq, | 13 | ALLEGRO_VOICE\·*al_create_voice(unsigned\·int\·freq, |
14 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) | 14 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) |
15 | ALLEGRO_VOICE\·*al_create_voice(unsigned\·int\·freq, | ||
16 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Creates·a·voice·structure·and·allocates·a·voice·from·the·digital·sound | 19 | Creates·a·voice·structure·and·allocates·a·voice·from·the·digital·sound |
22 | driver. | 20 | driver. |
23 | The·passed·frequency·(in·Hz),·sample·format·and·channel·configuration | 21 | The·passed·frequency·(in·Hz),·sample·format·and·channel·configuration |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·690 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_destroy_audio_recorder(ALLEGRO_AUDIO_RECORDER\·*r) | 13 | void\·al_destroy_audio_recorder(ALLEGRO_AUDIO_RECORDER\·*r) |
14 | void\·al_destroy_audio_recorder(ALLEGRO_AUDIO_RECORDER\·*r) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Destroys·the·audio·recorder·and·frees·all·resources·associated·with·it. | 18 | Destroys·the·audio·recorder·and·frees·all·resources·associated·with·it. |
20 | It·is·safe·to·destroy·a·recorder·that·is·recording. | 19 | It·is·safe·to·destroy·a·recorder·that·is·recording. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·645 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) | 13 | void\·al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) |
14 | void\·al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Destroy·an·audio·stream·which·was·created·with | 18 | Destroy·an·audio·stream·which·was·created·with |
20 | al_create_audio_stream(3alleg5)·or·al_load_audio_stream(3alleg5). | 19 | al_create_audio_stream(3alleg5)·or·al_load_audio_stream(3alleg5). |
21 | .RS | 20 | .RS |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·413 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_destroy_font(ALLEGRO_FONT\·*f) | 13 | void\·al_destroy_font(ALLEGRO_FONT\·*f) |
14 | void\·al_destroy_font(ALLEGRO_FONT\·*f) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Frees·the·memory·being·used·by·a·font·structure. | 18 | Frees·the·memory·being·used·by·a·font·structure. |
20 | Does·nothing·if·passed·NULL. | 19 | Does·nothing·if·passed·NULL. |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·493 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_destroy_index_buffer(ALLEGRO_INDEX_BUFFER*\·buffer) | 13 | void\·al_destroy_index_buffer(ALLEGRO_INDEX_BUFFER*\·buffer) |
14 | void\·al_destroy_index_buffer(ALLEGRO_INDEX_BUFFER*\·buffer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Destroys·a·index·buffer. | 18 | Destroys·a·index·buffer. |
20 | Does·nothing·if·passed·NULL. | 19 | Does·nothing·if·passed·NULL. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·551 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | void\·al_destroy_menu(ALLEGRO_MENU\·*menu) | 13 | void\·al_destroy_menu(ALLEGRO_MENU\·*menu) |
14 | void\·al_destroy_menu(ALLEGRO_MENU\·*menu) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Destroys·an·entire·menu,·including·its·sub\-menus. | 18 | Destroys·an·entire·menu,·including·its·sub\-menus. |
20 | Any·references·to·it·or·a·sub\-menu·are·no·longer·valid. | 19 | Any·references·to·it·or·a·sub\-menu·are·no·longer·valid. |
21 | It·is·safe·to·call·this·on·a·menu·that·is·currently·being·displayed. | 20 | It·is·safe·to·call·this·on·a·menu·that·is·currently·being·displayed. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·367 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_destroy_mixer(ALLEGRO_MIXER\·*mixer) | 13 | void\·al_destroy_mixer(ALLEGRO_MIXER\·*mixer) |
14 | void\·al_destroy_mixer(ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Destroys·the·mixer. | 18 | Destroys·the·mixer. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·407 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | void\·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER\·*dialog) | 13 | void\·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER\·*dialog) |
14 | void\·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER\·*dialog) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Frees·up·all·resources·used·by·the·file·dialog. | 18 | Frees·up·all·resources·used·by·the·file·dialog. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·688 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_destroy_sample(ALLEGRO_SAMPLE\·*spl) | 13 | void\·al_destroy_sample(ALLEGRO_SAMPLE\·*spl) |
14 | void\·al_destroy_sample(ALLEGRO_SAMPLE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Free·the·sample·data·structure. | 18 | Free·the·sample·data·structure. |
20 | If·it·was·created·with·the·\f[C]free_buf\f[]·parameter·set·to·true,·then | 19 | If·it·was·created·with·the·\f[C]free_buf\f[]·parameter·set·to·true,·then |
21 | the·buffer·will·be·freed·with·al_free(3alleg5). | 20 | the·buffer·will·be·freed·with·al_free(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·542 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | void\·al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | void\·al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Detaches·the·sample·instance·from·anything·it·may·be·attached·to·and | 18 | Detaches·the·sample·instance·from·anything·it·may·be·attached·to·and |
20 | frees·it·(the·sample·data,·i.e.\·its·ALLEGRO_SAMPLE,·is·\f[I]not\f[] | 19 | frees·it·(the·sample·data,·i.e.\·its·ALLEGRO_SAMPLE,·is·\f[I]not\f[] |
21 | freed!). | 20 | freed!). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·500 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_destroy_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·buffer) | 13 | void\·al_destroy_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·buffer) |
14 | void\·al_destroy_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·buffer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Destroys·a·vertex·buffer. | 18 | Destroys·a·vertex·buffer. |
20 | Does·nothing·if·passed·NULL. | 19 | Does·nothing·if·passed·NULL. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·550 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL*\·decl) | 13 | void\·al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL*\·decl) |
14 | void\·al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL*\·decl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Destroys·a·vertex·declaration. | 18 | Destroys·a·vertex·declaration. |
20 | .PP | 19 | .PP |
21 | \f[I]Parameters:\f[] | 20 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·445 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_destroy_voice(ALLEGRO_VOICE\·*voice) | 13 | void\·al_destroy_voice(ALLEGRO_VOICE\·*voice) |
14 | void\·al_destroy_voice(ALLEGRO_VOICE\·*voice) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Destroys·the·voice·and·deallocates·it·from·the·digital·driver. | 18 | Destroys·the·voice·and·deallocates·it·from·the·digital·driver. |
20 | Does·nothing·if·the·voice·is·NULL. | 19 | Does·nothing·if·the·voice·is·NULL. |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·534 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_detach_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) | 13 | bool\·al_detach_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) |
14 | bool\·al_detach_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Detach·the·stream·from·whatever·it's·attached·to,·if·anything. | 18 | Detach·the·stream·from·whatever·it's·attached·to,·if·anything. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·417 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_detach_mixer(ALLEGRO_MIXER\·*mixer) | 13 | bool\·al_detach_mixer(ALLEGRO_MIXER\·*mixer) |
14 | bool\·al_detach_mixer(ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Detach·the·mixer·from·whatever·it·is·attached·to,·if·anything. | 18 | Detach·the·mixer·from·whatever·it·is·attached·to,·if·anything. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·589 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | bool\·al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | bool\·al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Detach·the·sample·instance·from·whatever·it's·attached·to,·if·anything. | 18 | Detach·the·sample·instance·from·whatever·it's·attached·to,·if·anything. |
20 | .PP | 19 | .PP |
21 | Returns·true·on·success. | 20 | Returns·true·on·success. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·508 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_detach_voice(ALLEGRO_VOICE\·*voice) | 13 | void\·al_detach_voice(ALLEGRO_VOICE\·*voice) |
14 | void\·al_detach_voice(ALLEGRO_VOICE\·*voice) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Detaches·the·mixer,·sample·instance·or·audio·stream·from·the·voice. | 18 | Detaches·the·mixer,·sample·instance·or·audio·stream·from·the·voice. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·553 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | void\·al_disable_menu_event_source(ALLEGRO_MENU\·*menu) | 13 | void\·al_disable_menu_event_source(ALLEGRO_MENU\·*menu) |
14 | void\·al_disable_menu_event_source(ALLEGRO_MENU\·*menu) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Disables·a·unique·event·source·for·the·menu,·causing·it·to·use·the | 18 | Disables·a·unique·event·source·for·the·menu,·causing·it·to·use·the |
20 | default·event·source. | 19 | default·event·source. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2036 |
Offset 11, 18 lines modified | Offset 11, 14 lines modified | ||
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_do_multiline_text(const\·ALLEGRO_FONT\·*font, | 13 | void\·al_do_multiline_text(const\·ALLEGRO_FONT\·*font, |
14 | \·\·\·float\·max_width,\·const\·char\·*text, | 14 | \·\·\·float\·max_width,\·const\·char\·*text, |
15 | \·\·\·bool\·(*cb)(int\·line_num,\·const\·char\·*line,\·int\·size,\·void\·*extra), | 15 | \·\·\·bool\·(*cb)(int\·line_num,\·const\·char\·*line,\·int\·size,\·void\·*extra), |
16 | \·\·\·void\·*extra) | 16 | \·\·\·void\·*extra) |
17 | void\·al_do_multiline_text(const\·ALLEGRO_FONT\·*font, | ||
18 | \·\·\·float\·max_width,\·const\·char\·*text, | ||
19 | \·\·\·bool\·(*cb)(int\·line_num,\·const\·char\·*line,\·int\·size,\·void\·*extra), | ||
20 | \·\·\·void\·*extra) | ||
21 | \f[] | 17 | \f[] |
22 | .fi | 18 | .fi |
23 | .SH·DESCRIPTION | 19 | .SH·DESCRIPTION |
24 | .PP | 20 | .PP |
25 | This·function·processes·the·\f[C]text\f[]·and·splits·it·into·lines·as | 21 | This·function·processes·the·\f[C]text\f[]·and·splits·it·into·lines·as |
26 | al_draw_multiline_text(3alleg5)·would,·and·then·calls·the·callback | 22 | al_draw_multiline_text(3alleg5)·would,·and·then·calls·the·callback |
27 | \f[C]cb\f[]·once·for·every·line. | 23 | \f[C]cb\f[]·once·for·every·line. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·652 |
Offset 11, 18 lines modified | Offset 11, 14 lines modified | ||
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_do_multiline_ustr(const\·ALLEGRO_FONT\·*font,\·float\·max_width, | 13 | void\·al_do_multiline_ustr(const\·ALLEGRO_FONT\·*font,\·float\·max_width, |
14 | \·\·\·const\·ALLEGRO_USTR\·*ustr, | 14 | \·\·\·const\·ALLEGRO_USTR\·*ustr, |
15 | \·\·\·bool\·(*cb)(int\·line_num,\·const\·ALLEGRO_USTR\·*\·line,\·void\·*extra), | 15 | \·\·\·bool\·(*cb)(int\·line_num,\·const\·ALLEGRO_USTR\·*\·line,\·void\·*extra), |
16 | \·\·\·void\·*extra) | 16 | \·\·\·void\·*extra) |
17 | void\·al_do_multiline_ustr(const\·ALLEGRO_FONT\·*font,\·float\·max_width, | ||
18 | \·\·\·const\·ALLEGRO_USTR\·*ustr, | ||
19 | \·\·\·bool\·(*cb)(int\·line_num,\·const\·ALLEGRO_USTR\·*\·line,\·void\·*extra), | ||
20 | \·\·\·void\·*extra) | ||
21 | \f[] | 17 | \f[] |
22 | .fi | 18 | .fi |
23 | .SH·DESCRIPTION | 19 | .SH·DESCRIPTION |
24 | .PP | 20 | .PP |
25 | Like·al_do_multiline_text(3alleg5),·but·using·ALLEGRO_USTR·instead·of·a | 21 | Like·al_do_multiline_text(3alleg5),·but·using·ALLEGRO_USTR·instead·of·a |
26 | NUL\-terminated·char·array·for·text. | 22 | NUL\-terminated·char·array·for·text. |
27 | .SH·SINCE | 23 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·563 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_drain_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) | 13 | void\·al_drain_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) |
14 | void\·al_drain_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | You·should·call·this·to·finalise·an·audio·stream·that·you·will·no·longer | 18 | You·should·call·this·to·finalise·an·audio·stream·that·you·will·no·longer |
20 | be·feeding,·to·wait·for·all·pending·buffers·to·finish·playing. | 19 | be·feeding,·to·wait·for·all·pending·buffers·to·finish·playing. |
21 | The·stream's·playing·state·will·change·to·false. | 20 | The·stream's·playing·state·will·change·to·false. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·907 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_arc(float\·cx,\·float\·cy,\·float\·r,\·float\·start_theta, | 13 | void\·al_draw_arc(float\·cx,\·float\·cy,\·float\·r,\·float\·start_theta, |
14 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color,\·float\·thickness) | 14 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color,\·float\·thickness) |
15 | void\·al_draw_arc(float\·cx,\·float\·cy,\·float\·r,\·float\·start_theta, | ||
16 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color,\·float\·thickness) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·an·arc. | 19 | Draws·an·arc. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·705 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_circle(float\·cx,\·float\·cy,\·float\·r,\·ALLEGRO_COLOR\·color, | 13 | void\·al_draw_circle(float\·cx,\·float\·cy,\·float\·r,\·ALLEGRO_COLOR\·color, |
14 | \·\·\·float\·thickness) | 14 | \·\·\·float\·thickness) |
15 | void\·al_draw_circle(float\·cx,\·float\·cy,\·float\·r,\·ALLEGRO_COLOR\·color, | ||
16 | \·\·\·float\·thickness) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·an·outlined·circle. | 19 | Draws·an·outlined·circle. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·731 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_ellipse(float\·cx,\·float\·cy,\·float\·rx,\·float\·ry, | 13 | void\·al_draw_ellipse(float\·cx,\·float\·cy,\·float\·rx,\·float\·ry, |
14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness) | 14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness) |
15 | void\·al_draw_ellipse(float\·cx,\·float\·cy,\·float\·rx,\·float\·ry, | ||
16 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·an·outlined·ellipse. | 19 | Draws·an·outlined·ellipse. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·984 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_elliptical_arc(float\·cx,\·float\·cy,\·float\·rx,\·float\·ry,\·float\·start_theta, | 13 | void\·al_draw_elliptical_arc(float\·cx,\·float\·cy,\·float\·rx,\·float\·ry,\·float\·start_theta, |
14 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color,\·float\·thickness) | 14 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color,\·float\·thickness) |
15 | void\·al_draw_elliptical_arc(float\·cx,\·float\·cy,\·float\·rx,\·float\·ry,\·float\·start_theta, | ||
16 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color,\·float\·thickness) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·an·elliptical·arc. | 19 | Draws·an·elliptical·arc. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·603 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_filled_circle(float\·cx,\·float\·cy,\·float\·r,\·ALLEGRO_COLOR\·color) | 13 | void\·al_draw_filled_circle(float\·cx,\·float\·cy,\·float\·r,\·ALLEGRO_COLOR\·color) |
14 | void\·al_draw_filled_circle(float\·cx,\·float\·cy,\·float\·r,\·ALLEGRO_COLOR\·color) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Draws·a·filled·circle. | 18 | Draws·a·filled·circle. |
20 | .PP | 19 | .PP |
21 | \f[I]Parameters:\f[] | 20 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·632 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_filled_ellipse(float\·cx,\·float\·cy,\·float\·rx,\·float\·ry, | 13 | void\·al_draw_filled_ellipse(float\·cx,\·float\·cy,\·float\·rx,\·float\·ry, |
14 | \·\·\·ALLEGRO_COLOR\·color) | 14 | \·\·\·ALLEGRO_COLOR\·color) |
15 | void\·al_draw_filled_ellipse(float\·cx,\·float\·cy,\·float\·rx,\·float\·ry, | ||
16 | \·\·\·ALLEGRO_COLOR\·color) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·a·filled·ellipse. | 19 | Draws·a·filled·ellipse. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·886 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_filled_pieslice(float\·cx,\·float\·cy,\·float\·r,\·float\·start_theta, | 13 | void\·al_draw_filled_pieslice(float\·cx,\·float\·cy,\·float\·r,\·float\·start_theta, |
14 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color) | 14 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color) |
15 | void\·al_draw_filled_pieslice(float\·cx,\·float\·cy,\·float\·r,\·float\·start_theta, | ||
16 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·a·filled·pieslice·(filled·circular·sector). | 19 | Draws·a·filled·pieslice·(filled·circular·sector). |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·876 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_filled_polygon(const\·float\·*vertices,\·int\·vertex_count, | 13 | void\·al_draw_filled_polygon(const\·float\·*vertices,\·int\·vertex_count, |
14 | \·\·\·ALLEGRO_COLOR\·color) | 14 | \·\·\·ALLEGRO_COLOR\·color) |
15 | void\·al_draw_filled_polygon(const\·float\·*vertices,\·int\·vertex_count, | ||
16 | \·\·\·ALLEGRO_COLOR\·color) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draw·a·filled,·simple·polygon. | 19 | Draw·a·filled,·simple·polygon. |
22 | Simple·means·it·does·not·have·to·be·convex·but·must·not·be | 20 | Simple·means·it·does·not·have·to·be·convex·but·must·not·be |
23 | self\-overlapping. | 21 | self\-overlapping. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2280 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_filled_polygon_with_holes(const\·float\·*vertices, | 13 | void\·al_draw_filled_polygon_with_holes(const\·float\·*vertices, |
14 | \·\·\·const\·int\·*vertex_counts,\·ALLEGRO_COLOR\·color) | 14 | \·\·\·const\·int\·*vertex_counts,\·ALLEGRO_COLOR\·color) |
15 | void\·al_draw_filled_polygon_with_holes(const\·float\·*vertices, | ||
16 | \·\·\·const\·int\·*vertex_counts,\·ALLEGRO_COLOR\·color) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·a·filled·simple·polygon·with·zero·or·more·other·simple·polygons | 19 | Draws·a·filled·simple·polygon·with·zero·or·more·other·simple·polygons |
22 | subtracted·from·it·\-·the·holes. | 20 | subtracted·from·it·\-·the·holes. |
23 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·filled | 21 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·filled |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·649 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_filled_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | 13 | void\·al_draw_filled_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, |
14 | \·\·\·ALLEGRO_COLOR\·color) | 14 | \·\·\·ALLEGRO_COLOR\·color) |
15 | void\·al_draw_filled_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | ||
16 | \·\·\·ALLEGRO_COLOR\·color) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·a·filled·rectangle. | 19 | Draws·a·filled·rectangle. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·751 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_filled_rounded_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | 13 | void\·al_draw_filled_rounded_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, |
14 | \·\·\·float\·rx,\·float\·ry,\·ALLEGRO_COLOR\·color) | 14 | \·\·\·float\·rx,\·float\·ry,\·ALLEGRO_COLOR\·color) |
15 | void\·al_draw_filled_rounded_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | ||
16 | \·\·\·float\·rx,\·float\·ry,\·ALLEGRO_COLOR\·color) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·an·filled·rounded·rectangle. | 19 | Draws·an·filled·rounded·rectangle. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·610 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_filled_triangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | 13 | void\·al_draw_filled_triangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, |
14 | \·\·\·float\·x3,\·float\·y3,\·ALLEGRO_COLOR\·color) | 14 | \·\·\·float\·x3,\·float\·y3,\·ALLEGRO_COLOR\·color) |
15 | void\·al_draw_filled_triangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | ||
16 | \·\·\·float\·x3,\·float\·y3,\·ALLEGRO_COLOR\·color) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·a·filled·triangle. | 19 | Draws·a·filled·triangle. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1259 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_draw_glyph(const\·ALLEGRO_FONT\·*f,\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y, | 13 | void\·al_draw_glyph(const\·ALLEGRO_FONT\·*f,\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y, |
14 | \·\·\·int\·codepoint) | 14 | \·\·\·int\·codepoint) |
15 | void\·al_draw_glyph(const\·ALLEGRO_FONT\·*f,\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y, | ||
16 | \·\·\·int\·codepoint) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·the·glyph·that·corresponds·with·\f[C]codepoint\f[]·in·the·given | 19 | Draws·the·glyph·that·corresponds·with·\f[C]codepoint\f[]·in·the·given |
22 | \f[C]color\f[]·using·the·given·\f[C]font\f[]. | 20 | \f[C]color\f[]·using·the·given·\f[C]font\f[]. |
23 | If·\f[C]font\f[]·does·not·have·such·a·glyph,·nothing·will·be·drawn. | 21 | If·\f[C]font\f[]·does·not·have·such·a·glyph,·nothing·will·be·drawn. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1530 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | int\·al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER*\·vertex_buffer, | 13 | int\·al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER*\·vertex_buffer, |
14 | \·\·\·ALLEGRO_BITMAP*\·texture,\·ALLEGRO_INDEX_BUFFER*\·index_buffer, | 14 | \·\·\·ALLEGRO_BITMAP*\·texture,\·ALLEGRO_INDEX_BUFFER*\·index_buffer, |
15 | \·\·\·int\·start,\·int\·end,\·int\·type) | 15 | \·\·\·int\·start,\·int\·end,\·int\·type) |
16 | int\·al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER*\·vertex_buffer, | ||
17 | \·\·\·ALLEGRO_BITMAP*\·texture,\·ALLEGRO_INDEX_BUFFER*\·index_buffer, | ||
18 | \·\·\·int\·start,\·int\·end,\·int\·type) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Draws·a·subset·of·the·passed·vertex·buffer. | 20 | Draws·a·subset·of·the·passed·vertex·buffer. |
24 | This·function·uses·an·index·buffer·to·specify·which·vertices·to·use. | 21 | This·function·uses·an·index·buffer·to·specify·which·vertices·to·use. |
25 | Both·buffers·must·not·be·locked. | 22 | Both·buffers·must·not·be·locked. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1266 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | int\·al_draw_indexed_prim(const\·void*\·vtxs,\·const\·ALLEGRO_VERTEX_DECL*\·decl, | 13 | int\·al_draw_indexed_prim(const\·void*\·vtxs,\·const\·ALLEGRO_VERTEX_DECL*\·decl, |
14 | \·\·\·ALLEGRO_BITMAP*\·texture,\·const\·int*\·indices,\·int\·num_vtx,\·int\·type) | 14 | \·\·\·ALLEGRO_BITMAP*\·texture,\·const\·int*\·indices,\·int\·num_vtx,\·int\·type) |
15 | int\·al_draw_indexed_prim(const\·void*\·vtxs,\·const\·ALLEGRO_VERTEX_DECL*\·decl, | ||
16 | \·\·\·ALLEGRO_BITMAP*\·texture,\·const\·int*\·indices,\·int\·num_vtx,\·int\·type) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·a·subset·of·the·passed·vertex·array. | 19 | Draws·a·subset·of·the·passed·vertex·array. |
22 | This·function·uses·an·index·array·to·specify·which·vertices·to·use. | 20 | This·function·uses·an·index·array·to·specify·which·vertices·to·use. |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1022 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_draw_justified_text(const\·ALLEGRO_FONT\·*font, | 13 | void\·al_draw_justified_text(const\·ALLEGRO_FONT\·*font, |
14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x1,\·float\·x2, | 14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x1,\·float\·x2, |
15 | \·\·\·float\·y,\·float\·diff,\·int\·flags,\·const\·char\·*text) | 15 | \·\·\·float\·y,\·float\·diff,\·int\·flags,\·const\·char\·*text) |
16 | void\·al_draw_justified_text(const\·ALLEGRO_FONT\·*font, | ||
17 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x1,\·float\·x2, | ||
18 | \·\·\·float\·y,\·float\·diff,\·int\·flags,\·const\·char\·*text) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Like·al_draw_text(3alleg5),·but·justifies·the·string·to·the·region | 20 | Like·al_draw_text(3alleg5),·but·justifies·the·string·to·the·region |
24 | x1\-x2. | 21 | x1\-x2. |
25 | .PP | 22 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·683 |
Offset 9, 17 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_draw_justified_textf(const\·ALLEGRO_FONT\·*f, | 13 | void\·al_draw_justified_textf(const\·ALLEGRO_FONT\·*f, |
14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x1,\·float\·x2,\·float\·y, | 14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x1,\·float\·x2,\·float\·y, |
15 | void\·al_draw_justified_textf(const\·ALLEGRO_FONT\·*f, | ||
16 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x1,\·float\·x2,\·float\·y, | ||
17 | \·\·\·float\·diff,\·int\·flags,\·const\·char\·*format,\·...) | ||
18 | \·\·\·float\·diff,\·int\·flags,\·const\·char\·*format,\·...) | 15 | \·\·\·float\·diff,\·int\·flags,\·const\·char\·*format,\·...) |
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Formatted·text·output,·using·a·printf()·style·format·string. | 20 | Formatted·text·output,·using·a·printf()·style·format·string. |
24 | All·parameters·have·the·same·meaning·as·with | 21 | All·parameters·have·the·same·meaning·as·with |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·659 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_draw_justified_ustr(const\·ALLEGRO_FONT\·*font, | 13 | void\·al_draw_justified_ustr(const\·ALLEGRO_FONT\·*font, |
14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x1,\·float\·x2, | 14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x1,\·float\·x2, |
15 | \·\·\·float\·y,\·float\·diff,\·int\·flags,\·const\·ALLEGRO_USTR\·*ustr) | 15 | \·\·\·float\·y,\·float\·diff,\·int\·flags,\·const\·ALLEGRO_USTR\·*ustr) |
16 | void\·al_draw_justified_ustr(const\·ALLEGRO_FONT\·*font, | ||
17 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x1,\·float\·x2, | ||
18 | \·\·\·float\·y,\·float\·diff,\·int\·flags,\·const\·ALLEGRO_USTR\·*ustr) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Like·al_draw_justified_text(3alleg5),·except·the·text·is·passed·as·an | 20 | Like·al_draw_justified_text(3alleg5),·except·the·text·is·passed·as·an |
24 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 21 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
25 | .SH·SEE·ALSO | 22 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·672 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_line(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | 13 | void\·al_draw_line(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, |
14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness) | 14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness) |
15 | void\·al_draw_line(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | ||
16 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·a·line·segment·between·two·points. | 19 | Draws·a·line·segment·between·two·points. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2756 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_draw_multiline_text(const\·ALLEGRO_FONT\·*font, | 13 | void\·al_draw_multiline_text(const\·ALLEGRO_FONT\·*font, |
14 | \·\·\·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·float\·max_width,\·float\·line_height, | 14 | \·\·\·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·float\·max_width,\·float\·line_height, |
15 | \·\·\·\·\·int\·flags,\·const\·char\·*text) | 15 | \·\·\·\·\·int\·flags,\·const\·char\·*text) |
16 | void\·al_draw_multiline_text(const\·ALLEGRO_FONT\·*font, | ||
17 | \·\·\·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·float\·max_width,\·float\·line_height, | ||
18 | \·\·\·\·\·int\·flags,\·const\·char\·*text) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Like·al_draw_text(3alleg5),·but·this·function·supports·drawing·multiple | 20 | Like·al_draw_text(3alleg5),·but·this·function·supports·drawing·multiple |
24 | lines·of·text. | 21 | lines·of·text. |
25 | It·will·break·\f[C]text\f[]·in·lines·based·on·its·contents·and·the | 22 | It·will·break·\f[C]text\f[]·in·lines·based·on·its·contents·and·the |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·757 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_draw_multiline_textf(const\·ALLEGRO_FONT\·*font, | 13 | void\·al_draw_multiline_textf(const\·ALLEGRO_FONT\·*font, |
14 | \·\·\·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·float\·max_width,\·float\·line_height, | 14 | \·\·\·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·float\·max_width,\·float\·line_height, |
15 | \·\·\·\·\·int\·flags,\·const\·char\·*format,\·...) | 15 | \·\·\·\·\·int\·flags,\·const\·char\·*format,\·...) |
16 | void\·al_draw_multiline_textf(const\·ALLEGRO_FONT\·*font, | ||
17 | \·\·\·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·float\·max_width,\·float\·line_height, | ||
18 | \·\·\·\·\·int\·flags,\·const\·char\·*format,\·...) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Formatted·text·output,·using·a·printf()·style·format·string. | 20 | Formatted·text·output,·using·a·printf()·style·format·string. |
24 | All·parameters·have·the·same·meaning·as·with | 21 | All·parameters·have·the·same·meaning·as·with |
25 | al_draw_multiline_text(3alleg5)·otherwise. | 22 | al_draw_multiline_text(3alleg5)·otherwise. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·730 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_draw_multiline_ustr(const\·ALLEGRO_FONT\·*font, | 13 | void\·al_draw_multiline_ustr(const\·ALLEGRO_FONT\·*font, |
14 | \·\·\·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·float\·max_width,\·float\·line_height, | 14 | \·\·\·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·float\·max_width,\·float\·line_height, |
15 | \·\·\·\·\·int\·flags,\·const\·ALLEGRO_USTR\·*ustr) | 15 | \·\·\·\·\·int\·flags,\·const\·ALLEGRO_USTR\·*ustr) |
16 | void\·al_draw_multiline_ustr(const\·ALLEGRO_FONT\·*font, | ||
17 | \·\·\·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·float\·max_width,\·float\·line_height, | ||
18 | \·\·\·\·\·int\·flags,\·const\·ALLEGRO_USTR\·*ustr) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Like·al_draw_multiline_text(3alleg5),·except·the·text·is·passed·as·an | 20 | Like·al_draw_multiline_text(3alleg5),·except·the·text·is·passed·as·an |
24 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 21 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
25 | .SH·SINCE | 22 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·982 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_pieslice(float\·cx,\·float\·cy,\·float\·r,\·float\·start_theta, | 13 | void\·al_draw_pieslice(float\·cx,\·float\·cy,\·float\·r,\·float\·start_theta, |
14 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color,\·float\·thickness) | 14 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color,\·float\·thickness) |
15 | void\·al_draw_pieslice(float\·cx,\·float\·cy,\·float\·r,\·float\·start_theta, | ||
16 | \·\·\·float\·delta_theta,\·ALLEGRO_COLOR\·color,\·float\·thickness) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·a·pieslice·(outlined·circular·sector). | 19 | Draws·a·pieslice·(outlined·circular·sector). |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1093 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_polygon(const\·float\·*vertices,\·int\·vertex_count, | 13 | void\·al_draw_polygon(const\·float\·*vertices,\·int\·vertex_count, |
14 | \·\·\·int\·join_style,\·ALLEGRO_COLOR\·color,\·float\·thickness,\·float\·miter_limit) | 14 | \·\·\·int\·join_style,\·ALLEGRO_COLOR\·color,\·float\·thickness,\·float\·miter_limit) |
15 | void\·al_draw_polygon(const\·float\·*vertices,\·int\·vertex_count, | ||
16 | \·\·\·int\·join_style,\·ALLEGRO_COLOR\·color,\·float\·thickness,\·float\·miter_limit) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draw·an·unfilled·polygon. | 19 | Draw·an·unfilled·polygon. |
22 | This·is·the·same·as·passing·\f[C]ALLEGRO_LINE_CAP_CLOSED\f[]·to | 20 | This·is·the·same·as·passing·\f[C]ALLEGRO_LINE_CAP_CLOSED\f[]·to |
23 | al_draw_polyline(3alleg5). | 21 | al_draw_polyline(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1795 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_polyline(const\·float*\·vertices,\·int\·vertex_stride, | 13 | void\·al_draw_polyline(const\·float*\·vertices,\·int\·vertex_stride, |
14 | \·\·\·int\·vertex_count,\·int\·join_style,\·int\·cap_style, | 14 | \·\·\·int\·vertex_count,\·int\·join_style,\·int\·cap_style, |
15 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness,\·float\·miter_limit) | 15 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness,\·float\·miter_limit) |
16 | void\·al_draw_polyline(const\·float*\·vertices,\·int\·vertex_stride, | ||
17 | \·\·\·int\·vertex_count,\·int\·join_style,\·int\·cap_style, | ||
18 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness,\·float\·miter_limit) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Draw·a·series·of·line·segments. | 20 | Draw·a·series·of·line·segments. |
24 | .IP·\[bu]·2 | 21 | .IP·\[bu]·2 |
25 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates | 22 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1716 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | int\·al_draw_prim(const\·void*\·vtxs,\·const\·ALLEGRO_VERTEX_DECL*\·decl, | 13 | int\·al_draw_prim(const\·void*\·vtxs,\·const\·ALLEGRO_VERTEX_DECL*\·decl, |
14 | \·\·\·ALLEGRO_BITMAP*\·texture,\·int\·start,\·int\·end,\·int\·type) | 14 | \·\·\·ALLEGRO_BITMAP*\·texture,\·int\·start,\·int\·end,\·int\·type) |
15 | int\·al_draw_prim(const\·void*\·vtxs,\·const\·ALLEGRO_VERTEX_DECL*\·decl, | ||
16 | \·\·\·ALLEGRO_BITMAP*\·texture,\·int\·start,\·int\·end,\·int\·type) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·a·subset·of·the·passed·vertex·array. | 19 | Draws·a·subset·of·the·passed·vertex·array. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·742 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | 13 | void\·al_draw_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, |
14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness) | 14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness) |
15 | void\·al_draw_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | ||
16 | \·\·\·ALLEGRO_COLOR\·color,\·float\·thickness) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·an·outlined·rectangle. | 19 | Draws·an·outlined·rectangle. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1066 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_ribbon(const\·float\·*points,\·int\·points_stride,\·ALLEGRO_COLOR\·color, | 13 | void\·al_draw_ribbon(const\·float\·*points,\·int\·points_stride,\·ALLEGRO_COLOR\·color, |
14 | \·\·\·float\·thickness,\·int\·num_segments) | 14 | \·\·\·float\·thickness,\·int\·num_segments) |
15 | void\·al_draw_ribbon(const\·float\·*points,\·int\·points_stride,\·ALLEGRO_COLOR\·color, | ||
16 | \·\·\·float\·thickness,\·int\·num_segments) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·a·ribbon·given·an·array·of·points. | 19 | Draws·a·ribbon·given·an·array·of·points. |
22 | The·ribbon·will·go·through·all·of·the·passed·points. | 20 | The·ribbon·will·go·through·all·of·the·passed·points. |
23 | The·points·buffer·should·consist·of·regularly·spaced·doublets·of·floats, | 21 | The·points·buffer·should·consist·of·regularly·spaced·doublets·of·floats, |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·843 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_rounded_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | 13 | void\·al_draw_rounded_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, |
14 | \·\·\·float\·rx,\·float\·ry,\·ALLEGRO_COLOR\·color,\·float\·thickness) | 14 | \·\·\·float\·rx,\·float\·ry,\·ALLEGRO_COLOR\·color,\·float\·thickness) |
15 | void\·al_draw_rounded_rectangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | ||
16 | \·\·\·float\·rx,\·float\·ry,\·ALLEGRO_COLOR\·color,\·float\·thickness) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·an·outlined·rounded·rectangle. | 19 | Draws·an·outlined·rounded·rectangle. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1663 |
Offset 11, 18 lines modified | Offset 11, 14 lines modified | ||
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_soft_line(ALLEGRO_VERTEX*\·v1,\·ALLEGRO_VERTEX*\·v2,\·uintptr_t\·state, | 13 | void\·al_draw_soft_line(ALLEGRO_VERTEX*\·v1,\·ALLEGRO_VERTEX*\·v2,\·uintptr_t\·state, |
14 | \·\·\·void\·(*first)(uintptr_t,\·int,\·int,\·ALLEGRO_VERTEX*,\·ALLEGRO_VERTEX*), | 14 | \·\·\·void\·(*first)(uintptr_t,\·int,\·int,\·ALLEGRO_VERTEX*,\·ALLEGRO_VERTEX*), |
15 | \·\·\·void\·(*step)(uintptr_t,\·int), | 15 | \·\·\·void\·(*step)(uintptr_t,\·int), |
16 | \·\·\·void\·(*draw)(uintptr_t,\·int,\·int)) | 16 | \·\·\·void\·(*draw)(uintptr_t,\·int,\·int)) |
17 | void\·al_draw_soft_line(ALLEGRO_VERTEX*\·v1,\·ALLEGRO_VERTEX*\·v2,\·uintptr_t\·state, | ||
18 | \·\·\·void\·(*first)(uintptr_t,\·int,\·int,\·ALLEGRO_VERTEX*,\·ALLEGRO_VERTEX*), | ||
19 | \·\·\·void\·(*step)(uintptr_t,\·int), | ||
20 | \·\·\·void\·(*draw)(uintptr_t,\·int,\·int)) | ||
21 | \f[] | 17 | \f[] |
22 | .fi | 18 | .fi |
23 | .SH·DESCRIPTION | 19 | .SH·DESCRIPTION |
24 | .PP | 20 | .PP |
25 | Draws·a·line·using·the·software·rasterizer·and·user·supplied·pixel | 21 | Draws·a·line·using·the·software·rasterizer·and·user·supplied·pixel |
26 | functions. | 22 | functions. |
27 | For·help·in·understanding·what·these·functions·do,·see·the | 23 | For·help·in·understanding·what·these·functions·do,·see·the |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2354 |
Offset 13, 20 lines modified | Offset 13, 14 lines modified | ||
13 | void\·al_draw_soft_triangle( | 13 | void\·al_draw_soft_triangle( |
14 | \·\·\·ALLEGRO_VERTEX*\·v1,\·ALLEGRO_VERTEX*\·v2,\·ALLEGRO_VERTEX*\·v3,\·uintptr_t\·state, | 14 | \·\·\·ALLEGRO_VERTEX*\·v1,\·ALLEGRO_VERTEX*\·v2,\·ALLEGRO_VERTEX*\·v3,\·uintptr_t\·state, |
15 | \·\·\·void\·(*init)(uintptr_t,\·ALLEGRO_VERTEX*,\·ALLEGRO_VERTEX*,\·ALLEGRO_VERTEX*), | 15 | \·\·\·void\·(*init)(uintptr_t,\·ALLEGRO_VERTEX*,\·ALLEGRO_VERTEX*,\·ALLEGRO_VERTEX*), |
16 | \·\·\·void\·(*first)(uintptr_t,\·int,\·int,\·int,\·int), | 16 | \·\·\·void\·(*first)(uintptr_t,\·int,\·int,\·int,\·int), |
17 | \·\·\·void\·(*step)(uintptr_t,\·int), | 17 | \·\·\·void\·(*step)(uintptr_t,\·int), |
18 | \·\·\·void\·(*draw)(uintptr_t,\·int,\·int,\·int)) | 18 | \·\·\·void\·(*draw)(uintptr_t,\·int,\·int,\·int)) |
19 | void\·al_draw_soft_triangle( | ||
20 | \·\·\·ALLEGRO_VERTEX*\·v1,\·ALLEGRO_VERTEX*\·v2,\·ALLEGRO_VERTEX*\·v3,\·uintptr_t\·state, | ||
21 | \·\·\·void\·(*init)(uintptr_t,\·ALLEGRO_VERTEX*,\·ALLEGRO_VERTEX*,\·ALLEGRO_VERTEX*), | ||
22 | \·\·\·void\·(*first)(uintptr_t,\·int,\·int,\·int,\·int), | ||
23 | \·\·\·void\·(*step)(uintptr_t,\·int), | ||
24 | \·\·\·void\·(*draw)(uintptr_t,\·int,\·int,\·int)) | ||
25 | \f[] | 19 | \f[] |
26 | .fi | 20 | .fi |
27 | .SH·DESCRIPTION | 21 | .SH·DESCRIPTION |
28 | .PP | 22 | .PP |
29 | Draws·a·triangle·using·the·software·rasterizer·and·user·supplied·pixel | 23 | Draws·a·triangle·using·the·software·rasterizer·and·user·supplied·pixel |
30 | functions. | 24 | functions. |
31 | For·help·in·understanding·what·these·functions·do,·see·the | 25 | For·help·in·understanding·what·these·functions·do,·see·the |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1324 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_draw_text(const\·ALLEGRO_FONT\·*font, | 13 | void\·al_draw_text(const\·ALLEGRO_FONT\·*font, |
14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·int\·flags, | 14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·int\·flags, |
15 | \·\·\·char\·const\·*text)\· | 15 | \·\·\·char\·const\·*text)\· |
16 | void\·al_draw_text(const\·ALLEGRO_FONT\·*font, | ||
17 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·int\·flags, | ||
18 | \·\·\·char\·const\·*text)\· | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Writes·the·NUL\-terminated·string·\f[C]text\f[]·onto·the·target·bitmap | 20 | Writes·the·NUL\-terminated·string·\f[C]text\f[]·onto·the·target·bitmap |
24 | at·position·\f[C]x\f[],·\f[C]y\f[],·using·the·specified·\f[C]font\f[]. | 21 | at·position·\f[C]x\f[],·\f[C]y\f[],·using·the·specified·\f[C]font\f[]. |
25 | .PP | 22 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·598 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_draw_textf(const\·ALLEGRO_FONT\·*font,\·ALLEGRO_COLOR\·color, | 13 | void\·al_draw_textf(const\·ALLEGRO_FONT\·*font,\·ALLEGRO_COLOR\·color, |
14 | \·\·\·float\·x,\·float\·y,\·int\·flags, | 14 | \·\·\·float\·x,\·float\·y,\·int\·flags, |
15 | \·\·\·const\·char\·*format,\·...) | 15 | \·\·\·const\·char\·*format,\·...) |
16 | void\·al_draw_textf(const\·ALLEGRO_FONT\·*font,\·ALLEGRO_COLOR\·color, | ||
17 | \·\·\·float\·x,\·float\·y,\·int\·flags, | ||
18 | \·\·\·const\·char\·*format,\·...) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Formatted·text·output,·using·a·printf()·style·format·string. | 20 | Formatted·text·output,·using·a·printf()·style·format·string. |
24 | All·parameters·have·the·same·meaning·as·with·al_draw_text(3alleg5) | 21 | All·parameters·have·the·same·meaning·as·with·al_draw_text(3alleg5) |
25 | otherwise. | 22 | otherwise. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·742 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_draw_triangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | 13 | void\·al_draw_triangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, |
14 | \·\·\·float\·x3,\·float\·y3,\·ALLEGRO_COLOR\·color,\·float\·thickness) | 14 | \·\·\·float\·x3,\·float\·y3,\·ALLEGRO_COLOR\·color,\·float\·thickness) |
15 | void\·al_draw_triangle(float\·x1,\·float\·y1,\·float\·x2,\·float\·y2, | ||
16 | \·\·\·float\·x3,\·float\·y3,\·ALLEGRO_COLOR\·color,\·float\·thickness) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·an·outlined·triangle. | 19 | Draws·an·outlined·triangle. |
22 | .PP | 20 | .PP |
23 | \f[I]Parameters:\f[] | 21 | \f[I]Parameters:\f[] |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·615 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_draw_ustr(const\·ALLEGRO_FONT\·*font, | 13 | void\·al_draw_ustr(const\·ALLEGRO_FONT\·*font, |
14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·int\·flags, | 14 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·int\·flags, |
15 | \·\·\·const\·ALLEGRO_USTR\·*ustr)\· | 15 | \·\·\·const\·ALLEGRO_USTR\·*ustr)\· |
16 | void\·al_draw_ustr(const\·ALLEGRO_FONT\·*font, | ||
17 | \·\·\·ALLEGRO_COLOR\·color,\·float\·x,\·float\·y,\·int\·flags, | ||
18 | \·\·\·const\·ALLEGRO_USTR\·*ustr)\· | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Like·al_draw_text(3alleg5),·except·the·text·is·passed·as·an·ALLEGRO_USTR | 20 | Like·al_draw_text(3alleg5),·except·the·text·is·passed·as·an·ALLEGRO_USTR |
24 | instead·of·a·NUL\-terminated·char·array. | 21 | instead·of·a·NUL\-terminated·char·array. |
25 | .SH·SEE·ALSO | 22 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1262 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | int\·al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·vertex_buffer, | 13 | int\·al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·vertex_buffer, |
14 | \·\·\·ALLEGRO_BITMAP*\·texture,\·int\·start,\·int\·end,\·int\·type) | 14 | \·\·\·ALLEGRO_BITMAP*\·texture,\·int\·start,\·int\·end,\·int\·type) |
15 | int\·al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·vertex_buffer, | ||
16 | \·\·\·ALLEGRO_BITMAP*\·texture,\·int\·start,\·int\·end,\·int\·type) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Draws·a·subset·of·the·passed·vertex·buffer. | 19 | Draws·a·subset·of·the·passed·vertex·buffer. |
22 | The·vertex·buffer·must·not·be·locked. | 20 | The·vertex·buffer·must·not·be·locked. |
23 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures | 21 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·7 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·705 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_EVENT_SOURCE\·*al_enable_menu_event_source(ALLEGRO_MENU\·*menu) | 13 | ALLEGRO_EVENT_SOURCE\·*al_enable_menu_event_source(ALLEGRO_MENU\·*menu) |
14 | ALLEGRO_EVENT_SOURCE\·*al_enable_menu_event_source(ALLEGRO_MENU\·*menu) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Enables·a·unique·event·source·for·this·menu. | 18 | Enables·a·unique·event·source·for·this·menu. |
20 | It·and·all·of·its·sub\-menus·will·use·this·event·source. | 19 | It·and·all·of·its·sub\-menus·will·use·this·event·source. |
21 | (It·is·safe·to·call·this·multiple·times·on·the·same·menu.) | 20 | (It·is·safe·to·call·this·multiple·times·on·the·same·menu.) |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·572 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_fill_silence(void\·*buf,\·unsigned\·int\·samples, | 13 | void\·al_fill_silence(void\·*buf,\·unsigned\·int\·samples, |
14 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) | 14 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) |
15 | void\·al_fill_silence(void\·*buf,\·unsigned\·int\·samples, | ||
16 | \·\·\·ALLEGRO_AUDIO_DEPTH\·depth,\·ALLEGRO_CHANNEL_CONF\·chan_conf) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Fill·a·buffer·with·silence,·for·the·given·format·and·channel | 19 | Fill·a·buffer·with·silence,·for·the·given·format·and·channel |
22 | configuration. | 20 | configuration. |
23 | The·buffer·must·have·enough·space·for·the·given·number·of·samples,·and | 21 | The·buffer·must·have·enough·space·for·the·given·number·of·samples,·and |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·618 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_MENU\·*al_find_menu(ALLEGRO_MENU\·*haystack,\·uint16_t\·id) | 13 | ALLEGRO_MENU\·*al_find_menu(ALLEGRO_MENU\·*haystack,\·uint16_t\·id) |
14 | ALLEGRO_MENU\·*al_find_menu(ALLEGRO_MENU\·*haystack,\·uint16_t\·id) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Searches·in·the·\f[C]haystack\f[]·menu·for·any·submenu·with·the·given | 18 | Searches·in·the·\f[C]haystack\f[]·menu·for·any·submenu·with·the·given |
20 | \f[C]id\f[]. | 19 | \f[C]id\f[]. |
21 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an | 20 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·873 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | bool\·al_find_menu_item(ALLEGRO_MENU\·*haystack,\·uint16_t\·id,\·ALLEGRO_MENU\·**menu, | 13 | bool\·al_find_menu_item(ALLEGRO_MENU\·*haystack,\·uint16_t\·id,\·ALLEGRO_MENU\·**menu, |
14 | \·\·\·int\·*index) | 14 | \·\·\·int\·*index) |
15 | bool\·al_find_menu_item(ALLEGRO_MENU\·*haystack,\·uint16_t\·id,\·ALLEGRO_MENU\·**menu, | ||
16 | \·\·\·int\·*index) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Searches·in·the·\f[C]haystack\f[]·menu·for·an·item·with·the·given | 19 | Searches·in·the·\f[C]haystack\f[]·menu·for·an·item·with·the·given |
22 | \f[C]id\f[]. | 20 | \f[C]id\f[]. |
23 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an | 21 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·16 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1664 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | typedef\·int32_t\·al_fixed; | 13 | typedef\·int32_t\·al_fixed; |
14 | typedef\·int32_t\·al_fixed; | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | A·fixed·point·number. | 18 | A·fixed·point·number. |
20 | .PP | 19 | .PP |
21 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and | 20 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·734 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·al_free(p)\·\\ | 13 | #define\·al_free(p)\·\\ |
14 | \·\·\·(al_free_with_context((p),\·__LINE__,\·__FILE__,\·__func__)) | 14 | \·\·\·(al_free_with_context((p),\·__LINE__,\·__FILE__,\·__func__)) |
15 | #define\·al_free(p)\·\\ | ||
16 | \·\·\·(al_free_with_context((p),\·__LINE__,\·__FILE__,\·__func__)) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be | 19 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be |
22 | overridden. | 20 | overridden. |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·428 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | uint32_t\·al_get_allegro_audio_version(void) | 13 | uint32_t\·al_get_allegro_audio_version(void) |
14 | uint32_t\·al_get_allegro_audio_version(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 18 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
20 | al_get_allegro_version(3alleg5). | 19 | al_get_allegro_version(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·428 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_color.h> | 12 | #include\·<allegro5/allegro_color.h> |
13 | uint32_t\·al_get_allegro_color_version(void) | 13 | uint32_t\·al_get_allegro_color_version(void) |
14 | uint32_t\·al_get_allegro_color_version(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 18 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
20 | al_get_allegro_version(3alleg5). | 19 | al_get_allegro_version(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·424 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | uint32_t\·al_get_allegro_font_version(void) | 13 | uint32_t\·al_get_allegro_font_version(void) |
14 | uint32_t\·al_get_allegro_font_version(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 18 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
20 | al_get_allegro_version(3alleg5). | 19 | al_get_allegro_version(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·436 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_memfile.h> | 12 | #include\·<allegro5/allegro_memfile.h> |
13 | uint32_t\·al_get_allegro_memfile_version(void) | 13 | uint32_t\·al_get_allegro_memfile_version(void) |
14 | uint32_t\·al_get_allegro_memfile_version(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 18 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
20 | al_get_allegro_version(3alleg5). | 19 | al_get_allegro_version(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·460 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | uint32_t\·al_get_allegro_native_dialog_version(void) | 13 | uint32_t\·al_get_allegro_native_dialog_version(void) |
14 | uint32_t\·al_get_allegro_native_dialog_version(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 18 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
20 | al_get_allegro_version(3alleg5). | 19 | al_get_allegro_version(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·432 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_physfs.h> | 12 | #include\·<allegro5/allegro_physfs.h> |
13 | uint32_t\·al_get_allegro_physfs_version(void) | 13 | uint32_t\·al_get_allegro_physfs_version(void) |
14 | uint32_t\·al_get_allegro_physfs_version(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 18 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
20 | al_get_allegro_version(3alleg5). | 19 | al_get_allegro_version(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·448 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | uint32_t\·al_get_allegro_primitives_version(void) | 13 | uint32_t\·al_get_allegro_primitives_version(void) |
14 | uint32_t\·al_get_allegro_primitives_version(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 18 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
20 | al_get_allegro_version(3alleg5). | 19 | al_get_allegro_version(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·420 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_ttf.h> | 12 | #include\·<allegro5/allegro_ttf.h> |
13 | uint32_t\·al_get_allegro_ttf_version(void) | 13 | uint32_t\·al_get_allegro_ttf_version(void) |
14 | uint32_t\·al_get_allegro_ttf_version(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 18 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
20 | al_get_allegro_version(3alleg5). | 19 | al_get_allegro_version(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·449 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | uint32_t\·al_get_allegro_video_version(void) | 13 | uint32_t\·al_get_allegro_video_version(void) |
14 | uint32_t\·al_get_allegro_video_version(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 18 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
20 | al_get_allegro_version(3alleg5). | 19 | al_get_allegro_version(3alleg5). |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·469 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | size_t\·al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH\·depth) | 13 | size_t\·al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH\·depth) |
14 | size_t\·al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH\·depth) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·size·of·a·sample,·in·bytes,·for·the·given·format. | 18 | Return·the·size·of·a·sample,·in·bytes,·for·the·given·format. |
20 | The·format·is·one·of·the·values·listed·under | 19 | The·format·is·one·of·the·values·listed·under |
21 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 20 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·519 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_AUDIO_RECORDER_EVENT\·*al_get_audio_recorder_event(ALLEGRO_EVENT\·*event) | 13 | ALLEGRO_AUDIO_RECORDER_EVENT\·*al_get_audio_recorder_event(ALLEGRO_EVENT\·*event) |
14 | ALLEGRO_AUDIO_RECORDER_EVENT\·*al_get_audio_recorder_event(ALLEGRO_EVENT\·*event) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·event·as·an·ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5). | 18 | Returns·the·event·as·an·ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5). |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·561 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_EVENT_SOURCE\·*al_get_audio_recorder_event_source(ALLEGRO_AUDIO_RECORDER\·*r) | 13 | ALLEGRO_EVENT_SOURCE\·*al_get_audio_recorder_event_source(ALLEGRO_AUDIO_RECORDER\·*r) |
14 | ALLEGRO_EVENT_SOURCE\·*al_get_audio_recorder_event_source(ALLEGRO_AUDIO_RECORDER\·*r) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·event·source·for·the·recorder·that·generates·the·various | 18 | Returns·the·event·source·for·the·recorder·that·generates·the·various |
20 | recording·events. | 19 | recording·events. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·542 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_get_audio_stream_attached(const\·ALLEGRO_AUDIO_STREAM\·*stream) | 13 | bool\·al_get_audio_stream_attached(const\·ALLEGRO_AUDIO_STREAM\·*stream) |
14 | bool\·al_get_audio_stream_attached(const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·whether·the·stream·is·attached·to·something. | 18 | Return·whether·the·stream·is·attached·to·something. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·468 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_CHANNEL_CONF\·al_get_audio_stream_channels( | 13 | ALLEGRO_CHANNEL_CONF\·al_get_audio_stream_channels( |
14 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) | 14 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) |
15 | ALLEGRO_CHANNEL_CONF\·al_get_audio_stream_channels( | ||
16 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Return·the·stream·channel·configuration. | 19 | Return·the·stream·channel·configuration. |
22 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·447 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_AUDIO_DEPTH\·al_get_audio_stream_depth( | 13 | ALLEGRO_AUDIO_DEPTH\·al_get_audio_stream_depth( |
14 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) | 14 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) |
15 | ALLEGRO_AUDIO_DEPTH\·al_get_audio_stream_depth( | ||
16 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Return·the·stream·audio·depth. | 19 | Return·the·stream·audio·depth. |
22 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·570 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_EVENT_SOURCE\·*al_get_audio_stream_event_source( | 13 | ALLEGRO_EVENT_SOURCE\·*al_get_audio_stream_event_source( |
14 | \·\·\·ALLEGRO_AUDIO_STREAM\·*stream) | 14 | \·\·\·ALLEGRO_AUDIO_STREAM\·*stream) |
15 | ALLEGRO_EVENT_SOURCE\·*al_get_audio_stream_event_source( | ||
16 | \·\·\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Retrieve·the·associated·event·source. | 19 | Retrieve·the·associated·event·source. |
22 | .PP | 20 | .PP |
23 | See·al_get_audio_stream_fragment(3alleg5)·for·a·description·of·the | 21 | See·al_get_audio_stream_fragment(3alleg5)·for·a·description·of·the |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1527 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·*al_get_audio_stream_fragment(const\·ALLEGRO_AUDIO_STREAM\·*stream) | 13 | void\·*al_get_audio_stream_fragment(const\·ALLEGRO_AUDIO_STREAM\·*stream) |
14 | void\·*al_get_audio_stream_fragment(const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | When·using·Allegro's·audio·streaming,·you·will·use·this·function·to | 18 | When·using·Allegro's·audio·streaming,·you·will·use·this·function·to |
20 | continuously·provide·new·sample·data·to·a·stream. | 19 | continuously·provide·new·sample·data·to·a·stream. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·582 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | unsigned\·int\·al_get_audio_stream_fragments(const\·ALLEGRO_AUDIO_STREAM\·*stream) | 13 | unsigned\·int\·al_get_audio_stream_fragments(const\·ALLEGRO_AUDIO_STREAM\·*stream) |
14 | unsigned\·int\·al_get_audio_stream_fragments(const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·number·of·fragments·this·stream·uses. | 18 | Returns·the·number·of·fragments·this·stream·uses. |
20 | This·is·the·same·value·as·passed·to·al_create_audio_stream(3alleg5)·when | 19 | This·is·the·same·value·as·passed·to·al_create_audio_stream(3alleg5)·when |
21 | a·new·stream·is·created. | 20 | a·new·stream·is·created. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·405 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | unsigned\·int\·al_get_audio_stream_frequency(const\·ALLEGRO_AUDIO_STREAM\·*stream) | 13 | unsigned\·int\·al_get_audio_stream_frequency(const\·ALLEGRO_AUDIO_STREAM\·*stream) |
14 | unsigned\·int\·al_get_audio_stream_frequency(const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·stream·frequency·(in·Hz). | 18 | Return·the·stream·frequency·(in·Hz). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·437 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | float\·al_get_audio_stream_gain(const\·ALLEGRO_AUDIO_STREAM\·*stream) | 13 | float\·al_get_audio_stream_gain(const\·ALLEGRO_AUDIO_STREAM\·*stream) |
14 | float\·al_get_audio_stream_gain(const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·playback·gain·of·the·stream. | 18 | Return·the·playback·gain·of·the·stream. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·396 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | unsigned\·int\·al_get_audio_stream_length(const\·ALLEGRO_AUDIO_STREAM\·*stream) | 13 | unsigned\·int\·al_get_audio_stream_length(const\·ALLEGRO_AUDIO_STREAM\·*stream) |
14 | unsigned\·int\·al_get_audio_stream_length(const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·stream·length·in·samples. | 18 | Return·the·stream·length·in·samples. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·686 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | double\·al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM\·*stream) | 13 | double\·al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM\·*stream) |
14 | double\·al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·length·of·the·stream·in·seconds,·if·known. | 18 | Return·the·length·of·the·stream·in·seconds,·if·known. |
20 | Otherwise·returns·zero. | 19 | Otherwise·returns·zero. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·426 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | float\·al_get_audio_stream_pan(const\·ALLEGRO_AUDIO_STREAM\·*stream) | 13 | float\·al_get_audio_stream_pan(const\·ALLEGRO_AUDIO_STREAM\·*stream) |
14 | float\·al_get_audio_stream_pan(const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Get·the·pan·value·of·the·stream. | 18 | Get·the·pan·value·of·the·stream. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·483 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | uint64_t\·al_get_audio_stream_played_samples(const\·ALLEGRO_AUDIO_STREAM\·*stream) | 13 | uint64_t\·al_get_audio_stream_played_samples(const\·ALLEGRO_AUDIO_STREAM\·*stream) |
14 | uint64_t\·al_get_audio_stream_played_samples(const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Get·the·number·of·samples·consumed·by·the·parent·since·the·audio·stream | 18 | Get·the·number·of·samples·consumed·by·the·parent·since·the·audio·stream |
20 | was·started. | 19 | was·started. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·446 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_get_audio_stream_playing(const\·ALLEGRO_AUDIO_STREAM\·*stream) | 13 | bool\·al_get_audio_stream_playing(const\·ALLEGRO_AUDIO_STREAM\·*stream) |
14 | bool\·al_get_audio_stream_playing(const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·true·if·the·stream·is·playing. | 18 | Return·true·if·the·stream·is·playing. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·498 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_PLAYMODE\·al_get_audio_stream_playmode( | 13 | ALLEGRO_PLAYMODE\·al_get_audio_stream_playmode( |
14 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) | 14 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) |
15 | ALLEGRO_PLAYMODE\·al_get_audio_stream_playmode( | ||
16 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Return·the·playback·mode·of·the·stream. | 19 | Return·the·playback·mode·of·the·stream. |
22 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·559 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | double\·al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM\·*stream) | 13 | double\·al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM\·*stream) |
14 | double\·al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·position·of·the·stream·in·seconds. | 18 | Return·the·position·of·the·stream·in·seconds. |
20 | Currently·this·can·only·be·called·on·streams·created·with | 19 | Currently·this·can·only·be·called·on·streams·created·with |
21 | al_load_audio_stream(3alleg5). | 20 | al_load_audio_stream(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·451 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | float\·al_get_audio_stream_speed(const\·ALLEGRO_AUDIO_STREAM\·*stream) | 13 | float\·al_get_audio_stream_speed(const\·ALLEGRO_AUDIO_STREAM\·*stream) |
14 | float\·al_get_audio_stream_speed(const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·relative·playback·speed·of·the·stream. | 18 | Return·the·relative·playback·speed·of·the·stream. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·631 |
Offset 10, 16 lines modified | Offset 10, 14 lines modified | ||
10 | .IP | 10 | .IP |
11 | .nf | 11 | .nf |
12 | \f[C] | 12 | \f[C] |
13 | #include\·<allegro5/allegro_audio.h> | 13 | #include\·<allegro5/allegro_audio.h> |
14 | unsigned\·int\·al_get_available_audio_stream_fragments( | 14 | unsigned\·int\·al_get_available_audio_stream_fragments( |
15 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) | 15 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) |
16 | unsigned\·int\·al_get_available_audio_stream_fragments( | ||
17 | \·\·\·const\·ALLEGRO_AUDIO_STREAM\·*stream) | ||
18 | \f[] | 16 | \f[] |
19 | .fi | 17 | .fi |
20 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
21 | .PP | 19 | .PP |
22 | Returns·the·number·of·available·fragments·in·the·stream,·that·is, | 20 | Returns·the·number·of·available·fragments·in·the·stream,·that·is, |
23 | fragments·which·are·not·currently·filled·with·data·for·playback. | 21 | fragments·which·are·not·currently·filled·with·data·for·playback. |
24 | .SH·SEE·ALSO | 22 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·462 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | size_t\·al_get_channel_count(ALLEGRO_CHANNEL_CONF\·conf) | 13 | size_t\·al_get_channel_count(ALLEGRO_CHANNEL_CONF\·conf) |
14 | size_t\·al_get_channel_count(ALLEGRO_CHANNEL_CONF\·conf) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·number·of·channels·for·the·given·channel·configuration,·which | 18 | Return·the·number·of·channels·for·the·given·channel·configuration,·which |
20 | is·one·of·the·values·listed·under·ALLEGRO_CHANNEL_CONF(3alleg5). | 19 | is·one·of·the·values·listed·under·ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·689 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_EVENT_SOURCE\·*al_get_default_menu_event_source(void) | 13 | ALLEGRO_EVENT_SOURCE\·*al_get_default_menu_event_source(void) |
14 | ALLEGRO_EVENT_SOURCE\·*al_get_default_menu_event_source(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·default·event·source·used·for·menu·clicks. | 18 | Returns·the·default·event·source·used·for·menu·clicks. |
20 | If·a·menu·was·not·given·its·own·event·source·via | 19 | If·a·menu·was·not·given·its·own·event·source·via |
21 | al_enable_menu_event_source(3alleg5),·then·it·will·use·this·default | 20 | al_enable_menu_event_source(3alleg5),·then·it·will·use·this·default |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·694 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_MIXER\·*al_get_default_mixer(void) | 13 | ALLEGRO_MIXER\·*al_get_default_mixer(void) |
14 | ALLEGRO_MIXER\·*al_get_default_mixer(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·default·mixer,·or·NULL·if·one·has·not·been·set. | 18 | Return·the·default·mixer,·or·NULL·if·one·has·not·been·set. |
20 | Although·different·configurations·of·mixers·and·voices·can·be·used,·in | 19 | Although·different·configurations·of·mixers·and·voices·can·be·used,·in |
21 | most·cases·a·single·mixer·attached·to·a·voice·is·what·you·want. | 20 | most·cases·a·single·mixer·attached·to·a·voice·is·what·you·want. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·430 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_VOICE\·*al_get_default_voice(void) | 13 | ALLEGRO_VOICE\·*al_get_default_voice(void) |
14 | ALLEGRO_VOICE\·*al_get_default_voice(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·default·voice·or·NULL·if·there·is·none. | 18 | Returns·the·default·voice·or·NULL·if·there·is·none. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·501 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_MENU\·*al_get_display_menu(ALLEGRO_DISPLAY\·*display) | 13 | ALLEGRO_MENU\·*al_get_display_menu(ALLEGRO_DISPLAY\·*display) |
14 | ALLEGRO_MENU\·*al_get_display_menu(ALLEGRO_DISPLAY\·*display) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·menu·associated·with·the·\f[C]display\f[],·or·\f[C]NULL\f[] | 18 | Returns·the·menu·associated·with·the·\f[C]display\f[],·or·\f[C]NULL\f[] |
20 | if·it·does·not·have·a·menu. | 19 | if·it·does·not·have·a·menu. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·442 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | ALLEGRO_FONT\·*al_get_fallback_font(ALLEGRO_FONT\·*font) | 13 | ALLEGRO_FONT\·*al_get_fallback_font(ALLEGRO_FONT\·*font) |
14 | ALLEGRO_FONT\·*al_get_fallback_font(ALLEGRO_FONT\·*font) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Retrieves·the·fallback·font·for·this·font·or·NULL. | 18 | Retrieves·the·fallback·font·for·this·font·or·NULL. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·433 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | int\·al_get_font_ascent(const\·ALLEGRO_FONT\·*f) | 13 | int\·al_get_font_ascent(const\·ALLEGRO_FONT\·*f) |
14 | int\·al_get_font_ascent(const\·ALLEGRO_FONT\·*f) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·ascent·of·the·specified·font. | 18 | Returns·the·ascent·of·the·specified·font. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·436 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | int\·al_get_font_descent(const\·ALLEGRO_FONT\·*f) | 13 | int\·al_get_font_descent(const\·ALLEGRO_FONT\·*f) |
14 | int\·al_get_font_descent(const\·ALLEGRO_FONT\·*f) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·descent·of·the·specified·font. | 18 | Returns·the·descent·of·the·specified·font. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1362 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | int\·al_get_font_line_height(const\·ALLEGRO_FONT\·*f) | 13 | int\·al_get_font_line_height(const\·ALLEGRO_FONT\·*f) |
14 | int\·al_get_font_line_height(const\·ALLEGRO_FONT\·*f) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font. | 18 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font. |
20 | For·bitmap·fonts·this·is·simply·the·height·of·all·glyph·bitmaps. | 19 | For·bitmap·fonts·this·is·simply·the·height·of·all·glyph·bitmaps. |
21 | For·truetype·fonts·it·is·whatever·the·font·file·specifies. | 20 | For·truetype·fonts·it·is·whatever·the·font·file·specifies. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·943 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | int\·al_get_font_ranges(ALLEGRO_FONT\·*f,\·int\·ranges_count,\·int\·*ranges) | 13 | int\·al_get_font_ranges(ALLEGRO_FONT\·*f,\·int\·ranges_count,\·int\·*ranges) |
14 | int\·al_get_font_ranges(ALLEGRO_FONT\·*f,\·int\·ranges_count,\·int\·*ranges) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Gets·information·about·all·glyphs·contained·in·a·font,·as·a·list·of | 18 | Gets·information·about·all·glyphs·contained·in·a·font,·as·a·list·of |
20 | ranges. | 19 | ranges. |
21 | Ranges·have·the·same·format·as·with·al_grab_font_from_bitmap(3alleg5). | 20 | Ranges·have·the·same·format·as·with·al_grab_font_from_bitmap(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·861 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_ttf.h> | 12 | #include\·<allegro5/allegro_ttf.h> |
13 | bool\·al_get_glyph(const\·ALLEGRO_FONT\·*f,\·int\·prev_codepoint,\·int\·codepoint,\·ALLEGRO_GLYPH\·*glyph) | 13 | bool\·al_get_glyph(const\·ALLEGRO_FONT\·*f,\·int\·prev_codepoint,\·int\·codepoint,\·ALLEGRO_GLYPH\·*glyph) |
14 | bool\·al_get_glyph(const\·ALLEGRO_FONT\·*f,\·int\·prev_codepoint,\·int\·codepoint,\·ALLEGRO_GLYPH\·*glyph) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Gets·all·the·information·about·a·glyph,·including·the·bitmap,·needed·to | 18 | Gets·all·the·information·about·a·glyph,·including·the·bitmap,·needed·to |
20 | draw·it·yourself. | 19 | draw·it·yourself. |
21 | prev_codepoint·is·the·codepoint·in·the·string·before·the·one·you·want·to | 20 | prev_codepoint·is·the·codepoint·in·the·string·before·the·one·you·want·to |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3482 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | int\·al_get_glyph_advance(const\·ALLEGRO_FONT\·*f,\·int\·codepoint1,\·int\·codepoint2) | 13 | int\·al_get_glyph_advance(const\·ALLEGRO_FONT\·*f,\·int\·codepoint1,\·int\·codepoint2) |
14 | int\·al_get_glyph_advance(const\·ALLEGRO_FONT\·*f,\·int\·codepoint1,\·int\·codepoint2) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·function·returns·by·how·much·the·x·position·should·be·advanced·for | 18 | This·function·returns·by·how·much·the·x·position·should·be·advanced·for |
20 | left·to·right·text·drawing·when·the·glyph·that·corresponds·to·codepoint1 | 19 | left·to·right·text·drawing·when·the·glyph·that·corresponds·to·codepoint1 |
21 | has·been·drawn,·and·the·glyph·that·corresponds·to·codepoint2·will·be·the | 20 | has·been·drawn,·and·the·glyph·that·corresponds·to·codepoint2·will·be·the |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3360 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | bool\·al_get_glyph_dimensions(const\·ALLEGRO_FONT\·*f, | 13 | bool\·al_get_glyph_dimensions(const\·ALLEGRO_FONT\·*f, |
14 | \·\·\·int\·codepoint,\·int\·*bbx,\·int\·*bby,\·int\·*bbw,\·int\·*bbh) | 14 | \·\·\·int\·codepoint,\·int\·*bbx,\·int\·*bby,\·int\·*bbw,\·int\·*bbh) |
15 | bool\·al_get_glyph_dimensions(const\·ALLEGRO_FONT\·*f, | ||
16 | \·\·\·int\·codepoint,\·int\·*bbx,\·int\·*bby,\·int\·*bbw,\·int\·*bbh) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Sometimes,·the·al_get_glyph_width(3alleg5)·or | 19 | Sometimes,·the·al_get_glyph_width(3alleg5)·or |
22 | al_get_glyph_advance(3alleg5)·functions·are·not·enough·for·exact·glyph | 20 | al_get_glyph_advance(3alleg5)·functions·are·not·enough·for·exact·glyph |
23 | placement,·so·this·function·returns·some·additional·information, | 21 | placement,·so·this·function·returns·some·additional·information, |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·631 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | int\·al_get_glyph_width(const\·ALLEGRO_FONT\·*f,\·int\·codepoint) | 13 | int\·al_get_glyph_width(const\·ALLEGRO_FONT\·*f,\·int\·codepoint) |
14 | int\·al_get_glyph_width(const\·ALLEGRO_FONT\·*f,\·int\·codepoint) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·function·returns·the·width·in·pixels·of·the·glyph·that·corresponds | 18 | This·function·returns·the·width·in·pixels·of·the·glyph·that·corresponds |
20 | with·\f[C]codepoint\f[]·in·the·font·\f[C]font\f[]. | 19 | with·\f[C]codepoint\f[]·in·the·font·\f[C]font\f[]. |
21 | Returns·zero·if·the·font·does·not·have·such·a·glyph. | 20 | Returns·zero·if·the·font·does·not·have·such·a·glyph. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·445 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | int\·al_get_index_buffer_size(ALLEGRO_INDEX_BUFFER*\·buffer) | 13 | int\·al_get_index_buffer_size(ALLEGRO_INDEX_BUFFER*\·buffer) |
14 | int\·al_get_index_buffer_size(ALLEGRO_INDEX_BUFFER*\·buffer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·size·of·the·index·buffer | 18 | Returns·the·size·of·the·index·buffer |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·581 |
Offset 7, 15 lines modified | Offset 7, 14 lines modified | ||
7 | al_get_menu_item_caption·\-·Allegro·5·API | 7 | al_get_menu_item_caption·\-·Allegro·5·API |
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | const\·char\·*al_get_menu_item_caption(ALLEGRO_get_allegro_image_version | ||
14 | const\·char\·*al_get_menu_item_caption(ALLEGRO_MENU\·*menu,\·int\·pos) | 13 | const\·char\·*al_get_menu_item_caption(ALLEGRO_MENU\·*menu,\·int\·pos) |
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·caption·associated·with·the·menu·item. | 18 | Returns·the·caption·associated·with·the·menu·item. |
20 | It·is·valid·as·long·as·the·caption·is·not·modified. | 19 | It·is·valid·as·long·as·the·caption·is·not·modified. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·595 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | int\·al_get_menu_item_flags(ALLEGRO_MENU\·*menu,\·int\·pos) | 13 | int\·al_get_menu_item_flags(ALLEGRO_MENU\·*menu,\·int\·pos) |
14 | int\·al_get_menu_item_flags(ALLEGRO_MENU\·*menu,\·int\·pos) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·currently·set·flags. | 18 | Returns·the·currently·set·flags. |
20 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 19 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
21 | flags. | 20 | flags. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·665 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_BITMAP\·*al_get_menu_item_icon(ALLEGRO_MENU\·*menu,\·int\·pos) | 13 | ALLEGRO_BITMAP\·*al_get_menu_item_icon(ALLEGRO_MENU\·*menu,\·int\·pos) |
14 | ALLEGRO_BITMAP\·*al_get_menu_item_icon(ALLEGRO_MENU\·*menu,\·int\·pos) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·icon·associated·with·the·menu. | 18 | Returns·the·icon·associated·with·the·menu. |
20 | It·is·safe·to·draw·to·the·returned·bitmap,·but·you·must·call | 19 | It·is·safe·to·draw·to·the·returned·bitmap,·but·you·must·call |
21 | al_set_menu_item_icon(3alleg5)·in·order·for·the·changes·to·be·applied. | 20 | al_set_menu_item_icon(3alleg5)·in·order·for·the·changes·to·be·applied. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·542 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_get_mixer_attached(const\·ALLEGRO_MIXER\·*mixer) | 13 | bool\·al_get_mixer_attached(const\·ALLEGRO_MIXER\·*mixer) |
14 | bool\·al_get_mixer_attached(const\·ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·true·if·the·mixer·is·attached·to·something. | 18 | Return·true·if·the·mixer·is·attached·to·something. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·431 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_CHANNEL_CONF\·al_get_mixer_channels(const\·ALLEGRO_MIXER\·*mixer) | 13 | ALLEGRO_CHANNEL_CONF\·al_get_mixer_channels(const\·ALLEGRO_MIXER\·*mixer) |
14 | ALLEGRO_CHANNEL_CONF\·al_get_mixer_channels(const\·ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·mixer·channel·configuration. | 18 | Return·the·mixer·channel·configuration. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·410 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_AUDIO_DEPTH\·al_get_mixer_depth(const\·ALLEGRO_MIXER\·*mixer) | 13 | ALLEGRO_AUDIO_DEPTH\·al_get_mixer_depth(const\·ALLEGRO_MIXER\·*mixer) |
14 | ALLEGRO_AUDIO_DEPTH\·al_get_mixer_depth(const\·ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·mixer·audio·depth. | 18 | Return·the·mixer·audio·depth. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·424 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | unsigned\·int\·al_get_mixer_frequency(const\·ALLEGRO_MIXER\·*mixer) | 13 | unsigned\·int\·al_get_mixer_frequency(const\·ALLEGRO_MIXER\·*mixer) |
14 | unsigned\·int\·al_get_mixer_frequency(const\·ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·mixer·frequency·(in·Hz). | 18 | Return·the·mixer·frequency·(in·Hz). |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·454 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | float\·al_get_mixer_gain(const\·ALLEGRO_MIXER\·*mixer) | 13 | float\·al_get_mixer_gain(const\·ALLEGRO_MIXER\·*mixer) |
14 | float\·al_get_mixer_gain(const\·ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·mixer·gain·(amplification·factor). | 18 | Return·the·mixer·gain·(amplification·factor). |
20 | The·default·is·1.0. | 19 | The·default·is·1.0. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·409 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_get_mixer_playing(const\·ALLEGRO_MIXER\·*mixer) | 13 | bool\·al_get_mixer_playing(const\·ALLEGRO_MIXER\·*mixer) |
14 | bool\·al_get_mixer_playing(const\·ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·true·if·the·mixer·is·playing. | 18 | Return·true·if·the·mixer·is·playing. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·446 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_MIXER_QUALITY\·al_get_mixer_quality(const\·ALLEGRO_MIXER\·*mixer) | 13 | ALLEGRO_MIXER_QUALITY\·al_get_mixer_quality(const\·ALLEGRO_MIXER\·*mixer) |
14 | ALLEGRO_MIXER_QUALITY\·al_get_mixer_quality(const\·ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·mixer·quality. | 18 | Return·the·mixer·quality. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·443 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | int\·al_get_native_file_dialog_count(const\·ALLEGRO_FILECHOOSER\·*dialog) | 13 | int\·al_get_native_file_dialog_count(const\·ALLEGRO_FILECHOOSER\·*dialog) |
14 | int\·al_get_native_file_dialog_count(const\·ALLEGRO_FILECHOOSER\·*dialog) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. | 18 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·570 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | const\·char\·*al_get_native_file_dialog_path( | 13 | const\·char\·*al_get_native_file_dialog_path( |
14 | \·\·\·const\·ALLEGRO_FILECHOOSER\·*dialog,\·size_t\·i) | 14 | \·\·\·const\·ALLEGRO_FILECHOOSER\·*dialog,\·size_t\·i) |
15 | const\·char\·*al_get_native_file_dialog_path( | ||
16 | \·\·\·const\·ALLEGRO_FILECHOOSER\·*dialog,\·size_t\·i) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Returns·one·of·the·selected·paths·with·index·\f[C]i\f[]. | 19 | Returns·one·of·the·selected·paths·with·index·\f[C]i\f[]. |
22 | The·index·should·range·from·\f[C]0\f[]·to·the·return·value·of | 20 | The·index·should·range·from·\f[C]0\f[]·to·the·return·value·of |
23 | al_get_native_file_dialog_count(3alleg5)·\f[C]\-1\f[]. | 21 | al_get_native_file_dialog_count(3alleg5)·\f[C]\-1\f[]. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·839 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_EVENT_SOURCE\·*al_get_native_text_log_event_source( | 13 | ALLEGRO_EVENT_SOURCE\·*al_get_native_text_log_event_source( |
14 | \·\·\·ALLEGRO_TEXTLOG\·*textlog) | 14 | \·\·\·ALLEGRO_TEXTLOG\·*textlog) |
15 | ALLEGRO_EVENT_SOURCE\·*al_get_native_text_log_event_source( | ||
16 | \·\·\·ALLEGRO_TEXTLOG\·*textlog) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Get·an·event·source·for·a·text·log·window. | 19 | Get·an·event·source·for·a·text·log·window. |
22 | The·possible·events·are: | 20 | The·possible·events·are: |
23 | .TP | 21 | .TP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·8 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·809 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_SAMPLE\·*al_get_sample(ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | ALLEGRO_SAMPLE\·*al_get_sample(ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | ALLEGRO_SAMPLE\·*al_get_sample(ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·sample·data·that·the·sample·instance·plays. | 18 | Return·the·sample·data·that·the·sample·instance·plays. |
20 | .PP | 19 | .PP |
21 | Note·this·returns·a·pointer·to·an·internal·structure,·\f[I]not\f[]·the | 20 | Note·this·returns·a·pointer·to·an·internal·structure,·\f[I]not\f[]·the |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·564 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_CHANNEL_CONF\·al_get_sample_channels(const\·ALLEGRO_SAMPLE\·*spl) | 13 | ALLEGRO_CHANNEL_CONF\·al_get_sample_channels(const\·ALLEGRO_SAMPLE\·*spl) |
14 | ALLEGRO_CHANNEL_CONF\·al_get_sample_channels(const\·ALLEGRO_SAMPLE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·channel·configuration·of·the·sample. | 18 | Return·the·channel·configuration·of·the·sample. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·503 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·*al_get_sample_data(const\·ALLEGRO_SAMPLE\·*spl) | 13 | void\·*al_get_sample_data(const\·ALLEGRO_SAMPLE\·*spl) |
14 | void\·*al_get_sample_data(const\·ALLEGRO_SAMPLE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·a·pointer·to·the·raw·sample·data. | 18 | Return·a·pointer·to·the·raw·sample·data. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·546 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_AUDIO_DEPTH\·al_get_sample_depth(const\·ALLEGRO_SAMPLE\·*spl) | 13 | ALLEGRO_AUDIO_DEPTH\·al_get_sample_depth(const\·ALLEGRO_SAMPLE\·*spl) |
14 | ALLEGRO_AUDIO_DEPTH\·al_get_sample_depth(const\·ALLEGRO_SAMPLE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·audio·depth·of·the·sample. | 18 | Return·the·audio·depth·of·the·sample. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·524 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | unsigned\·int\·al_get_sample_frequency(const\·ALLEGRO_SAMPLE\·*spl) | 13 | unsigned\·int\·al_get_sample_frequency(const\·ALLEGRO_SAMPLE\·*spl) |
14 | unsigned\·int\·al_get_sample_frequency(const\·ALLEGRO_SAMPLE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·frequency·(in·Hz)·of·the·sample. | 18 | Return·the·frequency·(in·Hz)·of·the·sample. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·568 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_get_sample_instance_attached(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | bool\·al_get_sample_instance_attached(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | bool\·al_get_sample_instance_attached(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·whether·the·sample·instance·is·attached·to·something. | 18 | Return·whether·the·sample·instance·is·attached·to·something. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·507 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_CHANNEL_CONF\·al_get_sample_instance_channels( | 13 | ALLEGRO_CHANNEL_CONF\·al_get_sample_instance_channels( |
14 | \·\·\·const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 14 | \·\·\·const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
15 | ALLEGRO_CHANNEL_CONF\·al_get_sample_instance_channels( | ||
16 | \·\·\·const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Return·the·channel·configuration·of·the·sample·instance's·sample·data. | 19 | Return·the·channel·configuration·of·the·sample·instance's·sample·data. |
22 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·479 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_AUDIO_DEPTH\·al_get_sample_instance_depth(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | ALLEGRO_AUDIO_DEPTH\·al_get_sample_instance_depth(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | ALLEGRO_AUDIO_DEPTH\·al_get_sample_instance_depth(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·audio·depth·of·the·sample·instance's·sample·data. | 18 | Return·the·audio·depth·of·the·sample·instance's·sample·data. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·444 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | unsigned\·int\·al_get_sample_instance_frequency(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | unsigned\·int\·al_get_sample_instance_frequency(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | unsigned\·int\·al_get_sample_instance_frequency(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·frequency·(in·Hz)·of·the·sample·instance's·sample·data. | 18 | Return·the·frequency·(in·Hz)·of·the·sample·instance's·sample·data. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·457 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | float\·al_get_sample_instance_gain(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | float\·al_get_sample_instance_gain(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | float\·al_get_sample_instance_gain(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·playback·gain·of·the·sample·instance. | 18 | Return·the·playback·gain·of·the·sample·instance. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·593 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | unsigned\·int\·al_get_sample_instance_length(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | unsigned\·int\·al_get_sample_instance_length(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | unsigned\·int\·al_get_sample_instance_length(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·length·of·the·sample·instance·in·sample·values. | 18 | Return·the·length·of·the·sample·instance·in·sample·values. |
20 | This·property·may·differ·from·the·length·of·the·instance's·sample·data. | 19 | This·property·may·differ·from·the·length·of·the·instance's·sample·data. |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·447 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | float\·al_get_sample_instance_pan(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | float\·al_get_sample_instance_pan(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | float\·al_get_sample_instance_pan(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Get·the·pan·value·of·the·sample·instance. | 18 | Get·the·pan·value·of·the·sample·instance. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·546 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_get_sample_instance_playing(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | bool\·al_get_sample_instance_playing(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | bool\·al_get_sample_instance_playing(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·true·if·the·sample·instance·is·in·the·playing·state. | 18 | Return·true·if·the·sample·instance·is·in·the·playing·state. |
20 | This·may·be·true·even·if·the·instance·is·not·attached·to·anything. | 19 | This·may·be·true·even·if·the·instance·is·not·attached·to·anything. |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·511 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_PLAYMODE\·al_get_sample_instance_playmode(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | ALLEGRO_PLAYMODE\·al_get_sample_instance_playmode(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | ALLEGRO_PLAYMODE\·al_get_sample_instance_playmode(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·playback·mode·of·the·sample·instance. | 18 | Return·the·playback·mode·of·the·sample·instance. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·480 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | unsigned\·int\·al_get_sample_instance_position(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | unsigned\·int\·al_get_sample_instance_position(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | unsigned\·int\·al_get_sample_instance_position(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Get·the·playback·position·of·a·sample·instance. | 18 | Get·the·playback·position·of·a·sample·instance. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·471 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | float\·al_get_sample_instance_speed(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | float\·al_get_sample_instance_speed(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | float\·al_get_sample_instance_speed(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·relative·playback·speed·of·the·sample·instance. | 18 | Return·the·relative·playback·speed·of·the·sample·instance. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·497 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | float\·al_get_sample_instance_time(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | float\·al_get_sample_instance_time(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | float\·al_get_sample_instance_time(const\·ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·length·of·the·sample·instance·in·seconds,·assuming·a·playback | 18 | Return·the·length·of·the·sample·instance·in·seconds,·assuming·a·playback |
20 | speed·of·1.0. | 19 | speed·of·1.0. |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·524 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | unsigned\·int\·al_get_sample_length(const\·ALLEGRO_SAMPLE\·*spl) | 13 | unsigned\·int\·al_get_sample_length(const\·ALLEGRO_SAMPLE\·*spl) |
14 | unsigned\·int\·al_get_sample_length(const\·ALLEGRO_SAMPLE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·length·of·the·sample·in·sample·values. | 18 | Return·the·length·of·the·sample·in·sample·values. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·962 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_get_text_dimensions(const\·ALLEGRO_FONT\·*f, | 13 | void\·al_get_text_dimensions(const\·ALLEGRO_FONT\·*f, |
14 | \·\·\·char\·const\·*text, | 14 | \·\·\·char\·const\·*text, |
15 | \·\·\·int\·*bbx,\·int\·*bby,\·int\·*bbw,\·int\·*bbh) | 15 | \·\·\·int\·*bbx,\·int\·*bby,\·int\·*bbw,\·int\·*bbh) |
16 | void\·al_get_text_dimensions(const\·ALLEGRO_FONT\·*f, | ||
17 | \·\·\·char\·const\·*text, | ||
18 | \·\·\·int\·*bbx,\·int\·*bby,\·int\·*bbw,\·int\·*bbh) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Sometimes,·the·al_get_text_width(3alleg5)·and | 20 | Sometimes,·the·al_get_text_width(3alleg5)·and |
24 | al_get_font_line_height(3alleg5)·functions·are·not·enough·for·exact·text | 21 | al_get_font_line_height(3alleg5)·functions·are·not·enough·for·exact·text |
25 | placement,·so·this·function·returns·some·additional·information. | 22 | placement,·so·this·function·returns·some·additional·information. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·506 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | int\·al_get_text_width(const\·ALLEGRO_FONT\·*f,\·const\·char\·*str) | 13 | int\·al_get_text_width(const\·ALLEGRO_FONT\·*f,\·const\·char\·*str) |
14 | int\·al_get_text_width(const\·ALLEGRO_FONT\·*f,\·const\·char\·*str) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. | 18 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·584 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_get_ustr_dimensions(const\·ALLEGRO_FONT\·*f, | 13 | void\·al_get_ustr_dimensions(const\·ALLEGRO_FONT\·*f, |
14 | \·\·\·ALLEGRO_USTR\·const\·*ustr, | 14 | \·\·\·ALLEGRO_USTR\·const\·*ustr, |
15 | \·\·\·int\·*bbx,\·int\·*bby,\·int\·*bbw,\·int\·*bbh) | 15 | \·\·\·int\·*bbx,\·int\·*bby,\·int\·*bbw,\·int\·*bbh) |
16 | void\·al_get_ustr_dimensions(const\·ALLEGRO_FONT\·*f, | ||
17 | \·\·\·ALLEGRO_USTR\·const\·*ustr, | ||
18 | \·\·\·int\·*bbx,\·int\·*bby,\·int\·*bbw,\·int\·*bbh) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Like·al_get_text_dimensions(3alleg5),·except·the·text·is·passed·as·an | 20 | Like·al_get_text_dimensions(3alleg5),·except·the·text·is·passed·as·an |
24 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 21 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
25 | .SH·SEE·ALSO | 22 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·475 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | int\·al_get_ustr_width(const\·ALLEGRO_FONT\·*f,\·ALLEGRO_USTR\·const\·*ustr) | 13 | int\·al_get_ustr_width(const\·ALLEGRO_FONT\·*f,\·ALLEGRO_USTR\·const\·*ustr) |
14 | int\·al_get_ustr_width(const\·ALLEGRO_FONT\·*f,\·ALLEGRO_USTR\·const\·*ustr) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Like·al_get_text_width(3alleg5)·but·expects·an·ALLEGRO_USTR. | 18 | Like·al_get_text_width(3alleg5)·but·expects·an·ALLEGRO_USTR. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·51 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·451 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | int\·al_get_vertex_buffer_size(ALLEGRO_VERTEX_BUFFER*\·buffer) | 13 | int\·al_get_vertex_buffer_size(ALLEGRO_VERTEX_BUFFER*\·buffer) |
14 | int\·al_get_vertex_buffer_size(ALLEGRO_VERTEX_BUFFER*\·buffer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·size·of·the·vertex·buffer | 18 | Returns·the·size·of·the·vertex·buffer |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·392 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | double\·al_get_video_audio_rate(ALLEGRO_VIDEO\·*video) | 13 | double\·al_get_video_audio_rate(ALLEGRO_VIDEO\·*video) |
14 | double\·al_get_video_audio_rate(ALLEGRO_VIDEO\·*video) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·audio·rate·of·the·video,·in·Hz. | 18 | Returns·the·audio·rate·of·the·video,·in·Hz. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·479 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | ALLEGRO_EVENT_SOURCE\·*al_get_video_event_source(ALLEGRO_VIDEO\·*video) | 13 | ALLEGRO_EVENT_SOURCE\·*al_get_video_event_source(ALLEGRO_VIDEO\·*video) |
14 | ALLEGRO_EVENT_SOURCE\·*al_get_video_event_source(ALLEGRO_VIDEO\·*video) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Get·an·event·source·for·the·video. | 18 | Get·an·event·source·for·the·video. |
20 | The·possible·events·are·described·under | 19 | The·possible·events·are·described·under |
21 | ALLEGRO_VIDEO_EVENT_TYPE(3alleg5). | 20 | ALLEGRO_VIDEO_EVENT_TYPE(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·421 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | double\·al_get_video_fps(ALLEGRO_VIDEO\·*video) | 13 | double\·al_get_video_fps(ALLEGRO_VIDEO\·*video) |
14 | double\·al_get_video_fps(ALLEGRO_VIDEO\·*video) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·speed·of·the·video·in·frames·per·second. | 18 | Returns·the·speed·of·the·video·in·frames·per·second. |
20 | Often·this·will·not·be·an·integer·value. | 19 | Often·this·will·not·be·an·integer·value. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1152 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | ALLEGRO_BITMAP\·*al_get_video_frame(ALLEGRO_VIDEO\·*video) | 13 | ALLEGRO_BITMAP\·*al_get_video_frame(ALLEGRO_VIDEO\·*video) |
14 | ALLEGRO_BITMAP\·*al_get_video_frame(ALLEGRO_VIDEO\·*video) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·current·video·frame. | 18 | Returns·the·current·video·frame. |
20 | The·bitmap·is·owned·by·the·video·so·do·not·attempt·to·free·it. | 19 | The·bitmap·is·owned·by·the·video·so·do·not·attempt·to·free·it. |
21 | The·bitmap·will·stay·valid·until·the·next·call·to·al_get_video_frame. | 20 | The·bitmap·will·stay·valid·until·the·next·call·to·al_get_video_frame. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·536 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | double\·al_get_video_position(ALLEGRO_VIDEO\·*video,\·ALLEGRO_VIDEO_POSITION_TYPE\·which) | 13 | double\·al_get_video_position(ALLEGRO_VIDEO\·*video,\·ALLEGRO_VIDEO_POSITION_TYPE\·which) |
14 | double\·al_get_video_position(ALLEGRO_VIDEO\·*video,\·ALLEGRO_VIDEO_POSITION_TYPE\·which) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·current·position·of·the·video·stream·in·seconds·since·the | 18 | Returns·the·current·position·of·the·video·stream·in·seconds·since·the |
20 | beginning. | 19 | beginning. |
21 | The·parameter·is·one·of·the·ALLEGRO_VIDEO_POSITION_TYPE(3alleg5) | 20 | The·parameter·is·one·of·the·ALLEGRO_VIDEO_POSITION_TYPE(3alleg5) |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·580 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | float\·al_get_video_scaled_height(ALLEGRO_VIDEO\·*video) | 13 | float\·al_get_video_scaled_height(ALLEGRO_VIDEO\·*video) |
14 | float\·al_get_video_scaled_height(ALLEGRO_VIDEO\·*video) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·height·with·which·the·video·frame·should·be·drawn. | 18 | Returns·the·height·with·which·the·video·frame·should·be·drawn. |
20 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value | 19 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value |
21 | larger·than·the·height·of·the·frame·bitmap. | 20 | larger·than·the·height·of·the·frame·bitmap. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·575 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | float\·al_get_video_scaled_width(ALLEGRO_VIDEO\·*video) | 13 | float\·al_get_video_scaled_width(ALLEGRO_VIDEO\·*video) |
14 | float\·al_get_video_scaled_width(ALLEGRO_VIDEO\·*video) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·the·width·with·which·the·video·frame·should·be·drawn. | 18 | Returns·the·width·with·which·the·video·frame·should·be·drawn. |
20 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value | 19 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value |
21 | larger·than·the·width·of·the·frame·bitmap. | 20 | larger·than·the·width·of·the·frame·bitmap. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·438 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_CHANNEL_CONF\·al_get_voice_channels(const\·ALLEGRO_VOICE\·*voice) | 13 | ALLEGRO_CHANNEL_CONF\·al_get_voice_channels(const\·ALLEGRO_VOICE\·*voice) |
14 | ALLEGRO_CHANNEL_CONF\·al_get_voice_channels(const\·ALLEGRO_VOICE\·*voice) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·channel·configuration·of·the·voice. | 18 | Return·the·channel·configuration·of·the·voice. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·417 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_AUDIO_DEPTH\·al_get_voice_depth(const\·ALLEGRO_VOICE\·*voice) | 13 | ALLEGRO_AUDIO_DEPTH\·al_get_voice_depth(const\·ALLEGRO_VOICE\·*voice) |
14 | ALLEGRO_AUDIO_DEPTH\·al_get_voice_depth(const\·ALLEGRO_VOICE\·*voice) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·audio·depth·of·the·voice. | 18 | Return·the·audio·depth·of·the·voice. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·395 |
Offset 8, 13 lines modified | Offset 8, 12 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | unsigned\·int\·al_get_voice_frequency(const\·ALLEGRO_VOICE\·*voice) | 13 | unsigned\·int\·al_get_voice_frequency(const\·ALLEGRO_VOICE\·*voice) |
14 | unsigned\·int\·al_get_voice_frequency(const\·ALLEGRO_VOICE\·*voice) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·frequency·of·the·voice·(in·Hz),·e.g.\·44100. | 18 | Return·the·frequency·of·the·voice·(in·Hz),·e.g.\·44100. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·418 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_get_voice_playing(const\·ALLEGRO_VOICE\·*voice) | 13 | bool\·al_get_voice_playing(const\·ALLEGRO_VOICE\·*voice) |
14 | bool\·al_get_voice_playing(const\·ALLEGRO_VOICE\·*voice) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·true·if·the·voice·is·currently·playing. | 18 | Return·true·if·the·voice·is·currently·playing. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·530 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | unsigned\·int\·al_get_voice_position(const\·ALLEGRO_VOICE\·*voice) | 13 | unsigned\·int\·al_get_voice_position(const\·ALLEGRO_VOICE\·*voice) |
14 | unsigned\·int\·al_get_voice_position(const\·ALLEGRO_VOICE\·*voice) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | When·the·voice·has·a·non\-streaming·object·attached·to·it,·e.g.\·a | 18 | When·the·voice·has·a·non\-streaming·object·attached·to·it,·e.g.\·a |
20 | sample,·returns·the·voice's·current·sample·position. | 19 | sample,·returns·the·voice's·current·sample·position. |
21 | Otherwise,·returns·zero. | 20 | Otherwise,·returns·zero. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2611 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | ALLEGRO_FONT\·*al_grab_font_from_bitmap(ALLEGRO_BITMAP\·*bmp, | 13 | ALLEGRO_FONT\·*al_grab_font_from_bitmap(ALLEGRO_BITMAP\·*bmp, |
14 | \·\·\·int\·ranges_n,\·const\·int\·ranges[]) | 14 | \·\·\·int\·ranges_n,\·const\·int\·ranges[]) |
15 | ALLEGRO_FONT\·*al_grab_font_from_bitmap(ALLEGRO_BITMAP\·*bmp, | ||
16 | \·\·\·int\·ranges_n,\·const\·int\·ranges[]) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Creates·a·new·font·from·an·Allegro·bitmap. | 19 | Creates·a·new·font·from·an·Allegro·bitmap. |
22 | You·can·delete·the·bitmap·after·the·function·returns·as·the·font·will | 20 | You·can·delete·the·bitmap·after·the·function·returns·as·the·font·will |
23 | contain·a·copy·for·itself. | 21 | contain·a·copy·for·itself. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·840 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·al_init()\·\·\·\·(al_install_system(ALLEGRO_VERSION_INT,\·atexit)) | 13 | #define\·al_init()\·\·\·\·(al_install_system(ALLEGRO_VERSION_INT,\·atexit)) |
14 | #define\·al_init()\·\·\·\·(al_install_system(ALLEGRO_VERSION_INT,\·atexit)) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Like·al_install_system(3alleg5),·but·automatically·passes·in·the·version | 18 | Like·al_install_system(3alleg5),·but·automatically·passes·in·the·version |
20 | and·uses·the·atexit·function·visible·in·the·current·binary. | 19 | and·uses·the·atexit·function·visible·in·the·current·binary. |
21 | .RS | 20 | .RS |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1270 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_acodec.h> | 12 | #include\·<allegro5/allegro_acodec.h> |
13 | bool\·al_init_acodec_addon(void) | 13 | bool\·al_init_acodec_addon(void) |
14 | bool\·al_init_acodec_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·function·registers·all·the·known·audio·file·type·handlers·for | 18 | This·function·registers·all·the·known·audio·file·type·handlers·for |
20 | al_load_sample(3alleg5),·al_save_sample(3alleg5), | 19 | al_load_sample(3alleg5),·al_save_sample(3alleg5), |
21 | al_load_audio_stream(3alleg5),·etc. | 20 | al_load_audio_stream(3alleg5),·etc. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·9 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·944 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | bool\·al_init_font_addon(void) | 13 | bool\·al_init_font_addon(void) |
14 | bool\·al_init_font_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Initialise·the·font·addon. | 18 | Initialise·the·font·addon. |
20 | .PP | 19 | .PP |
21 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to | 20 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·11 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1117 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_image.h> | 12 | #include\·<allegro5/allegro_image.h> |
13 | bool\·al_init_image_addon(void) | 13 | bool\·al_init_image_addon(void) |
14 | bool\·al_init_image_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Initializes·the·image·addon. | 18 | Initializes·the·image·addon. |
20 | This·registers·bitmap·format·handlers·for·al_load_bitmap(3alleg5), | 19 | This·registers·bitmap·format·handlers·for·al_load_bitmap(3alleg5), |
21 | al_load_bitmap_f(3alleg5),·al_save_bitmap(3alleg5), | 20 | al_load_bitmap_f(3alleg5),·al_save_bitmap(3alleg5), |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·8 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·834 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | bool\·al_init_native_dialog_addon(void) | 13 | bool\·al_init_native_dialog_addon(void) |
14 | bool\·al_init_native_dialog_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Initialise·the·native·dialog·addon. | 18 | Initialise·the·native·dialog·addon. |
20 | .PP | 19 | .PP |
21 | Returns·true·on·success,·false·on·error. | 20 | Returns·true·on·success,·false·on·error. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·463 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | bool\·al_init_primitives_addon(void) | 13 | bool\·al_init_primitives_addon(void) |
14 | bool\·al_init_primitives_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Initializes·the·primitives·addon. | 18 | Initializes·the·primitives·addon. |
20 | .PP | 19 | .PP |
21 | \f[I]Returns:\f[]·True·on·success,·false·on·failure. | 20 | \f[I]Returns:\f[]·True·on·success,·false·on·failure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·493 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_ttf.h> | 12 | #include\·<allegro5/allegro_ttf.h> |
13 | bool\·al_init_ttf_addon(void) | 13 | bool\·al_init_ttf_addon(void) |
14 | bool\·al_init_ttf_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Call·this·after·al_init_font_addon(3alleg5)·to·make | 18 | Call·this·after·al_init_font_addon(3alleg5)·to·make |
20 | al_load_font(3alleg5)·recognize·\[lq].ttf\[rq]·and·other·formats | 19 | al_load_font(3alleg5)·recognize·\[lq].ttf\[rq]·and·other·formats |
21 | supported·by·al_load_ttf_font(3alleg5). | 20 | supported·by·al_load_ttf_font(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·3 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·347 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | bool\·al_init_video_addon(void) | 13 | bool\·al_init_video_addon(void) |
14 | bool\·al_init_video_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Initializes·the·video·addon. | 18 | Initializes·the·video·addon. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1580 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | int\·al_insert_menu_item(ALLEGRO_MENU\·*parent,\·int\·pos,\·char\·const\·*title, | 13 | int\·al_insert_menu_item(ALLEGRO_MENU\·*parent,\·int\·pos,\·char\·const\·*title, |
14 | \·\·\·uint16_t\·id,\·int\·flags,\·ALLEGRO_BITMAP\·*icon,\·ALLEGRO_MENU\·*submenu) | 14 | \·\·\·uint16_t\·id,\·int\·flags,\·ALLEGRO_BITMAP\·*icon,\·ALLEGRO_MENU\·*submenu) |
15 | int\·al_insert_menu_item(ALLEGRO_MENU\·*parent,\·int\·pos,\·char\·const\·*title, | ||
16 | \·\·\·uint16_t\·id,\·int\·flags,\·ALLEGRO_BITMAP\·*icon,\·ALLEGRO_MENU\·*submenu) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Inserts·a·menu·item·at·the·spot·specified. | 19 | Inserts·a·menu·item·at·the·spot·specified. |
22 | See·the·introductory·text·for·a·detailed·explanation·of·how·the | 20 | See·the·introductory·text·for·a·detailed·explanation·of·how·the |
23 | \f[C]pos\f[]·parameter·is·interpreted. | 21 | \f[C]pos\f[]·parameter·is·interpreted. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·614 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_install_audio(void) | 13 | bool\·al_install_audio(void) |
14 | bool\·al_install_audio(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Install·the·audio·subsystem. | 18 | Install·the·audio·subsystem. |
20 | .PP | 19 | .PP |
21 | Returns·true·on·success,·false·on·failure. | 20 | Returns·true·on·success,·false·on·failure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·394 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_is_audio_installed(void) | 13 | bool\·al_is_audio_installed(void) |
14 | bool\·al_is_audio_installed(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·true·if·al_install_audio(3alleg5)·was·called·previously·and | 18 | Returns·true·if·al_install_audio(3alleg5)·was·called·previously·and |
20 | returned·successfully. | 19 | returned·successfully. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·383 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | bool\·al_is_video_playing(ALLEGRO_VIDEO\·*video) | 13 | bool\·al_is_video_playing(ALLEGRO_VIDEO\·*video) |
14 | bool\·al_is_video_playing(ALLEGRO_VIDEO\·*video) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·true·if·the·video·is·currently·playing. | 18 | Returns·true·if·the·video·is·currently·playing. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1208 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_AUDIO_STREAM\·*al_load_audio_stream(const\·char\·*filename, | 13 | ALLEGRO_AUDIO_STREAM\·*al_load_audio_stream(const\·char\·*filename, |
14 | \·\·\·size_t\·buffer_count,\·unsigned\·int\·samples) | 14 | \·\·\·size_t\·buffer_count,\·unsigned\·int\·samples) |
15 | ALLEGRO_AUDIO_STREAM\·*al_load_audio_stream(const\·char\·*filename, | ||
16 | \·\·\·size_t\·buffer_count,\·unsigned\·int\·samples) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Loads·an·audio·file·from·disk·as·it·is·needed. | 19 | Loads·an·audio·file·from·disk·as·it·is·needed. |
22 | .PP | 20 | .PP |
23 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be | 21 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1537 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_AUDIO_STREAM\·*al_load_audio_stream_f(ALLEGRO_FILE*\·fp,\·const\·char\·*ident, | 13 | ALLEGRO_AUDIO_STREAM\·*al_load_audio_stream_f(ALLEGRO_FILE*\·fp,\·const\·char\·*ident, |
14 | \·\·\·size_t\·buffer_count,\·unsigned\·int\·samples) | 14 | \·\·\·size_t\·buffer_count,\·unsigned\·int\·samples) |
15 | ALLEGRO_AUDIO_STREAM\·*al_load_audio_stream_f(ALLEGRO_FILE*\·fp,\·const\·char\·*ident, | ||
16 | \·\·\·size_t\·buffer_count,\·unsigned\·int\·samples) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Loads·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream·as·it·is·needed. | 19 | Loads·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream·as·it·is·needed. |
22 | .PP | 20 | .PP |
23 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be | 21 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·777 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | ALLEGRO_FONT\·*al_load_bitmap_font(const\·char\·*fname) | 13 | ALLEGRO_FONT\·*al_load_bitmap_font(const\·char\·*fname) |
14 | ALLEGRO_FONT\·*al_load_bitmap_font(const\·char\·*fname) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Load·a·bitmap·font·from·a·file. | 18 | Load·a·bitmap·font·from·a·file. |
20 | This·is·done·by·first·calling·al_load_bitmap_flags(3alleg5)·and·then | 19 | This·is·done·by·first·calling·al_load_bitmap_flags(3alleg5)·and·then |
21 | al_grab_font_from_bitmap(3alleg5). | 20 | al_grab_font_from_bitmap(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·667 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | ALLEGRO_FONT\·*al_load_bitmap_font_flags(const\·char\·*fname,\·int\·flags) | 13 | ALLEGRO_FONT\·*al_load_bitmap_font_flags(const\·char\·*fname,\·int\·flags) |
14 | ALLEGRO_FONT\·*al_load_bitmap_font_flags(const\·char\·*fname,\·int\·flags) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Like·al_load_bitmap_font(3alleg5)·but·additionally·takes·a·flags | 18 | Like·al_load_bitmap_font(3alleg5)·but·additionally·takes·a·flags |
20 | parameter·which·is·a·bitfield·containing·a·combination·of·the·following: | 19 | parameter·which·is·a·bitfield·containing·a·combination·of·the·following: |
21 | .TP | 20 | .TP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·855 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | ALLEGRO_FONT\·*al_load_font(char\·const\·*filename,\·int\·size,\·int\·flags) | 13 | ALLEGRO_FONT\·*al_load_font(char\·const\·*filename,\·int\·size,\·int\·flags) |
14 | ALLEGRO_FONT\·*al_load_font(char\·const\·*filename,\·int\·size,\·int\·flags) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Loads·a·font·from·disk. | 18 | Loads·a·font·from·disk. |
20 | This·will·use·al_load_bitmap_font_flags(3alleg5)·if·you·pass·the·name·of | 19 | This·will·use·al_load_bitmap_font_flags(3alleg5)·if·you·pass·the·name·of |
21 | a·known·bitmap·format,·or·else·al_load_ttf_font(3alleg5). | 20 | a·known·bitmap·format,·or·else·al_load_ttf_font(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·853 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_SAMPLE\·*al_load_sample(const\·char\·*filename) | 13 | ALLEGRO_SAMPLE\·*al_load_sample(const\·char\·*filename) |
14 | ALLEGRO_SAMPLE\·*al_load_sample(const\·char\·*filename) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Loads·a·few·different·audio·file·formats·based·on·their·extension. | 18 | Loads·a·few·different·audio·file·formats·based·on·their·extension. |
20 | .PP | 19 | .PP |
21 | Note·that·this·stores·the·entire·file·in·memory·at·once,·which·may·be | 20 | Note·that·this·stores·the·entire·file·in·memory·at·once,·which·may·be |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·10 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1056 |
Offset 7, 15 lines modified | Offset 7, 14 lines modified | ||
7 | al_load_sample_f·\-·Allegro·5·API | 7 | al_load_sample_f·\-·Allegro·5·API |
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | Aal_get_allegro_acodec_version | ||
14 | ALLEGRO_SAMPLE\·*al_load_sample_f(ALLEGRO_FILE*\·fp,\·const\·char\·*ident) | 13 | ALLEGRO_SAMPLE\·*al_load_sample_f(ALLEGRO_FILE*\·fp,\·const\·char\·*ident) |
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Loads·an·audio·file·from·an·ALLEGRO_FILE(3alleg5)·stream·into·an | 18 | Loads·an·audio·file·from·an·ALLEGRO_FILE(3alleg5)·stream·into·an |
20 | ALLEGRO_SAMPLE(3alleg5). | 19 | ALLEGRO_SAMPLE(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1445 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_ttf.h> | 12 | #include\·<allegro5/allegro_ttf.h> |
13 | ALLEGRO_FONT\·*al_load_ttf_font(char\·const\·*filename,\·int\·size,\·int\·flags) | 13 | ALLEGRO_FONT\·*al_load_ttf_font(char\·const\·*filename,\·int\·size,\·int\·flags) |
14 | ALLEGRO_FONT\·*al_load_ttf_font(char\·const\·*filename,\·int\·size,\·int\·flags) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Loads·a·TrueType·font·from·a·file·using·the·FreeType·library. | 18 | Loads·a·TrueType·font·from·a·file·using·the·FreeType·library. |
20 | Quoting·from·the·FreeType·FAQ·this·means·support·for·many·different·font | 19 | Quoting·from·the·FreeType·FAQ·this·means·support·for·many·different·font |
21 | formats: | 20 | formats: |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·718 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_ttf.h> | 12 | #include\·<allegro5/allegro_ttf.h> |
13 | ALLEGRO_FONT\·*al_load_ttf_font_f(ALLEGRO_FILE\·*file, | 13 | ALLEGRO_FONT\·*al_load_ttf_font_f(ALLEGRO_FILE\·*file, |
14 | \·\·\·\·char\·const\·*filename,\·int\·size,\·int\·flags) | 14 | \·\·\·\·char\·const\·*filename,\·int\·size,\·int\·flags) |
15 | ALLEGRO_FONT\·*al_load_ttf_font_f(ALLEGRO_FILE\·*file, | ||
16 | \·\·\·\·char\·const\·*filename,\·int\·size,\·int\·flags) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Like·al_load_ttf_font(3alleg5),·but·the·font·is·read·from·the·file | 19 | Like·al_load_ttf_font(3alleg5),·but·the·font·is·read·from·the·file |
22 | handle. | 20 | handle. |
23 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a | 21 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1092 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_ttf.h> | 12 | #include\·<allegro5/allegro_ttf.h> |
13 | ALLEGRO_FONT\·*al_load_ttf_font_stretch(char\·const\·*filename,\·int\·w,\·int\·h, | 13 | ALLEGRO_FONT\·*al_load_ttf_font_stretch(char\·const\·*filename,\·int\·w,\·int\·h, |
14 | \·\·\·int\·flags) | 14 | \·\·\·int\·flags) |
15 | ALLEGRO_FONT\·*al_load_ttf_font_stretch(char\·const\·*filename,\·int\·w,\·int\·h, | ||
16 | \·\·\·int\·flags) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Like·al_load_ttf_font(3alleg5),·except·it·takes·separate·width·and | 19 | Like·al_load_ttf_font(3alleg5),·except·it·takes·separate·width·and |
22 | height·parameters·instead·of·a·single·size·parameter. | 20 | height·parameters·instead·of·a·single·size·parameter. |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·834 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_ttf.h> | 12 | #include\·<allegro5/allegro_ttf.h> |
13 | ALLEGRO_FONT\·*al_load_ttf_font_stretch_f(ALLEGRO_FILE\·*file, | 13 | ALLEGRO_FONT\·*al_load_ttf_font_stretch_f(ALLEGRO_FILE\·*file, |
14 | \·\·\·\·char\·const\·*filename,\·int\·w,\·int\·h,\·int\·flags) | 14 | \·\·\·\·char\·const\·*filename,\·int\·w,\·int\·h,\·int\·flags) |
15 | ALLEGRO_FONT\·*al_load_ttf_font_stretch_f(ALLEGRO_FILE\·*file, | ||
16 | \·\·\·\·char\·const\·*filename,\·int\·w,\·int\·h,\·int\·flags) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Like·al_load_ttf_font_stretch(3alleg5),·but·the·font·is·read·from·the | 19 | Like·al_load_ttf_font_stretch(3alleg5),·but·the·font·is·read·from·the |
22 | file·handle. | 20 | file·handle. |
23 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a | 21 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·939 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void*\·al_lock_index_buffer(ALLEGRO_INDEX_BUFFER*\·buffer,\·int\·offset, | 13 | void*\·al_lock_index_buffer(ALLEGRO_INDEX_BUFFER*\·buffer,\·int\·offset, |
14 | \·\·\·\·int\·length,\·int\·flags) | 14 | \·\·\·\·int\·length,\·int\·flags) |
15 | void*\·al_lock_index_buffer(ALLEGRO_INDEX_BUFFER*\·buffer,\·int\·offset, | ||
16 | \·\·\·\·int\·length,\·int\·flags) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Locks·a·index·buffer·so·you·can·access·its·data. | 19 | Locks·a·index·buffer·so·you·can·access·its·data. |
22 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested | 20 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested |
23 | from·a·write·only·buffer·and·if·the·buffer·is·already·locked. | 21 | from·a·write·only·buffer·and·if·the·buffer·is·already·locked. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1090 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | ALLEGRO_SAMPLE_INSTANCE*\·al_lock_sample_id(ALLEGRO_SAMPLE_ID\·*spl_id) | 13 | ALLEGRO_SAMPLE_INSTANCE*\·al_lock_sample_id(ALLEGRO_SAMPLE_ID\·*spl_id) |
14 | ALLEGRO_SAMPLE_INSTANCE*\·al_lock_sample_id(ALLEGRO_SAMPLE_ID\·*spl_id) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Locks·a·ALLEGRO_SAMPLE_ID(3alleg5),·returning·the·underlying | 18 | Locks·a·ALLEGRO_SAMPLE_ID(3alleg5),·returning·the·underlying |
20 | ALLEGRO_SAMPLE_INSTANCE(3alleg5). | 19 | ALLEGRO_SAMPLE_INSTANCE(3alleg5). |
21 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such | 20 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·945 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void*\·al_lock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·buffer,\·int\·offset, | 13 | void*\·al_lock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·buffer,\·int\·offset, |
14 | \·\·\·int\·length,\·int\·flags) | 14 | \·\·\·int\·length,\·int\·flags) |
15 | void*\·al_lock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·buffer,\·int\·offset, | ||
16 | \·\·\·int\·length,\·int\·flags) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Locks·a·vertex·buffer·so·you·can·access·its·data. | 19 | Locks·a·vertex·buffer·so·you·can·access·its·data. |
22 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested | 20 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested |
23 | from·a·write·only·buffer,·or·if·the·buffer·is·already·locked. | 21 | from·a·write·only·buffer,·or·if·the·buffer·is·already·locked. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·580 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·al_malloc(n)\·\\ | 13 | #define\·al_malloc(n)\·\\ |
14 | \·\·\·(al_malloc_with_context((n),\·__LINE__,\·__FILE__,\·__func__)) | 14 | \·\·\·(al_malloc_with_context((n),\·__LINE__,\·__FILE__,\·__func__)) |
15 | #define\·al_malloc(n)\·\\ | ||
16 | \·\·\·(al_malloc_with_context((n),\·__LINE__,\·__FILE__,\·__func__)) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be | 19 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be |
22 | overridden. | 20 | overridden. |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·937 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_memfile.h> | 12 | #include\·<allegro5/allegro_memfile.h> |
13 | ALLEGRO_FILE\·*al_open_memfile(void\·*mem,\·int64_t\·size,\·const\·char\·*mode) | 13 | ALLEGRO_FILE\·*al_open_memfile(void\·*mem,\·int64_t\·size,\·const\·char\·*mode) |
14 | ALLEGRO_FILE\·*al_open_memfile(void\·*mem,\·int64_t\·size,\·const\·char\·*mode) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·a·file·handle·to·the·block·of·memory. | 18 | Returns·a·file·handle·to·the·block·of·memory. |
20 | All·read·and·write·operations·act·upon·the·memory·directly,·so·it·must | 19 | All·read·and·write·operations·act·upon·the·memory·directly,·so·it·must |
21 | not·be·freed·while·the·file·remains·open. | 20 | not·be·freed·while·the·file·remains·open. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1131 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_TEXTLOG\·*al_open_native_text_log(char\·const\·*title,\·int\·flags) | 13 | ALLEGRO_TEXTLOG\·*al_open_native_text_log(char\·const\·*title,\·int\·flags) |
14 | ALLEGRO_TEXTLOG\·*al_open_native_text_log(char\·const\·*title,\·int\·flags) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Opens·a·window·to·which·you·can·append·log·messages·with | 18 | Opens·a·window·to·which·you·can·append·log·messages·with |
20 | al_append_native_text_log(3alleg5). | 19 | al_append_native_text_log(3alleg5). |
21 | This·can·be·useful·for·debugging·if·you·don't·want·to·depend·on·a | 20 | This·can·be·useful·for·debugging·if·you·don't·want·to·depend·on·a |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·452 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | ALLEGRO_VIDEO\·*al_open_video(char\·const\·*filename) | 13 | ALLEGRO_VIDEO\·*al_open_video(char\·const\·*filename) |
14 | ALLEGRO_VIDEO\·*al_open_video(char\·const\·*filename) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Reads·a·video·file. | 18 | Reads·a·video·file. |
20 | This·does·not·start·streaming·yet·but·reads·the·meta·info·so·you·can | 19 | This·does·not·start·streaming·yet·but·reads·the·meta·info·so·you·can |
21 | query·e.g.\·the·size·or·audio·rate. | 20 | query·e.g.\·the·size·or·audio·rate. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1429 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_play_sample(ALLEGRO_SAMPLE\·*spl,\·float\·gain,\·float\·pan,\·float\·speed, | 13 | bool\·al_play_sample(ALLEGRO_SAMPLE\·*spl,\·float\·gain,\·float\·pan,\·float\·speed, |
14 | \·\·\·ALLEGRO_PLAYMODE\·loop,\·ALLEGRO_SAMPLE_ID\·*ret_id) | 14 | \·\·\·ALLEGRO_PLAYMODE\·loop,\·ALLEGRO_SAMPLE_ID\·*ret_id) |
15 | bool\·al_play_sample(ALLEGRO_SAMPLE\·*spl,\·float\·gain,\·float\·pan,\·float\·speed, | ||
16 | \·\·\·ALLEGRO_PLAYMODE\·loop,\·ALLEGRO_SAMPLE_ID\·*ret_id) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Plays·a·sample·on·one·of·the·sample·instances·created·by | 19 | Plays·a·sample·on·one·of·the·sample·instances·created·by |
22 | al_reserve_samples(3alleg5). | 20 | al_reserve_samples(3alleg5). |
23 | Returns·true·on·success,·false·on·failure. | 21 | Returns·true·on·success,·false·on·failure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·453 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | bool\·al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | bool\·al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Play·the·sample·instance. | 18 | Play·the·sample·instance. |
20 | Returns·true·on·success,·false·on·failure. | 19 | Returns·true·on·success,·false·on·failure. |
21 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1194 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | bool\·al_popup_menu(ALLEGRO_MENU\·*popup,\·ALLEGRO_DISPLAY\·*display) | 13 | bool\·al_popup_menu(ALLEGRO_MENU\·*popup,\·ALLEGRO_DISPLAY\·*display) |
14 | bool\·al_popup_menu(ALLEGRO_MENU\·*popup,\·ALLEGRO_DISPLAY\·*display) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Displays·a·context·menu·next·to·the·mouse·cursor. | 18 | Displays·a·context·menu·next·to·the·mouse·cursor. |
20 | The·menu·must·have·been·created·with·al_create_popup_menu(3alleg5). | 19 | The·menu·must·have·been·created·with·al_create_popup_menu(3alleg5). |
21 | It·generates·events·just·like·a·regular·display·menu·does. | 20 | It·generates·events·just·like·a·regular·display·menu·does. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·523 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro.h> | 12 | #include\·<allegro5/allegro.h> |
13 | #define\·al_realloc(p,\·n)\·\\ | 13 | #define\·al_realloc(p,\·n)\·\\ |
14 | \·\·\·(al_realloc_with_context((p),\·(n),\·__LINE__,\·__FILE__,\·__func__)) | 14 | \·\·\·(al_realloc_with_context((p),\·(n),\·__LINE__,\·__FILE__,\·__func__)) |
15 | #define\·al_realloc(p,\·n)\·\\ | ||
16 | \·\·\·(al_realloc_with_context((p),\·(n),\·__LINE__,\·__FILE__,\·__func__)) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be | 19 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be |
22 | overridden. | 20 | overridden. |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·962 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_register_audio_stream_loader(const\·char\·*ext, | 13 | bool\·al_register_audio_stream_loader(const\·char\·*ext, |
14 | \·\·\·ALLEGRO_AUDIO_STREAM\·*(*stream_loader)(const\·char\·*filename, | 14 | \·\·\·ALLEGRO_AUDIO_STREAM\·*(*stream_loader)(const\·char\·*filename, |
15 | \·\·\·\·\·\·size_t\·buffer_count,\·unsigned\·int\·samples)) | 15 | \·\·\·\·\·\·size_t\·buffer_count,\·unsigned\·int\·samples)) |
16 | bool\·al_register_audio_stream_loader(const\·char\·*ext, | ||
17 | \·\·\·ALLEGRO_AUDIO_STREAM\·*(*stream_loader)(const\·char\·*filename, | ||
18 | \·\·\·\·\·\·size_t\·buffer_count,\·unsigned\·int\·samples)) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Register·a·handler·for·al_load_audio_stream(3alleg5). | 20 | Register·a·handler·for·al_load_audio_stream(3alleg5). |
24 | The·given·function·will·be·used·to·open·streams·from·files·with·the | 21 | The·given·function·will·be·used·to·open·streams·from·files·with·the |
25 | given·extension. | 22 | given·extension. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·963 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_register_audio_stream_loader_f(const\·char\·*ext, | 13 | bool\·al_register_audio_stream_loader_f(const\·char\·*ext, |
14 | \·\·\·ALLEGRO_AUDIO_STREAM\·*(*stream_loader)(ALLEGRO_FILE*\·fp, | 14 | \·\·\·ALLEGRO_AUDIO_STREAM\·*(*stream_loader)(ALLEGRO_FILE*\·fp, |
15 | \·\·\·\·\·\·size_t\·buffer_count,\·unsigned\·int\·samples)) | 15 | \·\·\·\·\·\·size_t\·buffer_count,\·unsigned\·int\·samples)) |
16 | bool\·al_register_audio_stream_loader_f(const\·char\·*ext, | ||
17 | \·\·\·ALLEGRO_AUDIO_STREAM\·*(*stream_loader)(ALLEGRO_FILE*\·fp, | ||
18 | \·\·\·\·\·\·size_t\·buffer_count,\·unsigned\·int\·samples)) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Register·a·handler·for·al_load_audio_stream_f(3alleg5). | 20 | Register·a·handler·for·al_load_audio_stream_f(3alleg5). |
24 | The·given·function·will·be·used·to·open·streams·from·files·with·the | 21 | The·given·function·will·be·used·to·open·streams·from·files·with·the |
25 | given·extension. | 22 | given·extension. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·834 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | bool\·al_register_font_loader(char\·const\·*extension, | 13 | bool\·al_register_font_loader(char\·const\·*extension, |
14 | \·\·\·ALLEGRO_FONT\·*(*load_font)(char\·const\·*filename,\·int\·size,\·int\·flags)) | 14 | \·\·\·ALLEGRO_FONT\·*(*load_font)(char\·const\·*filename,\·int\·size,\·int\·flags)) |
15 | bool\·al_register_font_loader(char\·const\·*extension, | ||
16 | \·\·\·ALLEGRO_FONT\·*(*load_font)(char\·const\·*filename,\·int\·size,\·int\·flags)) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of | 19 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of |
22 | this·format. | 20 | this·format. |
23 | .PP | 21 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·899 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_register_sample_loader(const\·char\·*ext, | 13 | bool\·al_register_sample_loader(const\·char\·*ext, |
14 | \·\·\·ALLEGRO_SAMPLE\·*(*loader)(const\·char\·*filename)) | 14 | \·\·\·ALLEGRO_SAMPLE\·*(*loader)(const\·char\·*filename)) |
15 | bool\·al_register_sample_loader(const\·char\·*ext, | ||
16 | \·\·\·ALLEGRO_SAMPLE\·*(*loader)(const\·char\·*filename)) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Register·a·handler·for·al_load_sample(3alleg5). | 19 | Register·a·handler·for·al_load_sample(3alleg5). |
22 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files | 20 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files |
23 | with·the·given·extension. | 21 | with·the·given·extension. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·865 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_register_sample_loader_f(const\·char\·*ext, | 13 | bool\·al_register_sample_loader_f(const\·char\·*ext, |
14 | \·\·\·ALLEGRO_SAMPLE\·*(*loader)(ALLEGRO_FILE*\·fp)) | 14 | \·\·\·ALLEGRO_SAMPLE\·*(*loader)(ALLEGRO_FILE*\·fp)) |
15 | bool\·al_register_sample_loader_f(const\·char\·*ext, | ||
16 | \·\·\·ALLEGRO_SAMPLE\·*(*loader)(ALLEGRO_FILE*\·fp)) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Register·a·handler·for·al_load_sample_f(3alleg5). | 19 | Register·a·handler·for·al_load_sample_f(3alleg5). |
22 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files | 20 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files |
23 | with·the·given·extension. | 21 | with·the·given·extension. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·905 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_register_sample_saver(const\·char\·*ext, | 13 | bool\·al_register_sample_saver(const\·char\·*ext, |
14 | \·\·\·bool\·(*saver)(const\·char\·*filename,\·ALLEGRO_SAMPLE\·*spl)) | 14 | \·\·\·bool\·(*saver)(const\·char\·*filename,\·ALLEGRO_SAMPLE\·*spl)) |
15 | bool\·al_register_sample_saver(const\·char\·*ext, | ||
16 | \·\·\·bool\·(*saver)(const\·char\·*filename,\·ALLEGRO_SAMPLE\·*spl)) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Register·a·handler·for·al_save_sample(3alleg5). | 19 | Register·a·handler·for·al_save_sample(3alleg5). |
22 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files | 20 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files |
23 | with·the·given·extension. | 21 | with·the·given·extension. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·870 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_register_sample_saver_f(const\·char\·*ext, | 13 | bool\·al_register_sample_saver_f(const\·char\·*ext, |
14 | \·\·\·bool\·(*saver)(ALLEGRO_FILE*\·fp,\·ALLEGRO_SAMPLE\·*spl)) | 14 | \·\·\·bool\·(*saver)(ALLEGRO_FILE*\·fp,\·ALLEGRO_SAMPLE\·*spl)) |
15 | bool\·al_register_sample_saver_f(const\·char\·*ext, | ||
16 | \·\·\·bool\·(*saver)(ALLEGRO_FILE*\·fp,\·ALLEGRO_SAMPLE\·*spl)) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Register·a·handler·for·al_save_sample_f(3alleg5). | 19 | Register·a·handler·for·al_save_sample_f(3alleg5). |
22 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files | 20 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files |
23 | with·the·given·extension. | 21 | with·the·given·extension. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·642 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | ALLEGRO_MENU\·*al_remove_display_menu(ALLEGRO_DISPLAY\·*display) | 13 | ALLEGRO_MENU\·*al_remove_display_menu(ALLEGRO_DISPLAY\·*display) |
14 | ALLEGRO_MENU\·*al_remove_display_menu(ALLEGRO_DISPLAY\·*display) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Detaches·the·menu·associated·with·the·display·and·returns·it. | 18 | Detaches·the·menu·associated·with·the·display·and·returns·it. |
20 | The·menu·can·then·be·used·on·a·different·display. | 19 | The·menu·can·then·be·used·on·a·different·display. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·8 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·822 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | bool\·al_remove_menu_item(ALLEGRO_MENU\·*menu,\·int\·pos) | 13 | bool\·al_remove_menu_item(ALLEGRO_MENU\·*menu,\·int\·pos) |
14 | bool\·al_remove_menu_item(ALLEGRO_MENU\·*menu,\·int\·pos) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Removes·the·specified·item·from·the·menu·and·destroys·it. | 18 | Removes·the·specified·item·from·the·menu·and·destroys·it. |
20 | If·the·item·contains·a·sub\-menu,·it·too·is·destroyed. | 19 | If·the·item·contains·a·sub\-menu,·it·too·is·destroyed. |
21 | Any·references·to·it·are·invalidated. | 20 | Any·references·to·it·are·invalidated. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·15 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1507 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_reserve_samples(int\·reserve_samples) | 13 | bool\·al_reserve_samples(int\·reserve_samples) |
14 | bool\·al_reserve_samples(int\·reserve_samples) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default | 18 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default |
20 | mixer. | 19 | mixer. |
21 | If·no·default·mixer·is·set·when·this·function·is·called,·then·it·will | 20 | If·no·default·mixer·is·set·when·this·function·is·called,·then·it·will |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·870 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_restore_default_mixer(void) | 13 | bool\·al_restore_default_mixer(void) |
14 | bool\·al_restore_default_mixer(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Restores·Allegro's·default·mixer·and·attaches·it·to·the·default·voice. | 18 | Restores·Allegro's·default·mixer·and·attaches·it·to·the·default·voice. |
20 | If·the·default·mixer·hasn't·been·created·before,·it·will·be·created. | 19 | If·the·default·mixer·hasn't·been·created·before,·it·will·be·created. |
21 | If·the·default·voice·hasn't·been·set·via·al_set_default_voice(3alleg5) | 20 | If·the·default·voice·hasn't·been·set·via·al_set_default_voice(3alleg5) |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·598 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) | 13 | bool\·al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) |
14 | bool\·al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM\·*stream) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·streaming·file·playing·position·to·the·beginning. | 18 | Set·the·streaming·file·playing·position·to·the·beginning. |
20 | Returns·true·on·success. | 19 | Returns·true·on·success. |
21 | Currently·this·can·only·be·called·on·streams·created·with | 20 | Currently·this·can·only·be·called·on·streams·created·with |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·774 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_save_sample(const\·char\·*filename,\·ALLEGRO_SAMPLE\·*spl) | 13 | bool\·al_save_sample(const\·char\·*filename,\·ALLEGRO_SAMPLE\·*spl) |
14 | bool\·al_save_sample(const\·char\·*filename,\·ALLEGRO_SAMPLE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Writes·a·sample·into·a·file. | 18 | Writes·a·sample·into·a·file. |
20 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be | 19 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be |
21 | \[lq].wav\[rq]. | 20 | \[lq].wav\[rq]. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·859 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_save_sample_f(ALLEGRO_FILE\·*fp,\·const\·char\·*ident,\·ALLEGRO_SAMPLE\·*spl) | 13 | bool\·al_save_sample_f(ALLEGRO_FILE\·*fp,\·const\·char\·*ident,\·ALLEGRO_SAMPLE\·*spl) |
14 | bool\·al_save_sample_f(ALLEGRO_FILE\·*fp,\·const\·char\·*ident,\·ALLEGRO_SAMPLE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Writes·a·sample·into·a·ALLEGRO_FILE(3alleg5)·filestream. | 18 | Writes·a·sample·into·a·ALLEGRO_FILE(3alleg5)·filestream. |
20 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be | 19 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be |
21 | \[lq].wav\[rq]. | 20 | \[lq].wav\[rq]. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·7 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·715 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM\·*stream,\·double\·time) | 13 | bool\·al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM\·*stream,\·double\·time) |
14 | bool\·al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM\·*stream,\·double\·time) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·streaming·file·playing·position·to·time. | 18 | Set·the·streaming·file·playing·position·to·time. |
20 | Returns·true·on·success. | 19 | Returns·true·on·success. |
21 | Currently·this·can·only·be·called·on·streams·created·with | 20 | Currently·this·can·only·be·called·on·streams·created·with |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·51 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·451 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | bool\·al_seek_video(ALLEGRO_VIDEO\·*video,\·double\·pos_in_seconds) | 13 | bool\·al_seek_video(ALLEGRO_VIDEO\·*video,\·double\·pos_in_seconds) |
14 | bool\·al_seek_video(ALLEGRO_VIDEO\·*video,\·double\·pos_in_seconds) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Seek·to·a·different·position·in·the·video. | 18 | Seek·to·a·different·position·in·the·video. |
20 | Currently·only·seeking·to·the·beginning·of·the·video·is·supported. | 19 | Currently·only·seeking·to·the·beginning·of·the·video·is·supported. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·599 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM\·*stream,\·void\·*val) | 13 | bool\·al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM\·*stream,\·void\·*val) |
14 | bool\·al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM\·*stream,\·void\·*val) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·function·needs·to·be·called·for·every·successful·call·of | 18 | This·function·needs·to·be·called·for·every·successful·call·of |
20 | al_get_audio_stream_fragment(3alleg5)·to·indicate·that·the·buffer | 19 | al_get_audio_stream_fragment(3alleg5)·to·indicate·that·the·buffer |
21 | (pointed·to·by·\f[C]val\f[])·is·filled·with·new·data. | 20 | (pointed·to·by·\f[C]val\f[])·is·filled·with·new·data. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·549 |
Offset 7, 15 lines modified | Offset 7, 14 lines modified | ||
7 | al_set_audio_stream_gain·\-·Allegro·5·API | 7 | al_set_audio_stream_gain·\-·Allegro·5·API |
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | boonce_playing | ||
14 | bool\·al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM\·*stream,\·float\·val) | 13 | bool\·al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM\·*stream,\·float\·val) |
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·playback·gain·of·the·stream. | 18 | Set·the·playback·gain·of·the·stream. |
20 | .PP | 19 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·619 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM\·*stream, | 13 | bool\·al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM\·*stream, |
14 | \·\·\·double\·start,\·double\·end) | 14 | \·\·\·double\·start,\·double\·end) |
15 | bool\·al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM\·*stream, | ||
16 | \·\·\·double\·start,\·double\·end) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Sets·the·loop·points·for·the·stream·in·seconds. | 19 | Sets·the·loop·points·for·the·stream·in·seconds. |
22 | Currently·this·can·only·be·called·on·streams·created·with | 20 | Currently·this·can·only·be·called·on·streams·created·with |
23 | al_load_audio_stream(3alleg5),·al_load_audio_stream_f(3alleg5)·and·the | 21 | al_load_audio_stream(3alleg5),·al_load_audio_stream_f(3alleg5)·and·the |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·889 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM\·*stream,\·float\·val) | 13 | bool\·al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM\·*stream,\·float\·val) |
14 | bool\·al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM\·*stream,\·float\·val) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·pan·value·on·an·audio·stream. | 18 | Set·the·pan·value·on·an·audio·stream. |
20 | A·value·of·\-1.0·means·to·play·the·stream·only·through·the·left·speaker; | 19 | A·value·of·\-1.0·means·to·play·the·stream·only·through·the·left·speaker; |
21 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is | 20 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·497 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM\·*stream,\·bool\·val) | 13 | bool\·al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM\·*stream,\·bool\·val) |
14 | bool\·al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM\·*stream,\·bool\·val) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Change·whether·the·stream·is·playing. | 18 | Change·whether·the·stream·is·playing. |
20 | .PP | 19 | .PP |
21 | Returns·true·on·success,·false·on·failure. | 20 | Returns·true·on·success,·false·on·failure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·545 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM\·*stream, | 13 | bool\·al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM\·*stream, |
14 | \·\·\·ALLEGRO_PLAYMODE\·val) | 14 | \·\·\·ALLEGRO_PLAYMODE\·val) |
15 | bool\·al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM\·*stream, | ||
16 | \·\·\·ALLEGRO_PLAYMODE\·val) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Set·the·playback·mode·of·the·stream. | 19 | Set·the·playback·mode·of·the·stream. |
22 | .PP | 20 | .PP |
23 | Returns·true·on·success,·false·on·failure. | 21 | Returns·true·on·success,·false·on·failure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·586 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM\·*stream,\·float\·val) | 13 | bool\·al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM\·*stream,\·float\·val) |
14 | bool\·al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM\·*stream,\·float\·val) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·relative·playback·speed·of·the·stream. | 18 | Set·the·relative·playback·speed·of·the·stream. |
20 | 1.0·means·normal·speed. | 19 | 1.0·means·normal·speed. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·763 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_default_mixer(ALLEGRO_MIXER\·*mixer) | 13 | bool\·al_set_default_mixer(ALLEGRO_MIXER\·*mixer) |
14 | bool\·al_set_default_mixer(ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Sets·the·default·mixer. | 18 | Sets·the·default·mixer. |
20 | All·samples·started·with·al_play_sample(3alleg5)·will·be·stopped·and·all | 19 | All·samples·started·with·al_play_sample(3alleg5)·will·be·stopped·and·all |
21 | sample·instances·returned·by·al_lock_sample_id(3alleg5)·will·be | 20 | sample·instances·returned·by·al_lock_sample_id(3alleg5)·will·be |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·585 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_set_default_voice(ALLEGRO_VOICE\·*voice) | 13 | void\·al_set_default_voice(ALLEGRO_VOICE\·*voice) |
14 | void\·al_set_default_voice(ALLEGRO_VOICE\·*voice) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | You·can·call·this·before·calling·al_restore_default_mixer·to·provide·the | 18 | You·can·call·this·before·calling·al_restore_default_mixer·to·provide·the |
20 | voice·which·should·be·used. | 19 | voice·which·should·be·used. |
21 | Any·previous·voice·will·be·destroyed. | 20 | Any·previous·voice·will·be·destroyed. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1165 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | bool\·al_set_display_menu(ALLEGRO_DISPLAY\·*display,\·ALLEGRO_MENU\·*menu) | 13 | bool\·al_set_display_menu(ALLEGRO_DISPLAY\·*display,\·ALLEGRO_MENU\·*menu) |
14 | bool\·al_set_display_menu(ALLEGRO_DISPLAY\·*display,\·ALLEGRO_MENU\·*menu) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Associates·the·\f[C]menu\f[]·with·the·\f[C]display\f[]·and·shows·it. | 18 | Associates·the·\f[C]menu\f[]·with·the·\f[C]display\f[]·and·shows·it. |
20 | If·there·was·a·previous·menu·associated·with·the·display,·it·will·be | 19 | If·there·was·a·previous·menu·associated·with·the·display,·it·will·be |
21 | destroyed. | 20 | destroyed. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·647 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_set_fallback_font(ALLEGRO_FONT\·*font,\·ALLEGRO_FONT\·*fallback) | 13 | void\·al_set_fallback_font(ALLEGRO_FONT\·*font,\·ALLEGRO_FONT\·*fallback) |
14 | void\·al_set_fallback_font(ALLEGRO_FONT\·*font,\·ALLEGRO_FONT\·*fallback) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present. | 18 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present. |
20 | Can·be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the | 19 | Can·be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the |
21 | application!·Pass·NULL·to·remove·a·fallback·font·again. | 20 | application!·Pass·NULL·to·remove·a·fallback·font·again. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·580 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | void\·al_set_menu_item_caption(ALLEGRO_MENU\·*menu,\·int\·pos,\·const\·char\·*caption) | 13 | void\·al_set_menu_item_caption(ALLEGRO_MENU\·*menu,\·int\·pos,\·const\·char\·*caption) |
14 | void\·al_set_menu_item_caption(ALLEGRO_MENU\·*menu,\·int\·pos,\·const\·char\·*caption) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Updates·the·menu·item·caption·with·the·new·\f[C]caption\f[]. | 18 | Updates·the·menu·item·caption·with·the·new·\f[C]caption\f[]. |
20 | This·will·invalidate·any·previous·calls·to | 19 | This·will·invalidate·any·previous·calls·to |
21 | al_get_menu_item_caption(3alleg5). | 20 | al_get_menu_item_caption(3alleg5). |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·564 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | void\·al_set_menu_item_flags(ALLEGRO_MENU\·*menu,\·int\·pos,\·int\·flags) | 13 | void\·al_set_menu_item_flags(ALLEGRO_MENU\·*menu,\·int\·pos,\·int\·flags) |
14 | void\·al_set_menu_item_flags(ALLEGRO_MENU\·*menu,\·int\·pos,\·int\·flags) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Updates·the·menu·item's·flags. | 18 | Updates·the·menu·item's·flags. |
20 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 19 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
21 | flags. | 20 | flags. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·776 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | void\·al_set_menu_item_icon(ALLEGRO_MENU\·*menu,\·int\·pos,\·ALLEGRO_BITMAP\·*icon) | 13 | void\·al_set_menu_item_icon(ALLEGRO_MENU\·*menu,\·int\·pos,\·ALLEGRO_BITMAP\·*icon) |
14 | void\·al_set_menu_item_icon(ALLEGRO_MENU\·*menu,\·int\·pos,\·ALLEGRO_BITMAP\·*icon) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Sets·the·icon·for·the·specified·menu·item. | 18 | Sets·the·icon·for·the·specified·menu·item. |
20 | The·menu·assumes·ownership·of·the·\f[C]ALLEGRO_BITMAP\f[]·and·may | 19 | The·menu·assumes·ownership·of·the·\f[C]ALLEGRO_BITMAP\f[]·and·may |
21 | invalidate·the·pointer,·so·you·must·clone·it·if·you·wish·to·continue | 20 | invalidate·the·pointer,·so·you·must·clone·it·if·you·wish·to·continue |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·535 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_mixer_frequency(ALLEGRO_MIXER\·*mixer,\·unsigned\·int\·val) | 13 | bool\·al_set_mixer_frequency(ALLEGRO_MIXER\·*mixer,\·unsigned\·int\·val) |
14 | bool\·al_set_mixer_frequency(ALLEGRO_MIXER\·*mixer,\·unsigned\·int\·val) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·mixer·frequency·(in·Hz). | 18 | Set·the·mixer·frequency·(in·Hz). |
20 | This·will·only·work·if·the·mixer·is·not·attached·to·anything. | 19 | This·will·only·work·if·the·mixer·is·not·attached·to·anything. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·487 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_mixer_gain(ALLEGRO_MIXER\·*mixer,\·float\·new_gain) | 13 | bool\·al_set_mixer_gain(ALLEGRO_MIXER\·*mixer,\·float\·new_gain) |
14 | bool\·al_set_mixer_gain(ALLEGRO_MIXER\·*mixer,\·float\·new_gain) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·mixer·gain·(amplification·factor). | 18 | Set·the·mixer·gain·(amplification·factor). |
20 | .PP | 19 | .PP |
21 | Returns·true·on·success,·false·on·failure. | 20 | Returns·true·on·success,·false·on·failure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·461 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_mixer_playing(ALLEGRO_MIXER\·*mixer,\·bool\·val) | 13 | bool\·al_set_mixer_playing(ALLEGRO_MIXER\·*mixer,\·bool\·val) |
14 | bool\·al_set_mixer_playing(ALLEGRO_MIXER\·*mixer,\·bool\·val) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Change·whether·the·mixer·is·playing. | 18 | Change·whether·the·mixer·is·playing. |
20 | .PP | 19 | .PP |
21 | Returns·true·on·success,·false·on·failure. | 20 | Returns·true·on·success,·false·on·failure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·770 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_mixer_postprocess_callback(ALLEGRO_MIXER\·*mixer, | 13 | bool\·al_set_mixer_postprocess_callback(ALLEGRO_MIXER\·*mixer, |
14 | \·\·\·void\·(*pp_callback)(void\·*buf,\·unsigned\·int\·samples,\·void\·*data), | 14 | \·\·\·void\·(*pp_callback)(void\·*buf,\·unsigned\·int\·samples,\·void\·*data), |
15 | \·\·\·void\·*pp_callback_userdata) | 15 | \·\·\·void\·*pp_callback_userdata) |
16 | bool\·al_set_mixer_postprocess_callback(ALLEGRO_MIXER\·*mixer, | ||
17 | \·\·\·void\·(*pp_callback)(void\·*buf,\·unsigned\·int\·samples,\·void\·*data), | ||
18 | \·\·\·void\·*pp_callback_userdata) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Sets·a·post\-processing·filter·function·that's·called·after·the·attached | 20 | Sets·a·post\-processing·filter·function·that's·called·after·the·attached |
24 | streams·have·been·mixed. | 21 | streams·have·been·mixed. |
25 | The·buffer's·format·will·be·whatever·the·mixer·was·created·with. | 22 | The·buffer's·format·will·be·whatever·the·mixer·was·created·with. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·577 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_mixer_quality(ALLEGRO_MIXER\·*mixer,\·ALLEGRO_MIXER_QUALITY\·new_quality) | 13 | bool\·al_set_mixer_quality(ALLEGRO_MIXER\·*mixer,\·ALLEGRO_MIXER_QUALITY\·new_quality) |
14 | bool\·al_set_mixer_quality(ALLEGRO_MIXER\·*mixer,\·ALLEGRO_MIXER_QUALITY\·new_quality) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·mixer·quality. | 18 | Set·the·mixer·quality. |
20 | This·can·only·succeed·if·the·mixer·does·not·have·anything·attached·to | 19 | This·can·only·succeed·if·the·mixer·does·not·have·anything·attached·to |
21 | it. | 20 | it. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·13 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1346 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_physfs.h> | 12 | #include\·<allegro5/allegro_physfs.h> |
13 | void\·al_set_physfs_file_interface(void) | 13 | void\·al_set_physfs_file_interface(void) |
14 | void\·al_set_physfs_file_interface(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·function·sets·\f[I]both\f[]·the·ALLEGRO_FILE_INTERFACE(3alleg5)·and | 18 | This·function·sets·\f[I]both\f[]·the·ALLEGRO_FILE_INTERFACE(3alleg5)·and |
20 | ALLEGRO_FS_INTERFACE(3alleg5)·for·the·calling·thread. | 19 | ALLEGRO_FS_INTERFACE(3alleg5)·for·the·calling·thread. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·11 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1111 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_sample(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·ALLEGRO_SAMPLE\·*data) | 13 | bool\·al_set_sample(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·ALLEGRO_SAMPLE\·*data) |
14 | bool\·al_set_sample(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·ALLEGRO_SAMPLE\·*data) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Change·the·sample·data·that·a·sample·instance·plays. | 18 | Change·the·sample·data·that·a·sample·instance·plays. |
20 | This·can·be·quite·an·involved·process. | 19 | This·can·be·quite·an·involved·process. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1654 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·const\·float\·*matrix) | 13 | bool\·al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·const\·float\·*matrix) |
14 | bool\·al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·const\·float\·*matrix) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·matrix·used·to·mix·the·channels·coming·from·this·instance·into | 18 | Set·the·matrix·used·to·mix·the·channels·coming·from·this·instance·into |
20 | the·mixer·it·is·attached·to. | 19 | the·mixer·it·is·attached·to. |
21 | Normally·Allegro·derives·the·values·of·this·matrix·from·the·gain·and·pan | 20 | Normally·Allegro·derives·the·values·of·this·matrix·from·the·gain·and·pan |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·572 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·float\·val) | 13 | bool\·al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·float\·val) |
14 | bool\·al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·float\·val) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·playback·gain·of·the·sample·instance. | 18 | Set·the·playback·gain·of·the·sample·instance. |
20 | .PP | 19 | .PP |
21 | Returns·true·on·success,·false·on·failure. | 20 | Returns·true·on·success,·false·on·failure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·724 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE\·*spl, | 13 | bool\·al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE\·*spl, |
14 | \·\·\·unsigned\·int\·val) | 14 | \·\·\·unsigned\·int\·val) |
15 | bool\·al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE\·*spl, | ||
16 | \·\·\·unsigned\·int\·val) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Set·the·length·of·the·sample·instance·in·sample·values. | 19 | Set·the·length·of·the·sample·instance·in·sample·values. |
22 | This·can·be·used·to·play·only·parts·of·the·underlying·sample. | 20 | This·can·be·used·to·play·only·parts·of·the·underlying·sample. |
23 | Be·careful·not·to·exceed·the·actual·length·of·the·sample·data,·though. | 21 | Be·careful·not·to·exceed·the·actual·length·of·the·sample·data,·though. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·986 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·float\·val) | 13 | bool\·al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·float\·val) |
14 | bool\·al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·float\·val) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·pan·value·on·a·sample·instance. | 18 | Set·the·pan·value·on·a·sample·instance. |
20 | A·value·of·\-1.0·means·to·play·the·sample·only·through·the·left·speaker; | 19 | A·value·of·\-1.0·means·to·play·the·sample·only·through·the·left·speaker; |
21 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is | 20 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·565 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE\·*spl, | 13 | bool\·al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE\·*spl, |
14 | \·\·\·ALLEGRO_PLAYMODE\·val) | 14 | \·\·\·ALLEGRO_PLAYMODE\·val) |
15 | bool\·al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE\·*spl, | ||
16 | \·\·\·ALLEGRO_PLAYMODE\·val) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Set·the·playback·mode·of·the·sample·instance. | 19 | Set·the·playback·mode·of·the·sample·instance. |
22 | .PP | 20 | .PP |
23 | Returns·true·on·success,·false·on·failure. | 21 | Returns·true·on·success,·false·on·failure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·537 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE\·*spl, | 13 | bool\·al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE\·*spl, |
14 | \·\·\·unsigned\·int\·val) | 14 | \·\·\·unsigned\·int\·val) |
15 | bool\·al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE\·*spl, | ||
16 | \·\·\·unsigned\·int\·val) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Set·the·playback·position·of·a·sample·instance. | 19 | Set·the·playback·position·of·a·sample·instance. |
22 | .PP | 20 | .PP |
23 | Returns·true·on·success,·false·on·failure. | 21 | Returns·true·on·success,·false·on·failure. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·609 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·float\·val) | 13 | bool\·al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·float\·val) |
14 | bool\·al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE\·*spl,\·float\·val) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·relative·playback·speed·of·the·sample·instance. | 18 | Set·the·relative·playback·speed·of·the·sample·instance. |
20 | 1.0·means·normal·speed. | 19 | 1.0·means·normal·speed. |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·379 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | void\·al_set_video_playing(ALLEGRO_VIDEO\·*video,\·bool\·play) | 13 | void\·al_set_video_playing(ALLEGRO_VIDEO\·*video,\·bool\·play) |
14 | void\·al_set_video_playing(ALLEGRO_VIDEO\·*video,\·bool\·play) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Paused·or·resumes·playback. | 18 | Paused·or·resumes·playback. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·6 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·623 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_voice_playing(ALLEGRO_VOICE\·*voice,\·bool\·val) | 13 | bool\·al_set_voice_playing(ALLEGRO_VOICE\·*voice,\·bool\·val) |
14 | bool\·al_set_voice_playing(ALLEGRO_VOICE\·*voice,\·bool\·val) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Change·whether·a·voice·is·playing·or·not. | 18 | Change·whether·a·voice·is·playing·or·not. |
20 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to | 19 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to |
21 | it,·e.g.\·a·sample·instance. | 20 | it,·e.g.\·a·sample·instance. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·562 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_set_voice_position(ALLEGRO_VOICE\·*voice,\·unsigned\·int\·val) | 13 | bool\·al_set_voice_position(ALLEGRO_VOICE\·*voice,\·unsigned\·int\·val) |
14 | bool\·al_set_voice_position(ALLEGRO_VOICE\·*voice,\·unsigned\·int\·val) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Set·the·voice·position. | 18 | Set·the·voice·position. |
20 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to | 19 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to |
21 | it,·e.g.\·a·sample·instance. | 20 | it,·e.g.\·a·sample·instance. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·709 |
Offset 9, 16 lines modified | Offset 9, 14 lines modified | ||
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | bool\·al_show_native_file_dialog(ALLEGRO_DISPLAY\·*display, | 13 | bool\·al_show_native_file_dialog(ALLEGRO_DISPLAY\·*display, |
14 | \·\·\·ALLEGRO_FILECHOOSER\·*dialog) | 14 | \·\·\·ALLEGRO_FILECHOOSER\·*dialog) |
15 | bool\·al_show_native_file_dialog(ALLEGRO_DISPLAY\·*display, | ||
16 | \·\·\·ALLEGRO_FILECHOOSER\·*dialog) | ||
17 | \f[] | 15 | \f[] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Show·the·dialog·window. | 19 | Show·the·dialog·window. |
22 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the | 20 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the |
23 | parent·if·possible. | 21 | parent·if·possible. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·2645 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | int\·al_show_native_message_box(ALLEGRO_DISPLAY\·*display, | 13 | int\·al_show_native_message_box(ALLEGRO_DISPLAY\·*display, |
14 | \·\·\·char\·const\·*title,\·char\·const\·*heading,\·char\·const\·*text, | 14 | \·\·\·char\·const\·*title,\·char\·const\·*heading,\·char\·const\·*text, |
15 | \·\·\·char\·const\·*buttons,\·int\·flags) | 15 | \·\·\·char\·const\·*buttons,\·int\·flags) |
16 | int\·al_show_native_message_box(ALLEGRO_DISPLAY\·*display, | ||
17 | \·\·\·char\·const\·*title,\·char\·const\·*heading,\·char\·const\·*text, | ||
18 | \·\·\·char\·const\·*buttons,\·int\·flags) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Show·a·native·GUI·message·box. | 20 | Show·a·native·GUI·message·box. |
24 | This·can·be·used·for·example·to·display·an·error·message·if·creation·of | 21 | This·can·be·used·for·example·to·display·an·error·message·if·creation·of |
25 | an·initial·display·fails. | 22 | an·initial·display·fails. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·472 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_font.h> | 12 | #include\·<allegro5/allegro_font.h> |
13 | void\·al_shutdown_font_addon(void) | 13 | void\·al_shutdown_font_addon(void) |
14 | void\·al_shutdown_font_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Shut·down·the·font·addon. | 18 | Shut·down·the·font·addon. |
20 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 19 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
21 | the·user·wishes·as·well. | 20 | the·user·wishes·as·well. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·432 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_image.h> | 12 | #include\·<allegro5/allegro_image.h> |
13 | void\·al_shutdown_image_addon(void) | 13 | void\·al_shutdown_image_addon(void) |
14 | void\·al_shutdown_image_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Shut·down·the·image·addon. | 18 | Shut·down·the·image·addon. |
20 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 19 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
21 | the·user·wishes·as·well. | 20 | the·user·wishes·as·well. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·457 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | void\·al_shutdown_native_dialog_addon(void) | 13 | void\·al_shutdown_native_dialog_addon(void) |
14 | void\·al_shutdown_native_dialog_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Shut·down·the·native·dialog·addon. | 18 | Shut·down·the·native·dialog·addon. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·5 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·508 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_shutdown_primitives_addon(void) | 13 | void\·al_shutdown_primitives_addon(void) |
14 | void\·al_shutdown_primitives_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Shut·down·the·primitives·addon. | 18 | Shut·down·the·primitives·addon. |
20 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 19 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
21 | the·user·wishes·as·well. | 20 | the·user·wishes·as·well. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·368 |
Offset 8, 14 lines modified | Offset 8, 13 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_ttf.h> | 12 | #include\·<allegro5/allegro_ttf.h> |
13 | void\·al_shutdown_ttf_addon(void) | 13 | void\·al_shutdown_ttf_addon(void) |
14 | void\·al_shutdown_ttf_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Unloads·the·ttf·addon·again. | 18 | Unloads·the·ttf·addon·again. |
20 | You·normally·don't·need·to·call·this. | 19 | You·normally·don't·need·to·call·this. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·453 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | void\·al_shutdown_video_addon(void) | 13 | void\·al_shutdown_video_addon(void) |
14 | void\·al_shutdown_video_addon(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Shut·down·the·video·addon. | 18 | Shut·down·the·video·addon. |
20 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 19 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
21 | the·user·wishes·as·well. | 20 | the·user·wishes·as·well. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·689 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_start_audio_recorder(ALLEGRO_AUDIO_RECORDER\·*r) | 13 | bool\·al_start_audio_recorder(ALLEGRO_AUDIO_RECORDER\·*r) |
14 | bool\·al_start_audio_recorder(ALLEGRO_AUDIO_RECORDER\·*r) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Begin·recording·into·the·fragment·buffer. | 18 | Begin·recording·into·the·fragment·buffer. |
20 | Once·a·complete·fragment·has·been·captured·(as·specified·in | 19 | Once·a·complete·fragment·has·been·captured·(as·specified·in |
21 | al_create_audio_recorder(3alleg5)),·an | 20 | al_create_audio_recorder(3alleg5)),·an |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·390 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | void\·al_start_video(ALLEGRO_VIDEO\·*video,\·ALLEGRO_MIXER\·*mixer) | 13 | void\·al_start_video(ALLEGRO_VIDEO\·*video,\·ALLEGRO_MIXER\·*mixer) |
14 | void\·al_start_video(ALLEGRO_VIDEO\·*video,\·ALLEGRO_MIXER\·*mixer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Starts·streaming·the·video·from·the·beginning. | 18 | Starts·streaming·the·video·from·the·beginning. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·448 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_video.h> | 12 | #include\·<allegro5/allegro_video.h> |
13 | void\·al_start_video_with_voice(ALLEGRO_VIDEO\·*video,\·ALLEGRO_VOICE\·*voice) | 13 | void\·al_start_video_with_voice(ALLEGRO_VIDEO\·*video,\·ALLEGRO_VOICE\·*voice) |
14 | void\·al_start_video_with_voice(ALLEGRO_VIDEO\·*video,\·ALLEGRO_VOICE\·*voice) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Like·al_start_video(3alleg5)·but·audio·is·routed·to·the·provided·voice. | 18 | Like·al_start_video(3alleg5)·but·audio·is·routed·to·the·provided·voice. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·8 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·819 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER\·*r) | 13 | void\·al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER\·*r) |
14 | void\·al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER\·*r) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Stop·capturing·audio·data. | 18 | Stop·capturing·audio·data. |
20 | Note·that·the·audio·recorder·is·still·active·and·consuming·resources,·so | 19 | Note·that·the·audio·recorder·is·still·active·and·consuming·resources,·so |
21 | if·you·are·finished·recording·you·should·destroy·it·with | 20 | if·you·are·finished·recording·you·should·destroy·it·with |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·398 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_stop_sample(ALLEGRO_SAMPLE_ID\·*spl_id) | 13 | void\·al_stop_sample(ALLEGRO_SAMPLE_ID\·*spl_id) |
14 | void\·al_stop_sample(ALLEGRO_SAMPLE_ID\·*spl_id) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Stop·the·sample·started·by·al_play_sample(3alleg5). | 18 | Stop·the·sample·started·by·al_play_sample(3alleg5). |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·4 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·417 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | bool\·al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) | 13 | bool\·al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) |
14 | bool\·al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE\·*spl) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Stop·an·sample·instance·playing. | 18 | Stop·an·sample·instance·playing. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·379 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_stop_samples(void) | 13 | void\·al_stop_samples(void) |
14 | void\·al_stop_samples(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Stop·all·samples·started·by·al_play_sample(3alleg5). | 18 | Stop·all·samples·started·by·al_play_sample(3alleg5). |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·853 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_native_dialog.h> | 12 | #include\·<allegro5/allegro_native_dialog.h> |
13 | int\·al_toggle_menu_item_flags(ALLEGRO_MENU\·*menu,\·int\·pos,\·int\·flags) | 13 | int\·al_toggle_menu_item_flags(ALLEGRO_MENU\·*menu,\·int\·pos,\·int\·flags) |
14 | int\·al_toggle_menu_item_flags(ALLEGRO_MENU\·*menu,\·int\·pos,\·int\·flags) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Toggles·the·specified·menu·item's·flags. | 18 | Toggles·the·specified·menu·item's·flags. |
20 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 19 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
21 | flags. | 20 | flags. |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1 | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·1619 |
Offset 10, 17 lines modified | Offset 10, 14 lines modified | ||
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | bool\·al_triangulate_polygon( | 13 | bool\·al_triangulate_polygon( |
14 | \·\·\·const\·float*\·vertices,\·size_t\·vertex_stride,\·const\·int*\·vertex_counts, | 14 | \·\·\·const\·float*\·vertices,\·size_t\·vertex_stride,\·const\·int*\·vertex_counts, |
15 | \·\·\·void\·(*emit_triangle)(int,\·int,\·int,\·void*),\·void*\·userdata) | 15 | \·\·\·void\·(*emit_triangle)(int,\·int,\·int,\·void*),\·void*\·userdata) |
16 | bool\·al_triangulate_polygon( | ||
17 | \·\·\·const\·float*\·vertices,\·size_t\·vertex_stride,\·const\·int*\·vertex_counts, | ||
18 | \·\·\·void\·(*emit_triangle)(int,\·int,\·int,\·void*),\·void*\·userdata) | ||
19 | \f[] | 16 | \f[] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Divides·a·simple·polygon·into·triangles,·with·zero·or·more·other·simple | 20 | Divides·a·simple·polygon·into·triangles,·with·zero·or·more·other·simple |
24 | polygons·subtracted·from·it·\-·the·holes. | 21 | polygons·subtracted·from·it·\-·the·holes. |
25 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·main | 22 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·main |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·369 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_uninstall_audio(void) | 13 | void\·al_uninstall_audio(void) |
14 | void\·al_uninstall_audio(void) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Uninstalls·the·audio·subsystem. | 18 | Uninstalls·the·audio·subsystem. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·476 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_unlock_index_buffer(ALLEGRO_INDEX_BUFFER*\·buffer) | 13 | void\·al_unlock_index_buffer(ALLEGRO_INDEX_BUFFER*\·buffer) |
14 | void\·al_unlock_index_buffer(ALLEGRO_INDEX_BUFFER*\·buffer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Unlocks·a·previously·locked·index·buffer. | 18 | Unlocks·a·previously·locked·index·buffer. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·796 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_audio.h> | 12 | #include\·<allegro5/allegro_audio.h> |
13 | void\·al_unlock_sample_id(ALLEGRO_SAMPLE_ID\·*spl_id) | 13 | void\·al_unlock_sample_id(ALLEGRO_SAMPLE_ID\·*spl_id) |
14 | void\·al_unlock_sample_id(ALLEGRO_SAMPLE_ID\·*spl_id) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Unlocks·a·ALLEGRO_SAMPLE_ID(3alleg5),·allowing·future·calls·to | 18 | Unlocks·a·ALLEGRO_SAMPLE_ID(3alleg5),·allowing·future·calls·to |
20 | al_play_sample(3alleg5)·to·reuse·it·if·possible. | 19 | al_play_sample(3alleg5)·to·reuse·it·if·possible. |
21 | Note·that·after·the·id·is·unlocked,·the·ALLEGRO_SAMPLE_INSTANCE(3alleg5) | 20 | Note·that·after·the·id·is·unlocked,·the·ALLEGRO_SAMPLE_INSTANCE(3alleg5) |
Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size· | 1 | gzip·compressed·data,·max·compression,·from·Unix,·original·size·483 |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
8 | .SH·SYNOPSIS | 8 | .SH·SYNOPSIS |
9 | .IP | 9 | .IP |
10 | .nf | 10 | .nf |
11 | \f[C] | 11 | \f[C] |
12 | #include\·<allegro5/allegro_primitives.h> | 12 | #include\·<allegro5/allegro_primitives.h> |
13 | void\·al_unlock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·buffer) | 13 | void\·al_unlock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·buffer) |
14 | void\·al_unlock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\·buffer) | ||
15 | \f[] | 14 | \f[] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Unlocks·a·previously·locked·vertex·buffer. | 18 | Unlocks·a·previously·locked·vertex·buffer. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |