Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | · | 1 | ·1e854f510e79644c3cb65ca802ffc781·1358272·doc·optional·allegro5-doc_5.2.6.0-3_all.deb |
2 | ·55d816a0e9655c14c45b838bc116f67d·15720·libdevel·optional·liballegro-acodec5-dev_5.2.6.0-3_arm64.deb | 2 | ·55d816a0e9655c14c45b838bc116f67d·15720·libdevel·optional·liballegro-acodec5-dev_5.2.6.0-3_arm64.deb |
3 | ·a56c9f783ec1a1fcd3290ce2bab24b37·56620·debug·optional·liballegro-acodec5.2-dbgsym_5.2.6.0-3_arm64.deb | 3 | ·a56c9f783ec1a1fcd3290ce2bab24b37·56620·debug·optional·liballegro-acodec5.2-dbgsym_5.2.6.0-3_arm64.deb |
4 | ·77b053f71000937fb12bdec53a6781c2·32064·libs·optional·liballegro-acodec5.2_5.2.6.0-3_arm64.deb | 4 | ·77b053f71000937fb12bdec53a6781c2·32064·libs·optional·liballegro-acodec5.2_5.2.6.0-3_arm64.deb |
5 | ·bb2053988511fca6a24e93e76d3a04e8·18376·libdevel·optional·liballegro-audio5-dev_5.2.6.0-3_arm64.deb | 5 | ·bb2053988511fca6a24e93e76d3a04e8·18376·libdevel·optional·liballegro-audio5-dev_5.2.6.0-3_arm64.deb |
6 | ·84b8d25f7e21ae25ea5b6b931be08f77·97452·debug·optional·liballegro-audio5.2-dbgsym_5.2.6.0-3_arm64.deb | 6 | ·84b8d25f7e21ae25ea5b6b931be08f77·97452·debug·optional·liballegro-audio5.2-dbgsym_5.2.6.0-3_arm64.deb |
7 | ·2957ead9e1307ef802164d0cb8a116b7·51120·libs·optional·liballegro-audio5.2_5.2.6.0-3_arm64.deb | 7 | ·2957ead9e1307ef802164d0cb8a116b7·51120·libs·optional·liballegro-audio5.2_5.2.6.0-3_arm64.deb |
8 | ·303201df7ad944a9c595d4b6848b9a35·16800·libdevel·optional·liballegro-dialog5-dev_5.2.6.0-3_arm64.deb | 8 | ·303201df7ad944a9c595d4b6848b9a35·16800·libdevel·optional·liballegro-dialog5-dev_5.2.6.0-3_arm64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2020-11-27·12:02:04.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2020-11-27·12:02:04.000000·debian-binary |
2 | -rw-r--r--···0········0········0····3069 | 2 | -rw-r--r--···0········0········0····30692·2020-11-27·12:02:04.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··13 | 3 | -rw-r--r--···0········0········0··1327388·2020-11-27·12:02:04.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.6.0-3 | 3 | Version:·2:5.2.6.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:·5 | 6 | Installed-Size:·5066 |
7 | Depends:·fonts-dejavu-core | 7 | Depends:·fonts-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 189, 391 lines modified | Offset 189, 391 lines modified | ||
189 | -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2017-05-30·18:25:58.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c | 189 | -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2017-05-30·18:25:58.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c |
190 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2015-08-31·04:43:15.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c | 190 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2015-08-31·04:43:15.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c |
191 | -rw-r--r--···0·root·········(0)·root·········(0)·····2975·2017-02-26·02:02:03.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c | 191 | -rw-r--r--···0·root·········(0)·root·········(0)·····2975·2017-02-26·02:02:03.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c |
192 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2013-11-06·11:26:41.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c | 192 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2013-11-06·11:26:41.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c |
193 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2016-02-21·20:36:27.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp | 193 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2016-02-21·20:36:27.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp |
194 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2013-07-07·19:37:58.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp | 194 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2013-07-07·19:37:58.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp |
195 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/ | 195 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/ |
196 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 196 | -rw-r--r--···0·root·········(0)·root·········(0)····10577·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/acodec.html |
197 | -rw-r--r--···0·root·········(0)·root·········(0)···1 | 197 | -rw-r--r--···0·root·········(0)·root·········(0)···165411·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/audio.html |
198 | -rw-r--r--···0·root·········(0)·root·········(0)····35631·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js | 198 | -rw-r--r--···0·root·········(0)·root·········(0)····35631·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js |
199 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 199 | -rw-r--r--···0·root·········(0)·root·········(0)····44035·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/color.html |
200 | -rw-r--r--···0·root·········(0)·root·········(0)····29 | 200 | -rw-r--r--···0·root·········(0)·root·········(0)····29427·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/config.html |
201 | -rw-r--r--···0·root·········(0)·root·········(0)····15545·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html | 201 | -rw-r--r--···0·root·········(0)·root·········(0)····15545·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html |
202 | -rw-r--r--···0·root·········(0)·root·········(0)····65 | 202 | -rw-r--r--···0·root·········(0)·root·········(0)····65311·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/display.html |
203 | -rw-r--r--···0·root·········(0)·root·········(0)····6 | 203 | -rw-r--r--···0·root·········(0)·root·········(0)····64824·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/events.html |
204 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 204 | -rw-r--r--···0·root·········(0)·root·········(0)····47855·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/file.html |
205 | -rw-r--r--···0·root·········(0)·root·········(0)····45 | 205 | -rw-r--r--···0·root·········(0)·root·········(0)····45729·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/fixed.html |
206 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 206 | -rw-r--r--···0·root·········(0)·root·········(0)····75679·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/font.html |
207 | -rw-r--r--···0·root·········(0)·root·········(0)····35 | 207 | -rw-r--r--···0·root·········(0)·root·········(0)····35146·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/fshook.html |
208 | -rw-r--r--···0·root·········(0)·root·········(0)····11 | 208 | -rw-r--r--···0·root·········(0)·root·········(0)····11584·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html |
209 | -rw-r--r--···0·root·········(0)·root·········(0)····16295·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html | 209 | -rw-r--r--···0·root·········(0)·root·········(0)····16295·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html |
210 | -rw-r--r--···0·root·········(0)·root·········(0)···16 | 210 | -rw-r--r--···0·root·········(0)·root·········(0)···168879·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/graphics.html |
211 | -rw-r--r--···0·root·········(0)·root·········(0)····60 | 211 | -rw-r--r--···0·root·········(0)·root·········(0)····60334·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/haptic.html |
212 | -rw-r--r--···0·root·········(0)·root·········(0)····11 | 212 | -rw-r--r--···0·root·········(0)·root·········(0)····11122·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/image.html |
213 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/ | 213 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/ |
214 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png | 214 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png |
215 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png | 215 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png |
216 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png | 216 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png |
217 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png | 217 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png |
218 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png | 218 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png |
219 | -rw-r--r--···0·root·········(0)·root·········(0)·····6356·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/index.html | 219 | -rw-r--r--···0·root·········(0)·root·········(0)·····6356·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/index.html |
220 | -rw-r--r--···0·root·········(0)·root·········(0)···107495·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/index_all.html | 220 | -rw-r--r--···0·root·········(0)·root·········(0)···107495·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/index_all.html |
221 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 221 | -rw-r--r--···0·root·········(0)·root·········(0)····26573·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/joystick.html |
222 | -rw-r--r--···0·root·········(0)·root·········(0)····19 | 222 | -rw-r--r--···0·root·········(0)·root·········(0)····19216·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html |
223 | -rw-r--r--···0·root·········(0)·root·········(0)·····8392·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/main.html | 223 | -rw-r--r--···0·root·········(0)·root·········(0)·····8392·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/main.html |
224 | -rw-r--r--···0·root·········(0)·root·········(0)·····9 | 224 | -rw-r--r--···0·root·········(0)·root·········(0)·····9548·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/memfile.html |
225 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 225 | -rw-r--r--···0·root·········(0)·root·········(0)····18582·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/memory.html |
226 | -rw-r--r--···0·root·········(0)·root·········(0)·····9 | 226 | -rw-r--r--···0·root·········(0)·root·········(0)·····9217·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/misc.html |
227 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 227 | -rw-r--r--···0·root·········(0)·root·········(0)····13893·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/monitor.html |
228 | -rw-r--r--···0·root·········(0)·root·········(0)····32 | 228 | -rw-r--r--···0·root·········(0)·root·········(0)····32053·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/mouse.html |
229 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 229 | -rw-r--r--···0·root·········(0)·root·········(0)····61863·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html |
230 | -rw-r--r--···0·root·········(0)·root·········(0)····23300·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/opengl.html | 230 | -rw-r--r--···0·root·········(0)·root·········(0)····23300·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/opengl.html |
231 | -rw-r--r--···0·root·········(0)·root·········(0)·····4020·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css | 231 | -rw-r--r--···0·root·········(0)·root·········(0)·····4020·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css |
232 | -rw-r--r--···0·root·········(0)·root·········(0)····28991·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/path.html | 232 | -rw-r--r--···0·root·········(0)·root·········(0)····28991·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/path.html |
233 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 233 | -rw-r--r--···0·root·········(0)·root·········(0)····10990·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/physfs.html |
234 | -rw-r--r--···0·root·········(0)·root·········(0)····22026·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/platform.html | 234 | -rw-r--r--···0·root·········(0)·root·········(0)····22026·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/platform.html |
235 | -rw-r--r--···0·root·········(0)·root·········(0)···13 | 235 | -rw-r--r--···0·root·········(0)·root·········(0)···113690·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/primitives.html |
236 | -rw-r--r--···0·root·········(0)·root·········(0)····70337·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/search_index.js | 236 | -rw-r--r--···0·root·········(0)·root·········(0)····70337·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/search_index.js |
237 | -rw-r--r--···0·root·········(0)·root·········(0)····35 | 237 | -rw-r--r--···0·root·········(0)·root·········(0)····35382·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/shader.html |
238 | -rw-r--r--···0·root·········(0)·root·········(0)····13 | 238 | -rw-r--r--···0·root·········(0)·root·········(0)····13192·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/state.html |
239 | -rw-r--r--···0·root·········(0)·root·········(0)····58 | 239 | -rw-r--r--···0·root·········(0)·root·········(0)····58354·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/system.html |
240 | -rw-r--r--···0·root·········(0)·root·········(0)····27 | 240 | -rw-r--r--···0·root·········(0)·root·········(0)····27415·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/threads.html |
241 | -rw-r--r--···0·root·········(0)·root·········(0)····10642·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/time.html | 241 | -rw-r--r--···0·root·········(0)·root·········(0)····10642·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/time.html |
242 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 242 | -rw-r--r--···0·root·········(0)·root·········(0)····19864·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/timer.html |
243 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 243 | -rw-r--r--···0·root·········(0)·root·········(0)····18869·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/touch.html |
244 | -rw-r--r--···0·root·········(0)·root·········(0)····62 | 244 | -rw-r--r--···0·root·········(0)·root·········(0)····62416·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/transformations.html |
245 | -rw-r--r--···0·root·········(0)·root·········(0)····78 | 245 | -rw-r--r--···0·root·········(0)·root·········(0)····78064·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/utf8.html |
246 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 246 | -rw-r--r--···0·root·········(0)·root·········(0)····23801·2020-11-27·12:02:04.000000·./usr/share/doc/allegro5-doc/refman/video.html |
247 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-27·12:02:04.000000·./usr/share/doc-base/ | 247 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-27·12:02:04.000000·./usr/share/doc-base/ |
248 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2020-11-27·00:05:08.000000·./usr/share/doc-base/allegro5 | 248 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2020-11-27·00:05:08.000000·./usr/share/doc-base/allegro5 |
249 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-27·12:02:04.000000·./usr/share/man/ | 249 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-27·12:02:04.000000·./usr/share/man/ |
250 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-27·12:02:04.000000·./usr/share/man/man3/ | 250 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-27·12:02:04.000000·./usr/share/man/man3/ |
251 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 251 | -rw-r--r--···0·root·········(0)·root·········(0)······419·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz |
252 | -rw-r--r--···0·root·········(0)·root·········(0)······54 | 252 | -rw-r--r--···0·root·········(0)·root·········(0)······543·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz |
253 | -rw-r--r--···0·root·········(0)·root·········(0)······5 | 253 | -rw-r--r--···0·root·········(0)·root·········(0)······568·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_AUDIO_PAN_NONE.3alleg5.gz |
254 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 254 | -rw-r--r--···0·root·········(0)·root·········(0)······329·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_AUDIO_RECORDER.3alleg5.gz |
255 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 255 | -rw-r--r--···0·root·········(0)·root·········(0)······488·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_AUDIO_RECORDER_EVENT.3alleg5.gz |
256 | -rw-r--r--···0·root·········(0)·root·········(0)······95 | 256 | -rw-r--r--···0·root·········(0)·root·········(0)······951·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_AUDIO_STREAM.3alleg5.gz |
257 | -rw-r--r--···0·root·········(0)·root·········(0)······26 | 257 | -rw-r--r--···0·root·········(0)·root·········(0)······261·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_BITMAP.3alleg5.gz |
258 | -rw-r--r--···0·root·········(0)·root·········(0)······26 | 258 | -rw-r--r--···0·root·········(0)·root·········(0)······264·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_BPM_TO_SECS.3alleg5.gz |
259 | -rw-r--r--···0·root·········(0)·root·········(0)······26 | 259 | -rw-r--r--···0·root·········(0)·root·········(0)······260·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_BPS_TO_SECS.3alleg5.gz |
260 | -rw-r--r--···0·root·········(0)·root·········(0)······29 | 260 | -rw-r--r--···0·root·········(0)·root·········(0)······296·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_CHANNEL_CONF.3alleg5.gz |
261 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 261 | -rw-r--r--···0·root·········(0)·root·········(0)······329·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_COLOR.3alleg5.gz |
262 | -rw-r--r--···0·root·········(0)·root·········(0)······26 | 262 | -rw-r--r--···0·root·········(0)·root·········(0)······260·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_COND.3alleg5.gz |
263 | -rw-r--r--···0·root·········(0)·root·········(0)······25 | 263 | -rw-r--r--···0·root·········(0)·root·········(0)······250·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_CONFIG.3alleg5.gz |
264 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 264 | -rw-r--r--···0·root·········(0)·root·········(0)······318·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_CONFIG_ENTRY.3alleg5.gz |
265 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 265 | -rw-r--r--···0·root·········(0)·root·········(0)······317·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_CONFIG_SECTION.3alleg5.gz |
266 | -rw-r--r--···0·root·········(0)·root·········(0)······26 | 266 | -rw-r--r--···0·root·········(0)·root·········(0)······263·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_DISPLAY.3alleg5.gz |
267 | -rw-r--r--···0·root·········(0)·root·········(0)······47 | 267 | -rw-r--r--···0·root·········(0)·root·········(0)······471·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_DISPLAY_MODE.3alleg5.gz |
268 | -rw-r--r--···0·root·········(0)·root·········(0)·····4600·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_EVENT.3alleg5.gz | 268 | -rw-r--r--···0·root·········(0)·root·········(0)·····4600·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_EVENT.3alleg5.gz |
269 | -rw-r--r--···0·root·········(0)·root·········(0)······38 | 269 | -rw-r--r--···0·root·········(0)·root·········(0)······381·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_EVENT_QUEUE.3alleg5.gz |
270 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 270 | -rw-r--r--···0·root·········(0)·root·········(0)······415·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_EVENT_SOURCE.3alleg5.gz |
271 | -rw-r--r--···0·root·········(0)·root·········(0)······31 | 271 | -rw-r--r--···0·root·········(0)·root·········(0)······310·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE.3alleg5.gz |
272 | -rw-r--r--···0·root·········(0)·root·········(0)······32 | 272 | -rw-r--r--···0·root·········(0)·root·········(0)······322·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE_IS_USER.3alleg5.gz |
273 | -rw-r--r--···0·root·········(0)·root·········(0)······28 | 273 | -rw-r--r--···0·root·········(0)·root·········(0)······285·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_FILE.3alleg5.gz |
274 | -rw-r--r--···0·root·········(0)·root·········(0)······26 | 274 | -rw-r--r--···0·root·········(0)·root·········(0)······263·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_FILECHOOSER.3alleg5.gz |
275 | -rw-r--r--···0·root·········(0)·root·········(0)······78 | 275 | -rw-r--r--···0·root·········(0)·root·········(0)······787·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_FILE_INTERFACE.3alleg5.gz |
276 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 276 | -rw-r--r--···0·root·········(0)·root·········(0)······328·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_FILE_MODE.3alleg5.gz |
277 | -rw-r--r--···0·root·········(0)·root·········(0)······42 | 277 | -rw-r--r--···0·root·········(0)·root·········(0)······425·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_FONT.3alleg5.gz |
278 | -rw-r--r--···0·root·········(0)·root·········(0)······43 | 278 | -rw-r--r--···0·root·········(0)·root·········(0)······435·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_FOR_EACH_FS_ENTRY_RESULT.3alleg5.gz |
279 | -rw-r--r--···0·root·········(0)·root·········(0)······33 | 279 | -rw-r--r--···0·root·········(0)·root·········(0)······331·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_FS_ENTRY.3alleg5.gz |
280 | -rw-r--r--···0·root·········(0)·root·········(0)······52 | 280 | -rw-r--r--···0·root·········(0)·root·········(0)······524·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_FS_INTERFACE.3alleg5.gz |
281 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 281 | -rw-r--r--···0·root·········(0)·root·········(0)······698·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_GET_EVENT_TYPE.3alleg5.gz |
282 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 282 | -rw-r--r--···0·root·········(0)·root·········(0)······796·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_GLYPH.3alleg5.gz |
283 | -rw-r--r--···0·root·········(0)·root·········(0)······44 | 283 | -rw-r--r--···0·root·········(0)·root·········(0)······440·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_HAPTIC.3alleg5.gz |
284 | -rw-r--r--···0·root·········(0)·root·········(0)······8 | 284 | -rw-r--r--···0·root·········(0)·root·········(0)······828·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_CONSTANTS.3alleg5.gz |
285 | -rw-r--r--···0·root·········(0)·root·········(0)·····314 | 285 | -rw-r--r--···0·root·········(0)·root·········(0)·····3141·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_EFFECT.3alleg5.gz |
286 | -rw-r--r--···0·root·········(0)·root·········(0)······46 | 286 | -rw-r--r--···0·root·········(0)·root·········(0)······462·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_EFFECT_ID.3alleg5.gz |
287 | -rw-r--r--···0·root·········(0)·root·········(0)······38 | 287 | -rw-r--r--···0·root·········(0)·root·········(0)······381·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_INDEX_BUFFER.3alleg5.gz |
288 | -rw-r--r--···0·root·········(0)·root·········(0)······35 | 288 | -rw-r--r--···0·root·········(0)·root·········(0)······350·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_JOYFLAGS.3alleg5.gz |
289 | -rw-r--r--···0·root·········(0)·root·········(0)······29 | 289 | -rw-r--r--···0·root·········(0)·root·········(0)······294·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_JOYSTICK.3alleg5.gz |
290 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 290 | -rw-r--r--···0·root·········(0)·root·········(0)······429·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_JOYSTICK_STATE.3alleg5.gz |
291 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 291 | -rw-r--r--···0·root·········(0)·root·········(0)······467·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_KEYBOARD_STATE.3alleg5.gz |
292 | -rw-r--r--···0·root·········(0)·root·········(0)······44 | 292 | -rw-r--r--···0·root·········(0)·root·········(0)······440·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_LINE_CAP.3alleg5.gz |
293 | -rw-r--r--···0·root·········(0)·root·········(0)······41 | 293 | -rw-r--r--···0·root·········(0)·root·········(0)······415·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_LINE_JOIN.3alleg5.gz |
294 | -rw-r--r--···0·root·········(0)·root·········(0)······8 | 294 | -rw-r--r--···0·root·········(0)·root·········(0)······807·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_LOCKED_REGION.3alleg5.gz |
295 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 295 | -rw-r--r--···0·root·········(0)·root·········(0)······386·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_MEMORY_INTERFACE.3alleg5.gz |
296 | -rw-r--r--···0·root·········(0)·root·········(0)······30 | 296 | -rw-r--r--···0·root·········(0)·root·········(0)······305·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_MENU.3alleg5.gz |
297 | -rw-r--r--···0·root·········(0)·root·········(0)······7 | 297 | -rw-r--r--···0·root·········(0)·root·········(0)······717·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_MENU_INFO.3alleg5.gz |
298 | -rw-r--r--···0·root·········(0)·root·········(0)······51 | 298 | -rw-r--r--···0·root·········(0)·root·········(0)······511·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_MIXER.3alleg5.gz |
299 | -rw-r--r--···0·root·········(0)·root·········(0)······31 | 299 | -rw-r--r--···0·root·········(0)·root·········(0)······310·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_MIXER_QUALITY.3alleg5.gz |
300 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 300 | -rw-r--r--···0·root·········(0)·root·········(0)······477·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_MONITOR_INFO.3alleg5.gz |
301 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 301 | -rw-r--r--···0·root·········(0)·root·········(0)······458·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_MOUSE_EMULATION_MODE.3alleg5.gz |
302 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 302 | -rw-r--r--···0·root·········(0)·root·········(0)······466·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_MOUSE_STATE.3alleg5.gz |
303 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 303 | -rw-r--r--···0·root·········(0)·root·········(0)······258·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_MSECS_TO_SECS.3alleg5.gz |
304 | -rw-r--r--···0·root·········(0)·root·········(0)······25 | 304 | -rw-r--r--···0·root·········(0)·root·········(0)······253·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_MUTEX.3alleg5.gz |
305 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 305 | -rw-r--r--···0·root·········(0)·root·········(0)······318·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE.3alleg5.gz |
306 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 306 | -rw-r--r--···0·root·········(0)·root·········(0)······308·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_PI.3alleg5.gz |
307 | -rw-r--r--···0·root·········(0)·root·········(0)·····216 | 307 | -rw-r--r--···0·root·········(0)·root·········(0)·····2165·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_PIXEL_FORMAT.3alleg5.gz |
308 | -rw-r--r--···0·root·········(0)·root·········(0)······27 | 308 | -rw-r--r--···0·root·········(0)·root·········(0)······273·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_PLAYMODE.3alleg5.gz |
309 | -rw-r--r--···0·root·········(0)·root·········(0)·····114 | 309 | -rw-r--r--···0·root·········(0)·root·········(0)·····1146·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_PRIM_ATTR.3alleg5.gz |
310 | -rw-r--r--···0·root·········(0)·root·········(0)······58 | 310 | -rw-r--r--···0·root·········(0)·root·········(0)······582·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_PRIM_BUFFER_FLAGS.3alleg5.gz |
311 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 311 | -rw-r--r--···0·root·········(0)·root·········(0)······378·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_PRIM_QUALITY.3alleg5.gz |
312 | -rw-r--r--···0·root·········(0)·root·········(0)······91 | 312 | -rw-r--r--···0·root·········(0)·root·········(0)······914·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_PRIM_STORAGE.3alleg5.gz |
313 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 313 | -rw-r--r--···0·root·········(0)·root·········(0)······498·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_PRIM_TYPE.3alleg5.gz |
314 | -rw-r--r--···0·root·········(0)·root·········(0)······35 | 314 | -rw-r--r--···0·root·········(0)·root·········(0)······352·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_RENDER_FUNCTION.3alleg5.gz |
315 | -rw-r--r--···0·root·········(0)·root·········(0)······8 | 315 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-11-27·12:02:04.000000·./usr/share/man/man3/ALLEGRO_RENDER_STATE.3alleg5.gz |
Max diff block lines reached; 163112/197101 bytes (82.76%) of diff not shown. |
Offset 167, 38 lines modified | Offset 167, 35 lines modified | ||
167 | <li><a·href="#al_is_acodec_addon_initialized">al_is_acodec_addon_initialized</a></li> | 167 | <li><a·href="#al_is_acodec_addon_initialized">al_is_acodec_addon_initialized</a></li> |
168 | <li><a·href="#al_get_allegro_acodec_version">al_get_allegro_acodec_version</a></li> | 168 | <li><a·href="#al_get_allegro_acodec_version">al_get_allegro_acodec_version</a></li> |
169 | </ul> | 169 | </ul> |
170 | </nav> | 170 | </nav> |
171 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_acodec.</p> | 171 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_acodec.</p> |
172 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_acodec.h></span></span></code></pre></div> | 172 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_acodec.h></span></span></code></pre></div> |
173 | <h1·id="al_init_acodec_addon">al_init_acodec_addon</h1> | 173 | <h1·id="al_init_acodec_addon">al_init_acodec_addon</h1> |
174 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_acodec_addon(<span·class="dt">void</span>)</span> | 174 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_acodec_addon(<span·class="dt">void</span>)</span></code></pre></div> |
175 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_acodec_addon(<span·class="dt">void</span>)</span></code></pre></div> | ||
176 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L21">Source·Code</a></p> | 175 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L21">Source·Code</a></p> |
177 | <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> | 176 | <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> |
178 | <p>Depending·on·what·libraries·are·available,·the·full·set·of·recognised·extensions·is:·.wav,·.flac,·.ogg,·.opus,·.it,·.mod,·.s3m,·.xm,·.voc.</p> | 177 | <p>Depending·on·what·libraries·are·available,·the·full·set·of·recognised·extensions·is:·.wav,·.flac,·.ogg,·.opus,·.it,·.mod,·.s3m,·.xm,·.voc.</p> |
179 | <p><em>Limitations:</em></p> | 178 | <p><em>Limitations:</em></p> |
180 | <ul> | 179 | <ul> |
181 | <li><p>Saving·is·only·supported·for·wav·files.</p></li> | 180 | <li><p>Saving·is·only·supported·for·wav·files.</p></li> |
182 | <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> | 181 | <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> |
183 | <li><p>Module·files·(.it,·.mod,·.s3m,·.xm)·are·often·composed·with·streaming·in·mind,·and·sometimes·cannot·be·easily·rendered·into·a·finite·length·sample.·Therefore·they·cannot·be·loaded·with·<a·href="audio.html#al_load_sample">al_load_sample</a>/<a·href="audio.html#al_load_sample_f">al_load_sample_f</a>·and·must·be·streamed·with·<a·href="audio.html#al_load_audio_stream">al_load_audio_stream</a>·or·<a·href="audio.html#al_load_audio_stream_f">al_load_audio_stream_f</a>.</p></li> | 182 | <li><p>Module·files·(.it,·.mod,·.s3m,·.xm)·are·often·composed·with·streaming·in·mind,·and·sometimes·cannot·be·easily·rendered·into·a·finite·length·sample.·Therefore·they·cannot·be·loaded·with·<a·href="audio.html#al_load_sample">al_load_sample</a>/<a·href="audio.html#al_load_sample_f">al_load_sample_f</a>·and·must·be·streamed·with·<a·href="audio.html#al_load_audio_stream">al_load_audio_stream</a>·or·<a·href="audio.html#al_load_audio_stream_f">al_load_audio_stream_f</a>.</p></li> |
184 | <li><p>.voc·file·streaming·is·unimplemented.</p></li> | 183 | <li><p>.voc·file·streaming·is·unimplemented.</p></li> |
185 | </ul> | 184 | </ul> |
186 | <p>Return·true·on·success.</p> | 185 | <p>Return·true·on·success.</p> |
187 | <h1·id="al_is_acodec_addon_initialized">al_is_acodec_addon_initialized</h1> | 186 | <h1·id="al_is_acodec_addon_initialized">al_is_acodec_addon_initialized</h1> |
188 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_acodec_addon_initialized(<span·class="dt">void</span>)</span> | 187 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_acodec_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> |
189 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_acodec_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> | ||
190 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L77">Source·Code</a></p> | 188 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L77">Source·Code</a></p> |
191 | <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false.</p> | 189 | <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false.</p> |
192 | <p>Since:·5.2.6</p> | 190 | <p>Since:·5.2.6</p> |
193 | <h1·id="al_get_allegro_acodec_version">al_get_allegro_acodec_version</h1> | 191 | <h1·id="al_get_allegro_acodec_version">al_get_allegro_acodec_version</h1> |
194 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_acodec_version(<span·class="dt">void</span>)</span> | 192 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_acodec_version(<span·class="dt">void</span>)</span></code></pre></div> |
195 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_acodec_version(<span·class="dt">void</span>)</span></code></pre></div> | ||
196 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L13">Source·Code</a></p> | 193 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L13">Source·Code</a></p> |
197 | <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> | 194 | <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> |
198 | <p·class="timestamp"> | 195 | <p·class="timestamp"> |
199 | Allegro·version·5.2.6 | 196 | Allegro·version·5.2.6 |
200 | ·-·Last·updated:·202 | 197 | ·-·Last·updated:·2024-01-06·13:49:37·UTC |
201 | </p> | 198 | </p> |
202 | </div> | 199 | </div> |
203 | </body> | 200 | </body> |
204 | </html> | 201 | </html> |
Offset 51, 15 lines modified | Offset 51, 14 lines modified | ||
51 | ····*·al_is_acodec_addon_initialized | 51 | ····*·al_is_acodec_addon_initialized |
52 | ····*·al_get_allegro_acodec_version | 52 | ····*·al_get_allegro_acodec_version |
53 | These·functions·are·declared·in·the·following·header·file.·Link·with | 53 | These·functions·are·declared·in·the·following·header·file.·Link·with |
54 | allegro_acodec. | 54 | allegro_acodec. |
55 | ·#include·<allegro5/allegro_acodec.h> | 55 | ·#include·<allegro5/allegro_acodec.h> |
56 | ******·al_init_acodec_addon·****** | 56 | ******·al_init_acodec_addon·****** |
57 | bool·al_init_acodec_addon(void) | 57 | bool·al_init_acodec_addon(void) |
58 | bool·al_init_acodec_addon(void) | ||
59 | Source_Code | 58 | Source_Code |
60 | This·function·registers·all·the·known·audio·file·type·handlers·for | 59 | This·function·registers·all·the·known·audio·file·type·handlers·for |
61 | al_load_sample,·al_save_sample,·al_load_audio_stream,·etc. | 60 | al_load_sample,·al_save_sample,·al_load_audio_stream,·etc. |
62 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised | 61 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised |
63 | extensions·is:·.wav,·.flac,·.ogg,·.opus,·.it,·.mod,·.s3m,·.xm,·.voc. | 62 | extensions·is:·.wav,·.flac,·.ogg,·.opus,·.it,·.mod,·.s3m,·.xm,·.voc. |
64 | Limitations: | 63 | Limitations: |
65 | ····*·Saving·is·only·supported·for·wav·files. | 64 | ····*·Saving·is·only·supported·for·wav·files. |
Offset 71, 18 lines modified | Offset 70, 16 lines modified | ||
71 | ······sample.·Therefore·they·cannot·be·loaded·with·al_load_sample/ | 70 | ······sample.·Therefore·they·cannot·be·loaded·with·al_load_sample/ |
72 | ······al_load_sample_f·and·must·be·streamed·with·al_load_audio_stream·or | 71 | ······al_load_sample_f·and·must·be·streamed·with·al_load_audio_stream·or |
73 | ······al_load_audio_stream_f. | 72 | ······al_load_audio_stream_f. |
74 | ····*·.voc·file·streaming·is·unimplemented. | 73 | ····*·.voc·file·streaming·is·unimplemented. |
75 | Return·true·on·success. | 74 | Return·true·on·success. |
76 | ******·al_is_acodec_addon_initialized·****** | 75 | ******·al_is_acodec_addon_initialized·****** |
77 | bool·al_is_acodec_addon_initialized(void) | 76 | bool·al_is_acodec_addon_initialized(void) |
78 | bool·al_is_acodec_addon_initialized(void) | ||
79 | Source_Code | 77 | Source_Code |
80 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. | 78 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. |
81 | Since:·5.2.6 | 79 | Since:·5.2.6 |
82 | ******·al_get_allegro_acodec_version·****** | 80 | ******·al_get_allegro_acodec_version·****** |
83 | uint32_t·al_get_allegro_acodec_version(void) | 81 | uint32_t·al_get_allegro_acodec_version(void) |
84 | uint32_t·al_get_allegro_acodec_version(void) | ||
85 | Source_Code | 82 | Source_Code |
86 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 83 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
87 | al_get_allegro_version. | 84 | al_get_allegro_version. |
88 | Allegro·version·5.2.6·-·Last·updated:·202 | 85 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:37·UTC |
Offset 389, 31 lines modified | Offset 389, 29 lines modified | ||
389 | </figure> | 389 | </figure> |
390 | <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> | 390 | <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> |
391 | <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> | 391 | <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> |
392 | <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> | 392 | <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> |
393 | <h1·id="audio-types">Audio·types</h1> | 393 | <h1·id="audio-types">Audio·types</h1> |
394 | <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> | 394 | <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> |
395 | <h2·id="allegro_audio_event_type">ALLEGRO_AUDIO_EVENT_TYPE</h2> | 395 | <h2·id="allegro_audio_event_type">ALLEGRO_AUDIO_EVENT_TYPE</h2> |
396 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_AUDIO_EVENT_TYPE</span> | 396 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_AUDIO_EVENT_TYPE</span></code></pre></div> |
397 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_AUDIO_EVENT_TYPE</span></code></pre></div> | ||
398 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L43">Source·Code</a></p> | 397 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L43">Source·Code</a></p> |
399 | <h3·id="allegro_event_audio_stream_fragment">ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT</h3> | 398 | <h3·id="allegro_event_audio_stream_fragment">ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT</h3> |
400 | <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> | 399 | <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> |
401 | <h3·id="allegro_event_audio_stream_finished">ALLEGRO_EVENT_AUDIO_STREAM_FINISHED</h3> | 400 | <h3·id="allegro_event_audio_stream_finished">ALLEGRO_EVENT_AUDIO_STREAM_FINISHED</h3> |
402 | <p>Sent·when·a·stream·is·finished.</p> | 401 | <p>Sent·when·a·stream·is·finished.</p> |
403 | <h3·id="allegro_event_audio_recorder_fragment">ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT</h3> | 402 | <h3·id="allegro_event_audio_recorder_fragment">ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT</h3> |
404 | <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> | 403 | <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> |
405 | <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> | 404 | <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> |
406 | <p>Since:·5.1.1</p> | 405 | <p>Since:·5.1.1</p> |
407 | <blockquote> | 406 | <blockquote> |
408 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·The·API·may·need·a·slight·redesign.</p> | 407 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·The·API·may·need·a·slight·redesign.</p> |
409 | </blockquote> | 408 | </blockquote> |
410 | <h2·id="allegro_audio_depth">ALLEGRO_AUDIO_DEPTH</h2> | 409 | <h2·id="allegro_audio_depth">ALLEGRO_AUDIO_DEPTH</h2> |
411 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_AUDIO_DEPTH</span> | 410 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_AUDIO_DEPTH</span></code></pre></div> |
412 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_AUDIO_DEPTH</span></code></pre></div> | ||
413 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L71">Source·Code</a></p> | 411 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L71">Source·Code</a></p> |
414 | <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> | 412 | <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> |
415 | <ul> | 413 | <ul> |
416 | <li>ALLEGRO_AUDIO_DEPTH_INT8</li> | 414 | <li>ALLEGRO_AUDIO_DEPTH_INT8</li> |
417 | <li>ALLEGRO_AUDIO_DEPTH_INT16</li> | 415 | <li>ALLEGRO_AUDIO_DEPTH_INT16</li> |
418 | <li>ALLEGRO_AUDIO_DEPTH_INT24</li> | 416 | <li>ALLEGRO_AUDIO_DEPTH_INT24</li> |
419 | <li>ALLEGRO_AUDIO_DEPTH_FLOAT32</li> | 417 | <li>ALLEGRO_AUDIO_DEPTH_FLOAT32</li> |
Offset 422, 538 lines modified | Offset 420, 457 lines modified | ||
422 | <p>For·convenience:</p> | 420 | <p>For·convenience:</p> |
423 | <ul> | 421 | <ul> |
424 | <li>ALLEGRO_AUDIO_DEPTH_UINT8</li> | 422 | <li>ALLEGRO_AUDIO_DEPTH_UINT8</li> |
425 | <li>ALLEGRO_AUDIO_DEPTH_UINT16</li> | 423 | <li>ALLEGRO_AUDIO_DEPTH_UINT16</li> |
426 | <li>ALLEGRO_AUDIO_DEPTH_UINT24</li> | 424 | <li>ALLEGRO_AUDIO_DEPTH_UINT24</li> |
427 | </ul> | 425 | </ul> |
428 | <h2·id="allegro_audio_pan_none">ALLEGRO_AUDIO_PAN_NONE</h2> | 426 | <h2·id="allegro_audio_pan_none">ALLEGRO_AUDIO_PAN_NONE</h2> |
429 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_AUDIO_PAN_NONE······(-1000.0f)</span></span> | 427 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_AUDIO_PAN_NONE······(-1000.0f)</span></span></code></pre></div> |
430 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_AUDIO_PAN_NONE······(-1000.0f)</span></span></code></pre></div> | ||
431 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L140">Source·Code</a></p> | 428 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L140">Source·Code</a></p> |
432 | <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> | 429 | <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> |
433 | <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> | 430 | <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> |
434 | <p>(Please·correct·us·if·this·is·wrong.)</p> | 431 | <p>(Please·correct·us·if·this·is·wrong.)</p> |
435 | <h2·id="allegro_channel_conf">ALLEGRO_CHANNEL_CONF</h2> | 432 | <h2·id="allegro_channel_conf">ALLEGRO_CHANNEL_CONF</h2> |
436 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_CHANNEL_CONF</span> | 433 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_CHANNEL_CONF</span></code></pre></div> |
437 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_CHANNEL_CONF</span></code></pre></div> | ||
438 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L96">Source·Code</a></p> | 434 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L96">Source·Code</a></p> |
439 | <p>Speaker·configuration·(mono,·stereo,·2.1,·etc).</p> | 435 | <p>Speaker·configuration·(mono,·stereo,·2.1,·etc).</p> |
440 | <ul> | 436 | <ul> |
441 | <li>ALLEGRO_CHANNEL_CONF_1</li> | 437 | <li>ALLEGRO_CHANNEL_CONF_1</li> |
442 | <li>ALLEGRO_CHANNEL_CONF_2</li> | 438 | <li>ALLEGRO_CHANNEL_CONF_2</li> |
443 | <li>ALLEGRO_CHANNEL_CONF_3</li> | 439 | <li>ALLEGRO_CHANNEL_CONF_3</li> |
444 | <li>ALLEGRO_CHANNEL_CONF_4</li> | 440 | <li>ALLEGRO_CHANNEL_CONF_4</li> |
445 | <li>ALLEGRO_CHANNEL_CONF_5_1</li> | 441 | <li>ALLEGRO_CHANNEL_CONF_5_1</li> |
446 | <li>ALLEGRO_CHANNEL_CONF_6_1</li> | 442 | <li>ALLEGRO_CHANNEL_CONF_6_1</li> |
447 | <li>ALLEGRO_CHANNEL_CONF_7_1</li> | 443 | <li>ALLEGRO_CHANNEL_CONF_7_1</li> |
448 | </ul> | 444 | </ul> |
449 | <h2·id="allegro_mixer">ALLEGRO_MIXER</h2> | 445 | <h2·id="allegro_mixer">ALLEGRO_MIXER</h2> |
450 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MIXER·ALLEGRO_MIXER;</span> | 446 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MIXER·ALLEGRO_MIXER;</span></code></pre></div> |
451 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MIXER·ALLEGRO_MIXER;</span></code></pre></div> | ||
452 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L169">Source·Code</a></p> | 447 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L169">Source·Code</a></p> |
453 | <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> | 448 | <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> |
454 | <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> | 449 | <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> |
455 | <h2·id="allegro_mixer_quality">ALLEGRO_MIXER_QUALITY</h2> | 450 | <h2·id="allegro_mixer_quality">ALLEGRO_MIXER_QUALITY</h2> |
456 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_MIXER_QUALITY</span> | 451 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_MIXER_QUALITY</span></code></pre></div> |
457 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_MIXER_QUALITY</span></code></pre></div> | ||
458 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L130">Source·Code</a></p> | 452 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L130">Source·Code</a></p> |
459 | <ul> | 453 | <ul> |
460 | <li>ALLEGRO_MIXER_QUALITY_POINT·-·point·sampling</li> | 454 | <li>ALLEGRO_MIXER_QUALITY_POINT·-·point·sampling</li> |
461 | <li>ALLEGRO_MIXER_QUALITY_LINEAR·-·linear·interpolation</li> | 455 | <li>ALLEGRO_MIXER_QUALITY_LINEAR·-·linear·interpolation</li> |
462 | <li>ALLEGRO_MIXER_QUALITY_CUBIC·-·cubic·interpolation·(since:·5.0.8,·5.1.4)</li> | 456 | <li>ALLEGRO_MIXER_QUALITY_CUBIC·-·cubic·interpolation·(since:·5.0.8,·5.1.4)</li> |
463 | </ul> | 457 | </ul> |
464 | <h2·id="allegro_playmode">ALLEGRO_PLAYMODE</h2> | 458 | <h2·id="allegro_playmode">ALLEGRO_PLAYMODE</h2> |
465 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_PLAYMODE</span> | 459 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_PLAYMODE</span></code></pre></div> |
466 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_PLAYMODE</span></code></pre></div> | ||
467 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L118">Source·Code</a></p> | 460 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L118">Source·Code</a></p> |
468 | <p>Sample·and·stream·playback·mode.</p> | 461 | <p>Sample·and·stream·playback·mode.</p> |
469 | <ul> | 462 | <ul> |
470 | <li>ALLEGRO_PLAYMODE_ONCE</li> | 463 | <li>ALLEGRO_PLAYMODE_ONCE</li> |
471 | <li>ALLEGRO_PLAYMODE_LOOP</li> | 464 | <li>ALLEGRO_PLAYMODE_LOOP</li> |
472 | <li>ALLEGRO_PLAYMODE_BIDIR</li> | 465 | <li>ALLEGRO_PLAYMODE_BIDIR</li> |
473 | </ul> | 466 | </ul> |
474 | <h2·id="allegro_sample_id">ALLEGRO_SAMPLE_ID</h2> | 467 | <h2·id="allegro_sample_id">ALLEGRO_SAMPLE_ID</h2> |
475 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID;</span> | 468 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID;</span></code></pre></div> |
476 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID;</span></code></pre></div> | ||
477 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L149">Source·Code</a></p> | 469 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L149">Source·Code</a></p> |
478 | <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> | 470 | <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> |
479 | <h2·id="allegro_sample">ALLEGRO_SAMPLE</h2> | 471 | <h2·id="allegro_sample">ALLEGRO_SAMPLE</h2> |
480 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE;</span> | 472 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE;</span></code></pre></div> |
481 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE;</span></code></pre></div> | ||
482 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L144">Source·Code</a></p> | 473 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L144">Source·Code</a></p> |
483 | <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> | 474 | <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> |
484 | <p>See·also:·<a·href="audio.html#allegro_sample_instance">ALLEGRO_SAMPLE_INSTANCE</a></p> | 475 | <p>See·also:·<a·href="audio.html#allegro_sample_instance">ALLEGRO_SAMPLE_INSTANCE</a></p> |
485 | <h2·id="allegro_sample_instance">ALLEGRO_SAMPLE_INSTANCE</h2> | 476 | <h2·id="allegro_sample_instance">ALLEGRO_SAMPLE_INSTANCE</h2> |
486 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE;</span> | 477 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE;</span></code></pre></div> |
487 | <span·id="cb12-2"><a·href="#cb12-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE;</span></code></pre></div> | ||
488 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L159">Source·Code</a></p> | 478 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L159">Source·Code</a></p> |
489 | <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> | 479 | <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> |
490 | <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> | 480 | <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> |
491 | <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> | 481 | <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> |
492 | <p>See·also:·<a·href="audio.html#allegro_sample">ALLEGRO_SAMPLE</a></p> | 482 | <p>See·also:·<a·href="audio.html#allegro_sample">ALLEGRO_SAMPLE</a></p> |
493 | <h2·id="allegro_audio_stream">ALLEGRO_AUDIO_STREAM</h2> | 483 | <h2·id="allegro_audio_stream">ALLEGRO_AUDIO_STREAM</h2> |
494 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM;</span> | 484 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM;</span></code></pre></div> |
495 | <span·id="cb13-2"><a·href="#cb13-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM;</span></code></pre></div> | ||
496 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L164">Source·Code</a></p> | 485 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L164">Source·Code</a></p> |
497 | <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> | 486 | <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> |
498 | <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> | 487 | <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> |
499 | <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> | 488 | <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> |
500 | <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> | 489 | <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> |
501 | <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> | 490 | <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> |
502 | <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> | 491 | <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> |
503 | <h2·id="allegro_voice">ALLEGRO_VOICE</h2> | 492 | <h2·id="allegro_voice">ALLEGRO_VOICE</h2> |
504 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_VOICE·ALLEGRO_VOICE;</span> | 493 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_VOICE·ALLEGRO_VOICE;</span></code></pre></div> |
505 | <span·id="cb14-2"><a·href="#cb14-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_VOICE·ALLEGRO_VOICE;</span></code></pre></div> | ||
506 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L174">Source·Code</a></p> | 494 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L174">Source·Code</a></p> |
507 | <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> | 495 | <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> |
508 | <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> | 496 | <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> |
509 | <h1·id="setting-up-audio">Setting·up·audio</h1> | 497 | <h1·id="setting-up-audio">Setting·up·audio</h1> |
510 | <h2·id="al_install_audio">al_install_audio</h2> | 498 | <h2·id="al_install_audio">al_install_audio</h2> |
511 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_install_audio(<span·class="dt">void</span>)</span> | 499 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_install_audio(<span·class="dt">void</span>)</span></code></pre></div> |
512 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_install_audio(<span·class="dt">void</span>)</span></code></pre></div> | ||
513 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L378">Source·Code</a></p> | 500 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L378">Source·Code</a></p> |
514 | <p>Install·the·audio·subsystem.</p> | 501 | <p>Install·the·audio·subsystem.</p> |
515 | <p>Returns·true·on·success,·false·on·failure.</p> | 502 | <p>Returns·true·on·success,·false·on·failure.</p> |
516 | <blockquote> | 503 | <blockquote> |
Max diff block lines reached; 183080/203126 bytes (90.13%) of diff not shown. |
Offset 302, 15 lines modified | Offset 302, 14 lines modified | ||
302 | See·Audio_recording·for·Allegroâs·audio·recording·API,·which·is,·as·of·now, | 302 | See·Audio_recording·for·Allegroâs·audio·recording·API,·which·is,·as·of·now, |
303 | still·unstable·and·subject·to·change. | 303 | still·unstable·and·subject·to·change. |
304 | ******·Audio·types·****** | 304 | ******·Audio·types·****** |
305 | Events·sent·by·al_get_audio_stream_event_source·or | 305 | Events·sent·by·al_get_audio_stream_event_source·or |
306 | al_get_audio_recorder_event_source. | 306 | al_get_audio_recorder_event_source. |
307 | *****·ALLEGRO_AUDIO_EVENT_TYPE·***** | 307 | *****·ALLEGRO_AUDIO_EVENT_TYPE·***** |
308 | enum·ALLEGRO_AUDIO_EVENT_TYPE | 308 | enum·ALLEGRO_AUDIO_EVENT_TYPE |
309 | enum·ALLEGRO_AUDIO_EVENT_TYPE | ||
310 | Source_Code | 309 | Source_Code |
311 | ****·ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT·**** | 310 | ****·ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT·**** |
312 | Sent·when·a·stream·fragment·is·ready·to·be·filled·in.·See | 311 | Sent·when·a·stream·fragment·is·ready·to·be·filled·in.·See |
313 | al_get_audio_stream_fragment. | 312 | al_get_audio_stream_fragment. |
314 | ****·ALLEGRO_EVENT_AUDIO_STREAM_FINISHED·**** | 313 | ****·ALLEGRO_EVENT_AUDIO_STREAM_FINISHED·**** |
315 | Sent·when·a·stream·is·finished. | 314 | Sent·when·a·stream·is·finished. |
316 | ****·ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT·**** | 315 | ****·ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT·**** |
Offset 318, 15 lines modified | Offset 317, 14 lines modified | ||
318 | to·ALLEGRO_AUDIO_RECORDER_EVENT·via·al_get_audio_recorder_event. | 317 | to·ALLEGRO_AUDIO_RECORDER_EVENT·via·al_get_audio_recorder_event. |
319 | You·must·always·check·the·values·for·the·buffer·and·samples·as·they·are·not | 318 | You·must·always·check·the·values·for·the·buffer·and·samples·as·they·are·not |
320 | guaranteed·to·be·exactly·what·was·originally·specified. | 319 | guaranteed·to·be·exactly·what·was·originally·specified. |
321 | Since:·5.1.1 | 320 | Since:·5.1.1 |
322 | ·····Unstable_API:·The·API·may·need·a·slight·redesign. | 321 | ·····Unstable_API:·The·API·may·need·a·slight·redesign. |
323 | *****·ALLEGRO_AUDIO_DEPTH·***** | 322 | *****·ALLEGRO_AUDIO_DEPTH·***** |
324 | enum·ALLEGRO_AUDIO_DEPTH | 323 | enum·ALLEGRO_AUDIO_DEPTH |
325 | enum·ALLEGRO_AUDIO_DEPTH | ||
326 | Source_Code | 324 | Source_Code |
327 | Sample·depth·and·type·as·well·as·signedness.·Mixers·only·use·32-bit·signed | 325 | Sample·depth·and·type·as·well·as·signedness.·Mixers·only·use·32-bit·signed |
328 | float·(-1..+1),·or·16-bit·signed·integers.·Signedness·is·determined·by·an | 326 | float·(-1..+1),·or·16-bit·signed·integers.·Signedness·is·determined·by·an |
329 | âunsignedâ·bit-flag·applied·to·the·depth·value. | 327 | âunsignedâ·bit-flag·applied·to·the·depth·value. |
330 | ····*·ALLEGRO_AUDIO_DEPTH_INT8 | 328 | ····*·ALLEGRO_AUDIO_DEPTH_INT8 |
331 | ····*·ALLEGRO_AUDIO_DEPTH_INT16 | 329 | ····*·ALLEGRO_AUDIO_DEPTH_INT16 |
332 | ····*·ALLEGRO_AUDIO_DEPTH_INT24 | 330 | ····*·ALLEGRO_AUDIO_DEPTH_INT24 |
Offset 334, 98 lines modified | Offset 332, 89 lines modified | ||
334 | ····*·ALLEGRO_AUDIO_DEPTH_UNSIGNED | 332 | ····*·ALLEGRO_AUDIO_DEPTH_UNSIGNED |
335 | For·convenience: | 333 | For·convenience: |
336 | ····*·ALLEGRO_AUDIO_DEPTH_UINT8 | 334 | ····*·ALLEGRO_AUDIO_DEPTH_UINT8 |
337 | ····*·ALLEGRO_AUDIO_DEPTH_UINT16 | 335 | ····*·ALLEGRO_AUDIO_DEPTH_UINT16 |
338 | ····*·ALLEGRO_AUDIO_DEPTH_UINT24 | 336 | ····*·ALLEGRO_AUDIO_DEPTH_UINT24 |
339 | *****·ALLEGRO_AUDIO_PAN_NONE·***** | 337 | *****·ALLEGRO_AUDIO_PAN_NONE·***** |
340 | #define·ALLEGRO_AUDIO_PAN_NONE······(-1000.0f) | 338 | #define·ALLEGRO_AUDIO_PAN_NONE······(-1000.0f) |
341 | #define·ALLEGRO_AUDIO_PAN_NONE······(-1000.0f) | ||
342 | Source_Code | 339 | Source_Code |
343 | A·special·value·for·the·pan·property·of·sample·instances·and·audio·streams.·Use | 340 | A·special·value·for·the·pan·property·of·sample·instances·and·audio·streams.·Use |
344 | this·value·to·disable·panning·on·sample·instances·and·audio·streams,·and·play | 341 | this·value·to·disable·panning·on·sample·instances·and·audio·streams,·and·play |
345 | them·without·attentuation·implied·by·panning·support. | 342 | them·without·attentuation·implied·by·panning·support. |
346 | ALLEGRO_AUDIO_PAN_NONE·is·different·from·a·pan·value·of·0.0·(centered)·because, | 343 | ALLEGRO_AUDIO_PAN_NONE·is·different·from·a·pan·value·of·0.0·(centered)·because, |
347 | when·panning·is·enabled,·we·try·to·maintain·a·constant·sound·power·level·as·a | 344 | when·panning·is·enabled,·we·try·to·maintain·a·constant·sound·power·level·as·a |
348 | sample·is·panned·from·left·to·right.·A·sound·coming·out·of·one·speaker·should | 345 | sample·is·panned·from·left·to·right.·A·sound·coming·out·of·one·speaker·should |
349 | sound·as·loud·as·it·does·when·split·over·two·speakers.·As·a·consequence,·a | 346 | sound·as·loud·as·it·does·when·split·over·two·speakers.·As·a·consequence,·a |
350 | sample·with·pan·value·0.0·will·be·3·dB·softer·than·the·original·level. | 347 | sample·with·pan·value·0.0·will·be·3·dB·softer·than·the·original·level. |
351 | (Please·correct·us·if·this·is·wrong.) | 348 | (Please·correct·us·if·this·is·wrong.) |
352 | *****·ALLEGRO_CHANNEL_CONF·***** | 349 | *****·ALLEGRO_CHANNEL_CONF·***** |
353 | enum·ALLEGRO_CHANNEL_CONF | 350 | enum·ALLEGRO_CHANNEL_CONF |
354 | enum·ALLEGRO_CHANNEL_CONF | ||
355 | Source_Code | 351 | Source_Code |
356 | Speaker·configuration·(mono,·stereo,·2.1,·etc). | 352 | Speaker·configuration·(mono,·stereo,·2.1,·etc). |
357 | ····*·ALLEGRO_CHANNEL_CONF_1 | 353 | ····*·ALLEGRO_CHANNEL_CONF_1 |
358 | ····*·ALLEGRO_CHANNEL_CONF_2 | 354 | ····*·ALLEGRO_CHANNEL_CONF_2 |
359 | ····*·ALLEGRO_CHANNEL_CONF_3 | 355 | ····*·ALLEGRO_CHANNEL_CONF_3 |
360 | ····*·ALLEGRO_CHANNEL_CONF_4 | 356 | ····*·ALLEGRO_CHANNEL_CONF_4 |
361 | ····*·ALLEGRO_CHANNEL_CONF_5_1 | 357 | ····*·ALLEGRO_CHANNEL_CONF_5_1 |
362 | ····*·ALLEGRO_CHANNEL_CONF_6_1 | 358 | ····*·ALLEGRO_CHANNEL_CONF_6_1 |
363 | ····*·ALLEGRO_CHANNEL_CONF_7_1 | 359 | ····*·ALLEGRO_CHANNEL_CONF_7_1 |
364 | *****·ALLEGRO_MIXER·***** | 360 | *****·ALLEGRO_MIXER·***** |
365 | typedef·struct·ALLEGRO_MIXER·ALLEGRO_MIXER; | 361 | typedef·struct·ALLEGRO_MIXER·ALLEGRO_MIXER; |
366 | typedef·struct·ALLEGRO_MIXER·ALLEGRO_MIXER; | ||
367 | Source_Code | 362 | Source_Code |
368 | A·mixer·mixes·together·attached·streams·into·a·single·buffer.·In·the·process, | 363 | A·mixer·mixes·together·attached·streams·into·a·single·buffer.·In·the·process, |
369 | it·converts·channel·configurations,·sample·frequencies·and·audio·depths·of·the | 364 | it·converts·channel·configurations,·sample·frequencies·and·audio·depths·of·the |
370 | attached·sample·instances·and·audio·streams·accordingly.·You·can·control·the | 365 | attached·sample·instances·and·audio·streams·accordingly.·You·can·control·the |
371 | quality·of·this·conversion·using·ALLEGRO_MIXER_QUALITY. | 366 | quality·of·this·conversion·using·ALLEGRO_MIXER_QUALITY. |
372 | When·going·from·mono·to·stereo·(and·above),·the·mixer·reduces·the·volume·of | 367 | When·going·from·mono·to·stereo·(and·above),·the·mixer·reduces·the·volume·of |
373 | both·channels·by·sqrt(2).·When·going·from·stereo·(and·above)·to·mono,·the·mixer | 368 | both·channels·by·sqrt(2).·When·going·from·stereo·(and·above)·to·mono,·the·mixer |
374 | reduces·the·volume·of·the·left·and·right·channels·by·sqrt(2)·before·adding·them | 369 | reduces·the·volume·of·the·left·and·right·channels·by·sqrt(2)·before·adding·them |
375 | to·the·center·channel·(if·present). | 370 | to·the·center·channel·(if·present). |
376 | *****·ALLEGRO_MIXER_QUALITY·***** | 371 | *****·ALLEGRO_MIXER_QUALITY·***** |
377 | enum·ALLEGRO_MIXER_QUALITY | 372 | enum·ALLEGRO_MIXER_QUALITY |
378 | enum·ALLEGRO_MIXER_QUALITY | ||
379 | Source_Code | 373 | Source_Code |
380 | ····*·ALLEGRO_MIXER_QUALITY_POINT·-·point·sampling | 374 | ····*·ALLEGRO_MIXER_QUALITY_POINT·-·point·sampling |
381 | ····*·ALLEGRO_MIXER_QUALITY_LINEAR·-·linear·interpolation | 375 | ····*·ALLEGRO_MIXER_QUALITY_LINEAR·-·linear·interpolation |
382 | ····*·ALLEGRO_MIXER_QUALITY_CUBIC·-·cubic·interpolation·(since:·5.0.8,·5.1.4) | 376 | ····*·ALLEGRO_MIXER_QUALITY_CUBIC·-·cubic·interpolation·(since:·5.0.8,·5.1.4) |
383 | *****·ALLEGRO_PLAYMODE·***** | 377 | *****·ALLEGRO_PLAYMODE·***** |
384 | enum·ALLEGRO_PLAYMODE | 378 | enum·ALLEGRO_PLAYMODE |
385 | enum·ALLEGRO_PLAYMODE | ||
386 | Source_Code | 379 | Source_Code |
387 | Sample·and·stream·playback·mode. | 380 | Sample·and·stream·playback·mode. |
388 | ····*·ALLEGRO_PLAYMODE_ONCE | 381 | ····*·ALLEGRO_PLAYMODE_ONCE |
389 | ····*·ALLEGRO_PLAYMODE_LOOP | 382 | ····*·ALLEGRO_PLAYMODE_LOOP |
390 | ····*·ALLEGRO_PLAYMODE_BIDIR | 383 | ····*·ALLEGRO_PLAYMODE_BIDIR |
391 | *****·ALLEGRO_SAMPLE_ID·***** | 384 | *****·ALLEGRO_SAMPLE_ID·***** |
392 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; | 385 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; |
393 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; | ||
394 | Source_Code | 386 | Source_Code |
395 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·al_play_sample.·It | 387 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·al_play_sample.·It |
396 | can·be·used·to·later·stop·the·sample·with·al_stop_sample.·The·underlying | 388 | can·be·used·to·later·stop·the·sample·with·al_stop_sample.·The·underlying |
397 | ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·al_lock_sample_id. | 389 | ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·al_lock_sample_id. |
398 | *****·ALLEGRO_SAMPLE·***** | 390 | *****·ALLEGRO_SAMPLE·***** |
399 | typedef·struct·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE; | 391 | typedef·struct·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE; |
400 | typedef·struct·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE; | ||
401 | Source_Code | 392 | Source_Code |
402 | An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing·pre-defined | 393 | An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing·pre-defined |
403 | digital·audio.·It·holds·a·user-specified·PCM·data·buffer·and·information·about | 394 | digital·audio.·It·holds·a·user-specified·PCM·data·buffer·and·information·about |
404 | its·format·(data·length,·depth,·frequency,·channel·configuration).·You·can·have | 395 | its·format·(data·length,·depth,·frequency,·channel·configuration).·You·can·have |
405 | the·same·ALLEGRO_SAMPLE·playing·multiple·times·simultaneously. | 396 | the·same·ALLEGRO_SAMPLE·playing·multiple·times·simultaneously. |
406 | See·also:·ALLEGRO_SAMPLE_INSTANCE | 397 | See·also:·ALLEGRO_SAMPLE_INSTANCE |
407 | *****·ALLEGRO_SAMPLE_INSTANCE·***** | 398 | *****·ALLEGRO_SAMPLE_INSTANCE·***** |
408 | typedef·struct·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE; | 399 | typedef·struct·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE; |
409 | typedef·struct·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE; | ||
410 | Source_Code | 400 | Source_Code |
411 | An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a | 401 | An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a |
412 | predefined·sound·effect.·It·holds·information·about·how·the·effect·should·be | 402 | predefined·sound·effect.·It·holds·information·about·how·the·effect·should·be |
413 | played:·These·playback·parameters·consist·of·the·looping·mode,·loop·start/end | 403 | played:·These·playback·parameters·consist·of·the·looping·mode,·loop·start/end |
414 | points,·playing·position,·speed,·gain,·pan·and·the·playmode.·Whether·a·sample | 404 | points,·playing·position,·speed,·gain,·pan·and·the·playmode.·Whether·a·sample |
415 | instance·is·currently·playing·or·paused·is·also·one·of·its·properties. | 405 | instance·is·currently·playing·or·paused·is·also·one·of·its·properties. |
416 | An·instance·uses·the·data·from·an·ALLEGRO_SAMPLE·object.·Multiple·instances·may | 406 | An·instance·uses·the·data·from·an·ALLEGRO_SAMPLE·object.·Multiple·instances·may |
417 | be·created·from·the·same·ALLEGRO_SAMPLE.·An·ALLEGRO_SAMPLE·must·not·be | 407 | be·created·from·the·same·ALLEGRO_SAMPLE.·An·ALLEGRO_SAMPLE·must·not·be |
418 | destroyed·while·there·are·instances·which·reference·it. | 408 | destroyed·while·there·are·instances·which·reference·it. |
419 | To·actually·produce·audio·output,·an·ALLEGRO_SAMPLE_INSTANCE·must·be·attached | 409 | To·actually·produce·audio·output,·an·ALLEGRO_SAMPLE_INSTANCE·must·be·attached |
420 | to·an·ALLEGRO_MIXER·which·eventually·reaches·an·ALLEGRO_VOICE·object. | 410 | to·an·ALLEGRO_MIXER·which·eventually·reaches·an·ALLEGRO_VOICE·object. |
421 | See·also:·ALLEGRO_SAMPLE | 411 | See·also:·ALLEGRO_SAMPLE |
422 | *****·ALLEGRO_AUDIO_STREAM·***** | 412 | *****·ALLEGRO_AUDIO_STREAM·***** |
423 | typedef·struct·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM; | 413 | typedef·struct·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM; |
424 | typedef·struct·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM; | ||
425 | Source_Code | 414 | Source_Code |
426 | An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the·sound | 415 | An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the·sound |
427 | device,·in·real-time.·This·is·done·by·reading·from·a·buffer,·which·is·split | 416 | device,·in·real-time.·This·is·done·by·reading·from·a·buffer,·which·is·split |
428 | into·a·number·of·fragments.·Whenever·a·fragment·has·finished·playing,·the·user | 417 | into·a·number·of·fragments.·Whenever·a·fragment·has·finished·playing,·the·user |
Max diff block lines reached; 62736/68813 bytes (91.17%) of diff not shown. |
Offset 202, 129 lines modified | Offset 202, 113 lines modified | ||
202 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_color.h></span></span></code></pre></div> | 202 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_color.h></span></span></code></pre></div> |
203 | <p>When·converting·between·certain·color·spaces,·RGB·colors·are·implicitly·assumed·to·mean·sRGB.</p> | 203 | <p>When·converting·between·certain·color·spaces,·RGB·colors·are·implicitly·assumed·to·mean·sRGB.</p> |
204 | <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> | 204 | <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> |
205 | <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> | 205 | <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> |
206 | <p>al_map_rgb_f(0.5,·0.5,·0,5)</p> | 206 | <p>al_map_rgb_f(0.5,·0.5,·0,5)</p> |
207 | <p>then·it·will·appear·at·about·half·brightness·(even·though·the·actual·brightness·output·of·the·monitor·will·be·less·than·half).</p> | 207 | <p>then·it·will·appear·at·about·half·brightness·(even·though·the·actual·brightness·output·of·the·monitor·will·be·less·than·half).</p> |
208 | <h1·id="al_color_cmyk">al_color_cmyk</h1> | 208 | <h1·id="al_color_cmyk">al_color_cmyk</h1> |
209 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a>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)</span> | 209 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a>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)</span></code></pre></div> |
210 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a>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)</span></code></pre></div> | ||
211 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source·Code</a></p> | 210 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source·Code</a></p> |
212 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> | 211 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> |
213 | <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> | 212 | <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> |
214 | <h1·id="al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</h1> | 213 | <h1·id="al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</h1> |
215 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><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,</span> | 214 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><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,</span> |
216 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a>····<span·class="dt">float</span>·key,·<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</span> | ||
217 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"></a><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,</span> | ||
218 | <span·id="cb3- | 215 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a>····<span·class="dt">float</span>·key,·<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</span></code></pre></div> |
219 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source·Code</a></p> | 216 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source·Code</a></p> |
220 | <p>Convert·CMYK·values·to·RGB·values.</p> | 217 | <p>Convert·CMYK·values·to·RGB·values.</p> |
221 | <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> | 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> |
222 | <h1·id="al_color_hsl">al_color_hsl</h1> | 219 | <h1·id="al_color_hsl">al_color_hsl</h1> |
223 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_hsl(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·l)</span> | 220 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_hsl(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·l)</span></code></pre></div> |
224 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_hsl(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·l)</span></code></pre></div> | ||
225 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source·Code</a></p> | 221 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source·Code</a></p> |
226 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·HSL·(hue,·saturation,·lightness)·values.</p> | 222 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·HSL·(hue,·saturation,·lightness)·values.</p> |
227 | <p>Parameters:</p> | 223 | <p>Parameters:</p> |
228 | <ul> | 224 | <ul> |
229 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 225 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
230 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> | 226 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> |
231 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> | 227 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> |
232 | </ul> | 228 | </ul> |
233 | <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> | 229 | <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> |
234 | <h1·id="al_color_hsl_to_rgb">al_color_hsl_to_rgb</h1> | 230 | <h1·id="al_color_hsl_to_rgb">al_color_hsl_to_rgb</h1> |
235 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><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,</span> | 231 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><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,</span> |
236 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</span> | ||
237 | <span·id="cb5-3"><a·href="#cb5-3"·aria-hidden="true"></a><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,</span> | ||
238 | <span·id="cb5- | 232 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</span></code></pre></div> |
239 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L367">Source·Code</a></p> | 233 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L367">Source·Code</a></p> |
240 | <p>Convert·values·in·HSL·color·model·to·RGB·color·model.</p> | 234 | <p>Convert·values·in·HSL·color·model·to·RGB·color·model.</p> |
241 | <p>Parameters:</p> | 235 | <p>Parameters:</p> |
242 | <ul> | 236 | <ul> |
243 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 237 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
244 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> | 238 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> |
245 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> | 239 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> |
246 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> | 240 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> |
247 | </ul> | 241 | </ul> |
248 | <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> | 242 | <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> |
249 | <h1·id="al_color_hsv">al_color_hsv</h1> | 243 | <h1·id="al_color_hsv">al_color_hsv</h1> |
250 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_hsv(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·v)</span> | 244 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_hsv(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·v)</span></code></pre></div> |
251 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_hsv(<span·class="dt">float</span>·h,·<span·class="dt">float</span>·s,·<span·class="dt">float</span>·v)</span></code></pre></div> | ||
252 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L339">Source·Code</a></p> | 245 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L339">Source·Code</a></p> |
253 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·HSV·(hue,·saturation,·value)·values.</p> | 246 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>·structure·from·HSV·(hue,·saturation,·value)·values.</p> |
254 | <p>Parameters:</p> | 247 | <p>Parameters:</p> |
255 | <ul> | 248 | <ul> |
256 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 249 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
257 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> | 250 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> |
258 | <li>value·-·Color·value·in·the·range·0..1</li> | 251 | <li>value·-·Color·value·in·the·range·0..1</li> |
259 | </ul> | 252 | </ul> |
260 | <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> | 253 | <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> |
261 | <h1·id="al_color_hsv_to_rgb">al_color_hsv_to_rgb</h1> | 254 | <h1·id="al_color_hsv_to_rgb">al_color_hsv_to_rgb</h1> |
262 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><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,</span> | 255 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><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,</span> |
263 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</span> | ||
264 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"></a><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,</span> | ||
265 | <span·id="cb7- | 256 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</span></code></pre></div> |
266 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L266">Source·Code</a></p> | 257 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L266">Source·Code</a></p> |
267 | <p>Convert·values·in·HSV·color·model·to·RGB·color·model.</p> | 258 | <p>Convert·values·in·HSV·color·model·to·RGB·color·model.</p> |
268 | <p>Parameters:</p> | 259 | <p>Parameters:</p> |
269 | <ul> | 260 | <ul> |
270 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 261 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
271 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> | 262 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> |
272 | <li>value·-·Color·value·in·the·range·0..1</li> | 263 | <li>value·-·Color·value·in·the·range·0..1</li> |
273 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> | 264 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> |
274 | </ul> | 265 | </ul> |
275 | <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> | 266 | <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> |
276 | <h1·id="al_color_html">al_color_html</h1> | 267 | <h1·id="al_color_html">al_color_html</h1> |
277 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_html(<span·class="dt">char</span>·<span·class="dt">const</span>·*string)</span> | 268 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_html(<span·class="dt">char</span>·<span·class="dt">const</span>·*string)</span></code></pre></div> |
278 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_html(<span·class="dt">char</span>·<span·class="dt">const</span>·*string)</span></code></pre></div> | ||
279 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L568">Source·Code</a></p> | 269 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L568">Source·Code</a></p> |
280 | <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> | 270 | <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> |
281 | <p>Returns·the·interpreted·color,·or·<code>al_map_rgba(0,·0,·0,·0)</code>·if·the·string·could·not·be·parsed.</p> | 271 | <p>Returns·the·interpreted·color,·or·<code>al_map_rgba(0,·0,·0,·0)</code>·if·the·string·could·not·be·parsed.</p> |
282 | <blockquote> | 272 | <blockquote> |
283 | <p><em>Note</em>:·the·behaviour·on·invalid·strings·is·different·from·Allegro·5.0.x.</p> | 273 | <p><em>Note</em>:·the·behaviour·on·invalid·strings·is·different·from·Allegro·5.0.x.</p> |
284 | </blockquote> | 274 | </blockquote> |
285 | <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> | 275 | <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> |
286 | <h1·id="al_color_html_to_rgb">al_color_html_to_rgb</h1> | 276 | <h1·id="al_color_html_to_rgb">al_color_html_to_rgb</h1> |
287 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_color_html_to_rgb(<span·class="dt">char</span>·<span·class="dt">const</span>·*string,</span> | 277 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_color_html_to_rgb(<span·class="dt">char</span>·<span·class="dt">const</span>·*string,</span> |
288 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</span> | ||
289 | <span·id="cb9-3"><a·href="#cb9-3"·aria-hidden="true"></a><span·class="dt">bool</span>·al_color_html_to_rgb(<span·class="dt">char</span>·<span·class="dt">const</span>·*string,</span> | ||
290 | <span·id="cb9- | 278 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·*red,·<span·class="dt">float</span>·*green,·<span·class="dt">float</span>·*blue)</span></code></pre></div> |
291 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L538">Source·Code</a></p> | 279 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L538">Source·Code</a></p> |
292 | <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> | 280 | <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> |
293 | <p>Returns·true·on·success,·false·on·failure.·On·failure·all·components·are·set·to·zero.</p> | 281 | <p>Returns·true·on·success,·false·on·failure.·On·failure·all·components·are·set·to·zero.</p> |
294 | <blockquote> | 282 | <blockquote> |
295 | <p><em>Note</em>:·the·behaviour·on·invalid·strings·is·different·from·Allegro·5.0.x.</p> | 283 | <p><em>Note</em>:·the·behaviour·on·invalid·strings·is·different·from·Allegro·5.0.x.</p> |
296 | </blockquote> | 284 | </blockquote> |
297 | <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> | 285 | <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> |
298 | <h1·id="al_color_rgb_to_html">al_color_rgb_to_html</h1> | 286 | <h1·id="al_color_rgb_to_html">al_color_rgb_to_html</h1> |
299 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><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,</span> | 287 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><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,</span> |
300 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"></a>····<span·class="dt">char</span>·*string)</span> | ||
301 | <span·id="cb10-3"><a·href="#cb10-3"·aria-hidden="true"></a><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,</span> | ||
302 | <span·id="cb10- | 288 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"></a>····<span·class="dt">char</span>·*string)</span></code></pre></div> |
303 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L528">Source·Code</a></p> | 289 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L528">Source·Code</a></p> |
304 | <p>Create·an·HTML-style·string·representation·of·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·e.g. #00faff.</p> | 290 | <p>Create·an·HTML-style·string·representation·of·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·e.g. #00faff.</p> |
305 | <p>Parameters:</p> | 291 | <p>Parameters:</p> |
306 | <ul> | 292 | <ul> |
307 | <li>red,·green,·blue·-·The·color·components·in·the·range·0..1.</li> | 293 | <li>red,·green,·blue·-·The·color·components·in·the·range·0..1.</li> |
308 | <li>string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result·will·be·written·(including·the·NUL·terminator).</li> | 294 | <li>string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result·will·be·written·(including·the·NUL·terminator).</li> |
309 | </ul> | 295 | </ul> |
310 | <p>Example:</p> | 296 | <p>Example:</p> |
311 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="dt">char</span>·html[<span·class="dv">8</span>];</span> | 297 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="dt">char</span>·html[<span·class="dv">8</span>];</span> |
312 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a>al_color_rgb_to_html(<span·class="dv">1</span>,·<span·class="dv">0</span>,·<span·class="dv">0</span>,·html);</span></code></pre></div> | 298 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a>al_color_rgb_to_html(<span·class="dv">1</span>,·<span·class="dv">0</span>,·<span·class="dv">0</span>,·html);</span></code></pre></div> |
313 | <p>Now·html·will·contain·“#ff0000”.</p> | 299 | <p>Now·html·will·contain·“#ff0000”.</p> |
314 | <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> | 300 | <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> |
315 | <h1·id="al_color_name">al_color_name</h1> | 301 | <h1·id="al_color_name">al_color_name</h1> |
316 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_name(<span·class="dt">char</span>·<span·class="dt">const</span>·*name)</span> | 302 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_name(<span·class="dt">char</span>·<span·class="dt">const</span>·*name)</span></code></pre></div> |
317 | <span·id="cb12-2"><a·href="#cb12-2"·aria-hidden="true"></a>ALLEGRO_COLOR·al_color_name(<span·class="dt">char</span>·<span·class="dt">const</span>·*name)</span></code></pre></div> | ||
318 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L254">Source·Code</a></p> | 303 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L254">Source·Code</a></p> |
319 | <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> | 304 | <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> |
320 | <p>See·<a·href="color.html#al_color_name_to_rgb">al_color_name_to_rgb</a>·for·the·list·of·names.</p> | 305 | <p>See·<a·href="color.html#al_color_name_to_rgb">al_color_name_to_rgb</a>·for·the·list·of·names.</p> |
321 | <h1·id="al_color_name_to_rgb">al_color_name_to_rgb</h1> | 306 | <h1·id="al_color_name_to_rgb">al_color_name_to_rgb</h1> |
322 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"></a><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)</span> | 307 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"></a><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)</span></code></pre></div> |
323 | <span·id="cb13-2"><a·href="#cb13-2"·aria-hidden="true"></a><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)</span></code></pre></div> | ||
324 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L210">Source·Code</a></p> | 308 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L210">Source·Code</a></p> |
325 | <p>Parameters:</p> | 309 | <p>Parameters:</p> |
326 | <ul> | 310 | <ul> |
327 | <li>name·-·The·(lowercase)·name·of·the·color.</li> | 311 | <li>name·-·The·(lowercase)·name·of·the·color.</li> |
328 | <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> | 312 | <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; 32180/50520 bytes (63.70%) of diff not shown. |
Offset 97, 124 lines modified | Offset 97, 108 lines modified | ||
97 | try·to·be·close·to·the·sRGB·specification.·And·so·if·in·an·Allegro·game·you | 97 | try·to·be·close·to·the·sRGB·specification.·And·so·if·in·an·Allegro·game·you |
98 | display·something·with·color | 98 | display·something·with·color |
99 | al_map_rgb_f(0.5,·0.5,·0,5) | 99 | al_map_rgb_f(0.5,·0.5,·0,5) |
100 | then·it·will·appear·at·about·half·brightness·(even·though·the·actual·brightness | 100 | then·it·will·appear·at·about·half·brightness·(even·though·the·actual·brightness |
101 | output·of·the·monitor·will·be·less·than·half). | 101 | output·of·the·monitor·will·be·less·than·half). |
102 | ******·al_color_cmyk·****** | 102 | ******·al_color_cmyk·****** |
103 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) | 103 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) |
104 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) | ||
105 | Source_Code | 104 | Source_Code |
106 | Return·an·ALLEGRO_COLOR·structure·from·CMYK·values·(cyan,·magenta,·yellow, | 105 | Return·an·ALLEGRO_COLOR·structure·from·CMYK·values·(cyan,·magenta,·yellow, |
107 | black). | 106 | black). |
108 | See·also:·al_color_cmyk_to_rgb,·al_color_rgb_to_cmyk | 107 | See·also:·al_color_cmyk_to_rgb,·al_color_rgb_to_cmyk |
109 | ******·al_color_cmyk_to_rgb·****** | 108 | ******·al_color_cmyk_to_rgb·****** |
110 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, | 109 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, |
111 | ····float·key,·float·*red,·float·*green,·float·*blue) | 110 | ····float·key,·float·*red,·float·*green,·float·*blue) |
112 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, | ||
113 | ····float·key,·float·*red,·float·*green,·float·*blue) | ||
114 | Source_Code | 111 | Source_Code |
115 | Convert·CMYK·values·to·RGB·values. | 112 | Convert·CMYK·values·to·RGB·values. |
116 | See·also:·al_color_cmyk,·al_color_rgb_to_cmyk | 113 | See·also:·al_color_cmyk,·al_color_rgb_to_cmyk |
117 | ******·al_color_hsl·****** | 114 | ******·al_color_hsl·****** |
118 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | 115 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) |
119 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | ||
120 | Source_Code | 116 | Source_Code |
121 | Return·an·ALLEGRO_COLOR·structure·from·HSL·(hue,·saturation,·lightness)·values. | 117 | Return·an·ALLEGRO_COLOR·structure·from·HSL·(hue,·saturation,·lightness)·values. |
122 | Parameters: | 118 | Parameters: |
123 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 119 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
124 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 120 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
125 | ····*·lightness·-·Color·lightness·in·the·range·0..1 | 121 | ····*·lightness·-·Color·lightness·in·the·range·0..1 |
126 | See·also:·al_color_hsl_to_rgb,·al_color_hsv | 122 | See·also:·al_color_hsl_to_rgb,·al_color_hsv |
127 | ******·al_color_hsl_to_rgb·****** | 123 | ******·al_color_hsl_to_rgb·****** |
128 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, | 124 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, |
129 | ···float·*red,·float·*green,·float·*blue) | 125 | ···float·*red,·float·*green,·float·*blue) |
130 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, | ||
131 | ···float·*red,·float·*green,·float·*blue) | ||
132 | Source_Code | 126 | Source_Code |
133 | Convert·values·in·HSL·color·model·to·RGB·color·model. | 127 | Convert·values·in·HSL·color·model·to·RGB·color·model. |
134 | Parameters: | 128 | Parameters: |
135 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 129 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
136 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 130 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
137 | ····*·lightness·-·Color·lightness·in·the·range·0..1 | 131 | ····*·lightness·-·Color·lightness·in·the·range·0..1 |
138 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 | 132 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 |
139 | See·also:·al_color_rgb_to_hsl,·al_color_hsl,·al_color_hsv_to_rgb | 133 | See·also:·al_color_rgb_to_hsl,·al_color_hsl,·al_color_hsv_to_rgb |
140 | ******·al_color_hsv·****** | 134 | ******·al_color_hsv·****** |
141 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | 135 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) |
142 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | ||
143 | Source_Code | 136 | Source_Code |
144 | Return·an·ALLEGRO_COLOR·structure·from·HSV·(hue,·saturation,·value)·values. | 137 | Return·an·ALLEGRO_COLOR·structure·from·HSV·(hue,·saturation,·value)·values. |
145 | Parameters: | 138 | Parameters: |
146 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 139 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
147 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 140 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
148 | ····*·value·-·Color·value·in·the·range·0..1 | 141 | ····*·value·-·Color·value·in·the·range·0..1 |
149 | See·also:·al_color_hsv_to_rgb,·al_color_hsl | 142 | See·also:·al_color_hsv_to_rgb,·al_color_hsl |
150 | ******·al_color_hsv_to_rgb·****** | 143 | ******·al_color_hsv_to_rgb·****** |
151 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, | 144 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, |
152 | ···float·*red,·float·*green,·float·*blue) | 145 | ···float·*red,·float·*green,·float·*blue) |
153 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, | ||
154 | ···float·*red,·float·*green,·float·*blue) | ||
155 | Source_Code | 146 | Source_Code |
156 | Convert·values·in·HSV·color·model·to·RGB·color·model. | 147 | Convert·values·in·HSV·color·model·to·RGB·color·model. |
157 | Parameters: | 148 | Parameters: |
158 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 149 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
159 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 150 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
160 | ····*·value·-·Color·value·in·the·range·0..1 | 151 | ····*·value·-·Color·value·in·the·range·0..1 |
161 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 | 152 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 |
162 | See·also:·al_color_rgb_to_hsv,·al_color_hsv,·al_color_hsl_to_rgb | 153 | See·also:·al_color_rgb_to_hsv,·al_color_hsv,·al_color_hsl_to_rgb |
163 | ******·al_color_html·****** | 154 | ******·al_color_html·****** |
164 | ALLEGRO_COLOR·al_color_html(char·const·*string) | 155 | ALLEGRO_COLOR·al_color_html(char·const·*string) |
165 | ALLEGRO_COLOR·al_color_html(char·const·*string) | ||
166 | Source_Code | 156 | Source_Code |
167 | Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·accepted | 157 | Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·accepted |
168 | format·is·the·same·as·al_color_html_to_rgb. | 158 | format·is·the·same·as·al_color_html_to_rgb. |
169 | Returns·the·interpreted·color,·or·al_map_rgba(0,·0,·0,·0)·if·the·string·could | 159 | Returns·the·interpreted·color,·or·al_map_rgba(0,·0,·0,·0)·if·the·string·could |
170 | not·be·parsed. | 160 | not·be·parsed. |
171 | ·····Note:·the·behaviour·on·invalid·strings·is·different·from·Allegro | 161 | ·····Note:·the·behaviour·on·invalid·strings·is·different·from·Allegro |
172 | ·····5.0.x. | 162 | ·····5.0.x. |
173 | See·also:·al_color_html_to_rgb,·al_color_rgb_to_html | 163 | See·also:·al_color_html_to_rgb,·al_color_rgb_to_html |
174 | ******·al_color_html_to_rgb·****** | 164 | ******·al_color_html_to_rgb·****** |
175 | bool·al_color_html_to_rgb(char·const·*string, | 165 | bool·al_color_html_to_rgb(char·const·*string, |
176 | ···float·*red,·float·*green,·float·*blue) | 166 | ···float·*red,·float·*green,·float·*blue) |
177 | bool·al_color_html_to_rgb(char·const·*string, | ||
178 | ···float·*red,·float·*green,·float·*blue) | ||
179 | Source_Code | 167 | Source_Code |
180 | Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·only | 168 | Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·only |
181 | accepted·formats·are·â#RRGGBBâ·and·âRRGGBBâ·where·R,·G,·B·are | 169 | accepted·formats·are·â#RRGGBBâ·and·âRRGGBBâ·where·R,·G,·B·are |
182 | hexadecimal·digits·[0-9A-Fa-f]. | 170 | hexadecimal·digits·[0-9A-Fa-f]. |
183 | Returns·true·on·success,·false·on·failure.·On·failure·all·components·are·set·to | 171 | Returns·true·on·success,·false·on·failure.·On·failure·all·components·are·set·to |
184 | zero. | 172 | zero. |
185 | ·····Note:·the·behaviour·on·invalid·strings·is·different·from·Allegro | 173 | ·····Note:·the·behaviour·on·invalid·strings·is·different·from·Allegro |
186 | ·····5.0.x. | 174 | ·····5.0.x. |
187 | See·also:·al_color_html,·al_color_rgb_to_html | 175 | See·also:·al_color_html,·al_color_rgb_to_html |
188 | ******·al_color_rgb_to_html·****** | 176 | ******·al_color_rgb_to_html·****** |
189 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, | 177 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, |
190 | ····char·*string) | 178 | ····char·*string) |
191 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, | ||
192 | ····char·*string) | ||
193 | Source_Code | 179 | Source_Code |
194 | Create·an·HTML-style·string·representation·of·an·ALLEGRO_COLOR,·e.g. #00faff. | 180 | Create·an·HTML-style·string·representation·of·an·ALLEGRO_COLOR,·e.g. #00faff. |
195 | Parameters: | 181 | Parameters: |
196 | ····*·red,·green,·blue·-·The·color·components·in·the·range·0..1. | 182 | ····*·red,·green,·blue·-·The·color·components·in·the·range·0..1. |
197 | ····*·string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result | 183 | ····*·string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result |
198 | ······will·be·written·(including·the·NUL·terminator). | 184 | ······will·be·written·(including·the·NUL·terminator). |
199 | Example: | 185 | Example: |
200 | char·html[8]; | 186 | char·html[8]; |
201 | al_color_rgb_to_html(1,·0,·0,·html); | 187 | al_color_rgb_to_html(1,·0,·0,·html); |
202 | Now·html·will·contain·â#ff0000â. | 188 | Now·html·will·contain·â#ff0000â. |
203 | See·also:·al_color_html,·al_color_html_to_rgb | 189 | See·also:·al_color_html,·al_color_html_to_rgb |
204 | ******·al_color_name·****** | 190 | ******·al_color_name·****** |
205 | ALLEGRO_COLOR·al_color_name(char·const·*name) | 191 | ALLEGRO_COLOR·al_color_name(char·const·*name) |
206 | ALLEGRO_COLOR·al_color_name(char·const·*name) | ||
207 | Source_Code | 192 | Source_Code |
208 | Return·an·ALLEGRO_COLOR·with·the·given·name.·If·the·color·is·not·found·then | 193 | Return·an·ALLEGRO_COLOR·with·the·given·name.·If·the·color·is·not·found·then |
209 | black·is·returned. | 194 | black·is·returned. |
210 | See·al_color_name_to_rgb·for·the·list·of·names. | 195 | See·al_color_name_to_rgb·for·the·list·of·names. |
211 | ******·al_color_name_to_rgb·****** | 196 | ******·al_color_name_to_rgb·****** |
212 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) | 197 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) |
213 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) | ||
214 | Source_Code | 198 | Source_Code |
215 | Parameters: | 199 | Parameters: |
216 | ····*·name·-·The·(lowercase)·name·of·the·color. | 200 | ····*·name·-·The·(lowercase)·name·of·the·color. |
217 | ····*·r,·g,·b·-·If·one·of·the·recognized·color·names·below·is·passed,·the | 201 | ····*·r,·g,·b·-·If·one·of·the·recognized·color·names·below·is·passed,·the |
218 | ······corresponding·RGB·values·in·the·range·0..1·are·written. | 202 | ······corresponding·RGB·values·in·the·range·0..1·are·written. |
219 | The·148·recognized·names·are: | 203 | The·148·recognized·names·are: |
220 | ·····aliceblue,·antiquewhite,·aqua,·aquamarine,·azure,·beige,·bisque, | 204 | ·····aliceblue,·antiquewhite,·aqua,·aquamarine,·azure,·beige,·bisque, |
Offset 247, 124 lines modified | Offset 231, 104 lines modified | ||
247 | dimgray·=·dimgrey,·fuchsia·=·purple,·gray·=·grey,·lightgray·=·lightgrey, | 231 | dimgray·=·dimgrey,·fuchsia·=·purple,·gray·=·grey,·lightgray·=·lightgrey, |
248 | lightslategray·=·lightslategrey,·slategray·=·slategrey | 232 | lightslategray·=·lightslategrey,·slategray·=·slategrey |
Max diff block lines reached; 9084/14976 bytes (60.66%) of diff not shown. |
Offset 205, 27 lines modified | Offset 205, 24 lines modified | ||
205 | <p>It·can·then·be·accessed·like·this·(make·sure·to·check·for·errors·in·an·actual·program):</p> | 205 | <p>It·can·then·be·accessed·like·this·(make·sure·to·check·for·errors·in·an·actual·program):</p> |
206 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a>ALLEGRO_CONFIG*·cfg·=·al_load_config_file(<span·class="st">"test.cfg"</span>);</span> | 206 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a>ALLEGRO_CONFIG*·cfg·=·al_load_config_file(<span·class="st">"test.cfg"</span>);</span> |
207 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a>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></span> | 207 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a>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></span> |
208 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"></a>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></span> | 208 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"></a>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></span> |
209 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"></a>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></span> | 209 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"></a>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></span> |
210 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"></a>al_destroy_config(cfg);</span></code></pre></div> | 210 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"></a>al_destroy_config(cfg);</span></code></pre></div> |
211 | <h1·id="allegro_config">ALLEGRO_CONFIG</h1> | 211 | <h1·id="allegro_config">ALLEGRO_CONFIG</h1> |
212 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG;</span> | 212 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG;</span></code></pre></div> |
213 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG;</span></code></pre></div> | ||
214 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source·Code</a></p> | 213 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source·Code</a></p> |
215 | <p>An·abstract·configuration·structure.</p> | 214 | <p>An·abstract·configuration·structure.</p> |
216 | <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</h1> | 215 | <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</h1> |
217 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION;</span> | 216 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION;</span></code></pre></div> |
218 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION;</span></code></pre></div> | ||
219 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source·Code</a></p> | 217 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source·Code</a></p> |
220 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a·configuration·structure.</p> | 218 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a·configuration·structure.</p> |
221 | <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 | <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> |
222 | <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1> | 220 | <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1> |
223 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY;</span> | 221 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY;</span></code></pre></div> |
224 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY;</span></code></pre></div> | ||
225 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source·Code</a></p> | 222 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source·Code</a></p> |
226 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a·configuration·section.</p> | 223 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a·configuration·section.</p> |
227 | <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> | 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> |
228 | <h1·id="al_create_config">al_create_config</h1> | 225 | <h1·id="al_create_config">al_create_config</h1> |
229 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a>ALLEGRO_CONFIG·*al_create_config(<span·class="dt">void</span>)</span></code></pre></div> | 226 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a>ALLEGRO_CONFIG·*al_create_config(<span·class="dt">void</span>)</span></code></pre></div> |
230 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L37">Source·Code</a></p> | 227 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L37">Source·Code</a></p> |
231 | <p>Create·an·empty·configuration·structure.</p> | 228 | <p>Create·an·empty·configuration·structure.</p> |
Offset 326, 12 lines modified | Offset 323, 12 lines modified | ||
326 | <h1·id="al_merge_config_into">al_merge_config_into</h1> | 323 | <h1·id="al_merge_config_into">al_merge_config_into</h1> |
327 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb24-1"><a·href="#cb24-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_merge_config_into(ALLEGRO_CONFIG·*master,·<span·class="dt">const</span>·ALLEGRO_CONFIG·*add)</span></code></pre></div> | 324 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb24-1"><a·href="#cb24-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_merge_config_into(ALLEGRO_CONFIG·*master,·<span·class="dt">const</span>·ALLEGRO_CONFIG·*add)</span></code></pre></div> |
328 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L515">Source·Code</a></p> | 325 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L515">Source·Code</a></p> |
329 | <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> | 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> |
330 | <p>See·also:·<a·href="config.html#al_merge_config">al_merge_config</a></p> | 327 | <p>See·also:·<a·href="config.html#al_merge_config">al_merge_config</a></p> |
331 | <p·class="timestamp"> | 328 | <p·class="timestamp"> |
332 | Allegro·version·5.2.6 | 329 | Allegro·version·5.2.6 |
333 | ·-·Last·updated:·202 | 330 | ·-·Last·updated:·2024-01-06·13:49:31·UTC |
334 | </p> | 331 | </p> |
335 | </div> | 332 | </div> |
336 | </body> | 333 | </body> |
337 | </html> | 334 | </html> |
Offset 105, 27 lines modified | Offset 105, 24 lines modified | ||
105 | printf("%s\n",·al_get_config_value(cfg,·"weapon·0",·"damage"));·/*·Prints:·443 | 105 | printf("%s\n",·al_get_config_value(cfg,·"weapon·0",·"damage"));·/*·Prints:·443 |
106 | */ | 106 | */ |
107 | printf("%s\n",·al_get_config_value(cfg,·"weapon·1",·"damage"));·/*·Prints:·503 | 107 | printf("%s\n",·al_get_config_value(cfg,·"weapon·1",·"damage"));·/*·Prints:·503 |
108 | */ | 108 | */ |
109 | al_destroy_config(cfg); | 109 | al_destroy_config(cfg); |
110 | ******·ALLEGRO_CONFIG·****** | 110 | ******·ALLEGRO_CONFIG·****** |
111 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; | 111 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; |
112 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; | ||
113 | Source_Code | 112 | Source_Code |
114 | An·abstract·configuration·structure. | 113 | An·abstract·configuration·structure. |
115 | ******·ALLEGRO_CONFIG_SECTION·****** | 114 | ******·ALLEGRO_CONFIG_SECTION·****** |
116 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | 115 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; |
117 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | ||
118 | Source_Code | 116 | Source_Code |
119 | An·opaque·structure·used·for·iterating·across·sections·in·a·configuration | 117 | An·opaque·structure·used·for·iterating·across·sections·in·a·configuration |
120 | structure. | 118 | structure. |
121 | See·also:·al_get_first_config_section,·al_get_next_config_section | 119 | See·also:·al_get_first_config_section,·al_get_next_config_section |
122 | ******·ALLEGRO_CONFIG_ENTRY·****** | 120 | ******·ALLEGRO_CONFIG_ENTRY·****** |
123 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | 121 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; |
124 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | ||
125 | Source_Code | 122 | Source_Code |
126 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration | 123 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration |
127 | section. | 124 | section. |
128 | See·also:·al_get_first_config_entry,·al_get_next_config_entry | 125 | See·also:·al_get_first_config_entry,·al_get_next_config_entry |
129 | ******·al_create_config·****** | 126 | ******·al_create_config·****** |
130 | ALLEGRO_CONFIG·*al_create_config(void) | 127 | ALLEGRO_CONFIG·*al_create_config(void) |
131 | Source_Code | 128 | Source_Code |
Offset 256, 8 lines modified | Offset 253, 8 lines modified | ||
256 | ******·al_merge_config_into·****** | 253 | ******·al_merge_config_into·****** |
257 | void·al_merge_config_into(ALLEGRO_CONFIG·*master,·const·ALLEGRO_CONFIG·*add) | 254 | void·al_merge_config_into(ALLEGRO_CONFIG·*master,·const·ALLEGRO_CONFIG·*add) |
258 | Source_Code | 255 | Source_Code |
259 | Merge·one·configuration·structure·into·another.·Values·in·configuration | 256 | Merge·one·configuration·structure·into·another.·Values·in·configuration |
260 | âaddâ·override·those·in·âmasterâ.·âmasterâ·is·modified.·Comments | 257 | âaddâ·override·those·in·âmasterâ.·âmasterâ·is·modified.·Comments |
261 | from·âaddâ·are·not·retained. | 258 | from·âaddâ·are·not·retained. |
262 | See·also:·al_merge_config | 259 | See·also:·al_merge_config |
263 | Allegro·version·5.2.6·-·Last·updated:·202 | 260 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:31·UTC |
Offset 240, 12 lines modified | Offset 240, 12 lines modified | ||
240 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a>···<span·class="dt">void</span>·(*callback)(ALLEGRO_DISPLAY·*display))</span></code></pre></div> | 240 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a>···<span·class="dt">void</span>·(*callback)(ALLEGRO_DISPLAY·*display))</span></code></pre></div> |
241 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L227">Source·Code</a></p> | 241 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L227">Source·Code</a></p> |
242 | <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> | 242 | <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> |
243 | <p>Pass·NULL·to·disable·the·callback.</p> | 243 | <p>Pass·NULL·to·disable·the·callback.</p> |
244 | <p>Since:·5.1.0</p> | 244 | <p>Since:·5.1.0</p> |
245 | <p·class="timestamp"> | 245 | <p·class="timestamp"> |
246 | Allegro·version·5.2.6 | 246 | Allegro·version·5.2.6 |
247 | ·-·Last·updated:·202 | 247 | ·-·Last·updated:·2024-01-06·13:49:37·UTC |
248 | </p> | 248 | </p> |
249 | </div> | 249 | </div> |
250 | </body> | 250 | </body> |
251 | </html> | 251 | </html> |
Offset 130, 8 lines modified | Offset 130, 8 lines modified | ||
130 | ···void·(*callback)(ALLEGRO_DISPLAY·*display)) | 130 | ···void·(*callback)(ALLEGRO_DISPLAY·*display)) |
131 | Source_Code | 131 | Source_Code |
132 | The·callback·will·be·called·whenever·a·D3D·device·that·has·been·reset·is | 132 | The·callback·will·be·called·whenever·a·D3D·device·that·has·been·reset·is |
133 | restored.·In·the·callback·you·should·restore·any·d3d·resources·you·have·created | 133 | restored.·In·the·callback·you·should·restore·any·d3d·resources·you·have·created |
134 | yourself.·The·callback·receives·the·affected·display·as·a·parameter. | 134 | yourself.·The·callback·receives·the·affected·display·as·a·parameter. |
135 | Pass·NULL·to·disable·the·callback. | 135 | Pass·NULL·to·disable·the·callback. |
136 | Since:·5.1.0 | 136 | Since:·5.1.0 |
137 | Allegro·version·5.2.6·-·Last·updated:·202 | 137 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:37·UTC |
Offset 237, 16 lines modified | Offset 237, 15 lines modified | ||
237 | <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> | 237 | <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> |
238 | <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> | 238 | <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> |
239 | <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> | 239 | <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> |
240 | <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> | 240 | <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> |
241 | <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> | 241 | <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> |
242 | <h1·id="display-creation">Display·creation</h1> | 242 | <h1·id="display-creation">Display·creation</h1> |
243 | <h2·id="allegro_display">ALLEGRO_DISPLAY</h2> | 243 | <h2·id="allegro_display">ALLEGRO_DISPLAY</h2> |
244 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY;</span> | 244 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY;</span></code></pre></div> |
245 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY;</span></code></pre></div> | ||
246 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L108">Source·Code</a></p> | 245 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L108">Source·Code</a></p> |
247 | <p>An·opaque·type·representing·an·open·display·or·window.</p> | 246 | <p>An·opaque·type·representing·an·open·display·or·window.</p> |
248 | <h2·id="al_create_display">al_create_display</h2> | 247 | <h2·id="al_create_display">al_create_display</h2> |
249 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a>ALLEGRO_DISPLAY·*al_create_display(<span·class="dt">int</span>·w,·<span·class="dt">int</span>·h)</span></code></pre></div> | 248 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a>ALLEGRO_DISPLAY·*al_create_display(<span·class="dt">int</span>·w,·<span·class="dt">int</span>·h)</span></code></pre></div> |
250 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source·Code</a></p> | 249 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source·Code</a></p> |
251 | <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> | 250 | <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> |
252 | <p>Returns·NULL·on·error.</p> | 251 | <p>Returns·NULL·on·error.</p> |
Offset 620, 16 lines modified | Offset 619, 15 lines modified | ||
620 | <h2·id="al_set_new_window_title">al_set_new_window_title</h2> | 619 | <h2·id="al_set_new_window_title">al_set_new_window_title</h2> |
621 | <div·class="sourceCode"·id="cb36"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb36-1"><a·href="#cb36-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_new_window_title(<span·class="dt">const</span>·<span·class="dt">char</span>·*title)</span></code></pre></div> | 620 | <div·class="sourceCode"·id="cb36"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb36-1"><a·href="#cb36-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_new_window_title(<span·class="dt">const</span>·<span·class="dt">char</span>·*title)</span></code></pre></div> |
622 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L203">Source·Code</a></p> | 621 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L203">Source·Code</a></p> |
623 | <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> | 622 | <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> |
624 | <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> | 623 | <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> |
625 | <p>Since:·5.1.12</p> | 624 | <p>Since:·5.1.12</p> |
626 | <h2·id="allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</h2> | 625 | <h2·id="allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</h2> |
627 | <div·class="sourceCode"·id="cb37"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb37-1"><a·href="#cb37-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255</span></span> | 626 | <div·class="sourceCode"·id="cb37"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb37-1"><a·href="#cb37-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255</span></span></code></pre></div> |
628 | <span·id="cb37-2"><a·href="#cb37-2"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255</span></span></code></pre></div> | ||
629 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source·Code</a></p> | 627 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source·Code</a></p> |
630 | <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> | 628 | <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> |
631 | <p>See·also:·<a·href="display.html#al_set_new_window_title">al_set_new_window_title</a></p> | 629 | <p>See·also:·<a·href="display.html#al_set_new_window_title">al_set_new_window_title</a></p> |
632 | <p>Since:·5.1.12</p> | 630 | <p>Since:·5.1.12</p> |
633 | <h2·id="al_get_new_window_title">al_get_new_window_title</h2> | 631 | <h2·id="al_get_new_window_title">al_get_new_window_title</h2> |
634 | <div·class="sourceCode"·id="cb38"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb38-1"><a·href="#cb38-1"·aria-hidden="true"></a><span·class="dt">const</span>·<span·class="dt">char</span>·*al_get_new_window_title(<span·class="dt">void</span>)</span></code></pre></div> | 632 | <div·class="sourceCode"·id="cb38"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb38-1"><a·href="#cb38-1"·aria-hidden="true"></a><span·class="dt">const</span>·<span·class="dt">char</span>·*al_get_new_window_title(<span·class="dt">void</span>)</span></code></pre></div> |
635 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L224">Source·Code</a></p> | 633 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L224">Source·Code</a></p> |
Offset 688, 12 lines modified | Offset 686, 12 lines modified | ||
688 | <div·class="sourceCode"·id="cb46"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb46-1"><a·href="#cb46-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_clipboard_has_text(ALLEGRO_DISPLAY·*display)</span></code></pre></div> | 686 | <div·class="sourceCode"·id="cb46"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb46-1"><a·href="#cb46-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_clipboard_has_text(ALLEGRO_DISPLAY·*display)</span></code></pre></div> |
689 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/clipboard.c#L64">Source·Code</a></p> | 687 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/clipboard.c#L64">Source·Code</a></p> |
690 | <p>This·function·returns·true·if·and·only·if·the·clipboard·has·text·available.</p> | 688 | <p>This·function·returns·true·if·and·only·if·the·clipboard·has·text·available.</p> |
691 | <p>Since:·5.1.12</p> | 689 | <p>Since:·5.1.12</p> |
692 | <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> | 690 | <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> |
693 | <p·class="timestamp"> | 691 | <p·class="timestamp"> |
694 | Allegro·version·5.2.6 | 692 | Allegro·version·5.2.6 |
695 | ·-·Last·updated:·202 | 693 | ·-·Last·updated:·2024-01-06·13:49:31·UTC |
696 | </p> | 694 | </p> |
697 | </div> | 695 | </div> |
698 | </body> | 696 | </body> |
699 | </html> | 697 | </html> |
Offset 126, 15 lines modified | Offset 126, 14 lines modified | ||
126 | provides·integration·for·both·(see·the·OpenGL·/·Direct3D·sections),·so·you·can | 126 | provides·integration·for·both·(see·the·OpenGL·/·Direct3D·sections),·so·you·can |
127 | retrieve·the·underlying·textures·of·ALLEGRO_BITMAPs,·for·example. | 127 | retrieve·the·underlying·textures·of·ALLEGRO_BITMAPs,·for·example. |
128 | In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that | 128 | In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that |
129 | displays·will·also·inform·you·about·important·events·via·their·event_sources. | 129 | displays·will·also·inform·you·about·important·events·via·their·event_sources. |
130 | ******·Display·creation·****** | 130 | ******·Display·creation·****** |
131 | *****·ALLEGRO_DISPLAY·***** | 131 | *****·ALLEGRO_DISPLAY·***** |
132 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | 132 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; |
133 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | ||
134 | Source_Code | 133 | Source_Code |
135 | An·opaque·type·representing·an·open·display·or·window. | 134 | An·opaque·type·representing·an·open·display·or·window. |
136 | *****·al_create_display·***** | 135 | *****·al_create_display·***** |
137 | ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h) | 136 | ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h) |
138 | Source_Code | 137 | Source_Code |
139 | Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of | 138 | Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of |
140 | the·display·are·determined·by·the·last·calls·to·al_set_new_display_*.·Default | 139 | the·display·are·determined·by·the·last·calls·to·al_set_new_display_*.·Default |
Offset 619, 15 lines modified | Offset 618, 14 lines modified | ||
619 | static·buffer·of·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·to·store·this,·so·the·length | 618 | static·buffer·of·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·to·store·this,·so·the·length |
620 | of·the·titme·you·set·must·be·less·than·this. | 619 | of·the·titme·you·set·must·be·less·than·this. |
621 | See·also:·al_set_window_title,·al_get_new_window_title,·al_create_display, | 620 | See·also:·al_set_window_title,·al_get_new_window_title,·al_create_display, |
622 | ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE | 621 | ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE |
623 | Since:·5.1.12 | 622 | Since:·5.1.12 |
624 | *****·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·***** | 623 | *****·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·***** |
625 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 | 624 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 |
626 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 | ||
627 | Source_Code | 625 | Source_Code |
628 | This·is·the·maximum·size·of·the·title·that·can·be·set·with | 626 | This·is·the·maximum·size·of·the·title·that·can·be·set·with |
629 | al_set_new_window_title. | 627 | al_set_new_window_title. |
630 | See·also:·al_set_new_window_title | 628 | See·also:·al_set_new_window_title |
631 | Since:·5.1.12 | 629 | Since:·5.1.12 |
632 | *****·al_get_new_window_title·***** | 630 | *****·al_get_new_window_title·***** |
633 | const·char·*al_get_new_window_title(void) | 631 | const·char·*al_get_new_window_title(void) |
Offset 706, 8 lines modified | Offset 704, 8 lines modified | ||
706 | See·also:·al_get_clipboard_text,·al_clipboard_has_text | 704 | See·also:·al_get_clipboard_text,·al_clipboard_has_text |
707 | *****·al_clipboard_has_text·***** | 705 | *****·al_clipboard_has_text·***** |
708 | bool·al_clipboard_has_text(ALLEGRO_DISPLAY·*display) | 706 | bool·al_clipboard_has_text(ALLEGRO_DISPLAY·*display) |
709 | Source_Code | 707 | Source_Code |
710 | This·function·returns·true·if·and·only·if·the·clipboard·has·text·available. | 708 | This·function·returns·true·if·and·only·if·the·clipboard·has·text·available. |
711 | Since:·5.1.12 | 709 | Since:·5.1.12 |
712 | See·also:·al_set_clipboard_text,·al_get_clipboard_text | 710 | See·also:·al_set_clipboard_text,·al_get_clipboard_text |
713 | Allegro·version·5.2.6·-·Last·updated:·202 | 711 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:31·UTC |
Offset 230, 16 lines modified | Offset 230, 15 lines modified | ||
230 | <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> | 230 | <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> |
231 | <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> | 231 | <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> |
232 | <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> | 232 | <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> |
233 | <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> | 233 | <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> |
234 | <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> | 234 | <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> |
235 | <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> | 235 | <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> |
236 | <h1·id="allegro_event">ALLEGRO_EVENT</h1> | 236 | <h1·id="allegro_event">ALLEGRO_EVENT</h1> |
237 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT;</span> | 237 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT;</span></code></pre></div> |
238 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT;</span></code></pre></div> | ||
239 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L202">Source·Code</a></p> | 238 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L202">Source·Code</a></p> |
240 | <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> | 239 | <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> |
241 | <dl> | 240 | <dl> |
242 | <dt>type·(ALLEGRO_EVENT_TYPE)</dt> | 241 | <dt>type·(ALLEGRO_EVENT_TYPE)</dt> |
243 | <dd>Indicates·the·type·of·event. | 242 | <dd>Indicates·the·type·of·event. |
244 | </dd> | 243 | </dd> |
245 | <dt>any.source·(ALLEGRO_EVENT_SOURCE·*)</dt> | 244 | <dt>any.source·(ALLEGRO_EVENT_SOURCE·*)</dt> |
Offset 643, 16 lines modified | Offset 642, 15 lines modified | ||
643 | <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> | 642 | <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> |
644 | <dl> | 643 | <dl> |
645 | <dt>display.source·(ALLEGRO_DISPLAY·*)</dt> | 644 | <dt>display.source·(ALLEGRO_DISPLAY·*)</dt> |
646 | <dd>The·display·which·was·disconnected. | 645 | <dd>The·display·which·was·disconnected. |
647 | </dd> | 646 | </dd> |
648 | </dl> | 647 | </dl> |
649 | <h1·id="allegro_user_event">ALLEGRO_USER_EVENT</h1> | 648 | <h1·id="allegro_user_event">ALLEGRO_USER_EVENT</h1> |
650 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT;</span> | 649 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT;</span></code></pre></div> |
651 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT;</span></code></pre></div> | ||
652 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L186">Source·Code</a></p> | 650 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L186">Source·Code</a></p> |
653 | <p>An·event·structure·that·can·be·emitted·by·user·event·sources.·These·are·the·public·fields:</p> | 651 | <p>An·event·structure·that·can·be·emitted·by·user·event·sources.·These·are·the·public·fields:</p> |
654 | <ul> | 652 | <ul> |
655 | <li>ALLEGRO_EVENT_SOURCE·*source;</li> | 653 | <li>ALLEGRO_EVENT_SOURCE·*source;</li> |
656 | <li>intptr_t·data1;</li> | 654 | <li>intptr_t·data1;</li> |
657 | <li>intptr_t·data2;</li> | 655 | <li>intptr_t·data2;</li> |
658 | <li>intptr_t·data3;</li> | 656 | <li>intptr_t·data3;</li> |
Offset 677, 35 lines modified | Offset 675, 31 lines modified | ||
677 | <span·id="cb4-8"><a·href="#cb4-8"·aria-hidden="true"></a>my_event.user.data1·=·<span·class="dv">1</span>;</span> | 675 | <span·id="cb4-8"><a·href="#cb4-8"·aria-hidden="true"></a>my_event.user.data1·=·<span·class="dv">1</span>;</span> |
678 | <span·id="cb4-9"><a·href="#cb4-9"·aria-hidden="true"></a>my_event.user.data2·=·&some_var;</span> | 676 | <span·id="cb4-9"><a·href="#cb4-9"·aria-hidden="true"></a>my_event.user.data2·=·&some_var;</span> |
679 | <span·id="cb4-10"><a·href="#cb4-10"·aria-hidden="true"></a></span> | 677 | <span·id="cb4-10"><a·href="#cb4-10"·aria-hidden="true"></a></span> |
680 | <span·id="cb4-11"><a·href="#cb4-11"·aria-hidden="true"></a>al_emit_user_event(&my_event_source,·&my_event,·NULL);</span></code></pre></div> | 678 | <span·id="cb4-11"><a·href="#cb4-11"·aria-hidden="true"></a>al_emit_user_event(&my_event_source,·&my_event,·NULL);</span></code></pre></div> |
681 | <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> | 679 | <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> |
682 | <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> | 680 | <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> |
683 | <h1·id="allegro_event_queue">ALLEGRO_EVENT_QUEUE</h1> | 681 | <h1·id="allegro_event_queue">ALLEGRO_EVENT_QUEUE</h1> |
684 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE;</span> | 682 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE;</span></code></pre></div> |
685 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE;</span></code></pre></div> | ||
686 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L243">Source·Code</a></p> | 683 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L243">Source·Code</a></p> |
687 | <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> | 684 | <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> |
688 | <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> | 685 | <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> |
689 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> | 686 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> |
690 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE;</span> | 687 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE;</span></code></pre></div> |
691 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE;</span></code></pre></div> | ||
692 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L72">Source·Code</a></p> | 688 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L72">Source·Code</a></p> |
693 | <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>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> |
694 | <p>You·may·create·your·own·“user”·event·sources·that·emit·custom·events.</p> | 690 | <p>You·may·create·your·own·“user”·event·sources·that·emit·custom·events.</p> |
695 | <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 | <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> |
696 | <h1·id="allegro_event_type">ALLEGRO_EVENT_TYPE</h1> | 692 | <h1·id="allegro_event_type">ALLEGRO_EVENT_TYPE</h1> |
697 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·ALLEGRO_EVENT_TYPE;</span> | 693 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·ALLEGRO_EVENT_TYPE;</span></code></pre></div> |
698 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·ALLEGRO_EVENT_TYPE;</span></code></pre></div> | ||
699 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source·Code</a></p> | 694 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source·Code</a></p> |
700 | <p>An·integer·used·to·distinguish·between·different·types·of·events.</p> | 695 | <p>An·integer·used·to·distinguish·between·different·types·of·events.</p> |
701 | <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> | 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> |
702 | <h1·id="allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</h1> | 697 | <h1·id="allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</h1> |
703 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d)</span></span> | 698 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d)</span></span></code></pre></div> |
704 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d)</span></span></code></pre></div> | ||
705 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L67">Source·Code</a></p> | 699 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L67">Source·Code</a></p> |
706 | <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> | 700 | <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> |
707 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="er">#defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')</span></span></code></pre></div> | 701 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="er">#defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')</span></span></code></pre></div> |
708 | <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> | 702 | <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> |
709 | <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> | 703 | <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> |
710 | <p>If·you·need·multiple·identifiers,·you·could·define·them·like·this:</p> | 704 | <p>If·you·need·multiple·identifiers,·you·could·define·them·like·this:</p> |
711 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="er">#defin··BASE_EVENT···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')</span></span> | 705 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="er">#defin··BASE_EVENT···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')</span></span> |
Offset 717, 16 lines modified | Offset 711, 15 lines modified | ||
717 | <span·id="cb10-7"><a·href="#cb10-7"·aria-hidden="true"></a><span·class="kw">enum</span>·{</span> | 711 | <span·id="cb10-7"><a·href="#cb10-7"·aria-hidden="true"></a><span·class="kw">enum</span>·{</span> |
718 | <span·id="cb10-8"><a·href="#cb10-8"·aria-hidden="true"></a>···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>),</span> | 712 | <span·id="cb10-8"><a·href="#cb10-8"·aria-hidden="true"></a>···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>),</span> |
719 | <span·id="cb10-9"><a·href="#cb10-9"·aria-hidden="true"></a>···MEOW_EVENT,</span> | 713 | <span·id="cb10-9"><a·href="#cb10-9"·aria-hidden="true"></a>···MEOW_EVENT,</span> |
720 | <span·id="cb10-10"><a·href="#cb10-10"·aria-hidden="true"></a>···SQUAWK_EVENT</span> | 714 | <span·id="cb10-10"><a·href="#cb10-10"·aria-hidden="true"></a>···SQUAWK_EVENT</span> |
721 | <span·id="cb10-11"><a·href="#cb10-11"·aria-hidden="true"></a>};</span></code></pre></div> | 715 | <span·id="cb10-11"><a·href="#cb10-11"·aria-hidden="true"></a>};</span></code></pre></div> |
722 | <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> | 716 | <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> |
723 | <h1·id="allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</h1> | 717 | <h1·id="allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</h1> |
724 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512)</span></span> | 718 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512)</span></span></code></pre></div> |
725 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512)</span></span></code></pre></div> | ||
726 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L62">Source·Code</a></p> | 719 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L62">Source·Code</a></p> |
727 | <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> | 720 | <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> |
728 | <h1·id="al_create_event_queue">al_create_event_queue</h1> | 721 | <h1·id="al_create_event_queue">al_create_event_queue</h1> |
729 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a>ALLEGRO_EVENT_QUEUE·*al_create_event_queue(<span·class="dt">void</span>)</span></code></pre></div> | 722 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a>ALLEGRO_EVENT_QUEUE·*al_create_event_queue(<span·class="dt">void</span>)</span></code></pre></div> |
730 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L90">Source·Code</a></p> | 723 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L90">Source·Code</a></p> |
731 | <p>Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created·object·if·successful.·Returns·NULL·on·error.</p> | 724 | <p>Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created·object·if·successful.·Returns·NULL·on·error.</p> |
732 | <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> | 725 | <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 874, 12 lines modified | Offset 867, 12 lines modified | ||
874 | <h1·id="al_set_event_source_data">al_set_event_source_data</h1> | 867 | <h1·id="al_set_event_source_data">al_set_event_source_data</h1> |
875 | <div·class="sourceCode"·id="cb33"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb33-1"><a·href="#cb33-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_event_source_data(ALLEGRO_EVENT_SOURCE·*source,·<span·class="dt">intptr_t</span>·data)</span></code></pre></div> | 868 | <div·class="sourceCode"·id="cb33"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb33-1"><a·href="#cb33-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_event_source_data(ALLEGRO_EVENT_SOURCE·*source,·<span·class="dt">intptr_t</span>·data)</span></code></pre></div> |
876 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/evtsrc.c#L264">Source·Code</a></p> | 869 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/evtsrc.c#L264">Source·Code</a></p> |
877 | <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> | 870 | <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> |
878 | <p>See·also:·<a·href="events.html#al_get_event_source_data">al_get_event_source_data</a></p> | 871 | <p>See·also:·<a·href="events.html#al_get_event_source_data">al_get_event_source_data</a></p> |
879 | <p·class="timestamp"> | 872 | <p·class="timestamp"> |
880 | Allegro·version·5.2.6 | 873 | Allegro·version·5.2.6 |
881 | ·-·Last·updated:·202 | 874 | ·-·Last·updated:·2024-01-06·13:49:31·UTC |
882 | </p> | 875 | </p> |
883 | </div> | 876 | </div> |
884 | </body> | 877 | </body> |
885 | </html> | 878 | </html> |
Offset 121, 15 lines modified | Offset 121, 14 lines modified | ||
121 | events·that·can·be·generated·by·user-defined·event·sources. | 121 | events·that·can·be·generated·by·user-defined·event·sources. |
122 | The·appropriate·reaction·to·an·event·is·determined·by·examining·the·fields·of | 122 | The·appropriate·reaction·to·an·event·is·determined·by·examining·the·fields·of |
123 | the·ALLEGRO_EVENT·union·according·to·the·event·type. | 123 | the·ALLEGRO_EVENT·union·according·to·the·event·type. |
124 | In·addition·to·the·events·sent·by·Allegro·core,·thereâs·also·events·send·by | 124 | In·addition·to·the·events·sent·by·Allegro·core,·thereâs·also·events·send·by |
125 | the·addons,·see·ALLEGRO_AUDIO_EVENT_TYPE·and·ALLEGRO_VIDEO_EVENT_TYPE. | 125 | the·addons,·see·ALLEGRO_AUDIO_EVENT_TYPE·and·ALLEGRO_VIDEO_EVENT_TYPE. |
126 | ******·ALLEGRO_EVENT·****** | 126 | ******·ALLEGRO_EVENT·****** |
127 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; | 127 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; |
128 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; | ||
129 | Source_Code | 128 | Source_Code |
130 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it·is·an | 129 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it·is·an |
131 | object·large·enough·to·hold·the·data·of·any·event·type.·All·events·have·the | 130 | object·large·enough·to·hold·the·data·of·any·event·type.·All·events·have·the |
132 | following·fields·in·common: | 131 | following·fields·in·common: |
133 | ··type·(ALLEGRO_EVENT_TYPE) | 132 | ··type·(ALLEGRO_EVENT_TYPE) |
134 | ······Indicates·the·type·of·event. | 133 | ······Indicates·the·type·of·event. |
135 | ··any.source·(ALLEGRO_EVENT_SOURCE·*) | 134 | ··any.source·(ALLEGRO_EVENT_SOURCE·*) |
Offset 465, 15 lines modified | Offset 464, 14 lines modified | ||
465 | This·event·is·sent·when·a·physical·display·is·disconnected·from·the·device | 464 | This·event·is·sent·when·a·physical·display·is·disconnected·from·the·device |
466 | Allegro·runs·on.·Currently,·on·most·platforms,·Allegro·supports·only·a·single | 465 | Allegro·runs·on.·Currently,·on·most·platforms,·Allegro·supports·only·a·single |
467 | physical·display.·However,·on·iOS,·a·secondary·physical·display·is·supported. | 466 | physical·display.·However,·on·iOS,·a·secondary·physical·display·is·supported. |
468 | ··display.source·(ALLEGRO_DISPLAY·*) | 467 | ··display.source·(ALLEGRO_DISPLAY·*) |
469 | ······The·display·which·was·disconnected. | 468 | ······The·display·which·was·disconnected. |
470 | ******·ALLEGRO_USER_EVENT·****** | 469 | ******·ALLEGRO_USER_EVENT·****** |
471 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; | 470 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; |
472 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; | ||
473 | Source_Code | 471 | Source_Code |
474 | An·event·structure·that·can·be·emitted·by·user·event·sources.·These·are·the | 472 | An·event·structure·that·can·be·emitted·by·user·event·sources.·These·are·the |
475 | public·fields: | 473 | public·fields: |
476 | ····*·ALLEGRO_EVENT_SOURCE·*source; | 474 | ····*·ALLEGRO_EVENT_SOURCE·*source; |
477 | ····*·intptr_t·data1; | 475 | ····*·intptr_t·data1; |
478 | ····*·intptr_t·data2; | 476 | ····*·intptr_t·data2; |
479 | ····*·intptr_t·data3; | 477 | ····*·intptr_t·data3; |
Offset 499, 38 lines modified | Offset 497, 34 lines modified | ||
499 | al_emit_user_event(&my_event_source,·&my_event,·NULL); | 497 | al_emit_user_event(&my_event_source,·&my_event,·NULL); |
500 | Event·type·identifiers·for·user·events·are·assigned·by·the·user.·Please·see·the | 498 | Event·type·identifiers·for·user·events·are·assigned·by·the·user.·Please·see·the |
501 | documentation·for·ALLEGRO_GET_EVENT_TYPE·for·the·rules·you·should·follow·when | 499 | documentation·for·ALLEGRO_GET_EVENT_TYPE·for·the·rules·you·should·follow·when |
502 | assigning·identifiers. | 500 | assigning·identifiers. |
503 | See·also:·al_emit_user_event,·ALLEGRO_GET_EVENT_TYPE,·al_init_user_event_source | 501 | See·also:·al_emit_user_event,·ALLEGRO_GET_EVENT_TYPE,·al_init_user_event_source |
504 | ******·ALLEGRO_EVENT_QUEUE·****** | 502 | ******·ALLEGRO_EVENT_QUEUE·****** |
505 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | 503 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; |
506 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | ||
507 | Source_Code | 504 | Source_Code |
508 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are | 505 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are |
509 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. | 506 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. |
510 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. | 507 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. |
511 | See·also:·al_create_event_queue,·al_destroy_event_queue | 508 | See·also:·al_create_event_queue,·al_destroy_event_queue |
512 | ******·ALLEGRO_EVENT_SOURCE·****** | 509 | ******·ALLEGRO_EVENT_SOURCE·****** |
513 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | 510 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; |
514 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | ||
515 | Source_Code | 511 | Source_Code |
516 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an | 512 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an |
517 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE | 513 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE |
518 | pointer·from·an·ALLEGRO_DISPLAY·with·al_get_display_event_source. | 514 | pointer·from·an·ALLEGRO_DISPLAY·with·al_get_display_event_source. |
519 | You·may·create·your·own·âuserâ·event·sources·that·emit·custom·events. | 515 | You·may·create·your·own·âuserâ·event·sources·that·emit·custom·events. |
520 | See·also:·ALLEGRO_EVENT,·al_init_user_event_source,·al_emit_user_event | 516 | See·also:·ALLEGRO_EVENT,·al_init_user_event_source,·al_emit_user_event |
521 | ******·ALLEGRO_EVENT_TYPE·****** | 517 | ******·ALLEGRO_EVENT_TYPE·****** |
522 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; | 518 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; |
523 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; | ||
524 | Source_Code | 519 | Source_Code |
525 | An·integer·used·to·distinguish·between·different·types·of·events. | 520 | An·integer·used·to·distinguish·between·different·types·of·events. |
526 | See·also:·ALLEGRO_EVENT,·ALLEGRO_GET_EVENT_TYPE,·ALLEGRO_EVENT_TYPE_IS_USER | 521 | See·also:·ALLEGRO_EVENT,·ALLEGRO_GET_EVENT_TYPE,·ALLEGRO_EVENT_TYPE_IS_USER |
527 | ******·ALLEGRO_GET_EVENT_TYPE·****** | 522 | ******·ALLEGRO_GET_EVENT_TYPE·****** |
528 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) | 523 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) |
529 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) | ||
530 | Source_Code | 524 | Source_Code |
531 | Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not | 525 | Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not |
532 | necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example: | 526 | necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example: |
533 | #defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE('M','I','N','E') | 527 | #defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE('M','I','N','E') |
534 | IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Donât·use·anything | 528 | IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Donât·use·anything |
535 | lower·than·ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0). | 529 | lower·than·ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0). |
536 | You·should·try·to·make·your·IDs·unique·so·they·donât·clash·with·any·3rd·party | 530 | You·should·try·to·make·your·IDs·unique·so·they·donât·clash·with·any·3rd·party |
Offset 546, 15 lines modified | Offset 540, 14 lines modified | ||
546 | ···BARK_EVENT·=·ALLEGRO_GET_EVENT_TYPE('M','I','N','E'), | 540 | ···BARK_EVENT·=·ALLEGRO_GET_EVENT_TYPE('M','I','N','E'), |
547 | ···MEOW_EVENT, | 541 | ···MEOW_EVENT, |
548 | ···SQUAWK_EVENT | 542 | ···SQUAWK_EVENT |
549 | }; | 543 | }; |
550 | See·also:·ALLEGRO_EVENT,·ALLEGRO_USER_EVENT,·ALLEGRO_EVENT_TYPE_IS_USER | 544 | See·also:·ALLEGRO_EVENT,·ALLEGRO_USER_EVENT,·ALLEGRO_EVENT_TYPE_IS_USER |
551 | ******·ALLEGRO_EVENT_TYPE_IS_USER·****** | 545 | ******·ALLEGRO_EVENT_TYPE_IS_USER·****** |
552 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) | 546 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) |
553 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) | ||
554 | Source_Code | 547 | Source_Code |
555 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event·type, | 548 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event·type, |
556 | i.e. one·of·those·described·in·ALLEGRO_EVENT_TYPE. | 549 | i.e. one·of·those·described·in·ALLEGRO_EVENT_TYPE. |
557 | ******·al_create_event_queue·****** | 550 | ******·al_create_event_queue·****** |
558 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) | 551 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) |
559 | Source_Code | 552 | Source_Code |
560 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created | 553 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created |
Offset 761, 8 lines modified | Offset 754, 8 lines modified | ||
761 | ******·al_set_event_source_data·****** | 754 | ******·al_set_event_source_data·****** |
762 | void·al_set_event_source_data(ALLEGRO_EVENT_SOURCE·*source,·intptr_t·data) | 755 | void·al_set_event_source_data(ALLEGRO_EVENT_SOURCE·*source,·intptr_t·data) |
763 | Source_Code | 756 | Source_Code |
764 | Assign·the·abstract·user·data·to·the·event·source.·Allegro·does·not·use·the | 757 | Assign·the·abstract·user·data·to·the·event·source.·Allegro·does·not·use·the |
765 | data·internally·for·anything;·it·is·simply·meant·as·a·convenient·way·to | 758 | data·internally·for·anything;·it·is·simply·meant·as·a·convenient·way·to |
766 | associate·your·own·data·or·objects·with·events. | 759 | associate·your·own·data·or·objects·with·events. |
767 | See·also:·al_get_event_source_data | 760 | See·also:·al_get_event_source_data |
768 | Allegro·version·5.2.6·-·Last·updated:·202 | 761 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:31·UTC |
Offset 210, 21 lines modified | Offset 210, 19 lines modified | ||
210 | <li><a·href="#al_get_file_userdata">al_get_file_userdata</a></li> | 210 | <li><a·href="#al_get_file_userdata">al_get_file_userdata</a></li> |
211 | </ul></li> | 211 | </ul></li> |
212 | </ul> | 212 | </ul> |
213 | </nav> | 213 | </nav> |
214 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 214 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
215 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 215 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
216 | <h1·id="allegro_file">ALLEGRO_FILE</h1> | 216 | <h1·id="allegro_file">ALLEGRO_FILE</h1> |
217 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE;</span> | 217 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE;</span></code></pre></div> |
218 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE·ALLEGRO_FILE;</span></code></pre></div> | ||
219 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L15">Source·Code</a></p> | 218 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L15">Source·Code</a></p> |
220 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk·or·a·virtual·file.</p> | 219 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk·or·a·virtual·file.</p> |
221 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> | 220 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> |
222 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span> | 221 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div> |
223 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div> | ||
224 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source·Code</a></p> | 222 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source·Code</a></p> |
225 | <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> | 223 | <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> |
226 | <p>The·fields·are:</p> | 224 | <p>The·fields·are:</p> |
227 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><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);</span> | 225 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><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);</span> |
228 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="dt">bool</span>··········(*fi_fclose)(ALLEGRO_FILE·*f);</span> | 226 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="dt">bool</span>··········(*fi_fclose)(ALLEGRO_FILE·*f);</span> |
229 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"></a><span·class="dt">size_t</span>········(*fi_fread)(ALLEGRO_FILE·*f,·<span·class="dt">void</span>·*ptr,·<span·class="dt">size_t</span>·size);</span> | 227 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"></a><span·class="dt">size_t</span>········(*fi_fread)(ALLEGRO_FILE·*f,·<span·class="dt">void</span>·*ptr,·<span·class="dt">size_t</span>·size);</span> |
230 | <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"></a><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);</span> | 228 | <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"></a><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);</span> |
Offset 237, 16 lines modified | Offset 235, 15 lines modified | ||
237 | <span·id="cb4-11"><a·href="#cb4-11"·aria-hidden="true"></a><span·class="dt">void</span>··········(*fi_fclearerr)(ALLEGRO_FILE·*f);</span> | 235 | <span·id="cb4-11"><a·href="#cb4-11"·aria-hidden="true"></a><span·class="dt">void</span>··········(*fi_fclearerr)(ALLEGRO_FILE·*f);</span> |
238 | <span·id="cb4-12"><a·href="#cb4-12"·aria-hidden="true"></a><span·class="dt">int</span>···········(*fi_fungetc)(ALLEGRO_FILE·*f,·<span·class="dt">int</span>·c);</span> | 236 | <span·id="cb4-12"><a·href="#cb4-12"·aria-hidden="true"></a><span·class="dt">int</span>···········(*fi_fungetc)(ALLEGRO_FILE·*f,·<span·class="dt">int</span>·c);</span> |
239 | <span·id="cb4-13"><a·href="#cb4-13"·aria-hidden="true"></a>off_t·········(*fi_fsize)(ALLEGRO_FILE·*f);</span></code></pre></div> | 237 | <span·id="cb4-13"><a·href="#cb4-13"·aria-hidden="true"></a>off_t·········(*fi_fsize)(ALLEGRO_FILE·*f);</span></code></pre></div> |
240 | <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> | 238 | <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> |
241 | <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> | 239 | <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> |
242 | <p>If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16·char·long·buffer·will·be·used.</p> | 240 | <p>If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16·char·long·buffer·will·be·used.</p> |
243 | <h1·id="allegro_seek">ALLEGRO_SEEK</h1> | 241 | <h1·id="allegro_seek">ALLEGRO_SEEK</h1> |
244 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</span> | 242 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</span></code></pre></div> |
245 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</span></code></pre></div> | ||
246 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L40">Source·Code</a></p> | 243 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L40">Source·Code</a></p> |
247 | <ul> | 244 | <ul> |
248 | <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li> | 245 | <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li> |
249 | <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li> | 246 | <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li> |
250 | <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li> | 247 | <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li> |
251 | </ul> | 248 | </ul> |
252 | <p>See·also:·<a·href="file.html#al_fseek">al_fseek</a></p> | 249 | <p>See·also:·<a·href="file.html#al_fseek">al_fseek</a></p> |
Offset 516, 12 lines modified | Offset 513, 12 lines modified | ||
516 | <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> | 513 | <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> |
517 | <h2·id="al_get_file_userdata">al_get_file_userdata</h2> | 514 | <h2·id="al_get_file_userdata">al_get_file_userdata</h2> |
518 | <div·class="sourceCode"·id="cb44"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb44-1"><a·href="#cb44-1"·aria-hidden="true"></a><span·class="dt">void</span>·*al_get_file_userdata(ALLEGRO_FILE·*f)</span></code></pre></div> | 515 | <div·class="sourceCode"·id="cb44"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb44-1"><a·href="#cb44-1"·aria-hidden="true"></a><span·class="dt">void</span>·*al_get_file_userdata(ALLEGRO_FILE·*f)</span></code></pre></div> |
519 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L533">Source·Code</a></p> | 516 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L533">Source·Code</a></p> |
520 | <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> | 517 | <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> |
521 | <p·class="timestamp"> | 518 | <p·class="timestamp"> |
522 | Allegro·version·5.2.6 | 519 | Allegro·version·5.2.6 |
523 | ·-·Last·updated:·202 | 520 | ·-·Last·updated:·2024-01-06·13:49:32·UTC |
524 | </p> | 521 | </p> |
525 | </div> | 522 | </div> |
526 | </body> | 523 | </body> |
527 | </html> | 524 | </html> |
Offset 89, 21 lines modified | Offset 89, 19 lines modified | ||
89 | ··········o·al_get_new_file_interface | 89 | ··········o·al_get_new_file_interface |
90 | ··········o·al_create_file_handle | 90 | ··········o·al_create_file_handle |
91 | ··········o·al_get_file_userdata | 91 | ··········o·al_get_file_userdata |
92 | These·functions·are·declared·in·the·main·Allegro·header·file: | 92 | These·functions·are·declared·in·the·main·Allegro·header·file: |
93 | ·#include·<allegro5/allegro.h> | 93 | ·#include·<allegro5/allegro.h> |
94 | ******·ALLEGRO_FILE·****** | 94 | ******·ALLEGRO_FILE·****** |
95 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | 95 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; |
96 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | ||
97 | Source_Code | 96 | Source_Code |
98 | An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk | 97 | An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk |
99 | or·a·virtual·file. | 98 | or·a·virtual·file. |
100 | ******·ALLEGRO_FILE_INTERFACE·****** | 99 | ******·ALLEGRO_FILE_INTERFACE·****** |
101 | typedef·struct·ALLEGRO_FILE_INTERFACE | 100 | typedef·struct·ALLEGRO_FILE_INTERFACE |
102 | typedef·struct·ALLEGRO_FILE_INTERFACE | ||
103 | Source_Code | 101 | Source_Code |
104 | A·structure·containing·function·pointers·to·handle·a·type·of·âfileâ,·real | 102 | A·structure·containing·function·pointers·to·handle·a·type·of·âfileâ,·real |
105 | or·virtual.·See·the·full·discussion·in·al_set_new_file_interface. | 103 | or·virtual.·See·the·full·discussion·in·al_set_new_file_interface. |
106 | The·fields·are: | 104 | The·fields·are: |
107 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); | 105 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); |
108 | bool··········(*fi_fclose)(ALLEGRO_FILE·*f); | 106 | bool··········(*fi_fclose)(ALLEGRO_FILE·*f); |
109 | size_t········(*fi_fread)(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size); | 107 | size_t········(*fi_fread)(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size); |
Offset 124, 15 lines modified | Offset 122, 14 lines modified | ||
124 | will·also·return·NULL. | 122 | will·also·return·NULL. |
125 | The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but·Allegro·will | 123 | The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but·Allegro·will |
126 | free·the·ALLEGRO_FILE·handle. | 124 | free·the·ALLEGRO_FILE·handle. |
127 | If·fi_fungetc·is·NULL,·then·Allegroâs·default·implementation·of·a·16·char | 125 | If·fi_fungetc·is·NULL,·then·Allegroâs·default·implementation·of·a·16·char |
128 | long·buffer·will·be·used. | 126 | long·buffer·will·be·used. |
129 | ******·ALLEGRO_SEEK·****** | 127 | ******·ALLEGRO_SEEK·****** |
130 | typedef·enum·ALLEGRO_SEEK | 128 | typedef·enum·ALLEGRO_SEEK |
131 | typedef·enum·ALLEGRO_SEEK | ||
132 | Source_Code | 129 | Source_Code |
133 | ····*·ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file | 130 | ····*·ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file |
134 | ····*·ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position | 131 | ····*·ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position |
135 | ····*·ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file | 132 | ····*·ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file |
136 | See·also:·al_fseek | 133 | See·also:·al_fseek |
137 | ******·al_fopen·****** | 134 | ******·al_fopen·****** |
138 | ALLEGRO_FILE·*al_fopen(const·char·*path,·const·char·*mode) | 135 | ALLEGRO_FILE·*al_fopen(const·char·*path,·const·char·*mode) |
Offset 477, 8 lines modified | Offset 474, 8 lines modified | ||
477 | finished·with·it. | 474 | finished·with·it. |
478 | See·also:·al_fopen,·al_fclose,·al_set_new_file_interface | 475 | See·also:·al_fopen,·al_fclose,·al_set_new_file_interface |
479 | *****·al_get_file_userdata·***** | 476 | *****·al_get_file_userdata·***** |
480 | void·*al_get_file_userdata(ALLEGRO_FILE·*f) | 477 | void·*al_get_file_userdata(ALLEGRO_FILE·*f) |
481 | Source_Code | 478 | Source_Code |
482 | Returns·a·pointer·to·the·custom·userdata·that·is·attached·to·the·file·handle. | 479 | Returns·a·pointer·to·the·custom·userdata·that·is·attached·to·the·file·handle. |
483 | This·is·intended·to·be·used·by·functions·that·extend·ALLEGRO_FILE_INTERFACE. | 480 | This·is·intended·to·be·used·by·functions·that·extend·ALLEGRO_FILE_INTERFACE. |
484 | Allegro·version·5.2.6·-·Last·updated:·202 | 481 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:32·UTC |
Offset 189, 16 lines modified | Offset 189, 15 lines modified | ||
189 | <li><a·href="#al_fixhypot">al_fixhypot</a></li> | 189 | <li><a·href="#al_fixhypot">al_fixhypot</a></li> |
190 | </ul></li> | 190 | </ul></li> |
191 | </ul> | 191 | </ul> |
192 | </nav> | 192 | </nav> |
193 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 193 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
194 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 194 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
195 | <h1·id="al_fixed">al_fixed</h1> | 195 | <h1·id="al_fixed">al_fixed</h1> |
196 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="dt">int32_t</span>·al_fixed;</span> | 196 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="dt">int32_t</span>·al_fixed;</span></code></pre></div> |
197 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="dt">int32_t</span>·al_fixed;</span></code></pre></div> | ||
198 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fixed.h#L30">Source·Code</a></p> | 197 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fixed.h#L30">Source·Code</a></p> |
199 | <p>A·fixed·point·number.</p> | 198 | <p>A·fixed·point·number.</p> |
200 | <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> | 199 | <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> |
201 | <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> | 200 | <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> |
202 | <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> | 201 | <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> |
203 | <h1·id="al_itofix">al_itofix</h1> | 202 | <h1·id="al_itofix">al_itofix</h1> |
204 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a>al_fixed·al_itofix(<span·class="dt">int</span>·x);</span></code></pre></div> | 203 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a>al_fixed·al_itofix(<span·class="dt">int</span>·x);</span></code></pre></div> |
Offset 479, 12 lines modified | Offset 478, 12 lines modified | ||
479 | <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> | 478 | <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> |
480 | <h2·id="al_fixhypot">al_fixhypot</h2> | 479 | <h2·id="al_fixhypot">al_fixhypot</h2> |
481 | <div·class="sourceCode"·id="cb42"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb42-1"><a·href="#cb42-1"·aria-hidden="true"></a>al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y)</span></code></pre></div> | 480 | <div·class="sourceCode"·id="cb42"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb42-1"><a·href="#cb42-1"·aria-hidden="true"></a>al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y)</span></code></pre></div> |
482 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source·Code</a></p> | 481 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source·Code</a></p> |
483 | <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> | 482 | <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> |
484 | <p·class="timestamp"> | 483 | <p·class="timestamp"> |
485 | Allegro·version·5.2.6 | 484 | Allegro·version·5.2.6 |
486 | ·-·Last·updated:·202 | 485 | ·-·Last·updated:·2024-01-06·13:49:32·UTC |
487 | </p> | 486 | </p> |
488 | </div> | 487 | </div> |
489 | </body> | 488 | </body> |
490 | </html> | 489 | </html> |
Offset 70, 15 lines modified | Offset 70, 14 lines modified | ||
70 | ··········o·al_fixatan2 | 70 | ··········o·al_fixatan2 |
71 | ··········o·al_fixsqrt | 71 | ··········o·al_fixsqrt |
72 | ··········o·al_fixhypot | 72 | ··········o·al_fixhypot |
73 | These·functions·are·declared·in·the·main·Allegro·header·file: | 73 | These·functions·are·declared·in·the·main·Allegro·header·file: |
74 | ·#include·<allegro5/allegro.h> | 74 | ·#include·<allegro5/allegro.h> |
75 | ******·al_fixed·****** | 75 | ******·al_fixed·****** |
76 | typedef·int32_t·al_fixed; | 76 | typedef·int32_t·al_fixed; |
77 | typedef·int32_t·al_fixed; | ||
78 | Source_Code | 77 | Source_Code |
79 | A·fixed·point·number. | 78 | A·fixed·point·number. |
80 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and | 79 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and |
81 | defines·the·type·al_fixed·to·be·a·signed·32-bit·integer.·The·high·word·is·used | 80 | defines·the·type·al_fixed·to·be·a·signed·32-bit·integer.·The·high·word·is·used |
82 | for·the·integer·part·and·the·low·word·for·the·fraction,·giving·a·range·of·- | 81 | for·the·integer·part·and·the·low·word·for·the·fraction,·giving·a·range·of·- |
83 | 32768·to·32767·and·an·accuracy·of·about·four·or·five·decimal·places.·Fixed | 82 | 32768·to·32767·and·an·accuracy·of·about·four·or·five·decimal·places.·Fixed |
84 | point·numbers·can·be·assigned,·compared,·added,·subtracted,·negated·and·shifted | 83 | point·numbers·can·be·assigned,·compared,·added,·subtracted,·negated·and·shifted |
Offset 440, 8 lines modified | Offset 439, 8 lines modified | ||
440 | errno·is·set·to·EDOM·and·the·function·returns·zero. | 439 | errno·is·set·to·EDOM·and·the·function·returns·zero. |
441 | *****·al_fixhypot·***** | 440 | *****·al_fixhypot·***** |
442 | al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y) | 441 | al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y) |
443 | Source_Code | 442 | Source_Code |
444 | Fixed·point·hypotenuse·(returns·the·square·root·of·x*x·+·y*y).·This·should·be | 443 | Fixed·point·hypotenuse·(returns·the·square·root·of·x*x·+·y*y).·This·should·be |
445 | better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much | 444 | better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much |
446 | smaller. | 445 | smaller. |
447 | Allegro·version·5.2.6·-·Last·updated:·202 | 446 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:32·UTC |
Offset 227, 21 lines modified | Offset 227, 19 lines modified | ||
227 | </ul></li> | 227 | </ul></li> |
228 | </ul> | 228 | </ul> |
229 | </nav> | 229 | </nav> |
230 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_font.</p> | 230 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_font.</p> |
231 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_font.h></span></span></code></pre></div> | 231 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_font.h></span></span></code></pre></div> |
232 | <h1·id="general-font-routines">General·font·routines</h1> | 232 | <h1·id="general-font-routines">General·font·routines</h1> |
233 | <h2·id="allegro_font">ALLEGRO_FONT</h2> | 233 | <h2·id="allegro_font">ALLEGRO_FONT</h2> |
234 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FONT·ALLEGRO_FONT;</span> | 234 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FONT·ALLEGRO_FONT;</span></code></pre></div> |
235 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FONT·ALLEGRO_FONT;</span></code></pre></div> | ||
236 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L48">Source·Code</a></p> | 235 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L48">Source·Code</a></p> |
237 | <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> | 236 | <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> |
238 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> | 237 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> |
239 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH;</span> | 238 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH;</span></code></pre></div> |
240 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH;</span></code></pre></div> | ||
241 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source·Code</a></p> | 239 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source·Code</a></p> |
242 | <p>A·structure·containing·the·properties·of·a·character·in·a·font.</p> | 240 | <p>A·structure·containing·the·properties·of·a·character·in·a·font.</p> |
243 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·{</span> | 241 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·{</span> |
244 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a>···ALLEGRO_BITMAP·*bitmap;···<span·class="co">//·the·bitmap·the·character·is·on</span></span> | 242 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a>···ALLEGRO_BITMAP·*bitmap;···<span·class="co">//·the·bitmap·the·character·is·on</span></span> |
245 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"></a>···<span·class="dt">int</span>·x;····················<span·class="co">//·the·x·position·of·the·glyph·on·bitmap</span></span> | 243 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"></a>···<span·class="dt">int</span>·x;····················<span·class="co">//·the·x·position·of·the·glyph·on·bitmap</span></span> |
246 | <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"></a>···<span·class="dt">int</span>·y;····················<span·class="co">//·the·y·position·of·the·glyph·on·bitmap</span></span> | 244 | <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"></a>···<span·class="dt">int</span>·y;····················<span·class="co">//·the·y·position·of·the·glyph·on·bitmap</span></span> |
247 | <span·id="cb4-5"><a·href="#cb4-5"·aria-hidden="true"></a>···<span·class="dt">int</span>·w;····················<span·class="co">//·the·width·of·the·glyph·in·pixels</span></span> | 245 | <span·id="cb4-5"><a·href="#cb4-5"·aria-hidden="true"></a>···<span·class="dt">int</span>·w;····················<span·class="co">//·the·width·of·the·glyph·in·pixels</span></span> |
Offset 257, 62 lines modified | Offset 255, 54 lines modified | ||
257 | <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> | 255 | <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> |
258 | <p>Since:·5.2.1</p> | 256 | <p>Since:·5.2.1</p> |
259 | <blockquote> | 257 | <blockquote> |
260 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p> | 258 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p> |
261 | </blockquote> | 259 | </blockquote> |
262 | <p>See·also:·<a·href="font.html#al_get_glyph">al_get_glyph</a></p> | 260 | <p>See·also:·<a·href="font.html#al_get_glyph">al_get_glyph</a></p> |
263 | <h2·id="al_init_font_addon">al_init_font_addon</h2> | 261 | <h2·id="al_init_font_addon">al_init_font_addon</h2> |
264 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_font_addon(<span·class="dt">void</span>)</span> | 262 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_font_addon(<span·class="dt">void</span>)</span></code></pre></div> |
265 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_font_addon(<span·class="dt">void</span>)</span></code></pre></div> | ||
266 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L365">Source·Code</a></p> | 263 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L365">Source·Code</a></p> |
267 | <p>Initialise·the·font·addon.</p> | 264 | <p>Initialise·the·font·addon.</p> |
268 | <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> | 265 | <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> |
269 | <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> | 266 | <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> |
270 | <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> | 267 | <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> |
271 | <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> | 268 | <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> |
272 | <h2·id="al_is_font_addon_initialized">al_is_font_addon_initialized</h2> | 269 | <h2·id="al_is_font_addon_initialized">al_is_font_addon_initialized</h2> |
273 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_font_addon_initialized(<span·class="dt">void</span>)</span> | 270 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_font_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> |
274 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_font_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> | ||
275 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L393">Source·Code</a></p> | 271 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L393">Source·Code</a></p> |
276 | <p>Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false.</p> | 272 | <p>Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false.</p> |
277 | <p>Since:·5.2.6</p> | 273 | <p>Since:·5.2.6</p> |
278 | <p>See·also:·<a·href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a·href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> | 274 | <p>See·also:·<a·href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a·href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> |
279 | <h2·id="al_shutdown_font_addon">al_shutdown_font_addon</h2> | 275 | <h2·id="al_shutdown_font_addon">al_shutdown_font_addon</h2> |
280 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_font_addon(<span·class="dt">void</span>)</span> | 276 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_font_addon(<span·class="dt">void</span>)</span></code></pre></div> |
281 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_font_addon(<span·class="dt">void</span>)</span></code></pre></div> | ||
282 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L402">Source·Code</a></p> | 277 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L402">Source·Code</a></p> |
283 | <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> | 278 | <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> |
284 | <p>See·also:·<a·href="font.html#al_init_font_addon">al_init_font_addon</a></p> | 279 | <p>See·also:·<a·href="font.html#al_init_font_addon">al_init_font_addon</a></p> |
285 | <h2·id="al_load_font">al_load_font</h2> | 280 | <h2·id="al_load_font">al_load_font</h2> |
286 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a>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)</span> | 281 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a>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)</span></code></pre></div> |
287 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"></a>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)</span></code></pre></div> | ||
288 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L450">Source·Code</a></p> | 282 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L450">Source·Code</a></p> |
289 | <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> | 283 | <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> |
290 | <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> | 284 | <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> |
291 | <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> | 285 | <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> |
292 | <h2·id="al_destroy_font">al_destroy_font</h2> | 286 | <h2·id="al_destroy_font">al_destroy_font</h2> |
293 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_destroy_font(ALLEGRO_FONT·*f)</span> | 287 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_destroy_font(ALLEGRO_FONT·*f)</span></code></pre></div> |
294 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_destroy_font(ALLEGRO_FONT·*f)</span></code></pre></div> | ||
295 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L358">Source·Code</a></p> | 288 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L358">Source·Code</a></p> |
296 | <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL.</p> | 289 | <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL.</p> |
297 | <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p> | 290 | <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p> |
298 | <h2·id="al_register_font_loader">al_register_font_loader</h2> | 291 | <h2·id="al_register_font_loader">al_register_font_loader</h2> |
299 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_register_font_loader(<span·class="dt">char</span>·<span·class="dt">const</span>·*extension,</span> | 292 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_register_font_loader(<span·class="dt">char</span>·<span·class="dt">const</span>·*extension,</span> |
300 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"></a>···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))</span> | ||
301 | <span·id="cb10-3"><a·href="#cb10-3"·aria-hidden="true"></a><span·class="dt">bool</span>·al_register_font_loader(<span·class="dt">char</span>·<span·class="dt">const</span>·*extension,</span> | ||
302 | <span·id="cb10- | 293 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"></a>···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))</span></code></pre></div> |
303 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L426">Source·Code</a></p> | 294 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L426">Source·Code</a></p> |
304 | <p>Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this·format.</p> | 295 | <p>Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this·format.</p> |
305 | <p>The·<code>extension</code>·should·include·the·leading·dot·(‘.’)·character.·It·will·be·matched·case-insensitively.</p> | 296 | <p>The·<code>extension</code>·should·include·the·leading·dot·(‘.’)·character.·It·will·be·matched·case-insensitively.</p> |
306 | <p>The·<code>load_font</code>·argument·may·be·NULL·to·unregister·an·entry.</p> | 297 | <p>The·<code>load_font</code>·argument·may·be·NULL·to·unregister·an·entry.</p> |
307 | <p>Returns·true·on·success,·false·on·error.·Returns·false·if·unregistering·an·entry·that·doesn’t·exist.</p> | 298 | <p>Returns·true·on·success,·false·on·error.·Returns·false·if·unregistering·an·entry·that·doesn’t·exist.</p> |
308 | <p>See·also:·<a·href="font.html#al_init_font_addon">al_init_font_addon</a></p> | 299 | <p>See·also:·<a·href="font.html#al_init_font_addon">al_init_font_addon</a></p> |
309 | <h2·id="al_get_font_line_height">al_get_font_line_height</h2> | 300 | <h2·id="al_get_font_line_height">al_get_font_line_height</h2> |
310 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_font_line_height(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</span> | 301 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_font_line_height(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</span></code></pre></div> |
311 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_font_line_height(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</span></code></pre></div> | ||
312 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L298">Source·Code</a></p> | 302 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L298">Source·Code</a></p> |
313 | <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> | 303 | <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> |
314 | <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> | 304 | <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> |
315 | <pre><code>X------------------------ | 305 | <pre><code>X------------------------ |
316 | ····/\·········|········| | 306 | ····/\·········|········| |
317 | ···/··\········|········| | 307 | ···/··\········|········| |
318 | ··/____\·······ascent···| | 308 | ··/____\·······ascent···| |
Offset 321, 44 lines modified | Offset 311, 37 lines modified | ||
321 | ----------------········| | 311 | ----------------········| |
322 | ···············|········| | 312 | ···············|········| |
323 | ···············descent··| | 313 | ···············descent··| |
324 | ···············|········| | 314 | ···············|········| |
325 | -------------------------</code></pre> | 315 | -------------------------</code></pre> |
326 | <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> | 316 | <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> |
327 | <h2·id="al_get_font_ascent">al_get_font_ascent</h2> | 317 | <h2·id="al_get_font_ascent">al_get_font_ascent</h2> |
328 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_font_ascent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</span> | 318 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_font_ascent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</span></code></pre></div> |
329 | <span·id="cb13-2"><a·href="#cb13-2"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_font_ascent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</span></code></pre></div> | ||
330 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L308">Source·Code</a></p> | 319 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L308">Source·Code</a></p> |
331 | <p>Returns·the·ascent·of·the·specified·font.</p> | 320 | <p>Returns·the·ascent·of·the·specified·font.</p> |
332 | <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> | 321 | <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> |
333 | <h2·id="al_get_font_descent">al_get_font_descent</h2> | 322 | <h2·id="al_get_font_descent">al_get_font_descent</h2> |
334 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_font_descent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</span> | 323 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_font_descent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</span></code></pre></div> |
335 | <span·id="cb14-2"><a·href="#cb14-2"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_font_descent(<span·class="dt">const</span>·ALLEGRO_FONT·*f)</span></code></pre></div> | ||
336 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L318">Source·Code</a></p> | 324 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L318">Source·Code</a></p> |
337 | <p>Returns·the·descent·of·the·specified·font.</p> | 325 | <p>Returns·the·descent·of·the·specified·font.</p> |
338 | <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> | 326 | <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> |
339 | <h2·id="al_get_text_width">al_get_text_width</h2> | 327 | <h2·id="al_get_text_width">al_get_text_width</h2> |
340 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"></a><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)</span> | 328 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"></a><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)</span></code></pre></div> |
341 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"></a><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)</span></code></pre></div> | ||
342 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L282">Source·Code</a></p> | 329 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L282">Source·Code</a></p> |
343 | <p>Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels.</p> | 330 | <p>Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels.</p> |
344 | <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> | 331 | <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> |
345 | <h2·id="al_get_ustr_width">al_get_ustr_width</h2> | 332 | <h2·id="al_get_ustr_width">al_get_ustr_width</h2> |
346 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"></a><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)</span> | 333 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"></a><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)</span></code></pre></div> |
347 | <span·id="cb16-2"><a·href="#cb16-2"·aria-hidden="true"></a><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)</span></code></pre></div> | ||
348 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L270">Source·Code</a></p> | 334 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L270">Source·Code</a></p> |
349 | <p>Like·<a·href="font.html#al_get_text_width">al_get_text_width</a>·but·expects·an·ALLEGRO_USTR.</p> | 335 | <p>Like·<a·href="font.html#al_get_text_width">al_get_text_width</a>·but·expects·an·ALLEGRO_USTR.</p> |
350 | <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> | 336 | <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> |
351 | <h2·id="al_draw_text">al_draw_text</h2> | 337 | <h2·id="al_draw_text">al_draw_text</h2> |
352 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_draw_text(<span·class="dt">const</span>·ALLEGRO_FONT·*font,</span> | 338 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_draw_text(<span·class="dt">const</span>·ALLEGRO_FONT·*font,</span> |
353 | <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"></a>···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·x,·<span·class="dt">float</span>·y,·<span·class="dt">int</span>·flags,</span> | 339 | <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"></a>···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·x,·<span·class="dt">float</span>·y,·<span·class="dt">int</span>·flags,</span> |
354 | <span·id="cb17-3"><a·href="#cb17-3"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*text)·</span> | ||
355 | <span·id="cb17-4"><a·href="#cb17-4"·aria-hidden="true"></a><span·class="dt">void</span>·al_draw_text(<span·class="dt">const</span>·ALLEGRO_FONT·*font,</span> | ||
356 | <span·id="cb17-5"><a·href="#cb17-5"·aria-hidden="true"></a>···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·x,·<span·class="dt">float</span>·y,·<span·class="dt">int</span>·flags,</span> | ||
357 | <span·id="cb17- | 340 | <span·id="cb17-3"><a·href="#cb17-3"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*text)·</span></code></pre></div> |
358 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L102">Source·Code</a></p> | 341 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L102">Source·Code</a></p> |
359 | <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> | 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> |
360 | <p>The·<code>flags</code>·parameter·can·be·0·or·one·of·the·following·flags:</p> | 343 | <p>The·<code>flags</code>·parameter·can·be·0·or·one·of·the·following·flags:</p> |
361 | <ul> | 344 | <ul> |
362 | <li>ALLEGRO_ALIGN_LEFT·-·Draw·the·text·left-aligned·(same·as·0).</li> | 345 | <li>ALLEGRO_ALIGN_LEFT·-·Draw·the·text·left-aligned·(same·as·0).</li> |
Max diff block lines reached; 64372/85023 bytes (75.71%) of diff not shown. |
Offset 101, 24 lines modified | Offset 101, 22 lines modified | ||
101 | ··········o·al_get_glyph | 101 | ··········o·al_get_glyph |
102 | These·functions·are·declared·in·the·following·header·file.·Link·with | 102 | These·functions·are·declared·in·the·following·header·file.·Link·with |
103 | allegro_font. | 103 | allegro_font. |
104 | ·#include·<allegro5/allegro_font.h> | 104 | ·#include·<allegro5/allegro_font.h> |
105 | ******·General·font·routines·****** | 105 | ******·General·font·routines·****** |
106 | *****·ALLEGRO_FONT·***** | 106 | *****·ALLEGRO_FONT·***** |
107 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | 107 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; |
108 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | ||
109 | Source_Code | 108 | Source_Code |
110 | A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with | 109 | A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with |
111 | al_load_font·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by | 110 | al_load_font·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by |
112 | the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it | 111 | the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it |
113 | will·be·loaded·with·al_load_bitmap·and·a·font·in·Allegroâs·bitmap·font·format | 112 | will·be·loaded·with·al_load_bitmap·and·a·font·in·Allegroâs·bitmap·font·format |
114 | will·be·created·from·it·with·al_grab_font_from_bitmap. | 113 | will·be·created·from·it·with·al_grab_font_from_bitmap. |
115 | *****·ALLEGRO_GLYPH·***** | 114 | *****·ALLEGRO_GLYPH·***** |
116 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | 115 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; |
117 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | ||
118 | Source_Code | 116 | Source_Code |
119 | A·structure·containing·the·properties·of·a·character·in·a·font. | 117 | A·structure·containing·the·properties·of·a·character·in·a·font. |
120 | typedef·struct·ALLEGRO_GLYPH·{ | 118 | typedef·struct·ALLEGRO_GLYPH·{ |
121 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on | 119 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on |
122 | ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap | 120 | ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap |
123 | ···int·y;····················//·the·y·position·of·the·glyph·on·bitmap | 121 | ···int·y;····················//·the·y·position·of·the·glyph·on·bitmap |
124 | ···int·w;····················//·the·width·of·the·glyph·in·pixels | 122 | ···int·w;····················//·the·width·of·the·glyph·in·pixels |
Offset 139, 74 lines modified | Offset 137, 66 lines modified | ||
139 | advance·is·the·number·of·pixels·to·add·to·your·x·position·to·advance·to·the | 137 | advance·is·the·number·of·pixels·to·add·to·your·x·position·to·advance·to·the |
140 | next·character·in·a·string·and·includes·kerning. | 138 | next·character·in·a·string·and·includes·kerning. |
141 | Since:·5.2.1 | 139 | Since:·5.2.1 |
142 | ·····Unstable_API:·This·API·is·new·and·subject·to·refinement. | 140 | ·····Unstable_API:·This·API·is·new·and·subject·to·refinement. |
143 | See·also:·al_get_glyph | 141 | See·also:·al_get_glyph |
144 | *****·al_init_font_addon·***** | 142 | *****·al_init_font_addon·***** |
145 | bool·al_init_font_addon(void) | 143 | bool·al_init_font_addon(void) |
146 | bool·al_init_font_addon(void) | ||
147 | Source_Code | 144 | Source_Code |
148 | Initialise·the·font·addon. | 145 | Initialise·the·font·addon. |
149 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to·initialise | 146 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to·initialise |
150 | allegro_image·separately·(unless·you·are·using·another·library·to·load·images). | 147 | allegro_image·separately·(unless·you·are·using·another·library·to·load·images). |
151 | Similarly,·if·you·wish·to·load·truetype-fonts,·do·not·forget·to·also·call | 148 | Similarly,·if·you·wish·to·load·truetype-fonts,·do·not·forget·to·also·call |
152 | al_init_ttf_addon. | 149 | al_init_ttf_addon. |
153 | Returns·true·on·success,·false·on·failure.·On·the·5.0·branch,·this·function·has | 150 | Returns·true·on·success,·false·on·failure.·On·the·5.0·branch,·this·function·has |
154 | no·return·value.·You·may·wish·to·avoid·checking·the·return·value·if·your·code | 151 | no·return·value.·You·may·wish·to·avoid·checking·the·return·value·if·your·code |
155 | needs·to·be·compatible·with·Allegro·5.0.·Currently,·the·function·will·never | 152 | needs·to·be·compatible·with·Allegro·5.0.·Currently,·the·function·will·never |
156 | return·false. | 153 | return·false. |
157 | See·also:·al_init_image_addon,·al_init_ttf_addon,·al_shutdown_font_addon | 154 | See·also:·al_init_image_addon,·al_init_ttf_addon,·al_shutdown_font_addon |
158 | *****·al_is_font_addon_initialized·***** | 155 | *****·al_is_font_addon_initialized·***** |
159 | bool·al_is_font_addon_initialized(void) | 156 | bool·al_is_font_addon_initialized(void) |
160 | bool·al_is_font_addon_initialized(void) | ||
161 | Source_Code | 157 | Source_Code |
162 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. | 158 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. |
163 | Since:·5.2.6 | 159 | Since:·5.2.6 |
164 | See·also:·al_init_font_addon,·al_shutdown_font_addon | 160 | See·also:·al_init_font_addon,·al_shutdown_font_addon |
165 | *****·al_shutdown_font_addon·***** | 161 | *****·al_shutdown_font_addon·***** |
166 | void·al_shutdown_font_addon(void) | 162 | void·al_shutdown_font_addon(void) |
167 | void·al_shutdown_font_addon(void) | ||
168 | Source_Code | 163 | Source_Code |
169 | Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit,·but·can | 164 | Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit,·but·can |
170 | be·called·any·time·the·user·wishes·as·well. | 165 | be·called·any·time·the·user·wishes·as·well. |
171 | See·also:·al_init_font_addon | 166 | See·also:·al_init_font_addon |
172 | *****·al_load_font·***** | 167 | *****·al_load_font·***** |
173 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) | 168 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) |
174 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) | ||
175 | Source_Code | 169 | Source_Code |
176 | Loads·a·font·from·disk.·This·will·use·al_load_bitmap_font_flags·if·you·pass·the | 170 | Loads·a·font·from·disk.·This·will·use·al_load_bitmap_font_flags·if·you·pass·the |
177 | name·of·a·known·bitmap·format,·or·else·al_load_ttf_font. | 171 | name·of·a·known·bitmap·format,·or·else·al_load_ttf_font. |
178 | The·flags·parameter·is·passed·through·to·either·of·those·functions.·Bitmap·and | 172 | The·flags·parameter·is·passed·through·to·either·of·those·functions.·Bitmap·and |
179 | TTF·fonts·are·also·affected·by·the·current·bitmap_flags·at·the·time·the·font·is | 173 | TTF·fonts·are·also·affected·by·the·current·bitmap_flags·at·the·time·the·font·is |
180 | loaded. | 174 | loaded. |
181 | See·also:·al_destroy_font,·al_init_font_addon,·al_register_font_loader, | 175 | See·also:·al_destroy_font,·al_init_font_addon,·al_register_font_loader, |
182 | al_load_bitmap_font_flags,·al_load_ttf_font | 176 | al_load_bitmap_font_flags,·al_load_ttf_font |
183 | *****·al_destroy_font·***** | 177 | *****·al_destroy_font·***** |
184 | void·al_destroy_font(ALLEGRO_FONT·*f) | 178 | void·al_destroy_font(ALLEGRO_FONT·*f) |
185 | void·al_destroy_font(ALLEGRO_FONT·*f) | ||
186 | Source_Code | 179 | Source_Code |
187 | Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL. | 180 | Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL. |
188 | See·also:·al_load_font | 181 | See·also:·al_load_font |
189 | *****·al_register_font_loader·***** | 182 | *****·al_register_font_loader·***** |
190 | bool·al_register_font_loader(char·const·*extension, | 183 | bool·al_register_font_loader(char·const·*extension, |
191 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | 184 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) |
192 | bool·al_register_font_loader(char·const·*extension, | ||
193 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | ||
194 | Source_Code | 185 | Source_Code |
195 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this | 186 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this |
196 | format. | 187 | format. |
197 | The·extension·should·include·the·leading·dot·(â.â)·character.·It·will·be | 188 | The·extension·should·include·the·leading·dot·(â.â)·character.·It·will·be |
198 | matched·case-insensitively. | 189 | matched·case-insensitively. |
199 | The·load_font·argument·may·be·NULL·to·unregister·an·entry. | 190 | The·load_font·argument·may·be·NULL·to·unregister·an·entry. |
200 | Returns·true·on·success,·false·on·error.·Returns·false·if·unregistering·an | 191 | Returns·true·on·success,·false·on·error.·Returns·false·if·unregistering·an |
201 | entry·that·doesnât·exist. | 192 | entry·that·doesnât·exist. |
202 | See·also:·al_init_font_addon | 193 | See·also:·al_init_font_addon |
203 | *****·al_get_font_line_height·***** | 194 | *****·al_get_font_line_height·***** |
204 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) | 195 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) |
205 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) | ||
206 | Source_Code | 196 | Source_Code |
207 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font.·For·bitmap | 197 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font.·For·bitmap |
208 | fonts·this·is·simply·the·height·of·all·glyph·bitmaps.·For·truetype·fonts·it·is | 198 | fonts·this·is·simply·the·height·of·all·glyph·bitmaps.·For·truetype·fonts·it·is |
209 | whatever·the·font·file·specifies.·In·particular,·some·special·glyphs·may·be | 199 | whatever·the·font·file·specifies.·In·particular,·some·special·glyphs·may·be |
210 | higher·than·the·height·returned·here. | 200 | higher·than·the·height·returned·here. |
211 | If·the·X·is·the·position·you·specify·to·draw·text,·the·meaning·of·ascent·and | 201 | If·the·X·is·the·position·you·specify·to·draw·text,·the·meaning·of·ascent·and |
212 | descent·and·the·line·height·is·like·in·the·figure·below. | 202 | descent·and·the·line·height·is·like·in·the·figure·below. |
Offset 220, 43 lines modified | Offset 210, 36 lines modified | ||
220 | ···············|········| | 210 | ···············|········| |
221 | ···············descent··| | 211 | ···············descent··| |
222 | ···············|········| | 212 | ···············|········| |
223 | ------------------------- | 213 | ------------------------- |
224 | See·also:·al_get_text_width,·al_get_text_dimensions | 214 | See·also:·al_get_text_width,·al_get_text_dimensions |
225 | *****·al_get_font_ascent·***** | 215 | *****·al_get_font_ascent·***** |
226 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) | 216 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) |
227 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) | ||
228 | Source_Code | 217 | Source_Code |
229 | Returns·the·ascent·of·the·specified·font. | 218 | Returns·the·ascent·of·the·specified·font. |
230 | See·also:·al_get_font_descent,·al_get_font_line_height | 219 | See·also:·al_get_font_descent,·al_get_font_line_height |
231 | *****·al_get_font_descent·***** | 220 | *****·al_get_font_descent·***** |
232 | int·al_get_font_descent(const·ALLEGRO_FONT·*f) | 221 | int·al_get_font_descent(const·ALLEGRO_FONT·*f) |
233 | int·al_get_font_descent(const·ALLEGRO_FONT·*f) | ||
234 | Source_Code | 222 | Source_Code |
235 | Returns·the·descent·of·the·specified·font. | 223 | Returns·the·descent·of·the·specified·font. |
236 | See·also:·al_get_font_ascent,·al_get_font_line_height | 224 | See·also:·al_get_font_ascent,·al_get_font_line_height |
237 | *****·al_get_text_width·***** | 225 | *****·al_get_text_width·***** |
238 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) | 226 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) |
239 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) | ||
240 | Source_Code | 227 | Source_Code |
241 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. | 228 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. |
242 | See·also:·al_get_ustr_width,·al_get_font_line_height,·al_get_text_dimensions | 229 | See·also:·al_get_ustr_width,·al_get_font_line_height,·al_get_text_dimensions |
243 | *****·al_get_ustr_width·***** | 230 | *****·al_get_ustr_width·***** |
244 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) | 231 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) |
245 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) | ||
246 | Source_Code | 232 | Source_Code |
Max diff block lines reached; 21420/27438 bytes (78.07%) of diff not shown. |
Offset 199, 21 lines modified | Offset 199, 19 lines modified | ||
199 | </ul></li> | 199 | </ul></li> |
200 | </ul> | 200 | </ul> |
201 | </nav> | 201 | </nav> |
202 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 202 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
203 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 203 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
204 | <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> | 204 | <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> |
205 | <h1·id="allegro_fs_entry">ALLEGRO_FS_ENTRY</h1> | 205 | <h1·id="allegro_fs_entry">ALLEGRO_FS_ENTRY</h1> |
206 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY;</span> | 206 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY;</span></code></pre></div> |
207 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY;</span></code></pre></div> | ||
208 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source·Code</a></p> | 207 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source·Code</a></p> |
209 | <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> | 208 | <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> |
210 | <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1> | 209 | <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1> |
211 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</span> | 210 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</span></code></pre></div> |
212 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</span></code></pre></div> | ||
213 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source·Code</a></p> | 211 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source·Code</a></p> |
214 | <p>Filesystem·modes/types</p> | 212 | <p>Filesystem·modes/types</p> |
215 | <ul> | 213 | <ul> |
216 | <li>ALLEGRO_FILEMODE_READ·-·Readable</li> | 214 | <li>ALLEGRO_FILEMODE_READ·-·Readable</li> |
217 | <li>ALLEGRO_FILEMODE_WRITE·-·Writable</li> | 215 | <li>ALLEGRO_FILEMODE_WRITE·-·Writable</li> |
218 | <li>ALLEGRO_FILEMODE_EXECUTE·-·Executable</li> | 216 | <li>ALLEGRO_FILEMODE_EXECUTE·-·Executable</li> |
219 | <li>ALLEGRO_FILEMODE_HIDDEN·-·Hidden</li> | 217 | <li>ALLEGRO_FILEMODE_HIDDEN·-·Hidden</li> |
Offset 331, 16 lines modified | Offset 329, 15 lines modified | ||
331 | <h2·id="al_open_fs_entry">al_open_fs_entry</h2> | 329 | <h2·id="al_open_fs_entry">al_open_fs_entry</h2> |
332 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb23-1"><a·href="#cb23-1"·aria-hidden="true"></a>ALLEGRO_FILE·*al_open_fs_entry(ALLEGRO_FS_ENTRY·*e,·<span·class="dt">const</span>·<span·class="dt">char</span>·*mode)</span></code></pre></div> | 330 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb23-1"><a·href="#cb23-1"·aria-hidden="true"></a>ALLEGRO_FILE·*al_open_fs_entry(ALLEGRO_FS_ENTRY·*e,·<span·class="dt">const</span>·<span·class="dt">char</span>·*mode)</span></code></pre></div> |
333 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/fshook.c#L226">Source·Code</a></p> | 331 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/fshook.c#L226">Source·Code</a></p> |
334 | <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> | 332 | <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> |
335 | <p>Returns·the·handle·on·success,·NULL·on·error.</p> | 333 | <p>Returns·the·handle·on·success,·NULL·on·error.</p> |
336 | <p>See·also:·<a·href="file.html#al_fopen">al_fopen</a></p> | 334 | <p>See·also:·<a·href="file.html#al_fopen">al_fopen</a></p> |
337 | <h2·id="allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</h2> | 335 | <h2·id="allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</h2> |
338 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb24-1"><a·href="#cb24-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{</span> | 336 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb24-1"><a·href="#cb24-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{</span></code></pre></div> |
339 | <span·id="cb24-2"><a·href="#cb24-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{</span></code></pre></div> | ||
340 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L124">Source·Code</a></p> | 337 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L124">Source·Code</a></p> |
341 | <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> | 338 | <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> |
342 | <ul> | 339 | <ul> |
343 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·-·An·error·ocurred.</li> | 340 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·-·An·error·ocurred.</li> |
344 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_OK·-·Continue·normally·and·recurse·into·directories.</li> | 341 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_OK·-·Continue·normally·and·recurse·into·directories.</li> |
345 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_SKIP·-·Continue·but·do·NOT·recusively·descend.</li> | 342 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_SKIP·-·Continue·but·do·NOT·recusively·descend.</li> |
346 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_STOP·-·Stop·iterating·and·return.</li> | 343 | <li>ALLEGRO_FOR_EACH_FS_ENTRY_STOP·-·Stop·iterating·and·return.</li> |
Offset 360, 16 lines modified | Offset 357, 15 lines modified | ||
360 | <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> | 357 | <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> |
361 | <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> | 358 | <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> |
362 | <p>See·also:·<a·href="fshook.html#allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</a></p> | 359 | <p>See·also:·<a·href="fshook.html#allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</a></p> |
363 | <p>Since:·5.1.9</p> | 360 | <p>Since:·5.1.9</p> |
364 | <h1·id="alternative-filesystem-functions">Alternative·filesystem·functions</h1> | 361 | <h1·id="alternative-filesystem-functions">Alternative·filesystem·functions</h1> |
365 | <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> | 362 | <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> |
366 | <h2·id="allegro_fs_interface">ALLEGRO_FS_INTERFACE</h2> | 363 | <h2·id="allegro_fs_interface">ALLEGRO_FS_INTERFACE</h2> |
367 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb26-1"><a·href="#cb26-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE;</span> | 364 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb26-1"><a·href="#cb26-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE;</span></code></pre></div> |
368 | <span·id="cb26-2"><a·href="#cb26-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE;</span></code></pre></div> | ||
369 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L64">Source·Code</a></p> | 365 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L64">Source·Code</a></p> |
370 | <p>The·available·functions·you·can·provide·for·a·filesystem.·They·are:</p> | 366 | <p>The·available·functions·you·can·provide·for·a·filesystem.·They·are:</p> |
371 | <pre><code>···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); | 367 | <pre><code>···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); |
372 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); | 368 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); |
373 | ···const·char·*········fs_entry_name·····(ALLEGRO_FS_ENTRY·*e); | 369 | ···const·char·*········fs_entry_name·····(ALLEGRO_FS_ENTRY·*e); |
374 | ···bool················fs_update_entry···(ALLEGRO_FS_ENTRY·*e); | 370 | ···bool················fs_update_entry···(ALLEGRO_FS_ENTRY·*e); |
375 | ···uint32_t············fs_entry_mode·····(ALLEGRO_FS_ENTRY·*e); | 371 | ···uint32_t············fs_entry_mode·····(ALLEGRO_FS_ENTRY·*e); |
Offset 404, 12 lines modified | Offset 400, 12 lines modified | ||
404 | <h2·id="al_get_fs_interface">al_get_fs_interface</h2> | 400 | <h2·id="al_get_fs_interface">al_get_fs_interface</h2> |
405 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb30-1"><a·href="#cb30-1"·aria-hidden="true"></a><span·class="dt">const</span>·ALLEGRO_FS_INTERFACE·*al_get_fs_interface(<span·class="dt">void</span>)</span></code></pre></div> | 401 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb30-1"><a·href="#cb30-1"·aria-hidden="true"></a><span·class="dt">const</span>·ALLEGRO_FS_INTERFACE·*al_get_fs_interface(<span·class="dt">void</span>)</span></code></pre></div> |
406 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L874">Source·Code</a></p> | 402 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L874">Source·Code</a></p> |
407 | <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>Return·a·pointer·to·the·<a·href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·table·in·effect·for·the·calling·thread.</p> |
408 | <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>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> |
409 | <p·class="timestamp"> | 405 | <p·class="timestamp"> |
410 | Allegro·version·5.2.6 | 406 | Allegro·version·5.2.6 |
411 | ·-·Last·updated:·202 | 407 | ·-·Last·updated:·2024-01-06·13:49:32·UTC |
412 | </p> | 408 | </p> |
413 | </div> | 409 | </div> |
414 | </body> | 410 | </body> |
415 | </html> | 411 | </html> |
Offset 80, 21 lines modified | Offset 80, 19 lines modified | ||
80 | These·functions·are·declared·in·the·main·Allegro·header·file: | 80 | These·functions·are·declared·in·the·main·Allegro·header·file: |
81 | ·#include·<allegro5/allegro.h> | 81 | ·#include·<allegro5/allegro.h> |
82 | These·functions·allow·access·to·the·filesystem.·This·can·either·be·the·real | 82 | These·functions·allow·access·to·the·filesystem.·This·can·either·be·the·real |
83 | filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a·.zip·archive·(or | 83 | filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a·.zip·archive·(or |
84 | whatever·else·you·or·an·addon·makes·it·do). | 84 | whatever·else·you·or·an·addon·makes·it·do). |
85 | ******·ALLEGRO_FS_ENTRY·****** | 85 | ******·ALLEGRO_FS_ENTRY·****** |
86 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; | 86 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; |
87 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; | ||
88 | Source_Code | 87 | Source_Code |
89 | Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory·(check·with | 88 | Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory·(check·with |
90 | al_get_fs_entry_mode).·There·are·no·user·accessible·member·variables. | 89 | al_get_fs_entry_mode).·There·are·no·user·accessible·member·variables. |
91 | ******·ALLEGRO_FILE_MODE·****** | 90 | ******·ALLEGRO_FILE_MODE·****** |
92 | typedef·enum·ALLEGRO_FILE_MODE | 91 | typedef·enum·ALLEGRO_FILE_MODE |
93 | typedef·enum·ALLEGRO_FILE_MODE | ||
94 | Source_Code | 92 | Source_Code |
95 | Filesystem·modes/types | 93 | Filesystem·modes/types |
96 | ····*·ALLEGRO_FILEMODE_READ·-·Readable | 94 | ····*·ALLEGRO_FILEMODE_READ·-·Readable |
97 | ····*·ALLEGRO_FILEMODE_WRITE·-·Writable | 95 | ····*·ALLEGRO_FILEMODE_WRITE·-·Writable |
98 | ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable | 96 | ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable |
99 | ····*·ALLEGRO_FILEMODE_HIDDEN·-·Hidden | 97 | ····*·ALLEGRO_FILEMODE_HIDDEN·-·Hidden |
100 | ····*·ALLEGRO_FILEMODE_ISFILE·-·Regular·file | 98 | ····*·ALLEGRO_FILEMODE_ISFILE·-·Regular·file |
Offset 246, 15 lines modified | Offset 244, 14 lines modified | ||
246 | This·is·like·calling·al_fopen·with·the·name·of·the·filesystem·entry,·but·uses | 244 | This·is·like·calling·al_fopen·with·the·name·of·the·filesystem·entry,·but·uses |
247 | the·appropriate·file·interface,·not·whatever·was·set·with·the·latest·call·to | 245 | the·appropriate·file·interface,·not·whatever·was·set·with·the·latest·call·to |
248 | al_set_new_file_interface. | 246 | al_set_new_file_interface. |
249 | Returns·the·handle·on·success,·NULL·on·error. | 247 | Returns·the·handle·on·success,·NULL·on·error. |
250 | See·also:·al_fopen | 248 | See·also:·al_fopen |
251 | *****·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·***** | 249 | *****·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·***** |
252 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ | 250 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ |
253 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ | ||
254 | Source_Code | 251 | Source_Code |
255 | Return·values·for·the·callbacks·of·al_for_each_fs_entry·and·for·that·function | 252 | Return·values·for·the·callbacks·of·al_for_each_fs_entry·and·for·that·function |
256 | itself. | 253 | itself. |
257 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·-·An·error·ocurred. | 254 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·-·An·error·ocurred. |
258 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_OK·-·Continue·normally·and·recurse·into | 255 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_OK·-·Continue·normally·and·recurse·into |
259 | ······directories. | 256 | ······directories. |
260 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_SKIP·-·Continue·but·do·NOT·recusively·descend. | 257 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_SKIP·-·Continue·but·do·NOT·recusively·descend. |
Offset 299, 15 lines modified | Offset 296, 14 lines modified | ||
299 | By·default,·Allegro·uses·platform·specific·filesystem·functions·for·things·like | 296 | By·default,·Allegro·uses·platform·specific·filesystem·functions·for·things·like |
300 | directory·access.·However·if·for·example·the·files·of·your·game·are·not·in·the | 297 | directory·access.·However·if·for·example·the·files·of·your·game·are·not·in·the |
301 | local·filesystem·but·inside·some·file·archive,·you·can·provide·your·own·set·of | 298 | local·filesystem·but·inside·some·file·archive,·you·can·provide·your·own·set·of |
302 | functions·(or·use·an·addon·which·does·this·for·you,·for·example·our·physfs | 299 | functions·(or·use·an·addon·which·does·this·for·you,·for·example·our·physfs |
303 | addon·allows·access·to·the·most·common·archive·formats). | 300 | addon·allows·access·to·the·most·common·archive·formats). |
304 | *****·ALLEGRO_FS_INTERFACE·***** | 301 | *****·ALLEGRO_FS_INTERFACE·***** |
305 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; | 302 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; |
306 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; | ||
307 | Source_Code | 303 | Source_Code |
308 | The·available·functions·you·can·provide·for·a·filesystem.·They·are: | 304 | The·available·functions·you·can·provide·for·a·filesystem.·They·are: |
309 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); | 305 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); |
310 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); | 306 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); |
311 | ···const·char·*········fs_entry_name·····(ALLEGRO_FS_ENTRY·*e); | 307 | ···const·char·*········fs_entry_name·····(ALLEGRO_FS_ENTRY·*e); |
312 | ···bool················fs_update_entry···(ALLEGRO_FS_ENTRY·*e); | 308 | ···bool················fs_update_entry···(ALLEGRO_FS_ENTRY·*e); |
313 | ···uint32_t············fs_entry_mode·····(ALLEGRO_FS_ENTRY·*e); | 309 | ···uint32_t············fs_entry_mode·····(ALLEGRO_FS_ENTRY·*e); |
Offset 341, 8 lines modified | Offset 337, 8 lines modified | ||
341 | See·also:·al_set_fs_interface. | 337 | See·also:·al_set_fs_interface. |
342 | *****·al_get_fs_interface·***** | 338 | *****·al_get_fs_interface·***** |
343 | const·ALLEGRO_FS_INTERFACE·*al_get_fs_interface(void) | 339 | const·ALLEGRO_FS_INTERFACE·*al_get_fs_interface(void) |
344 | Source_Code | 340 | Source_Code |
345 | Return·a·pointer·to·the·ALLEGRO_FS_INTERFACE·table·in·effect·for·the·calling | 341 | Return·a·pointer·to·the·ALLEGRO_FS_INTERFACE·table·in·effect·for·the·calling |
346 | thread. | 342 | thread. |
347 | See·also:·al_store_state,·al_restore_state. | 343 | See·also:·al_store_state,·al_restore_state. |
348 | Allegro·version·5.2.6·-·Last·updated:·202 | 344 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:32·UTC |
Offset 167, 16 lines modified | Offset 167, 15 lines modified | ||
167 | <li><a·href="#al_get_display_mode">al_get_display_mode</a></li> | 167 | <li><a·href="#al_get_display_mode">al_get_display_mode</a></li> |
168 | <li><a·href="#al_get_num_display_modes">al_get_num_display_modes</a></li> | 168 | <li><a·href="#al_get_num_display_modes">al_get_num_display_modes</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 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 172 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
173 | <h1·id="allegro_display_mode">ALLEGRO_DISPLAY_MODE</h1> | 173 | <h1·id="allegro_display_mode">ALLEGRO_DISPLAY_MODE</h1> |
174 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE</span> | 174 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE</span></code></pre></div> |
175 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE</span></code></pre></div> | ||
176 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fullscreen_mode.h#L13">Source·Code</a></p> | 175 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fullscreen_mode.h#L13">Source·Code</a></p> |
177 | <p>Used·for·fullscreen·mode·queries.·Contains·information·about·a·supported·fullscreen·modes.</p> | 176 | <p>Used·for·fullscreen·mode·queries.·Contains·information·about·a·supported·fullscreen·modes.</p> |
178 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE·{</span> | 177 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE·{</span> |
179 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a>···<span·class="dt">int</span>·width;··········<span·class="co">//·Screen·width</span></span> | 178 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a>···<span·class="dt">int</span>·width;··········<span·class="co">//·Screen·width</span></span> |
180 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"></a>···<span·class="dt">int</span>·height;·········<span·class="co">//·Screen·height</span></span> | 179 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"></a>···<span·class="dt">int</span>·height;·········<span·class="co">//·Screen·height</span></span> |
181 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"></a>···<span·class="dt">int</span>·format;·········<span·class="co">//·The·pixel·format·of·the·mode</span></span> | 180 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"></a>···<span·class="dt">int</span>·format;·········<span·class="co">//·The·pixel·format·of·the·mode</span></span> |
182 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"></a>···<span·class="dt">int</span>·refresh_rate;···<span·class="co">//·The·refresh·rate·of·the·mode</span></span> | 181 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"></a>···<span·class="dt">int</span>·refresh_rate;···<span·class="co">//·The·refresh·rate·of·the·mode</span></span> |
Offset 192, 12 lines modified | Offset 191, 12 lines modified | ||
192 | <h1·id="al_get_num_display_modes">al_get_num_display_modes</h1> | 191 | <h1·id="al_get_num_display_modes">al_get_num_display_modes</h1> |
193 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_num_display_modes(<span·class="dt">void</span>)</span></code></pre></div> | 192 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_num_display_modes(<span·class="dt">void</span>)</span></code></pre></div> |
194 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/fullscreen_mode.c#L23">Source·Code</a></p> | 193 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/fullscreen_mode.c#L23">Source·Code</a></p> |
195 | <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> | 194 | <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> |
196 | <p>See·also:·<a·href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a></p> | 195 | <p>See·also:·<a·href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a></p> |
197 | <p·class="timestamp"> | 196 | <p·class="timestamp"> |
198 | Allegro·version·5.2.6 | 197 | Allegro·version·5.2.6 |
199 | ·-·Last·updated:·202 | 198 | ·-·Last·updated:·2024-01-06·13:49:33·UTC |
200 | </p> | 199 | </p> |
201 | </div> | 200 | </div> |
202 | </body> | 201 | </body> |
203 | </html> | 202 | </html> |
Offset 50, 15 lines modified | Offset 50, 14 lines modified | ||
50 | ····*·ALLEGRO_DISPLAY_MODE | 50 | ····*·ALLEGRO_DISPLAY_MODE |
51 | ····*·al_get_display_mode | 51 | ····*·al_get_display_mode |
52 | ····*·al_get_num_display_modes | 52 | ····*·al_get_num_display_modes |
53 | These·functions·are·declared·in·the·main·Allegro·header·file: | 53 | These·functions·are·declared·in·the·main·Allegro·header·file: |
54 | ·#include·<allegro5/allegro.h> | 54 | ·#include·<allegro5/allegro.h> |
55 | ******·ALLEGRO_DISPLAY_MODE·****** | 55 | ******·ALLEGRO_DISPLAY_MODE·****** |
56 | typedef·struct·ALLEGRO_DISPLAY_MODE | 56 | typedef·struct·ALLEGRO_DISPLAY_MODE |
57 | typedef·struct·ALLEGRO_DISPLAY_MODE | ||
58 | Source_Code | 57 | Source_Code |
59 | Used·for·fullscreen·mode·queries.·Contains·information·about·a·supported | 58 | Used·for·fullscreen·mode·queries.·Contains·information·about·a·supported |
60 | fullscreen·modes. | 59 | fullscreen·modes. |
61 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ | 60 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ |
62 | ···int·width;··········//·Screen·width | 61 | ···int·width;··········//·Screen·width |
63 | ···int·height;·········//·Screen·height | 62 | ···int·height;·········//·Screen·height |
64 | ···int·format;·········//·The·pixel·format·of·the·mode | 63 | ···int·format;·········//·The·pixel·format·of·the·mode |
Offset 82, 8 lines modified | Offset 81, 8 lines modified | ||
82 | Source_Code | 81 | Source_Code |
83 | Get·the·number·of·available·fullscreen·display·modes·for·the·current·set·of | 82 | Get·the·number·of·available·fullscreen·display·modes·for·the·current·set·of |
84 | display·parameters.·This·will·use·the·values·set·with | 83 | display·parameters.·This·will·use·the·values·set·with |
85 | al_set_new_display_refresh_rate,·and·al_set_new_display_flags·to·find·the | 84 | al_set_new_display_refresh_rate,·and·al_set_new_display_flags·to·find·the |
86 | number·of·modes·that·match.·Settings·the·new·display·parameters·to·zero·will | 85 | number·of·modes·that·match.·Settings·the·new·display·parameters·to·zero·will |
87 | give·a·list·of·all·modes·for·the·default·driver. | 86 | give·a·list·of·all·modes·for·the·default·driver. |
88 | See·also:·al_get_display_mode | 87 | See·also:·al_get_display_mode |
89 | Allegro·version·5.2.6·-·Last·updated:·202 | 88 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:33·UTC |
Offset 183, 12 lines modified | Offset 183, 12 lines modified | ||
183 | <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> | 183 | <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> |
184 | <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> | 184 | <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> |
185 | <h1·id="not-the-end">Not·the·end</h1> | 185 | <h1·id="not-the-end">Not·the·end</h1> |
186 | <p>There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet.</p> | 186 | <p>There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet.</p> |
187 | <p>Enjoy!</p> | 187 | <p>Enjoy!</p> |
188 | <p·class="timestamp"> | 188 | <p·class="timestamp"> |
189 | Allegro·version·5.2.6 | 189 | Allegro·version·5.2.6 |
190 | ·-·Last·updated:·202 | 190 | ·-·Last·updated:·2024-01-06·13:49:30·UTC |
191 | </p> | 191 | </p> |
192 | </div> | 192 | </div> |
193 | </body> | 193 | </body> |
194 | </html> | 194 | </html> |
Offset 195, 8 lines modified | Offset 195, 8 lines modified | ||
195 | including·Allegroâs·headers. | 195 | including·Allegroâs·headers. |
196 | Note·that·when·you·define·that·macro,·the·version·check·performed·by | 196 | Note·that·when·you·define·that·macro,·the·version·check·performed·by |
197 | al_install_system·and·al_init·becomes·more·scrict.·See·documentation·of·those | 197 | al_install_system·and·al_init·becomes·more·scrict.·See·documentation·of·those |
198 | functions·for·details. | 198 | functions·for·details. |
199 | ******·Not·the·end·****** | 199 | ******·Not·the·end·****** |
200 | Thereâs·a·heap·of·stuff·we·havenât·even·mentioned·yet. | 200 | Thereâs·a·heap·of·stuff·we·havenât·even·mentioned·yet. |
201 | Enjoy! | 201 | Enjoy! |
202 | Allegro·version·5.2.6·-·Last·updated:·202 | 202 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:30·UTC |
Offset 312, 16 lines modified | Offset 312, 15 lines modified | ||
312 | </ul></li> | 312 | </ul></li> |
313 | </ul> | 313 | </ul> |
314 | </nav> | 314 | </nav> |
315 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 315 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
316 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 316 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
317 | <h1·id="colors">Colors</h1> | 317 | <h1·id="colors">Colors</h1> |
318 | <h2·id="allegro_color">ALLEGRO_COLOR</h2> | 318 | <h2·id="allegro_color">ALLEGRO_COLOR</h2> |
319 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COLOR·ALLEGRO_COLOR;</span> | 319 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COLOR·ALLEGRO_COLOR;</span></code></pre></div> |
320 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COLOR·ALLEGRO_COLOR;</span></code></pre></div> | ||
321 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source·Code</a></p> | 320 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source·Code</a></p> |
322 | <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> | 321 | <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> |
323 | <h2·id="al_map_rgb">al_map_rgb</h2> | 322 | <h2·id="al_map_rgb">al_map_rgb</h2> |
324 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a>ALLEGRO_COLOR·al_map_rgb(</span> | 323 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a>ALLEGRO_COLOR·al_map_rgb(</span> |
325 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a>···<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)</span></code></pre></div> | 324 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a>···<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)</span></code></pre></div> |
326 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L599">Source·Code</a></p> | 325 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L599">Source·Code</a></p> |
327 | <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> | 326 | <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 392, 16 lines modified | Offset 391, 15 lines modified | ||
392 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_unmap_rgba_f(ALLEGRO_COLOR·color,</span> | 391 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_unmap_rgba_f(ALLEGRO_COLOR·color,</span> |
393 | <span·id="cb14-2"><a·href="#cb14-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·*r,·<span·class="dt">float</span>·*g,·<span·class="dt">float</span>·*b,·<span·class="dt">float</span>·*a)</span></code></pre></div> | 392 | <span·id="cb14-2"><a·href="#cb14-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·*r,·<span·class="dt">float</span>·*g,·<span·class="dt">float</span>·*b,·<span·class="dt">float</span>·*a)</span></code></pre></div> |
394 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L668">Source·Code</a></p> | 393 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L668">Source·Code</a></p> |
395 | <p>Retrieves·components·of·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>.·Components·will·range·from·0.0f-1.0f.</p> | 394 | <p>Retrieves·components·of·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a>.·Components·will·range·from·0.0f-1.0f.</p> |
396 | <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> | 395 | <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> |
397 | <h1·id="locking-and-pixel-formats">Locking·and·pixel·formats</h1> | 396 | <h1·id="locking-and-pixel-formats">Locking·and·pixel·formats</h1> |
398 | <h2·id="allegro_locked_region">ALLEGRO_LOCKED_REGION</h2> | 397 | <h2·id="allegro_locked_region">ALLEGRO_LOCKED_REGION</h2> |
399 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION;</span> | 398 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION;</span></code></pre></div> |
400 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION;</span></code></pre></div> | ||
401 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap_lock.h#L23">Source·Code</a></p> | 399 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap_lock.h#L23">Source·Code</a></p> |
402 | <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> | 400 | <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> |
403 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·{</span> | 401 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·{</span> |
404 | <span·id="cb16-2"><a·href="#cb16-2"·aria-hidden="true"></a>···<span·class="dt">void</span>·*data;</span> | 402 | <span·id="cb16-2"><a·href="#cb16-2"·aria-hidden="true"></a>···<span·class="dt">void</span>·*data;</span> |
405 | <span·id="cb16-3"><a·href="#cb16-3"·aria-hidden="true"></a>···<span·class="dt">int</span>·format;</span> | 403 | <span·id="cb16-3"><a·href="#cb16-3"·aria-hidden="true"></a>···<span·class="dt">int</span>·format;</span> |
406 | <span·id="cb16-4"><a·href="#cb16-4"·aria-hidden="true"></a>···<span·class="dt">int</span>·pitch;</span> | 404 | <span·id="cb16-4"><a·href="#cb16-4"·aria-hidden="true"></a>···<span·class="dt">int</span>·pitch;</span> |
407 | <span·id="cb16-5"><a·href="#cb16-5"·aria-hidden="true"></a>···<span·class="dt">int</span>·pixel_size;</span> | 405 | <span·id="cb16-5"><a·href="#cb16-5"·aria-hidden="true"></a>···<span·class="dt">int</span>·pixel_size;</span> |
Offset 410, 16 lines modified | Offset 408, 15 lines modified | ||
410 | <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> | 408 | <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> |
411 | <li><p><em>format</em>·indicates·the·pixel·format·of·the·data.</p></li> | 409 | <li><p><em>format</em>·indicates·the·pixel·format·of·the·data.</p></li> |
412 | <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> | 410 | <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> |
413 | <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> | 411 | <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> |
414 | </ul> | 412 | </ul> |
415 | <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> | 413 | <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> |
416 | <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2> | 414 | <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2> |
417 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</span> | 415 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</span></code></pre></div> |
418 | <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</span></code></pre></div> | ||
419 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source·Code</a></p> | 416 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source·Code</a></p> |
420 | <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> | 417 | <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> |
421 | <blockquote> | 418 | <blockquote> |
422 | <p><em>Note:</em></p> | 419 | <p><em>Note:</em></p> |
423 | <p>The·pixel·format·is·independent·of·endianness.·That·is,·in·the·above·example·you·can·always·get·the·red·component·with</p> | 420 | <p>The·pixel·format·is·independent·of·endianness.·That·is,·in·the·above·example·you·can·always·get·the·red·component·with</p> |
424 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"></a>(pixel·&·<span·class="bn">0x00ff0000</span>)·>>·<span·class="dv">16</span></span></code></pre></div> | 421 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"></a>(pixel·&·<span·class="bn">0x00ff0000</span>)·>>·<span·class="dv">16</span></span></code></pre></div> |
425 | <p>But·you·can·<em>not</em>·rely·on·this·code:</p> | 422 | <p>But·you·can·<em>not</em>·rely·on·this·code:</p> |
Offset 539, 16 lines modified | Offset 536, 15 lines modified | ||
539 | <span·id="cb29-2"><a·href="#cb29-2"·aria-hidden="true"></a>···<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)</span></code></pre></div> | 536 | <span·id="cb29-2"><a·href="#cb29-2"·aria-hidden="true"></a>···<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)</span></code></pre></div> |
540 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_lock.c#L189">Source·Code</a></p> | 537 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_lock.c#L189">Source·Code</a></p> |
541 | <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> | 538 | <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> |
542 | <p>Since:·5.1.9</p> | 539 | <p>Since:·5.1.9</p> |
543 | <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> | 540 | <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> |
544 | <h1·id="bitmap-creation">Bitmap·creation</h1> | 541 | <h1·id="bitmap-creation">Bitmap·creation</h1> |
545 | <h2·id="allegro_bitmap">ALLEGRO_BITMAP</h2> | 542 | <h2·id="allegro_bitmap">ALLEGRO_BITMAP</h2> |
546 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb30-1"><a·href="#cb30-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP;</span> | 543 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb30-1"><a·href="#cb30-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP;</span></code></pre></div> |
547 | <span·id="cb30-2"><a·href="#cb30-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP;</span></code></pre></div> | ||
548 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L12">Source·Code</a></p> | 544 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L12">Source·Code</a></p> |
549 | <p>Abstract·type·representing·a·bitmap·(2D·image).</p> | 545 | <p>Abstract·type·representing·a·bitmap·(2D·image).</p> |
550 | <h2·id="al_create_bitmap">al_create_bitmap</h2> | 546 | <h2·id="al_create_bitmap">al_create_bitmap</h2> |
551 | <div·class="sourceCode"·id="cb31"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb31-1"><a·href="#cb31-1"·aria-hidden="true"></a>ALLEGRO_BITMAP·*al_create_bitmap(<span·class="dt">int</span>·w,·<span·class="dt">int</span>·h)</span></code></pre></div> | 547 | <div·class="sourceCode"·id="cb31"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb31-1"><a·href="#cb31-1"·aria-hidden="true"></a>ALLEGRO_BITMAP·*al_create_bitmap(<span·class="dt">int</span>·w,·<span·class="dt">int</span>·h)</span></code></pre></div> |
552 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L187">Source·Code</a></p> | 548 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L187">Source·Code</a></p> |
553 | <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> | 549 | <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> |
554 | <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> | 550 | <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 1410, 16 lines modified | Offset 1406, 15 lines modified | ||
1410 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_io.c#L295">Source·Code</a></p> | 1406 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_io.c#L295">Source·Code</a></p> |
1411 | <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> | 1407 | <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> |
1412 | <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> | 1408 | <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> |
1413 | <p>Since:·5.1.12</p> | 1409 | <p>Since:·5.1.12</p> |
1414 | <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> | 1410 | <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> |
1415 | <h1·id="render-state">Render·State</h1> | 1411 | <h1·id="render-state">Render·State</h1> |
1416 | <h2·id="allegro_render_state">ALLEGRO_RENDER_STATE</h2> | 1412 | <h2·id="allegro_render_state">ALLEGRO_RENDER_STATE</h2> |
1417 | <div·class="sourceCode"·id="cb148"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb148-1"><a·href="#cb148-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·{</span> | 1413 | <div·class="sourceCode"·id="cb148"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb148-1"><a·href="#cb148-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·{</span></code></pre></div> |
1418 | <span·id="cb148-2"><a·href="#cb148-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·{</span></code></pre></div> | ||
1419 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L12">Source·Code</a></p> | 1414 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L12">Source·Code</a></p> |
1420 | <p>Possible·render·states·which·can·be·set·with·<a·href="graphics.html#al_set_render_state">al_set_render_state</a>:</p> | 1415 | <p>Possible·render·states·which·can·be·set·with·<a·href="graphics.html#al_set_render_state">al_set_render_state</a>:</p> |
1421 | <dl> | 1416 | <dl> |
1422 | <dt>ALLEGRO_ALPHA_TEST</dt> | 1417 | <dt>ALLEGRO_ALPHA_TEST</dt> |
1423 | <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·on·the·alpha·component·of·each·pixel.·Only·if·it·evaluates·to·true·the·pixel·is·written.·Otherwise·no·subsequent·processing·(like·depth·test·or·blending)·is·performed.·This·can·be·very·useful,·for·example·if·a·depth·buffer·is·used·but·you·do·not·want·fully·transparent·pixels·to·modify·it. | 1418 | <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·on·the·alpha·component·of·each·pixel.·Only·if·it·evaluates·to·true·the·pixel·is·written.·Otherwise·no·subsequent·processing·(like·depth·test·or·blending)·is·performed.·This·can·be·very·useful,·for·example·if·a·depth·buffer·is·used·but·you·do·not·want·fully·transparent·pixels·to·modify·it. |
1424 | </dd> | 1419 | </dd> |
1425 | <dt>ALLEGRO_ALPHA_FUNCTION</dt> | 1420 | <dt>ALLEGRO_ALPHA_FUNCTION</dt> |
Offset 1437, 16 lines modified | Offset 1432, 15 lines modified | ||
1437 | <dt>ALLEGRO_DEPTH_FUNCTION</dt> | 1432 | <dt>ALLEGRO_DEPTH_FUNCTION</dt> |
1438 | <dd>One·of·<a·href="graphics.html#allegro_render_function">ALLEGRO_RENDER_FUNCTION</a>,·only·used·when·ALLEGRO_DEPTH_TEST·is·1. | 1433 | <dd>One·of·<a·href="graphics.html#allegro_render_function">ALLEGRO_RENDER_FUNCTION</a>,·only·used·when·ALLEGRO_DEPTH_TEST·is·1. |
1439 | </dd> | 1434 | </dd> |
1440 | </dl> | 1435 | </dl> |
1441 | <p>Since:·5.1.2</p> | 1436 | <p>Since:·5.1.2</p> |
1442 | <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> | 1437 | <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> |
1443 | <h2·id="allegro_render_function">ALLEGRO_RENDER_FUNCTION</h2> | 1438 | <h2·id="allegro_render_function">ALLEGRO_RENDER_FUNCTION</h2> |
1444 | <div·class="sourceCode"·id="cb149"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb149-1"><a·href="#cb149-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·{</span> | 1439 | <div·class="sourceCode"·id="cb149"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb149-1"><a·href="#cb149-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·{</span></code></pre></div> |
1445 | <span·id="cb149-2"><a·href="#cb149-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·{</span></code></pre></div> | ||
1446 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L26">Source·Code</a></p> | 1440 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L26">Source·Code</a></p> |
1447 | <p>Possible·functions·are:</p> | 1441 | <p>Possible·functions·are:</p> |
1448 | <ul> | 1442 | <ul> |
1449 | <li>ALLEGRO_RENDER_NEVER</li> | 1443 | <li>ALLEGRO_RENDER_NEVER</li> |
1450 | <li>ALLEGRO_RENDER_ALWAYS</li> | 1444 | <li>ALLEGRO_RENDER_ALWAYS</li> |
1451 | <li>ALLEGRO_RENDER_LESS</li> | 1445 | <li>ALLEGRO_RENDER_LESS</li> |
1452 | <li>ALLEGRO_RENDER_EQUAL</li> | 1446 | <li>ALLEGRO_RENDER_EQUAL</li> |
Offset 1456, 16 lines modified | Offset 1450, 15 lines modified | ||
1456 | </li> | 1450 | </li> |
1457 | <li>ALLEGRO_RENDER_NOT_EQUAL</li> | 1451 | <li>ALLEGRO_RENDER_NOT_EQUAL</li> |
1458 | <li>ALLEGRO_RENDER_GREATER_EQUAL</li> | 1452 | <li>ALLEGRO_RENDER_GREATER_EQUAL</li> |
1459 | </ul> | 1453 | </ul> |
1460 | <p>Since:·5.1.2</p> | 1454 | <p>Since:·5.1.2</p> |
1461 | <p>See·also:·<a·href="graphics.html#al_set_render_state">al_set_render_state</a></p> | 1455 | <p>See·also:·<a·href="graphics.html#al_set_render_state">al_set_render_state</a></p> |
1462 | <h2·id="allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</h2> | 1456 | <h2·id="allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</h2> |
1463 | <div·class="sourceCode"·id="cb150"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb150-1"><a·href="#cb150-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_WRITE_MASK_FLAGS·{</span> | 1457 | <div·class="sourceCode"·id="cb150"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb150-1"><a·href="#cb150-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_WRITE_MASK_FLAGS·{</span></code></pre></div> |
1464 | <span·id="cb150-2"><a·href="#cb150-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_WRITE_MASK_FLAGS·{</span></code></pre></div> | ||
1465 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L39">Source·Code</a></p> | 1458 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L39">Source·Code</a></p> |
1466 | <p>Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled·bit·means·it·is·not.</p> | 1459 | <p>Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled·bit·means·it·is·not.</p> |
1467 | <ul> | 1460 | <ul> |
1468 | <li>ALLEGRO_MASK_RED</li> | 1461 | <li>ALLEGRO_MASK_RED</li> |
1469 | <li>ALLEGRO_MASK_GREEN</li> | 1462 | <li>ALLEGRO_MASK_GREEN</li> |
1470 | <li>ALLEGRO_MASK_BLUE</li> | 1463 | <li>ALLEGRO_MASK_BLUE</li> |
1471 | <li>ALLEGRO_MASK_ALPHA</li> | 1464 | <li>ALLEGRO_MASK_ALPHA</li> |
Offset 1499, 12 lines modified | Offset 1492, 12 lines modified | ||
1499 | <p>Since:·5.2.1</p> | 1492 | <p>Since:·5.2.1</p> |
1500 | <blockquote> | 1493 | <blockquote> |
1501 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p> | 1494 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p> |
1502 | </blockquote> | 1495 | </blockquote> |
1503 | <p>See·also:·<a·href="graphics.html#al_backup_dirty_bitmap">al_backup_dirty_bitmap</a></p> | 1496 | <p>See·also:·<a·href="graphics.html#al_backup_dirty_bitmap">al_backup_dirty_bitmap</a></p> |
1504 | <p·class="timestamp"> | 1497 | <p·class="timestamp"> |
1505 | Allegro·version·5.2.6 | 1498 | Allegro·version·5.2.6 |
1506 | ·-·Last·updated:·202 | 1499 | ·-·Last·updated:·2024-01-06·13:49:33·UTC |
Max diff block lines reached; 26/16159 bytes (0.16%) of diff not shown. |
Offset 171, 15 lines modified | Offset 171, 14 lines modified | ||
171 | ··········o·al_backup_dirty_bitmap | 171 | ··········o·al_backup_dirty_bitmap |
172 | ··········o·al_backup_dirty_bitmaps | 172 | ··········o·al_backup_dirty_bitmaps |
173 | These·functions·are·declared·in·the·main·Allegro·header·file: | 173 | These·functions·are·declared·in·the·main·Allegro·header·file: |
174 | ·#include·<allegro5/allegro.h> | 174 | ·#include·<allegro5/allegro.h> |
175 | ******·Colors·****** | 175 | ******·Colors·****** |
176 | *****·ALLEGRO_COLOR·***** | 176 | *****·ALLEGRO_COLOR·***** |
177 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; | 177 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; |
178 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; | ||
179 | Source_Code | 178 | Source_Code |
180 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use | 179 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use |
181 | al_map_rgb·et·al. and·al_unmap_rgb·et·al. to·translate·from·and·to·various | 180 | al_map_rgb·et·al. and·al_unmap_rgb·et·al. to·translate·from·and·to·various |
182 | color·representations. | 181 | color·representations. |
183 | *****·al_map_rgb·***** | 182 | *****·al_map_rgb·***** |
184 | ALLEGRO_COLOR·al_map_rgb( | 183 | ALLEGRO_COLOR·al_map_rgb( |
185 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b) | 184 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b) |
Offset 265, 15 lines modified | Offset 264, 14 lines modified | ||
265 | ···float·*r,·float·*g,·float·*b,·float·*a) | 264 | ···float·*r,·float·*g,·float·*b,·float·*a) |
266 | Source_Code | 265 | Source_Code |
267 | Retrieves·components·of·an·ALLEGRO_COLOR.·Components·will·range·from·0.0f-1.0f. | 266 | Retrieves·components·of·an·ALLEGRO_COLOR.·Components·will·range·from·0.0f-1.0f. |
268 | See·also:·al_unmap_rgba,·al_unmap_rgb,·al_unmap_rgb_f | 267 | See·also:·al_unmap_rgba,·al_unmap_rgb,·al_unmap_rgb_f |
269 | ******·Locking·and·pixel·formats·****** | 268 | ******·Locking·and·pixel·formats·****** |
270 | *****·ALLEGRO_LOCKED_REGION·***** | 269 | *****·ALLEGRO_LOCKED_REGION·***** |
271 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; | 270 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; |
272 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; | ||
273 | Source_Code | 271 | Source_Code |
274 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to·lock·it | 272 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to·lock·it |
275 | first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the | 273 | first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the |
276 | bitmap.·This·call·will·work·with·any·bitmap,·including·memory·bitmaps. | 274 | bitmap.·This·call·will·work·with·any·bitmap,·including·memory·bitmaps. |
277 | typedef·struct·ALLEGRO_LOCKED_REGION·{ | 275 | typedef·struct·ALLEGRO_LOCKED_REGION·{ |
278 | ···void·*data; | 276 | ···void·*data; |
279 | ···int·format; | 277 | ···int·format; |
Offset 294, 15 lines modified | Offset 292, 14 lines modified | ||
294 | ······historically,·this·used·to·be·true·for·all·formats),·this·is·just·the | 292 | ······historically,·this·used·to·be·true·for·all·formats),·this·is·just·the |
295 | ······size·of·a·single·pixel,·but·for·blocked·pixel·formats·this·value·is | 293 | ······size·of·a·single·pixel,·but·for·blocked·pixel·formats·this·value·is |
296 | ······different. | 294 | ······different. |
297 | See·also:·al_lock_bitmap,·al_lock_bitmap_region,·al_unlock_bitmap, | 295 | See·also:·al_lock_bitmap,·al_lock_bitmap_region,·al_unlock_bitmap, |
298 | ALLEGRO_PIXEL_FORMAT | 296 | ALLEGRO_PIXEL_FORMAT |
299 | *****·ALLEGRO_PIXEL_FORMAT·***** | 297 | *****·ALLEGRO_PIXEL_FORMAT·***** |
300 | typedef·enum·ALLEGRO_PIXEL_FORMAT | 298 | typedef·enum·ALLEGRO_PIXEL_FORMAT |
301 | typedef·enum·ALLEGRO_PIXEL_FORMAT | ||
302 | Source_Code | 299 | Source_Code |
303 | Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a | 300 | Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a |
304 | pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for | 301 | pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for |
305 | example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. | 302 | example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. |
306 | ·····Note: | 303 | ·····Note: |
307 | ·····The·pixel·format·is·independent·of·endianness.·That·is,·in·the·above | 304 | ·····The·pixel·format·is·independent·of·endianness.·That·is,·in·the·above |
308 | ·····example·you·can·always·get·the·red·component·with | 305 | ·····example·you·can·always·get·the·red·component·with |
Offset 515, 15 lines modified | Offset 512, 14 lines modified | ||
515 | Unlike·al_lock_bitmap_region·the·region·specified·in·terms·of·blocks·and·not | 512 | Unlike·al_lock_bitmap_region·the·region·specified·in·terms·of·blocks·and·not |
516 | pixels. | 513 | pixels. |
517 | Since:·5.1.9 | 514 | Since:·5.1.9 |
518 | See·also:·al_lock_bitmap_region,·al_lock_bitmap_blocked | 515 | See·also:·al_lock_bitmap_region,·al_lock_bitmap_blocked |
519 | ******·Bitmap·creation·****** | 516 | ******·Bitmap·creation·****** |
520 | *****·ALLEGRO_BITMAP·***** | 517 | *****·ALLEGRO_BITMAP·***** |
521 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | 518 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; |
522 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | ||
523 | Source_Code | 519 | Source_Code |
524 | Abstract·type·representing·a·bitmap·(2D·image). | 520 | Abstract·type·representing·a·bitmap·(2D·image). |
525 | *****·al_create_bitmap·***** | 521 | *****·al_create_bitmap·***** |
526 | ALLEGRO_BITMAP·*al_create_bitmap(int·w,·int·h) | 522 | ALLEGRO_BITMAP·*al_create_bitmap(int·w,·int·h) |
527 | Source_Code | 523 | Source_Code |
528 | Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the·current·thread. | 524 | Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the·current·thread. |
529 | Blitting·between·bitmaps·of·differing·formats,·or·blitting·between·memory | 525 | Blitting·between·bitmaps·of·differing·formats,·or·blitting·between·memory |
Offset 1650, 15 lines modified | Offset 1646, 14 lines modified | ||
1650 | if·the·bitmap·type·cannot·be·determined. | 1646 | if·the·bitmap·type·cannot·be·determined. |
1651 | Since:·5.1.12 | 1647 | Since:·5.1.12 |
1652 | See·also:·al_init_image_addon,·al_identify_bitmap, | 1648 | See·also:·al_init_image_addon,·al_identify_bitmap, |
1653 | al_register_bitmap_identifier | 1649 | al_register_bitmap_identifier |
1654 | ******·Render·State·****** | 1650 | ******·Render·State·****** |
1655 | *****·ALLEGRO_RENDER_STATE·***** | 1651 | *****·ALLEGRO_RENDER_STATE·***** |
1656 | typedef·enum·ALLEGRO_RENDER_STATE·{ | 1652 | typedef·enum·ALLEGRO_RENDER_STATE·{ |
1657 | typedef·enum·ALLEGRO_RENDER_STATE·{ | ||
1658 | Source_Code | 1653 | Source_Code |
1659 | Possible·render·states·which·can·be·set·with·al_set_render_state: | 1654 | Possible·render·states·which·can·be·set·with·al_set_render_state: |
1660 | ··ALLEGRO_ALPHA_TEST | 1655 | ··ALLEGRO_ALPHA_TEST |
1661 | ······If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and | 1656 | ······If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and |
1662 | ······ALLEGRO_ALPHA_TEST_VALUE·define·a·comparison·function·which·is·performed | 1657 | ······ALLEGRO_ALPHA_TEST_VALUE·define·a·comparison·function·which·is·performed |
1663 | ······on·the·alpha·component·of·each·pixel.·Only·if·it·evaluates·to·true·the | 1658 | ······on·the·alpha·component·of·each·pixel.·Only·if·it·evaluates·to·true·the |
1664 | ······pixel·is·written.·Otherwise·no·subsequent·processing·(like·depth·test·or | 1659 | ······pixel·is·written.·Otherwise·no·subsequent·processing·(like·depth·test·or |
Offset 1681, 30 lines modified | Offset 1676, 28 lines modified | ||
1681 | ··ALLEGRO_DEPTH_FUNCTION | 1676 | ··ALLEGRO_DEPTH_FUNCTION |
1682 | ······One·of·ALLEGRO_RENDER_FUNCTION,·only·used·when·ALLEGRO_DEPTH_TEST·is·1. | 1677 | ······One·of·ALLEGRO_RENDER_FUNCTION,·only·used·when·ALLEGRO_DEPTH_TEST·is·1. |
1683 | Since:·5.1.2 | 1678 | Since:·5.1.2 |
1684 | See·also:·al_set_render_state,·ALLEGRO_RENDER_FUNCTION, | 1679 | See·also:·al_set_render_state,·ALLEGRO_RENDER_FUNCTION, |
1685 | ALLEGRO_WRITE_MASK_FLAGS | 1680 | ALLEGRO_WRITE_MASK_FLAGS |
1686 | *****·ALLEGRO_RENDER_FUNCTION·***** | 1681 | *****·ALLEGRO_RENDER_FUNCTION·***** |
1687 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ | 1682 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ |
1688 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ | ||
1689 | Source_Code | 1683 | Source_Code |
1690 | Possible·functions·are: | 1684 | Possible·functions·are: |
1691 | ····*·ALLEGRO_RENDER_NEVER | 1685 | ····*·ALLEGRO_RENDER_NEVER |
1692 | ····*·ALLEGRO_RENDER_ALWAYS | 1686 | ····*·ALLEGRO_RENDER_ALWAYS |
1693 | ····*·ALLEGRO_RENDER_LESS | 1687 | ····*·ALLEGRO_RENDER_LESS |
1694 | ····*·ALLEGRO_RENDER_EQUAL | 1688 | ····*·ALLEGRO_RENDER_EQUAL |
1695 | ····*·ALLEGRO_RENDER_LESS_EQUAL | 1689 | ····*·ALLEGRO_RENDER_LESS_EQUAL |
1696 | ····*·ALLEGRO_RENDER_GREATER | 1690 | ····*·ALLEGRO_RENDER_GREATER |
1697 | ····*·ALLEGRO_RENDER_NOT_EQUAL | 1691 | ····*·ALLEGRO_RENDER_NOT_EQUAL |
1698 | ····*·ALLEGRO_RENDER_GREATER_EQUAL | 1692 | ····*·ALLEGRO_RENDER_GREATER_EQUAL |
1699 | Since:·5.1.2 | 1693 | Since:·5.1.2 |
1700 | See·also:·al_set_render_state | 1694 | See·also:·al_set_render_state |
1701 | *****·ALLEGRO_WRITE_MASK_FLAGS·***** | 1695 | *****·ALLEGRO_WRITE_MASK_FLAGS·***** |
1702 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ | 1696 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ |
1703 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ | ||
1704 | Source_Code | 1697 | Source_Code |
1705 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled·bit·means | 1698 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled·bit·means |
1706 | it·is·not. | 1699 | it·is·not. |
1707 | ····*·ALLEGRO_MASK_RED | 1700 | ····*·ALLEGRO_MASK_RED |
1708 | ····*·ALLEGRO_MASK_GREEN | 1701 | ····*·ALLEGRO_MASK_GREEN |
1709 | ····*·ALLEGRO_MASK_BLUE | 1702 | ····*·ALLEGRO_MASK_BLUE |
1710 | ····*·ALLEGRO_MASK_ALPHA | 1703 | ····*·ALLEGRO_MASK_ALPHA |
Offset 1738, 8 lines modified | Offset 1731, 8 lines modified | ||
1738 | *****·al_backup_dirty_bitmaps·***** | 1731 | *****·al_backup_dirty_bitmaps·***** |
1739 | void·al_backup_dirty_bitmaps(ALLEGRO_DISPLAY·*display) | 1732 | void·al_backup_dirty_bitmaps(ALLEGRO_DISPLAY·*display) |
1740 | Source_Code | 1733 | Source_Code |
1741 | Backs·up·all·of·a·displayâs·bitmaps·to·system·memory. | 1734 | Backs·up·all·of·a·displayâs·bitmaps·to·system·memory. |
1742 | Since:·5.2.1 | 1735 | Since:·5.2.1 |
1743 | ·····Unstable_API:·This·API·is·new·and·subject·to·refinement. | 1736 | ·····Unstable_API:·This·API·is·new·and·subject·to·refinement. |
1744 | See·also:·al_backup_dirty_bitmap | 1737 | See·also:·al_backup_dirty_bitmap |
1745 | Allegro·version·5.2.6·-·Last·updated:·202 | 1738 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:33·UTC |
Offset 200, 26 lines modified | Offset 200, 24 lines modified | ||
200 | <li><a·href="#al_rumble_haptic">al_rumble_haptic</a></li> | 200 | <li><a·href="#al_rumble_haptic">al_rumble_haptic</a></li> |
201 | </ul> | 201 | </ul> |
202 | </nav> | 202 | </nav> |
203 | <p>Haptic·functions·support·force·feedback·and·vibration·on·input·devices.·These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 203 | <p>Haptic·functions·support·force·feedback·and·vibration·on·input·devices.·These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
204 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 204 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
205 | <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> | 205 | <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> |
206 | <h1·id="allegro_haptic">ALLEGRO_HAPTIC</h1> | 206 | <h1·id="allegro_haptic">ALLEGRO_HAPTIC</h1> |
207 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC;</span> | 207 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC;</span></code></pre></div> |
208 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC;</span></code></pre></div> | ||
209 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L64">Source·Code</a></p> | 208 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L64">Source·Code</a></p> |
210 | <p>This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force·feedback·or·vibration.</p> | 209 | <p>This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force·feedback·or·vibration.</p> |
211 | <p>Since:·5.1.8</p> | 210 | <p>Since:·5.1.8</p> |
212 | <blockquote> | 211 | <blockquote> |
213 | <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> | 212 | <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> |
214 | </blockquote> | 213 | </blockquote> |
215 | <p>See·also:·<a·href="haptic.html#al_get_haptic_from_joystick">al_get_haptic_from_joystick</a></p> | 214 | <p>See·also:·<a·href="haptic.html#al_get_haptic_from_joystick">al_get_haptic_from_joystick</a></p> |
216 | <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1> | 215 | <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1> |
217 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span> | 216 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span></code></pre></div> |
218 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span></code></pre></div> | ||
219 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source·Code</a></p> | 217 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source·Code</a></p> |
220 | <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 | <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> |
221 | <ul> | 219 | <ul> |
222 | <li>ALLEGRO_HAPTIC_RUMBLE·-·simple·vibration·effects</li> | 220 | <li>ALLEGRO_HAPTIC_RUMBLE·-·simple·vibration·effects</li> |
223 | <li>ALLEGRO_HAPTIC_PERIODIC·-·periodic,·wave-form·effects</li> | 221 | <li>ALLEGRO_HAPTIC_PERIODIC·-·periodic,·wave-form·effects</li> |
224 | <li>ALLEGRO_HAPTIC_CONSTANT·-·constant·effects</li> | 222 | <li>ALLEGRO_HAPTIC_CONSTANT·-·constant·effects</li> |
225 | <li>ALLEGRO_HAPTIC_SPRING·-·spring·effects</li> | 223 | <li>ALLEGRO_HAPTIC_SPRING·-·spring·effects</li> |
Offset 241, 16 lines modified | Offset 239, 15 lines modified | ||
241 | </ul> | 239 | </ul> |
242 | <p>Since:·5.1.8</p> | 240 | <p>Since:·5.1.8</p> |
243 | <blockquote> | 241 | <blockquote> |
244 | <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 | <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> |
245 | </blockquote> | 243 | </blockquote> |
246 | <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 | <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> |
247 | <h1·id="allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</h1> | 245 | <h1·id="allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</h1> |
248 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT</span> | 246 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT</span></code></pre></div> |
249 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT</span></code></pre></div> | ||
250 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L169">Source·Code</a></p> | 247 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L169">Source·Code</a></p> |
251 | <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> | 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> |
252 | <p><em>Fields:</em></p> | 249 | <p><em>Fields:</em></p> |
253 | <dl> | 250 | <dl> |
254 | <dt>type</dt> | 251 | <dt>type</dt> |
255 | <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> | 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> |
256 | <ul> | 253 | <ul> |
Offset 296, 16 lines modified | Offset 293, 15 lines modified | ||
296 | </dd> | 293 | </dd> |
297 | </dl> | 294 | </dl> |
298 | <p>Since:·5.1.8</p> | 295 | <p>Since:·5.1.8</p> |
299 | <blockquote> | 296 | <blockquote> |
300 | <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> | 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> |
301 | </blockquote> | 298 | </blockquote> |
302 | <h1·id="allegro_haptic_effect_id">ALLEGRO_HAPTIC_EFFECT_ID</h1> | 299 | <h1·id="allegro_haptic_effect_id">ALLEGRO_HAPTIC_EFFECT_ID</h1> |
303 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID;</span> | 300 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID;</span></code></pre></div> |
304 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID;</span></code></pre></div> | ||
305 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L183">Source·Code</a></p> | 301 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L183">Source·Code</a></p> |
306 | <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> | 302 | <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> |
307 | <p>Since:·5.1.8</p> | 303 | <p>Since:·5.1.8</p> |
308 | <blockquote> | 304 | <blockquote> |
309 | <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> | 305 | <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> |
310 | </blockquote> | 306 | </blockquote> |
311 | <h1·id="al_install_haptic">al_install_haptic</h1> | 307 | <h1·id="al_install_haptic">al_install_haptic</h1> |
Offset 572, 12 lines modified | Offset 568, 12 lines modified | ||
572 | <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> | 568 | <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> |
573 | <p>Since:·5.1.8</p> | 569 | <p>Since:·5.1.8</p> |
574 | <blockquote> | 570 | <blockquote> |
575 | <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> | 571 | <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> |
576 | </blockquote> | 572 | </blockquote> |
577 | <p·class="timestamp"> | 573 | <p·class="timestamp"> |
578 | Allegro·version·5.2.6 | 574 | Allegro·version·5.2.6 |
579 | ·-·Last·updated:·202 | 575 | ·-·Last·updated:·2024-01-06·13:49:33·UTC |
580 | </p> | 576 | </p> |
581 | </div> | 577 | </div> |
582 | </body> | 578 | </body> |
583 | </html> | 579 | </html> |
Offset 86, 26 lines modified | Offset 86, 24 lines modified | ||
86 | functions·are·declared·in·the·main·Allegro·header·file: | 86 | functions·are·declared·in·the·main·Allegro·header·file: |
87 | ·#include·<allegro5/allegro.h> | 87 | ·#include·<allegro5/allegro.h> |
88 | Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows·for | 88 | Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows·for |
89 | DirectInput·compatible·devices.·There·is·also·minimal·support·for·Android.·It | 89 | DirectInput·compatible·devices.·There·is·also·minimal·support·for·Android.·It |
90 | is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput·compatible·devices. | 90 | is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput·compatible·devices. |
91 | ******·ALLEGRO_HAPTIC·****** | 91 | ******·ALLEGRO_HAPTIC·****** |
92 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; | 92 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; |
93 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; | ||
94 | Source_Code | 93 | Source_Code |
95 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force | 94 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force |
96 | feedback·or·vibration. | 95 | feedback·or·vibration. |
97 | Since:·5.1.8 | 96 | Since:·5.1.8 |
98 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for | 97 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for |
99 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 98 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
100 | ·····feedback·from·users. | 99 | ·····feedback·from·users. |
101 | See·also:·al_get_haptic_from_joystick | 100 | See·also:·al_get_haptic_from_joystick |
102 | ******·ALLEGRO_HAPTIC_CONSTANTS·****** | 101 | ******·ALLEGRO_HAPTIC_CONSTANTS·****** |
103 | enum·ALLEGRO_HAPTIC_CONSTANTS | 102 | enum·ALLEGRO_HAPTIC_CONSTANTS |
104 | enum·ALLEGRO_HAPTIC_CONSTANTS | ||
105 | Source_Code | 103 | Source_Code |
106 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and | 104 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and |
107 | capabilities.·If·the·flag·is·set·in·the·return·value·of | 105 | capabilities.·If·the·flag·is·set·in·the·return·value·of |
108 | al_get_haptic_capabilities,·it·means·the·device·supports·the·given·effect.·The | 106 | al_get_haptic_capabilities,·it·means·the·device·supports·the·given·effect.·The |
109 | value·of·these·flags·should·be·set·into·a·ALLEGRO_HAPTIC_EFFECT·struct·to | 107 | value·of·these·flags·should·be·set·into·a·ALLEGRO_HAPTIC_EFFECT·struct·to |
110 | determine·what·kind·of·haptic·effect·should·be·played. | 108 | determine·what·kind·of·haptic·effect·should·be·played. |
111 | ····*·ALLEGRO_HAPTIC_RUMBLE·-·simple·vibration·effects | 109 | ····*·ALLEGRO_HAPTIC_RUMBLE·-·simple·vibration·effects |
Offset 130, 15 lines modified | Offset 128, 14 lines modified | ||
130 | Since:·5.1.8 | 128 | Since:·5.1.8 |
131 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for | 129 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for |
132 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 130 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
133 | ·····feedback·from·users. | 131 | ·····feedback·from·users. |
134 | See·also:·al_get_haptic_capabilities,·ALLEGRO_HAPTIC_EFFECT | 132 | See·also:·al_get_haptic_capabilities,·ALLEGRO_HAPTIC_EFFECT |
135 | ******·ALLEGRO_HAPTIC_EFFECT·****** | 133 | ******·ALLEGRO_HAPTIC_EFFECT·****** |
136 | struct·ALLEGRO_HAPTIC_EFFECT | 134 | struct·ALLEGRO_HAPTIC_EFFECT |
137 | struct·ALLEGRO_HAPTIC_EFFECT | ||
138 | Source_Code | 135 | Source_Code |
139 | This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs·to·be | 136 | This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs·to·be |
140 | filled·in·correctly·and·uploaded·to·a·haptic·device·before·the·device·can·play | 137 | filled·in·correctly·and·uploaded·to·a·haptic·device·before·the·device·can·play |
141 | it·back. | 138 | it·back. |
142 | Fields: | 139 | Fields: |
143 | ··type | 140 | ··type |
144 | ······The·type·of·the·haptic·effect.·May·be·one·of·the·ALLEGRO_HAPTIC_CONSTANTS | 141 | ······The·type·of·the·haptic·effect.·May·be·one·of·the·ALLEGRO_HAPTIC_CONSTANTS |
Offset 294, 15 lines modified | Offset 291, 14 lines modified | ||
294 | ······throughout·its·playback. | 291 | ······throughout·its·playback. |
295 | Since:·5.1.8 | 292 | Since:·5.1.8 |
296 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for | 293 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for |
297 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 294 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
298 | ·····feedback·from·users. | 295 | ·····feedback·from·users. |
299 | ******·ALLEGRO_HAPTIC_EFFECT_ID·****** | 296 | ******·ALLEGRO_HAPTIC_EFFECT_ID·****** |
300 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; | 297 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; |
301 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; | ||
302 | Source_Code | 298 | Source_Code |
303 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect·and | 299 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect·and |
304 | should·be·considered·opaque.·Its·implementation·is·visible·merely·to·allow | 300 | should·be·considered·opaque.·Its·implementation·is·visible·merely·to·allow |
305 | allocation·by·the·users·of·the·Allegro·library. | 301 | allocation·by·the·users·of·the·Allegro·library. |
306 | Since:·5.1.8 | 302 | Since:·5.1.8 |
307 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for | 303 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for |
308 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 304 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
Offset 674, 8 lines modified | Offset 670, 8 lines modified | ||
674 | again·manually·in·this·case.·However,·if·true·is·returned,·it·is·necessary·to | 670 | again·manually·in·this·case.·However,·if·true·is·returned,·it·is·necessary·to |
675 | call·al_release_haptic_effect·when·the·effect·isnât·needed·anymore,·to | 671 | call·al_release_haptic_effect·when·the·effect·isnât·needed·anymore,·to |
676 | prevent·the·amount·of·available·effects·on·the·haptic·device·from·running·out. | 672 | prevent·the·amount·of·available·effects·on·the·haptic·device·from·running·out. |
677 | Since:·5.1.8 | 673 | Since:·5.1.8 |
678 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for | 674 | ·····Unstable_API:·Perhaps·could·be·simplified·due·to·limited·support·for |
679 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 675 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
680 | ·····feedback·from·users. | 676 | ·····feedback·from·users. |
681 | Allegro·version·5.2.6·-·Last·updated:·202 | 677 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:33·UTC |
Offset 169, 37 lines modified | Offset 169, 33 lines modified | ||
169 | <li><a·href="#al_get_allegro_image_version">al_get_allegro_image_version</a></li> | 169 | <li><a·href="#al_get_allegro_image_version">al_get_allegro_image_version</a></li> |
170 | </ul> | 170 | </ul> |
171 | </nav> | 171 | </nav> |
172 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_image.</p> | 172 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_image.</p> |
173 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_image.h></span></span></code></pre></div> | 173 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_image.h></span></span></code></pre></div> |
174 | <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> | 174 | <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> |
175 | <h1·id="al_init_image_addon">al_init_image_addon</h1> | 175 | <h1·id="al_init_image_addon">al_init_image_addon</h1> |
176 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_image_addon(<span·class="dt">void</span>)</span> | 176 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_image_addon(<span·class="dt">void</span>)</span></code></pre></div> |
177 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_image_addon(<span·class="dt">void</span>)</span></code></pre></div> | ||
178 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L14">Source·Code</a></p> | 177 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L14">Source·Code</a></p> |
179 | <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> | 178 | <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> |
180 | <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> | 179 | <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> |
181 | <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> | 180 | <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> |
182 | <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> | 181 | <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> |
183 | <h1·id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1> | 182 | <h1·id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1> |
184 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_image_addon_initialized(<span·class="dt">void</span>)</span> | 183 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_image_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> |
185 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_image_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> | ||
186 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source·Code</a></p> | 184 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source·Code</a></p> |
187 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false.</p> | 185 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false.</p> |
188 | <p>Since:·5.2.6</p> | 186 | <p>Since:·5.2.6</p> |
189 | <h1·id="al_shutdown_image_addon">al_shutdown_image_addon</h1> | 187 | <h1·id="al_shutdown_image_addon">al_shutdown_image_addon</h1> |
190 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_image_addon(<span·class="dt">void</span>)</span> | 188 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_image_addon(<span·class="dt">void</span>)</span></code></pre></div> |
191 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_image_addon(<span·class="dt">void</span>)</span></code></pre></div> | ||
192 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L177">Source·Code</a></p> | 189 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L177">Source·Code</a></p> |
193 | <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> | 190 | <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> |
194 | <h1·id="al_get_allegro_image_version">al_get_allegro_image_version</h1> | 191 | <h1·id="al_get_allegro_image_version">al_get_allegro_image_version</h1> |
195 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_image_version(<span·class="dt">void</span>)</span> | 192 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_image_version(<span·class="dt">void</span>)</span></code></pre></div> |
196 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_image_version(<span·class="dt">void</span>)</span></code></pre></div> | ||
197 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L185">Source·Code</a></p> | 193 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L185">Source·Code</a></p> |
198 | <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> | 194 | <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> |
199 | <p·class="timestamp"> | 195 | <p·class="timestamp"> |
200 | Allegro·version·5.2.6 | 196 | Allegro·version·5.2.6 |
201 | ·-·Last·updated:·202 | 197 | ·-·Last·updated:·2024-01-06·13:49:38·UTC |
202 | </p> | 198 | </p> |
203 | </div> | 199 | </div> |
204 | </body> | 200 | </body> |
205 | </html> | 201 | </html> |
Offset 55, 15 lines modified | Offset 55, 14 lines modified | ||
55 | allegro_image. | 55 | allegro_image. |
56 | ·#include·<allegro5/allegro_image.h> | 56 | ·#include·<allegro5/allegro_image.h> |
57 | Some·of·the·format·handlers·define·configuration·options·for·specifying·things | 57 | Some·of·the·format·handlers·define·configuration·options·for·specifying·things |
58 | like·compression·level·or·gamma·handling.·Refer·to·al_get_system_config·for | 58 | like·compression·level·or·gamma·handling.·Refer·to·al_get_system_config·for |
59 | their·documentation. | 59 | their·documentation. |
60 | ******·al_init_image_addon·****** | 60 | ******·al_init_image_addon·****** |
61 | bool·al_init_image_addon(void) | 61 | bool·al_init_image_addon(void) |
62 | bool·al_init_image_addon(void) | ||
63 | Source_Code | 62 | Source_Code |
64 | Initializes·the·image·addon.·This·registers·bitmap·format·handlers·for | 63 | Initializes·the·image·addon.·This·registers·bitmap·format·handlers·for |
65 | al_load_bitmap,·al_load_bitmap_f,·al_save_bitmap,·al_save_bitmap_f. | 64 | al_load_bitmap,·al_load_bitmap_f,·al_save_bitmap,·al_save_bitmap_f. |
66 | The·following·types·are·built·into·the·Allegro·image·addon·and·guaranteed·to·be | 65 | The·following·types·are·built·into·the·Allegro·image·addon·and·guaranteed·to·be |
67 | available:·BMP,·DDS,·PCX,·TGA.·Every·platform·also·supports·JPEG·and·PNG·via | 66 | available:·BMP,·DDS,·PCX,·TGA.·Every·platform·also·supports·JPEG·and·PNG·via |
68 | external·dependencies. | 67 | external·dependencies. |
69 | Other·formats·may·be·available·depending·on·the·operating·system·and·installed | 68 | Other·formats·may·be·available·depending·on·the·operating·system·and·installed |
Offset 71, 24 lines modified | Offset 70, 21 lines modified | ||
71 | available. | 70 | available. |
72 | The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file | 71 | The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file |
73 | contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when | 72 | contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when |
74 | loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will | 73 | loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will |
75 | have·the·pixel·format·matching·the·format·in·the·file. | 74 | have·the·pixel·format·matching·the·format·in·the·file. |
76 | ******·al_is_image_addon_initialized·****** | 75 | ******·al_is_image_addon_initialized·****** |
77 | bool·al_is_image_addon_initialized(void) | 76 | bool·al_is_image_addon_initialized(void) |
78 | bool·al_is_image_addon_initialized(void) | ||
79 | Source_Code | 77 | Source_Code |
80 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. | 78 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. |
81 | Since:·5.2.6 | 79 | Since:·5.2.6 |
82 | ******·al_shutdown_image_addon·****** | 80 | ******·al_shutdown_image_addon·****** |
83 | void·al_shutdown_image_addon(void) | 81 | void·al_shutdown_image_addon(void) |
84 | void·al_shutdown_image_addon(void) | ||
85 | Source_Code | 82 | Source_Code |
86 | Shut·down·the·image·addon.·This·is·done·automatically·at·program·exit,·but·can | 83 | Shut·down·the·image·addon.·This·is·done·automatically·at·program·exit,·but·can |
87 | be·called·any·time·the·user·wishes·as·well. | 84 | be·called·any·time·the·user·wishes·as·well. |
88 | ******·al_get_allegro_image_version·****** | 85 | ******·al_get_allegro_image_version·****** |
89 | uint32_t·al_get_allegro_image_version(void) | 86 | uint32_t·al_get_allegro_image_version(void) |
90 | uint32_t·al_get_allegro_image_version(void) | ||
91 | Source_Code | 87 | Source_Code |
92 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 88 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
93 | al_get_allegro_version. | 89 | al_get_allegro_version. |
94 | Allegro·version·5.2.6·-·Last·updated:·202 | 90 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:38·UTC |
Offset 154, 12 lines modified | Offset 154, 12 lines modified | ||
154 | <li><a·href="native_dialog.html">Native·dialogs·addon</a></li> | 154 | <li><a·href="native_dialog.html">Native·dialogs·addon</a></li> |
155 | <li><a·href="physfs.html">PhysicsFS·addon</a></li> | 155 | <li><a·href="physfs.html">PhysicsFS·addon</a></li> |
156 | <li><a·href="primitives.html">Primitives·addon</a></li> | 156 | <li><a·href="primitives.html">Primitives·addon</a></li> |
157 | <li><a·href="video.html">Video·streaming·addon</a></li> | 157 | <li><a·href="video.html">Video·streaming·addon</a></li> |
158 | </ul> | 158 | </ul> |
159 | <p·class="timestamp"> | 159 | <p·class="timestamp"> |
160 | Allegro·version·5.2.6 | 160 | Allegro·version·5.2.6 |
161 | ·-·Last·updated:·202 | 161 | ·-·Last·updated:·2024-01-06·13:49:38·UTC |
162 | </p> | 162 | </p> |
163 | </div> | 163 | </div> |
164 | </body> | 164 | </body> |
165 | </html> | 165 | </html> |
Offset 88, 8 lines modified | Offset 88, 8 lines modified | ||
88 | ····*·Image_I/O_addon | 88 | ····*·Image_I/O_addon |
89 | ····*·Main_addon | 89 | ····*·Main_addon |
90 | ····*·Memfile_addon | 90 | ····*·Memfile_addon |
91 | ····*·Native_dialogs_addon | 91 | ····*·Native_dialogs_addon |
92 | ····*·PhysicsFS_addon | 92 | ····*·PhysicsFS_addon |
93 | ····*·Primitives_addon | 93 | ····*·Primitives_addon |
94 | ····*·Video_streaming_addon | 94 | ····*·Video_streaming_addon |
95 | Allegro·version·5.2.6·-·Last·updated:·202 | 95 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:38·UTC |
Offset 1287, 12 lines modified | Offset 1287, 12 lines modified | ||
1287 | <li><a·href="platform.html#al_win_add_window_callback">al_win_add_window_callback</a>·<!--·--></li> | 1287 | <li><a·href="platform.html#al_win_add_window_callback">al_win_add_window_callback</a>·<!--·--></li> |
1288 | <li><a·href="platform.html#al_win_remove_window_callback">al_win_remove_window_callback</a>·<!--·--></li> | 1288 | <li><a·href="platform.html#al_win_remove_window_callback">al_win_remove_window_callback</a>·<!--·--></li> |
1289 | <li><a·href="platform.html#al_x_set_initial_icon">al_x_set_initial_icon</a>·<!--·--></li> | 1289 | <li><a·href="platform.html#al_x_set_initial_icon">al_x_set_initial_icon</a>·<!--·--></li> |
1290 | <li><a·href="platform.html#iphone">iPhone</a>·<!--·--></li> | 1290 | <li><a·href="platform.html#iphone">iPhone</a>·<!--·--></li> |
1291 | </ul> | 1291 | </ul> |
1292 | <p·class="timestamp"> | 1292 | <p·class="timestamp"> |
1293 | Allegro·version·5.2.6 | 1293 | Allegro·version·5.2.6 |
1294 | ·-·Last·updated:·202 | 1294 | ·-·Last·updated:·2024-01-06·13:49:38·UTC |
1295 | </p> | 1295 | </p> |
1296 | </div> | 1296 | </div> |
1297 | </body> | 1297 | </body> |
1298 | </html> | 1298 | </html> |
Offset 1230, 8 lines modified | Offset 1230, 8 lines modified | ||
1230 | ····*·al_wait_for_event_timed | 1230 | ····*·al_wait_for_event_timed |
1231 | ····*·al_wait_for_event_until | 1231 | ····*·al_wait_for_event_until |
1232 | ····*·al_wait_for_vsync | 1232 | ····*·al_wait_for_vsync |
1233 | ····*·al_win_add_window_callback | 1233 | ····*·al_win_add_window_callback |
1234 | ····*·al_win_remove_window_callback | 1234 | ····*·al_win_remove_window_callback |
1235 | ····*·al_x_set_initial_icon | 1235 | ····*·al_x_set_initial_icon |
1236 | ····*·iPhone | 1236 | ····*·iPhone |
1237 | Allegro·version·5.2.6·-·Last·updated:·202 | 1237 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:38·UTC |
Offset 186, 32 lines modified | Offset 186, 29 lines modified | ||
186 | <li><a·href="#al_get_joystick_event_source">al_get_joystick_event_source</a></li> | 186 | <li><a·href="#al_get_joystick_event_source">al_get_joystick_event_source</a></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"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 190 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
191 | <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> | 191 | <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> |
192 | <h1·id="allegro_joystick">ALLEGRO_JOYSTICK</h1> | 192 | <h1·id="allegro_joystick">ALLEGRO_JOYSTICK</h1> |
193 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK;</span> | 193 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK;</span></code></pre></div> |
194 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK;</span></code></pre></div> | ||
195 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L35">Source·Code</a></p> | 194 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L35">Source·Code</a></p> |
196 | <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p> | 195 | <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p> |
197 | <p>See·also:·<a·href="joystick.html#al_get_joystick">al_get_joystick</a></p> | 196 | <p>See·also:·<a·href="joystick.html#al_get_joystick">al_get_joystick</a></p> |
198 | <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1> | 197 | <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1> |
199 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE;</span> | 198 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE;</span></code></pre></div> |
200 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE;</span></code></pre></div> | ||
201 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L41">Source·Code</a></p> | 199 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L41">Source·Code</a></p> |
202 | <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 | <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> |
203 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">struct</span>·{</span> | 201 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">struct</span>·{</span> |
204 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·axis[num_axes];·············<span·class="co">//·-1.0·to·1.0</span></span> | 202 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·axis[num_axes];·············<span·class="co">//·-1.0·to·1.0</span></span> |
205 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"></a>}·stick[num_sticks];</span> | 203 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"></a>}·stick[num_sticks];</span> |
206 | <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"></a><span·class="dt">int</span>·button[num_buttons];·············<span·class="co">//·0·to·32767</span></span></code></pre></div> | 204 | <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"></a><span·class="dt">int</span>·button[num_buttons];·············<span·class="co">//·0·to·32767</span></span></code></pre></div> |
207 | <p>See·also:·<a·href="joystick.html#al_get_joystick_state">al_get_joystick_state</a></p> | 205 | <p>See·also:·<a·href="joystick.html#al_get_joystick_state">al_get_joystick_state</a></p> |
208 | <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1> | 206 | <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1> |
209 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</span> | 207 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</span></code></pre></div> |
210 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</span></code></pre></div> | ||
211 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L54">Source·Code</a></p> | 208 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L54">Source·Code</a></p> |
212 | <ul> | 209 | <ul> |
213 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> | 210 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> |
214 | <li>ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input</li> | 211 | <li>ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input</li> |
215 | </ul> | 212 | </ul> |
216 | <p>(this·enum·is·a·holdover·from·the·old·API·and·may·be·removed)</p> | 213 | <p>(this·enum·is·a·holdover·from·the·old·API·and·may·be·removed)</p> |
217 | <p>See·also:·<a·href="joystick.html#al_get_joystick_stick_flags">al_get_joystick_stick_flags</a></p> | 214 | <p>See·also:·<a·href="joystick.html#al_get_joystick_stick_flags">al_get_joystick_stick_flags</a></p> |
Offset 308, 12 lines modified | Offset 305, 12 lines modified | ||
308 | <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> | 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> |
309 | <h1·id="al_get_joystick_event_source">al_get_joystick_event_source</h1> | 306 | <h1·id="al_get_joystick_event_source">al_get_joystick_event_source</h1> |
310 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb23-1"><a·href="#cb23-1"·aria-hidden="true"></a>ALLEGRO_EVENT_SOURCE·*al_get_joystick_event_source(<span·class="dt">void</span>)</span></code></pre></div> | 307 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb23-1"><a·href="#cb23-1"·aria-hidden="true"></a>ALLEGRO_EVENT_SOURCE·*al_get_joystick_event_source(<span·class="dt">void</span>)</span></code></pre></div> |
311 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L114">Source·Code</a></p> | 308 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L114">Source·Code</a></p> |
312 | <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> | 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> |
313 | <p·class="timestamp"> | 310 | <p·class="timestamp"> |
314 | Allegro·version·5.2.6 | 311 | Allegro·version·5.2.6 |
315 | ·-·Last·updated:·202 | 312 | ·-·Last·updated:·2024-01-06·13:49:34·UTC |
316 | </p> | 313 | </p> |
317 | </div> | 314 | </div> |
318 | </body> | 315 | </body> |
319 | </html> | 316 | </html> |
Offset 75, 32 lines modified | Offset 75, 29 lines modified | ||
75 | al_set_config_value(al_get_system_config(),·âjoystickâ,·âdriverâ, | 75 | al_set_config_value(al_get_system_config(),·âjoystickâ,·âdriverâ, |
76 | âxinputâ)·before·calling·al_install_joystick,·or·by·setting·the·same·option | 76 | âxinputâ)·before·calling·al_install_joystick,·or·by·setting·the·same·option |
77 | in·the·allegro5.cfg·configuration·file.·The·Xinput·and·DirectInput·drivers·are | 77 | in·the·allegro5.cfg·configuration·file.·The·Xinput·and·DirectInput·drivers·are |
78 | mutually·exclusive.·The·haptics·subsystem·will·use·the·same·driver·as·the | 78 | mutually·exclusive.·The·haptics·subsystem·will·use·the·same·driver·as·the |
79 | joystick·system·does. | 79 | joystick·system·does. |
80 | ******·ALLEGRO_JOYSTICK·****** | 80 | ******·ALLEGRO_JOYSTICK·****** |
81 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; | 81 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; |
82 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; | ||
83 | Source_Code | 82 | Source_Code |
84 | This·is·an·abstract·data·type·representing·a·physical·joystick. | 83 | This·is·an·abstract·data·type·representing·a·physical·joystick. |
85 | See·also:·al_get_joystick | 84 | See·also:·al_get_joystick |
86 | ******·ALLEGRO_JOYSTICK_STATE·****** | 85 | ******·ALLEGRO_JOYSTICK_STATE·****** |
87 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | 86 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; |
88 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | ||
89 | Source_Code | 87 | Source_Code |
90 | This·is·a·structure·that·is·used·to·hold·a·âsnapshotâ·of·a·joystickâs | 88 | This·is·a·structure·that·is·used·to·hold·a·âsnapshotâ·of·a·joystickâs |
91 | axes·and·buttons·at·a·particular·instant.·All·fields·public·and·read-only. | 89 | axes·and·buttons·at·a·particular·instant.·All·fields·public·and·read-only. |
92 | struct·{ | 90 | struct·{ |
93 | ···float·axis[num_axes];·············//·-1.0·to·1.0 | 91 | ···float·axis[num_axes];·············//·-1.0·to·1.0 |
94 | }·stick[num_sticks]; | 92 | }·stick[num_sticks]; |
95 | int·button[num_buttons];·············//·0·to·32767 | 93 | int·button[num_buttons];·············//·0·to·32767 |
96 | See·also:·al_get_joystick_state | 94 | See·also:·al_get_joystick_state |
97 | ******·ALLEGRO_JOYFLAGS·****** | 95 | ******·ALLEGRO_JOYFLAGS·****** |
98 | enum·ALLEGRO_JOYFLAGS | 96 | enum·ALLEGRO_JOYFLAGS |
99 | enum·ALLEGRO_JOYFLAGS | ||
100 | Source_Code | 97 | Source_Code |
101 | ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input | 98 | ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input |
102 | ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input | 99 | ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input |
103 | (this·enum·is·a·holdover·from·the·old·API·and·may·be·removed) | 100 | (this·enum·is·a·holdover·from·the·old·API·and·may·be·removed) |
104 | See·also:·al_get_joystick_stick_flags | 101 | See·also:·al_get_joystick_stick_flags |
105 | ******·al_install_joystick·****** | 102 | ******·al_install_joystick·****** |
106 | bool·al_install_joystick(void) | 103 | bool·al_install_joystick(void) |
Offset 231, 8 lines modified | Offset 228, 8 lines modified | ||
231 | See·also:·ALLEGRO_JOYSTICK_STATE,·al_get_joystick_num_buttons, | 228 | See·also:·ALLEGRO_JOYSTICK_STATE,·al_get_joystick_num_buttons, |
232 | al_get_joystick_num_axes | 229 | al_get_joystick_num_axes |
233 | ******·al_get_joystick_event_source·****** | 230 | ******·al_get_joystick_event_source·****** |
234 | ALLEGRO_EVENT_SOURCE·*al_get_joystick_event_source(void) | 231 | ALLEGRO_EVENT_SOURCE·*al_get_joystick_event_source(void) |
235 | Source_Code | 232 | Source_Code |
236 | Returns·the·global·joystick·event·source.·All·joystick_events·are·generated·by | 233 | Returns·the·global·joystick·event·source.·All·joystick_events·are·generated·by |
237 | this·event·source. | 234 | this·event·source. |
238 | Allegro·version·5.2.6·-·Last·updated:·202 | 235 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:34·UTC |
Offset 176, 16 lines modified | Offset 176, 15 lines modified | ||
176 | <li><a·href="#al_set_keyboard_leds">al_set_keyboard_leds</a></li> | 176 | <li><a·href="#al_set_keyboard_leds">al_set_keyboard_leds</a></li> |
177 | <li><a·href="#al_get_keyboard_event_source">al_get_keyboard_event_source</a></li> | 177 | <li><a·href="#al_get_keyboard_event_source">al_get_keyboard_event_source</a></li> |
178 | </ul> | 178 | </ul> |
179 | </nav> | 179 | </nav> |
180 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 180 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
181 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 181 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
182 | <h1·id="allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</h1> | 182 | <h1·id="allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</h1> |
183 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE;</span> | 183 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE;</span></code></pre></div> |
184 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE;</span></code></pre></div> | ||
185 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/keyboard.h#L33">Source·Code</a></p> | 184 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/keyboard.h#L33">Source·Code</a></p> |
186 | <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> | 185 | <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> |
187 | <ul> | 186 | <ul> |
188 | <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> | 187 | <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> |
189 | </ul> | 188 | </ul> |
190 | <p>You·cannot·read·the·state·of·keys·directly.·Use·the·function·<a·href="keyboard.html#al_key_down">al_key_down</a>.</p> | 189 | <p>You·cannot·read·the·state·of·keys·directly.·Use·the·function·<a·href="keyboard.html#al_key_down">al_key_down</a>.</p> |
191 | <h1·id="key-codes">Key·codes</h1> | 190 | <h1·id="key-codes">Key·codes</h1> |
Offset 345, 12 lines modified | Offset 344, 12 lines modified | ||
345 | <h1·id="al_get_keyboard_event_source">al_get_keyboard_event_source</h1> | 344 | <h1·id="al_get_keyboard_event_source">al_get_keyboard_event_source</h1> |
346 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a>ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(<span·class="dt">void</span>)</span></code></pre></div> | 345 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a>ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(<span·class="dt">void</span>)</span></code></pre></div> |
347 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L293">Source·Code</a></p> | 346 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L293">Source·Code</a></p> |
348 | <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> | 347 | <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> |
349 | <p>Returns·NULL·if·the·keyboard·subsystem·was·not·installed.</p> | 348 | <p>Returns·NULL·if·the·keyboard·subsystem·was·not·installed.</p> |
350 | <p·class="timestamp"> | 349 | <p·class="timestamp"> |
351 | Allegro·version·5.2.6 | 350 | Allegro·version·5.2.6 |
352 | ·-·Last·updated:·202 | 351 | ·-·Last·updated:·2024-01-06·13:49:34·UTC |
353 | </p> | 352 | </p> |
354 | </div> | 353 | </div> |
355 | </body> | 354 | </body> |
356 | </html> | 355 | </html> |
Offset 59, 15 lines modified | Offset 59, 14 lines modified | ||
59 | ····*·al_keycode_to_name | 59 | ····*·al_keycode_to_name |
60 | ····*·al_set_keyboard_leds | 60 | ····*·al_set_keyboard_leds |
61 | ····*·al_get_keyboard_event_source | 61 | ····*·al_get_keyboard_event_source |
62 | These·functions·are·declared·in·the·main·Allegro·header·file: | 62 | These·functions·are·declared·in·the·main·Allegro·header·file: |
63 | ·#include·<allegro5/allegro.h> | 63 | ·#include·<allegro5/allegro.h> |
64 | ******·ALLEGRO_KEYBOARD_STATE·****** | 64 | ******·ALLEGRO_KEYBOARD_STATE·****** |
65 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | 65 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; |
66 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | ||
67 | Source_Code | 66 | Source_Code |
68 | This·is·a·structure·that·is·used·to·hold·a·âsnapshotâ·of·a·keyboardâs | 67 | This·is·a·structure·that·is·used·to·hold·a·âsnapshotâ·of·a·keyboardâs |
69 | state·at·a·particular·instant.·It·contains·the·following·publically·readable | 68 | state·at·a·particular·instant.·It·contains·the·following·publically·readable |
70 | fields: | 69 | fields: |
71 | ····*·display·-·points·to·the·display·that·had·keyboard·focus·at·the·time·the | 70 | ····*·display·-·points·to·the·display·that·had·keyboard·focus·at·the·time·the |
72 | ······state·was·saved.·If·no·display·was·focused,·this·points·to·NULL. | 71 | ······state·was·saved.·If·no·display·was·focused,·this·points·to·NULL. |
73 | You·cannot·read·the·state·of·keys·directly.·Use·the·function·al_key_down. | 72 | You·cannot·read·the·state·of·keys·directly.·Use·the·function·al_key_down. |
Offset 245, 8 lines modified | Offset 244, 8 lines modified | ||
245 | current·keyboard·driver·cannot·set·LED·indicators. | 244 | current·keyboard·driver·cannot·set·LED·indicators. |
246 | ******·al_get_keyboard_event_source·****** | 245 | ******·al_get_keyboard_event_source·****** |
247 | ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(void) | 246 | ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(void) |
248 | Source_Code | 247 | Source_Code |
249 | Retrieve·the·keyboard·event·source.·All·keyboard_events·are·generated·by·this | 248 | Retrieve·the·keyboard·event·source.·All·keyboard_events·are·generated·by·this |
250 | event·source. | 249 | event·source. |
251 | Returns·NULL·if·the·keyboard·subsystem·was·not·installed. | 250 | Returns·NULL·if·the·keyboard·subsystem·was·not·installed. |
252 | Allegro·version·5.2.6·-·Last·updated:·202 | 251 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:34·UTC |
Offset 165, 12 lines modified | Offset 165, 12 lines modified | ||
165 | <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> | 165 | <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> |
166 | <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> | 166 | <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> |
167 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a><span·class="dt">int</span>·main(<span·class="dt">int</span>·argc,·<span·class="dt">char</span>·**argv)</span></code></pre></div> | 167 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a><span·class="dt">int</span>·main(<span·class="dt">int</span>·argc,·<span·class="dt">char</span>·**argv)</span></code></pre></div> |
168 | <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> | 168 | <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> |
169 | <p>Link·with·allegro_main.</p> | 169 | <p>Link·with·allegro_main.</p> |
170 | <p·class="timestamp"> | 170 | <p·class="timestamp"> |
171 | Allegro·version·5.2.6 | 171 | Allegro·version·5.2.6 |
172 | ·-·Last·updated:·202 | 172 | ·-·Last·updated:·2024-01-06·13:49:38·UTC |
173 | </p> | 173 | </p> |
174 | </div> | 174 | </div> |
175 | </body> | 175 | </body> |
176 | </html> | 176 | </html> |
Offset 56, 8 lines modified | Offset 56, 8 lines modified | ||
56 | If·the·user·main·function·is·defined·in·C++,·then·it·must·have·the·following | 56 | If·the·user·main·function·is·defined·in·C++,·then·it·must·have·the·following |
57 | signature·for·this·addon·to·work: | 57 | signature·for·this·addon·to·work: |
58 | int·main(int·argc,·char·**argv) | 58 | int·main(int·argc,·char·**argv) |
59 | This·addon·does·nothing·on·platforms·that·donât·require·its·functionality, | 59 | This·addon·does·nothing·on·platforms·that·donât·require·its·functionality, |
60 | but·you·should·keep·it·in·mind·in·case·you·need·to·port·to·platforms·that·do | 60 | but·you·should·keep·it·in·mind·in·case·you·need·to·port·to·platforms·that·do |
61 | require·it. | 61 | require·it. |
62 | Link·with·allegro_main. | 62 | Link·with·allegro_main. |
63 | Allegro·version·5.2.6·-·Last·updated:·202 | 63 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:38·UTC |
Offset 167, 25 lines modified | Offset 167, 23 lines modified | ||
167 | <li><a·href="#al_get_allegro_memfile_version">al_get_allegro_memfile_version</a></li> | 167 | <li><a·href="#al_get_allegro_memfile_version">al_get_allegro_memfile_version</a></li> |
168 | </ul> | 168 | </ul> |
169 | </nav> | 169 | </nav> |
170 | <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> | 170 | <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> |
171 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_memfile.</p> | 171 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_memfile.</p> |
172 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_memfile.h></span></span></code></pre></div> | 172 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_memfile.h></span></span></code></pre></div> |
173 | <h1·id="al_open_memfile">al_open_memfile</h1> | 173 | <h1·id="al_open_memfile">al_open_memfile</h1> |
174 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a>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)</span> | 174 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a>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)</span></code></pre></div> |
175 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a>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)</span></code></pre></div> | ||
176 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L169">Source·Code</a></p> | 175 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L169">Source·Code</a></p> |
177 | <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> | 176 | <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> |
178 | <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> | 177 | <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> |
179 | <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> | 178 | <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> |
180 | <h1·id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> | 179 | <h1·id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> |
181 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version(<span·class="dt">void</span>)</span> | 180 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version(<span·class="dt">void</span>)</span></code></pre></div> |
182 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version(<span·class="dt">void</span>)</span></code></pre></div> | ||
183 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source·Code</a></p> | 181 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source·Code</a></p> |
184 | <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>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·class="timestamp"> | 183 | <p·class="timestamp"> |
186 | Allegro·version·5.2.6 | 184 | Allegro·version·5.2.6 |
187 | ·-·Last·updated:·202 | 185 | ·-·Last·updated:·2024-01-06·13:49:38·UTC |
188 | </p> | 186 | </p> |
189 | </div> | 187 | </div> |
190 | </body> | 188 | </body> |
191 | </html> | 189 | </html> |
Offset 52, 24 lines modified | Offset 52, 22 lines modified | ||
52 | The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous·memory·as | 52 | The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous·memory·as |
53 | a·file·that·can·be·used·with·Allegroâs·I/O·functions. | 53 | a·file·that·can·be·used·with·Allegroâs·I/O·functions. |
54 | These·functions·are·declared·in·the·following·header·file.·Link·with | 54 | These·functions·are·declared·in·the·following·header·file.·Link·with |
55 | allegro_memfile. | 55 | allegro_memfile. |
56 | ·#include·<allegro5/allegro_memfile.h> | 56 | ·#include·<allegro5/allegro_memfile.h> |
57 | ******·al_open_memfile·****** | 57 | ******·al_open_memfile·****** |
58 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) | 58 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) |
59 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) | ||
60 | Source_Code | 59 | Source_Code |
61 | Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write·operations·act | 60 | Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write·operations·act |
62 | upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open. | 61 | upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open. |
63 | The·mode·can·be·any·combination·of·ârâ·(readable)·and·âwâ·(writable). | 62 | The·mode·can·be·any·combination·of·ârâ·(readable)·and·âwâ·(writable). |
64 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is | 63 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is |
65 | fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary | 64 | fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary |
66 | mode,·which·means·that·no·newline·translation·is·performed. | 65 | mode,·which·means·that·no·newline·translation·is·performed. |
67 | It·should·be·closed·with·al_fclose.·After·the·file·is·closed,·you·are | 66 | It·should·be·closed·with·al_fclose.·After·the·file·is·closed,·you·are |
68 | responsible·for·freeing·the·memory·(if·needed). | 67 | responsible·for·freeing·the·memory·(if·needed). |
69 | ******·al_get_allegro_memfile_version·****** | 68 | ******·al_get_allegro_memfile_version·****** |
70 | uint32_t·al_get_allegro_memfile_version(void) | 69 | uint32_t·al_get_allegro_memfile_version(void) |
71 | uint32_t·al_get_allegro_memfile_version(void) | ||
72 | Source_Code | 70 | Source_Code |
73 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 71 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
74 | al_get_allegro_version. | 72 | al_get_allegro_version. |
75 | Allegro·version·5.2.6·-·Last·updated:·202 | 73 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:38·UTC |
Offset 175, 45 lines modified | Offset 175, 37 lines modified | ||
175 | <li><a·href="#al_set_memory_interface">al_set_memory_interface</a></li> | 175 | <li><a·href="#al_set_memory_interface">al_set_memory_interface</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"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 179 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
180 | <h1·id="al_malloc">al_malloc</h1> | 180 | <h1·id="al_malloc">al_malloc</h1> |
181 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="pp">#define·al_malloc(n)·\</span></span> | 181 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="pp">#define·al_malloc(n)·\</span></span> |
182 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="pp">···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__))</span></span> | ||
183 | <span·id="cb2-3"><a·href="#cb2-3"·aria-hidden="true"></a><span·class="pp">#define·al_malloc(n)·\</span></span> | ||
184 | <span·id="cb2- | 182 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="pp">···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__))</span></span></code></pre></div> |
185 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L42">Source·Code</a></p> | 183 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L42">Source·Code</a></p> |
186 | <p>Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> | 184 | <p>Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> |
187 | <p>This·is·a·macro.</p> | 185 | <p>This·is·a·macro.</p> |
188 | <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 | <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> |
189 | <h1·id="al_free">al_free</h1> | 187 | <h1·id="al_free">al_free</h1> |
190 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="pp">#define·al_free(p)·\</span></span> | 188 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="pp">#define·al_free(p)·\</span></span> |
191 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="pp">···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__))</span></span> | ||
192 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"></a><span·class="pp">#define·al_free(p)·\</span></span> | ||
193 | <span·id="cb3- | 189 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="pp">···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__))</span></span></code></pre></div> |
194 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source·Code</a></p> | 190 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source·Code</a></p> |
195 | <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> | 191 | <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> |
196 | <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> | 192 | <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> |
197 | <p>This·is·a·macro.</p> | 193 | <p>This·is·a·macro.</p> |
198 | <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> | 194 | <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> |
199 | <h1·id="al_realloc">al_realloc</h1> | 195 | <h1·id="al_realloc">al_realloc</h1> |
200 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="pp">#define·al_realloc(p,·n)·\</span></span> | 196 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="pp">#define·al_realloc(p,·n)·\</span></span> |
201 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="pp">···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__))</span></span> | ||
202 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"></a><span·class="pp">#define·al_realloc(p,·n)·\</span></span> | ||
203 | <span·id="cb4- | 197 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="pp">···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__))</span></span></code></pre></div> |
204 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source·Code</a></p> | 198 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source·Code</a></p> |
205 | <p>Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> | 199 | <p>Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> |
206 | <p>This·is·a·macro.</p> | 200 | <p>This·is·a·macro.</p> |
207 | <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> | 201 | <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> |
208 | <h1·id="al_calloc">al_calloc</h1> | 202 | <h1·id="al_calloc">al_calloc</h1> |
209 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="pp">#define·al_calloc(c,·n)·\</span></span> | 203 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="pp">#define·al_calloc(c,·n)·\</span></span> |
210 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="pp">···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__))</span></span> | 204 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="pp">···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__))</span></span></code></pre></div> |
211 | <span·id="cb5-3"><a·href="#cb5-3"·aria-hidden="true"></a><span·class="pp">#define·al_calloc(c,·n)·\</span></span> | ||
212 | <span·id="cb5-4"><a·href="#cb5-4"·aria-hidden="true"></a><span·class="pp">···(ALLEGRO_AUDIO_STREAM·*stream,·float·val)</span></span></code></pre></div> | ||
213 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L57">Source·Code</a></p> | 205 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L57">Source·Code</a></p> |
214 | <p>Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> | 206 | <p>Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be·overridden.</p> |
215 | <p>This·is·a·macro.</p> | 207 | <p>This·is·a·macro.</p> |
216 | <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> | 208 | <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> |
217 | <h1·id="al_malloc_with_context">al_malloc_with_context</h1> | 209 | <h1·id="al_malloc_with_context">al_malloc_with_context</h1> |
218 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="dt">void</span>·*al_malloc_with_context(<span·class="dt">size_t</span>·n,</span> | 210 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="dt">void</span>·*al_malloc_with_context(<span·class="dt">size_t</span>·n,</span> |
219 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a>···<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)</span></code></pre></div> | 211 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a>···<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)</span></code></pre></div> |
Offset 235, 16 lines modified | Offset 227, 15 lines modified | ||
235 | <h1·id="al_calloc_with_context">al_calloc_with_context</h1> | 227 | <h1·id="al_calloc_with_context">al_calloc_with_context</h1> |
236 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="dt">void</span>·*al_calloc_with_context(<span·class="dt">size_t</span>·count,·<span·class="dt">size_t</span>·n,</span> | 228 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="dt">void</span>·*al_calloc_with_context(<span·class="dt">size_t</span>·count,·<span·class="dt">size_t</span>·n,</span> |
237 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"></a>···<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)</span></code></pre></div> | 229 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"></a>···<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)</span></code></pre></div> |
238 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L77">Source·Code</a></p> | 230 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L77">Source·Code</a></p> |
239 | <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> | 231 | <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> |
240 | <p>Generally·you·should·use·the·<a·href="memory.html#al_calloc">al_calloc</a>·macro.</p> | 232 | <p>Generally·you·should·use·the·<a·href="memory.html#al_calloc">al_calloc</a>·macro.</p> |
241 | <h1·id="allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</h1> | 233 | <h1·id="allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</h1> |
242 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE;</span> | 234 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE;</span></code></pre></div> |
243 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE;</span></code></pre></div> | ||
244 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L28">Source·Code</a></p> | 235 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L28">Source·Code</a></p> |
245 | <p>This·structure·has·the·following·fields.</p> | 236 | <p>This·structure·has·the·following·fields.</p> |
246 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><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);</span> | 237 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><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);</span> |
247 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a><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);</span> | 238 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a><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);</span> |
248 | <span·id="cb11-3"><a·href="#cb11-3"·aria-hidden="true"></a><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,</span> | 239 | <span·id="cb11-3"><a·href="#cb11-3"·aria-hidden="true"></a><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,</span> |
249 | <span·id="cb11-4"><a·href="#cb11-4"·aria-hidden="true"></a>····················<span·class="dt">const</span>·<span·class="dt">char</span>·*func);</span> | 240 | <span·id="cb11-4"><a·href="#cb11-4"·aria-hidden="true"></a>····················<span·class="dt">const</span>·<span·class="dt">char</span>·*func);</span> |
250 | <span·id="cb11-5"><a·href="#cb11-5"·aria-hidden="true"></a><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,</span> | 241 | <span·id="cb11-5"><a·href="#cb11-5"·aria-hidden="true"></a><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,</span> |
Offset 254, 12 lines modified | Offset 245, 12 lines modified | ||
254 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_memory_interface(ALLEGRO_MEMORY_INTERFACE·*memory_interface)</span></code></pre></div> | 245 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_memory_interface(ALLEGRO_MEMORY_INTERFACE·*memory_interface)</span></code></pre></div> |
255 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L29">Source·Code</a></p> | 246 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L29">Source·Code</a></p> |
256 | <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> | 247 | <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> |
257 | <p>If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored.</p> | 248 | <p>If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored.</p> |
258 | <p>See·also:·<a·href="memory.html#allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</a></p> | 249 | <p>See·also:·<a·href="memory.html#allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</a></p> |
259 | <p·class="timestamp"> | 250 | <p·class="timestamp"> |
260 | Allegro·version·5.2.6 | 251 | Allegro·version·5.2.6 |
261 | ·-·Last·updated:·202 | 252 | ·-·Last·updated:·2024-01-06·13:49:34·UTC |
262 | </p> | 253 | </p> |
263 | </div> | 254 | </div> |
264 | </body> | 255 | </body> |
265 | </html> | 256 | </html> |
Offset 58, 50 lines modified | Offset 58, 42 lines modified | ||
58 | ····*·ALLEGRO_MEMORY_INTERFACE | 58 | ····*·ALLEGRO_MEMORY_INTERFACE |
59 | ····*·al_set_memory_interface | 59 | ····*·al_set_memory_interface |
60 | These·functions·are·declared·in·the·main·Allegro·header·file: | 60 | These·functions·are·declared·in·the·main·Allegro·header·file: |
61 | ·#include·<allegro5/allegro.h> | 61 | ·#include·<allegro5/allegro.h> |
62 | ******·al_malloc·****** | 62 | ******·al_malloc·****** |
63 | #define·al_malloc(n)·\ | 63 | #define·al_malloc(n)·\ |
64 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | 64 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) |
65 | #define·al_malloc(n)·\ | ||
66 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | ||
67 | Source_Code | 65 | Source_Code |
68 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be | 66 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be |
69 | overridden. | 67 | overridden. |
70 | This·is·a·macro. | 68 | This·is·a·macro. |
71 | See·also:·al_free,·al_realloc,·al_calloc,·al_malloc_with_context, | 69 | See·also:·al_free,·al_realloc,·al_calloc,·al_malloc_with_context, |
72 | al_set_memory_interface | 70 | al_set_memory_interface |
73 | ******·al_free·****** | 71 | ******·al_free·****** |
74 | #define·al_free(p)·\ | 72 | #define·al_free(p)·\ |
75 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | 73 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) |
76 | #define·al_free(p)·\ | ||
77 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | ||
78 | Source_Code | 74 | Source_Code |
79 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be | 75 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be |
80 | overridden. | 76 | overridden. |
81 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed | 77 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed |
82 | from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a | 78 | from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a |
83 | pointer·that·must·be·freed,·you·must·use·al_free·for·portability·to·Windows. | 79 | pointer·that·must·be·freed,·you·must·use·al_free·for·portability·to·Windows. |
84 | This·is·a·macro. | 80 | This·is·a·macro. |
85 | See·also:·al_malloc,·al_free_with_context | 81 | See·also:·al_malloc,·al_free_with_context |
86 | ******·al_realloc·****** | 82 | ******·al_realloc·****** |
87 | #define·al_realloc(p,·n)·\ | 83 | #define·al_realloc(p,·n)·\ |
88 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | 84 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) |
89 | #define·al_realloc(p,·n)·\ | ||
90 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | ||
91 | Source_Code | 85 | Source_Code |
92 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be | 86 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be |
93 | overridden. | 87 | overridden. |
94 | This·is·a·macro. | 88 | This·is·a·macro. |
95 | See·also:·al_malloc,·al_realloc_with_context | 89 | See·also:·al_malloc,·al_realloc_with_context |
96 | ******·al_calloc·****** | 90 | ******·al_calloc·****** |
97 | #define·al_calloc(c,·n)·\ | 91 | #define·al_calloc(c,·n)·\ |
98 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | 92 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) |
99 | #define·al_calloc(c,·n)·\ | ||
100 | ···(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
101 | Source_Code | 93 | Source_Code |
102 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be | 94 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be |
103 | overridden. | 95 | overridden. |
104 | This·is·a·macro. | 96 | This·is·a·macro. |
105 | See·also:·al_malloc,·al_calloc_with_context | 97 | See·also:·al_malloc,·al_calloc_with_context |
106 | ******·al_malloc_with_context·****** | 98 | ******·al_malloc_with_context·****** |
107 | void·*al_malloc_with_context(size_t·n, | 99 | void·*al_malloc_with_context(size_t·n, |
Offset 129, 15 lines modified | Offset 121, 14 lines modified | ||
129 | ···int·line,·const·char·*file,·const·char·*func) | 121 | ···int·line,·const·char·*file,·const·char·*func) |
130 | Source_Code | 122 | Source_Code |
131 | This·calls·calloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless | 123 | This·calls·calloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless |
132 | overridden·with·al_set_memory_interface, | 124 | overridden·with·al_set_memory_interface, |
133 | Generally·you·should·use·the·al_calloc·macro. | 125 | Generally·you·should·use·the·al_calloc·macro. |
134 | ******·ALLEGRO_MEMORY_INTERFACE·****** | 126 | ******·ALLEGRO_MEMORY_INTERFACE·****** |
135 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; | 127 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; |
136 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; | ||
137 | Source_Code | 128 | Source_Code |
138 | This·structure·has·the·following·fields. | 129 | This·structure·has·the·following·fields. |
139 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); | 130 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); |
140 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); | 131 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); |
141 | void·*(*mi_realloc)(void·*ptr,·size_t·n,·int·line,·const·char·*file, | 132 | void·*(*mi_realloc)(void·*ptr,·size_t·n,·int·line,·const·char·*file, |
142 | ····················const·char·*func); | 133 | ····················const·char·*func); |
143 | void·*(*mi_calloc)(size_t·count,·size_t·n,·int·line,·const·char·*file, | 134 | void·*(*mi_calloc)(size_t·count,·size_t·n,·int·line,·const·char·*file, |
Offset 148, 8 lines modified | Offset 139, 8 lines modified | ||
148 | Source_Code | 139 | Source_Code |
149 | Override·the·memory·management·functions·with·implementations·of | 140 | Override·the·memory·management·functions·with·implementations·of |
150 | al_malloc_with_context,·al_free_with_context,·al_realloc_with_context·and | 141 | al_malloc_with_context,·al_free_with_context,·al_realloc_with_context·and |
151 | al_calloc_with_context.·The·context·arguments·may·be·used·for·debugging.·The | 142 | al_calloc_with_context.·The·context·arguments·may·be·used·for·debugging.·The |
152 | new·functions·should·be·thread·safe. | 143 | new·functions·should·be·thread·safe. |
153 | If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored. | 144 | If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored. |
154 | See·also:·ALLEGRO_MEMORY_INTERFACE | 145 | See·also:·ALLEGRO_MEMORY_INTERFACE |
155 | Allegro·version·5.2.6·-·Last·updated:·202 | 146 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:34·UTC |
Offset 166, 23 lines modified | Offset 166, 22 lines modified | ||
166 | <li><a·href="#allegro_pi">ALLEGRO_PI</a></li> | 166 | <li><a·href="#allegro_pi">ALLEGRO_PI</a></li> |
167 | <li><a·href="#al_run_main">al_run_main</a></li> | 167 | <li><a·href="#al_run_main">al_run_main</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"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 171 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
172 | <h1·id="allegro_pi">ALLEGRO_PI</h1> | 172 | <h1·id="allegro_pi">ALLEGRO_PI</h1> |
173 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_PI········3.14159265358979323846</span></span> | 173 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_PI········3.14159265358979323846</span></span></code></pre></div> |
174 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_PI········3.14159265358979323846</span></span></code></pre></div> | ||
175 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L93">Source·Code</a></p> | 174 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L93">Source·Code</a></p> |
176 | <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but·you·can·use·this·one·instead.</p> | 175 | <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but·you·can·use·this·one·instead.</p> |
177 | <h1·id="al_run_main">al_run_main</h1> | 176 | <h1·id="al_run_main">al_run_main</h1> |
178 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><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>·**))</span></code></pre></div> | 177 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><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>·**))</span></code></pre></div> |
179 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L36">Source·Code</a></p> | 178 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L36">Source·Code</a></p> |
180 | <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> | 179 | <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> |
181 | <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> | 180 | <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> |
182 | <p·class="timestamp"> | 181 | <p·class="timestamp"> |
183 | Allegro·version·5.2.6 | 182 | Allegro·version·5.2.6 |
184 | ·-·Last·updated:·202 | 183 | ·-·Last·updated:·2024-01-06·13:49:34·UTC |
185 | </p> | 184 | </p> |
186 | </div> | 185 | </div> |
187 | </body> | 186 | </body> |
188 | </html> | 187 | </html> |
Offset 49, 22 lines modified | Offset 49, 21 lines modified | ||
49 | ····*·ALLEGRO_PI | 49 | ····*·ALLEGRO_PI |
50 | ····*·al_run_main | 50 | ····*·al_run_main |
51 | These·functions·are·declared·in·the·main·Allegro·header·file: | 51 | These·functions·are·declared·in·the·main·Allegro·header·file: |
52 | ·#include·<allegro5/allegro.h> | 52 | ·#include·<allegro5/allegro.h> |
53 | ******·ALLEGRO_PI·****** | 53 | ******·ALLEGRO_PI·****** |
54 | #define·ALLEGRO_PI········3.14159265358979323846 | 54 | #define·ALLEGRO_PI········3.14159265358979323846 |
55 | #define·ALLEGRO_PI········3.14159265358979323846 | ||
56 | Source_Code | 55 | Source_Code |
57 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·Ï,·but·you | 56 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·Ï,·but·you |
58 | can·use·this·one·instead. | 57 | can·use·this·one·instead. |
59 | ******·al_run_main·****** | 58 | ******·al_run_main·****** |
60 | int·al_run_main(int·argc,·char·**argv,·int·(*user_main)(int,·char·**)) | 59 | int·al_run_main(int·argc,·char·**argv,·int·(*user_main)(int,·char·**)) |
61 | Source_Code | 60 | Source_Code |
62 | This·function·is·useful·in·cases·where·you·donât·have·a·main()·function·but | 61 | This·function·is·useful·in·cases·where·you·donât·have·a·main()·function·but |
63 | want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and | 62 | want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and |
64 | Linux·this·is·no·problem·because·you·simply·can·call·al_install_system.·But | 63 | Linux·this·is·no·problem·because·you·simply·can·call·al_install_system.·But |
65 | some·other·system·(like·OSX)·donât·allow·calling·al_install_system·in·the | 64 | some·other·system·(like·OSX)·donât·allow·calling·al_install_system·in·the |
66 | main·thread.·al_run_main·will·know·what·to·do·in·that·case. | 65 | main·thread.·al_run_main·will·know·what·to·do·in·that·case. |
67 | The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and·the·return | 66 | The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and·the·return |
68 | value·of·user_main·will·be·returned. | 67 | value·of·user_main·will·be·returned. |
69 | Allegro·version·5.2.6·-·Last·updated:·202 | 68 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:34·UTC |
Offset 170, 16 lines modified | Offset 170, 15 lines modified | ||
170 | <li><a·href="#al_get_monitor_dpi">al_get_monitor_dpi</a></li> | 170 | <li><a·href="#al_get_monitor_dpi">al_get_monitor_dpi</a></li> |
171 | <li><a·href="#al_get_num_video_adapters">al_get_num_video_adapters</a></li> | 171 | <li><a·href="#al_get_num_video_adapters">al_get_num_video_adapters</a></li> |
172 | </ul> | 172 | </ul> |
173 | </nav> | 173 | </nav> |
174 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 174 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
175 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 175 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
176 | <h1·id="allegro_monitor_info">ALLEGRO_MONITOR_INFO</h1> | 176 | <h1·id="allegro_monitor_info">ALLEGRO_MONITOR_INFO</h1> |
177 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</span> | 177 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</span></code></pre></div> |
178 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</span></code></pre></div> | ||
179 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/monitor.h#L13">Source·Code</a></p> | 178 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/monitor.h#L13">Source·Code</a></p> |
180 | <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> | 179 | <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> |
181 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</span> | 180 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</span> |
182 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a>{</span> | 181 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a>{</span> |
183 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"></a>···<span·class="dt">int</span>·x1;</span> | 182 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"></a>···<span·class="dt">int</span>·x1;</span> |
184 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"></a>···<span·class="dt">int</span>·y1;</span> | 183 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"></a>···<span·class="dt">int</span>·y1;</span> |
185 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"></a>···<span·class="dt">int</span>·x2;</span> | 184 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"></a>···<span·class="dt">int</span>·x2;</span> |
Offset 214, 12 lines modified | Offset 213, 12 lines modified | ||
214 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_num_video_adapters(<span·class="dt">void</span>)</span></code></pre></div> | 213 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_num_video_adapters(<span·class="dt">void</span>)</span></code></pre></div> |
215 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L23">Source·Code</a></p> | 214 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L23">Source·Code</a></p> |
216 | <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> | 215 | <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> |
217 | <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> | 216 | <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> |
218 | <p>See·also:·<a·href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> | 217 | <p>See·also:·<a·href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> |
219 | <p·class="timestamp"> | 218 | <p·class="timestamp"> |
220 | Allegro·version·5.2.6 | 219 | Allegro·version·5.2.6 |
221 | ·-·Last·updated:·202 | 220 | ·-·Last·updated:·2024-01-06·13:49:35·UTC |
222 | </p> | 221 | </p> |
223 | </div> | 222 | </div> |
224 | </body> | 223 | </body> |
225 | </html> | 224 | </html> |
Offset 53, 15 lines modified | Offset 53, 14 lines modified | ||
53 | ····*·al_get_monitor_info | 53 | ····*·al_get_monitor_info |
54 | ····*·al_get_monitor_dpi | 54 | ····*·al_get_monitor_dpi |
55 | ····*·al_get_num_video_adapters | 55 | ····*·al_get_num_video_adapters |
56 | These·functions·are·declared·in·the·main·Allegro·header·file: | 56 | These·functions·are·declared·in·the·main·Allegro·header·file: |
57 | ·#include·<allegro5/allegro.h> | 57 | ·#include·<allegro5/allegro.h> |
58 | ******·ALLEGRO_MONITOR_INFO·****** | 58 | ******·ALLEGRO_MONITOR_INFO·****** |
59 | typedef·struct·ALLEGRO_MONITOR_INFO | 59 | typedef·struct·ALLEGRO_MONITOR_INFO |
60 | typedef·struct·ALLEGRO_MONITOR_INFO | ||
61 | Source_Code | 60 | Source_Code |
62 | Describes·a·monitorâs·size·and·position·relative·to·other·monitors.·x1,·y1 | 61 | Describes·a·monitorâs·size·and·position·relative·to·other·monitors.·x1,·y1 |
63 | will·be·0,·0·on·the·primary·display.·Other·monitors·can·have·negative·values·if | 62 | will·be·0,·0·on·the·primary·display.·Other·monitors·can·have·negative·values·if |
64 | they·are·to·the·left·or·above·the·primary·display.·x2,·y2·are·the·coordinates | 63 | they·are·to·the·left·or·above·the·primary·display.·x2,·y2·are·the·coordinates |
65 | one·beyond·the·bottom·right·pixel,·so·that·x2-x1·gives·the·width·and·y2-y1 | 64 | one·beyond·the·bottom·right·pixel,·so·that·x2-x1·gives·the·width·and·y2-y1 |
66 | gives·the·height·of·the·display. | 65 | gives·the·height·of·the·display. |
67 | typedef·struct·ALLEGRO_MONITOR_INFO | 66 | typedef·struct·ALLEGRO_MONITOR_INFO |
Offset 107, 8 lines modified | Offset 106, 8 lines modified | ||
107 | Source_Code | 106 | Source_Code |
108 | Get·the·number·of·video·âadaptersâ·attached·to·the·computer.·Each·video | 107 | Get·the·number·of·video·âadaptersâ·attached·to·the·computer.·Each·video |
109 | card·attached·to·the·computer·counts·as·one·or·more·adapters.·An·adapter·is | 108 | card·attached·to·the·computer·counts·as·one·or·more·adapters.·An·adapter·is |
110 | thus·really·a·video·port·that·can·have·a·monitor·connected·to·it. | 109 | thus·really·a·video·port·that·can·have·a·monitor·connected·to·it. |
111 | On·Windows,·use·al_set_new_display_flags·to·switch·between·Direct3D·and·OpenGL | 110 | On·Windows,·use·al_set_new_display_flags·to·switch·between·Direct3D·and·OpenGL |
112 | backends,·which·will·often·have·different·adapters·available. | 111 | backends,·which·will·often·have·different·adapters·available. |
113 | See·also:·al_get_monitor_info | 112 | See·also:·al_get_monitor_info |
114 | Allegro·version·5.2.6·-·Last·updated:·202 | 113 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:35·UTC |
Offset 192, 16 lines modified | Offset 192, 15 lines modified | ||
192 | <li><a·href="#al_ungrab_mouse">al_ungrab_mouse</a></li> | 192 | <li><a·href="#al_ungrab_mouse">al_ungrab_mouse</a></li> |
193 | </ul></li> | 193 | </ul></li> |
194 | </ul> | 194 | </ul> |
195 | </nav> | 195 | </nav> |
196 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 196 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
197 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 197 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
198 | <h1·id="allegro_mouse_state">ALLEGRO_MOUSE_STATE</h1> | 198 | <h1·id="allegro_mouse_state">ALLEGRO_MOUSE_STATE</h1> |
199 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE;</span> | 199 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE;</span></code></pre></div> |
200 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE;</span></code></pre></div> | ||
201 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/mouse.h#L35">Source·Code</a></p> | 200 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/mouse.h#L35">Source·Code</a></p> |
202 | <p>Public·fields·(read·only):</p> | 201 | <p>Public·fields·(read·only):</p> |
203 | <ul> | 202 | <ul> |
204 | <li><p>x·-·mouse·x·position</p></li> | 203 | <li><p>x·-·mouse·x·position</p></li> |
205 | <li><p>y·-·mouse·y·position</p></li> | 204 | <li><p>y·-·mouse·y·position</p></li> |
206 | <li><p>w,·z·-·mouse·wheel·position·(2D·‘ball’)</p></li> | 205 | <li><p>w,·z·-·mouse·wheel·position·(2D·‘ball’)</p></li> |
207 | <li><p>buttons·-·mouse·buttons·bitfield</p> | 206 | <li><p>buttons·-·mouse·buttons·bitfield</p> |
Offset 396, 12 lines modified | Offset 395, 12 lines modified | ||
396 | <p>Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the·program.</p> | 395 | <p>Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the·program.</p> |
397 | <blockquote> | 396 | <blockquote> |
398 | <p><em>Note:</em>·not·yet·implemented·on·Mac·OS·X.</p> | 397 | <p><em>Note:</em>·not·yet·implemented·on·Mac·OS·X.</p> |
399 | </blockquote> | 398 | </blockquote> |
400 | <p>See·also:·<a·href="mouse.html#al_grab_mouse">al_grab_mouse</a></p> | 399 | <p>See·also:·<a·href="mouse.html#al_grab_mouse">al_grab_mouse</a></p> |
401 | <p·class="timestamp"> | 400 | <p·class="timestamp"> |
402 | Allegro·version·5.2.6 | 401 | Allegro·version·5.2.6 |
403 | ·-·Last·updated:·202 | 402 | ·-·Last·updated:·2024-01-06·13:49:35·UTC |
404 | </p> | 403 | </p> |
405 | </div> | 404 | </div> |
406 | </body> | 405 | </body> |
407 | </html> | 406 | </html> |
Offset 73, 15 lines modified | Offset 73, 14 lines modified | ||
73 | ··········o·al_show_mouse_cursor | 73 | ··········o·al_show_mouse_cursor |
74 | ··········o·al_grab_mouse | 74 | ··········o·al_grab_mouse |
75 | ··········o·al_ungrab_mouse | 75 | ··········o·al_ungrab_mouse |
76 | These·functions·are·declared·in·the·main·Allegro·header·file: | 76 | These·functions·are·declared·in·the·main·Allegro·header·file: |
77 | ·#include·<allegro5/allegro.h> | 77 | ·#include·<allegro5/allegro.h> |
78 | ******·ALLEGRO_MOUSE_STATE·****** | 78 | ******·ALLEGRO_MOUSE_STATE·****** |
79 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; | 79 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; |
80 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; | ||
81 | Source_Code | 80 | Source_Code |
82 | Public·fields·(read·only): | 81 | Public·fields·(read·only): |
83 | ····*·x·-·mouse·x·position | 82 | ····*·x·-·mouse·x·position |
84 | ····*·y·-·mouse·y·position | 83 | ····*·y·-·mouse·y·position |
85 | ····*·w,·z·-·mouse·wheel·position·(2D·âballâ) | 84 | ····*·w,·z·-·mouse·wheel·position·(2D·âballâ) |
86 | ····*·buttons·-·mouse·buttons·bitfield | 85 | ····*·buttons·-·mouse·buttons·bitfield |
87 | ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first | 86 | ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first |
Offset 301, 8 lines modified | Offset 300, 8 lines modified | ||
301 | See·also:·al_ungrab_mouse | 300 | See·also:·al_ungrab_mouse |
302 | *****·al_ungrab_mouse·***** | 301 | *****·al_ungrab_mouse·***** |
303 | bool·al_ungrab_mouse(void) | 302 | bool·al_ungrab_mouse(void) |
304 | Source_Code | 303 | Source_Code |
305 | Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the·program. | 304 | Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the·program. |
306 | ·····Note:·not·yet·implemented·on·Mac·OS·X. | 305 | ·····Note:·not·yet·implemented·on·Mac·OS·X. |
307 | See·also:·al_grab_mouse | 306 | See·also:·al_grab_mouse |
308 | Allegro·version·5.2.6·-·Last·updated:·202 | 307 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:35·UTC |
Offset 210, 58 lines modified | Offset 210, 48 lines modified | ||
210 | <li><a·href="#al_remove_display_menu">al_remove_display_menu</a></li> | 210 | <li><a·href="#al_remove_display_menu">al_remove_display_menu</a></li> |
211 | </ul></li> | 211 | </ul></li> |
212 | </ul> | 212 | </ul> |
213 | </nav> | 213 | </nav> |
214 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_dialog.</p> | 214 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_dialog.</p> |
215 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_native_dialog.h></span></span></code></pre></div> | 215 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_native_dialog.h></span></span></code></pre></div> |
216 | <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1> | 216 | <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1> |
217 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER;</span> | 217 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER;</span></code></pre></div> |
218 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER;</span></code></pre></div> | ||
219 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source·Code</a></p> | 218 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source·Code</a></p> |
220 | <p>Opaque·handle·to·a·native·file·dialog.</p> | 219 | <p>Opaque·handle·to·a·native·file·dialog.</p> |
221 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> | 220 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> |
222 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG;</span> | 221 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG;</span></code></pre></div> |
223 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG;</span></code></pre></div> | ||
224 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source·Code</a></p> | 222 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source·Code</a></p> |
225 | <p>Opaque·handle·to·a·text·log·window.</p> | 223 | <p>Opaque·handle·to·a·text·log·window.</p> |
226 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> | 224 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> |
227 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_native_dialog_addon(<span·class="dt">void</span>)</span> | 225 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_native_dialog_addon(<span·class="dt">void</span>)</span></code></pre></div> |
228 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_native_dialog_addon(<span·class="dt">void</span>)</span></code></pre></div> | ||
229 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L15">Source·Code</a></p> | 226 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L15">Source·Code</a></p> |
230 | <p>Initialise·the·native·dialog·addon.</p> | 227 | <p>Initialise·the·native·dialog·addon.</p> |
231 | <p>Returns·true·on·success,·false·on·error.</p> | 228 | <p>Returns·true·on·success,·false·on·error.</p> |
232 | <p>Since:·5.0.9,·5.1.0</p> | 229 | <p>Since:·5.0.9,·5.1.0</p> |
233 | <blockquote> | 230 | <blockquote> |
234 | <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> | 231 | <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> |
235 | </blockquote> | 232 | </blockquote> |
236 | <p>See·also:·<a·href="native_dialog.html#al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</a></p> | 233 | <p>See·also:·<a·href="native_dialog.html#al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</a></p> |
237 | <h1·id="al_is_native_dialog_addon_initialized">al_is_native_dialog_addon_initialized</h1> | 234 | <h1·id="al_is_native_dialog_addon_initialized">al_is_native_dialog_addon_initialized</h1> |
238 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_native_dialog_addon_initialized(<span·class="dt">void</span>)</span> | 235 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_native_dialog_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> |
239 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_native_dialog_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> | ||
240 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L32">Source·Code</a></p> | 236 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L32">Source·Code</a></p> |
241 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns·false.</p> | 237 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns·false.</p> |
242 | <p>Since:·5.2.6</p> | 238 | <p>Since:·5.2.6</p> |
243 | <h1·id="al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</h1> | 239 | <h1·id="al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</h1> |
244 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_native_dialog_addon(<span·class="dt">void</span>)</span> | 240 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_native_dialog_addon(<span·class="dt">void</span>)</span></code></pre></div> |
245 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_native_dialog_addon(<span·class="dt">void</span>)</span></code></pre></div> | ||
246 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L39">Source·Code</a></p> | 241 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L39">Source·Code</a></p> |
247 | <p>Shut·down·the·native·dialog·addon.</p> | 242 | <p>Shut·down·the·native·dialog·addon.</p> |
248 | <p>Since:·5.0.9,·5.1.5</p> | 243 | <p>Since:·5.0.9,·5.1.5</p> |
249 | <p>See·also:·<a·href="native_dialog.html#al_init_native_dialog_addon">al_init_native_dialog_addon</a></p> | 244 | <p>See·also:·<a·href="native_dialog.html#al_init_native_dialog_addon">al_init_native_dialog_addon</a></p> |
250 | <h1·id="al_create_native_file_dialog">al_create_native_file_dialog</h1> | 245 | <h1·id="al_create_native_file_dialog">al_create_native_file_dialog</h1> |
251 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a>ALLEGRO_FILECHOOSER·*al_create_native_file_dialog(</span> | 246 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a>ALLEGRO_FILECHOOSER·*al_create_native_file_dialog(</span> |
252 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*initial_path,</span> | 247 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*initial_path,</span> |
253 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*title,</span> | 248 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*title,</span> |
254 | <span·id="cb7-4"><a·href="#cb7-4"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*patterns,</span> | 249 | <span·id="cb7-4"><a·href="#cb7-4"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*patterns,</span> |
255 | <span·id="cb7-5"><a·href="#cb7-5"·aria-hidden="true"></a>···<span·class="dt">int</span>·mode)</span> | ||
256 | <span·id="cb7-6"><a·href="#cb7-6"·aria-hidden="true"></a>ALLEGRO_FILECHOOSER·*al_create_native_file_dialog(</span> | ||
257 | <span·id="cb7-7"><a·href="#cb7-7"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*initial_path,</span> | ||
258 | <span·id="cb7-8"><a·href="#cb7-8"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*title,</span> | ||
259 | <span·id="cb7-9"><a·href="#cb7-9"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*patterns,</span> | ||
260 | <span·id="cb7- | 250 | <span·id="cb7-5"><a·href="#cb7-5"·aria-hidden="true"></a>···<span·class="dt">int</span>·mode)</span></code></pre></div> |
261 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L50">Source·Code</a></p> | 251 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L50">Source·Code</a></p> |
262 | <p>Creates·a·new·native·file·dialog.·You·should·only·have·one·such·dialog·opened·at·a·time.</p> | 252 | <p>Creates·a·new·native·file·dialog.·You·should·only·have·one·such·dialog·opened·at·a·time.</p> |
263 | <p>Parameters:</p> | 253 | <p>Parameters:</p> |
264 | <ul> | 254 | <ul> |
265 | <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>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> |
266 | <li><p><code>title</code>:·Title·of·the·dialog.</p></li> | 256 | <li><p><code>title</code>:·Title·of·the·dialog.</p></li> |
267 | <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> | 257 | <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 288, 45 lines modified | Offset 278, 36 lines modified | ||
288 | </dd> | 278 | </dd> |
289 | </dl> | 279 | </dl> |
290 | <p>Returns:</p> | 280 | <p>Returns:</p> |
291 | <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>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> |
292 | <p>If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL.</p> | 282 | <p>If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL.</p> |
293 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> | 283 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> |
294 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display,</span> | 284 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display,</span> |
295 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"></a>···ALLEGRO_FILECHOOSER·*dialog)</span> | ||
296 | <span·id="cb8-3"><a·href="#cb8-3"·aria-hidden="true"></a><span·class="dt">bool</span>·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display,</span> | ||
297 | <span·id="cb8- | 285 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"></a>···ALLEGRO_FILECHOOSER·*dialog)</span></code></pre></div> |
298 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L74">Source·Code</a></p> | 286 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L74">Source·Code</a></p> |
299 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the·parent·if·possible.</p> | 287 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the·parent·if·possible.</p> |
300 | <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> | 288 | <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> |
301 | <p>Returns·true·on·success,·false·on·failure.</p> | 289 | <p>Returns·true·on·success,·false·on·failure.</p> |
302 | <h1·id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> | 290 | <h1·id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> |
303 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_native_file_dialog_count(<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·*dialog)</span> | 291 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_native_file_dialog_count(<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·*dialog)</span></code></pre></div> |
304 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"></a><span·class="dt">int</span>·al_get_native_file_dialog_count(<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·*dialog)</span></code></pre></div> | ||
305 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L83">Source·Code</a></p> | 292 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L83">Source·Code</a></p> |
306 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled.</p> | 293 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled.</p> |
307 | <h1·id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> | 294 | <h1·id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> |
308 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="dt">const</span>·<span·class="dt">char</span>·*al_get_native_file_dialog_path(</span> | 295 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="dt">const</span>·<span·class="dt">char</span>·*al_get_native_file_dialog_path(</span> |
309 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"></a>···<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·*dialog,·<span·class="dt">size_t</span>·i)</span> | ||
310 | <span·id="cb10-3"><a·href="#cb10-3"·aria-hidden="true"></a><span·class="dt">const</span>·<span·class="dt">char</span>·*al_get_native_file_dialog_path(</span> | ||
311 | <span·id="cb10- | 296 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"></a>···<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·*dialog,·<span·class="dt">size_t</span>·i)</span></code></pre></div> |
312 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L91">Source·Code</a></p> | 297 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L91">Source·Code</a></p> |
313 | <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> | 298 | <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> |
314 | <h1·id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1> | 299 | <h1·id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1> |
315 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog)</span> | 300 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog)</span></code></pre></div> |
316 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog)</span></code></pre></div> | ||
317 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L102">Source·Code</a></p> | 301 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L102">Source·Code</a></p> |
318 | <p>Frees·up·all·resources·used·by·the·file·dialog.</p> | 302 | <p>Frees·up·all·resources·used·by·the·file·dialog.</p> |
319 | <h1·id="al_show_native_message_box">al_show_native_message_box</h1> | 303 | <h1·id="al_show_native_message_box">al_show_native_message_box</h1> |
320 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_show_native_message_box(ALLEGRO_DISPLAY·*display,</span> | 304 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a><span·class="dt">int</span>·al_show_native_message_box(ALLEGRO_DISPLAY·*display,</span> |
321 | <span·id="cb12-2"><a·href="#cb12-2"·aria-hidden="true"></a>···<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,</span> | 305 | <span·id="cb12-2"><a·href="#cb12-2"·aria-hidden="true"></a>···<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,</span> |
322 | <span·id="cb12-3"><a·href="#cb12-3"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*buttons,·<span·class="dt">int</span>·flags)</span> | ||
323 | <span·id="cb12-4"><a·href="#cb12-4"·aria-hidden="true"></a><span·class="dt">int</span>·al_show_native_message_box(ALLEGRO_DISPLAY·*display,</span> | ||
324 | <span·id="cb12-5"><a·href="#cb12-5"·aria-hidden="true"></a>···<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,</span> | ||
325 | <span·id="cb12- | 306 | <span·id="cb12-3"><a·href="#cb12-3"·aria-hidden="true"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·*buttons,·<span·class="dt">int</span>·flags)</span></code></pre></div> |
326 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L124">Source·Code</a></p> | 307 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L124">Source·Code</a></p> |
327 | <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> | 308 | <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> |
328 | <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> | 309 | <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> |
329 | <blockquote> | 310 | <blockquote> |
330 | <p><em>Note:</em>·<code>buttons</code>·parameter·is·currently·unimplemented·on·Windows.</p> | 311 | <p><em>Note:</em>·<code>buttons</code>·parameter·is·currently·unimplemented·on·Windows.</p> |
331 | </blockquote> | 312 | </blockquote> |
332 | <p>The·flags·available·are:</p> | 313 | <p>The·flags·available·are:</p> |
Offset 366, 16 lines modified | Offset 347, 15 lines modified | ||
366 | <span·id="cb13-6"><a·href="#cb13-6"·aria-hidden="true"></a>··<span·class="st">"is·your·response·to·the·query·which·you·have·"</span></span> | 347 | <span·id="cb13-6"><a·href="#cb13-6"·aria-hidden="true"></a>··<span·class="st">"is·your·response·to·the·query·which·you·have·"</span></span> |
367 | <span·id="cb13-7"><a·href="#cb13-7"·aria-hidden="true"></a>··<span·class="st">"generated·by·the·action·you·took·to·open·this·"</span></span> | 348 | <span·id="cb13-7"><a·href="#cb13-7"·aria-hidden="true"></a>··<span·class="st">"generated·by·the·action·you·took·to·open·this·"</span></span> |
368 | <span·id="cb13-8"><a·href="#cb13-8"·aria-hidden="true"></a>··<span·class="st">"message·box."</span>,</span> | 349 | <span·id="cb13-8"><a·href="#cb13-8"·aria-hidden="true"></a>··<span·class="st">"message·box."</span>,</span> |
369 | <span·id="cb13-9"><a·href="#cb13-9"·aria-hidden="true"></a>··NULL,</span> | 350 | <span·id="cb13-9"><a·href="#cb13-9"·aria-hidden="true"></a>··NULL,</span> |
370 | <span·id="cb13-10"><a·href="#cb13-10"·aria-hidden="true"></a>··ALLEGRO_MESSAGEBOX_YES_NO</span> | 351 | <span·id="cb13-10"><a·href="#cb13-10"·aria-hidden="true"></a>··ALLEGRO_MESSAGEBOX_YES_NO</span> |
371 | <span·id="cb13-11"><a·href="#cb13-11"·aria-hidden="true"></a>);</span></code></pre></div> | 352 | <span·id="cb13-11"><a·href="#cb13-11"·aria-hidden="true"></a>);</span></code></pre></div> |
372 | <h1·id="al_open_native_text_log">al_open_native_text_log</h1> | 353 | <h1·id="al_open_native_text_log">al_open_native_text_log</h1> |
373 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a>ALLEGRO_TEXTLOG·*al_open_native_text_log(<span·class="dt">char</span>·<span·class="dt">const</span>·*title,·<span·class="dt">int</span>·flags)</span> | 354 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a>ALLEGRO_TEXTLOG·*al_open_native_text_log(<span·class="dt">char</span>·<span·class="dt">const</span>·*title,·<span·class="dt">int</span>·flags)</span></code></pre></div> |
374 | <span·id="cb14-2"><a·href="#cb14-2"·aria-hidden="true"></a>ALLEGRO_TEXTLOG·*al_open_native_text_log(<span·class="dt">char</span>·<span·class="dt">const</span>·*title,·<span·class="dt">int</span>·flags)</span></code></pre></div> | ||
375 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/textlog.c#L39">Source·Code</a></p> | 355 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/textlog.c#L39">Source·Code</a></p> |
376 | <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> | 356 | <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> |
377 | <p>Use·<a·href="native_dialog.html#al_close_native_text_log">al_close_native_text_log</a>·to·close·the·window·again.</p> | 357 | <p>Use·<a·href="native_dialog.html#al_close_native_text_log">al_close_native_text_log</a>·to·close·the·window·again.</p> |
378 | <p>The·flags·available·are:</p> | 358 | <p>The·flags·available·are:</p> |
379 | <dl> | 359 | <dl> |
380 | <dt>ALLEGRO_TEXTLOG_NO_CLOSE</dt> | 360 | <dt>ALLEGRO_TEXTLOG_NO_CLOSE</dt> |
381 | <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>. | 361 | <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 383, 43 lines modified | Offset 363, 37 lines modified | ||
383 | <dt>ALLEGRO_TEXTLOG_MONOSPACE</dt> | 363 | <dt>ALLEGRO_TEXTLOG_MONOSPACE</dt> |
384 | <dd>Use·a·monospace·font·to·display·the·text. | 364 | <dd>Use·a·monospace·font·to·display·the·text. |
385 | </dd> | 365 | </dd> |
386 | </dl> | 366 | </dl> |
387 | <p>Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows·are·not·implemented·on·the·platform.</p> | 367 | <p>Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows·are·not·implemented·on·the·platform.</p> |
Max diff block lines reached; 44681/63483 bytes (70.38%) of diff not shown. |
Offset 92, 60 lines modified | Offset 92, 50 lines modified | ||
92 | ··········o·al_popup_menu | 92 | ··········o·al_popup_menu |
93 | ··········o·al_remove_display_menu | 93 | ··········o·al_remove_display_menu |
94 | These·functions·are·declared·in·the·following·header·file.·Link·with | 94 | These·functions·are·declared·in·the·following·header·file.·Link·with |
95 | allegro_dialog. | 95 | allegro_dialog. |
96 | ·#include·<allegro5/allegro_native_dialog.h> | 96 | ·#include·<allegro5/allegro_native_dialog.h> |
97 | ******·ALLEGRO_FILECHOOSER·****** | 97 | ******·ALLEGRO_FILECHOOSER·****** |
98 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; | 98 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; |
99 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; | ||
100 | Source_Code | 99 | Source_Code |
101 | Opaque·handle·to·a·native·file·dialog. | 100 | Opaque·handle·to·a·native·file·dialog. |
102 | ******·ALLEGRO_TEXTLOG·****** | 101 | ******·ALLEGRO_TEXTLOG·****** |
103 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | 102 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; |
104 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | ||
105 | Source_Code | 103 | Source_Code |
106 | Opaque·handle·to·a·text·log·window. | 104 | Opaque·handle·to·a·text·log·window. |
107 | ******·al_init_native_dialog_addon·****** | 105 | ******·al_init_native_dialog_addon·****** |
108 | bool·al_init_native_dialog_addon(void) | 106 | bool·al_init_native_dialog_addon(void) |
109 | bool·al_init_native_dialog_addon(void) | ||
110 | Source_Code | 107 | Source_Code |
111 | Initialise·the·native·dialog·addon. | 108 | Initialise·the·native·dialog·addon. |
112 | Returns·true·on·success,·false·on·error. | 109 | Returns·true·on·success,·false·on·error. |
113 | Since:·5.0.9,·5.1.0 | 110 | Since:·5.0.9,·5.1.0 |
114 | ·····Note:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called | 111 | ·····Note:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called |
115 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future | 112 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future |
116 | ·····functionality·may·require·explicit·initialisation.·An·exception·is | 113 | ·····functionality·may·require·explicit·initialisation.·An·exception·is |
117 | ·····al_show_native_message_box,·which·may·be·useful·to·show·an·error | 114 | ·····al_show_native_message_box,·which·may·be·useful·to·show·an·error |
118 | ·····message·if·Allegro·fails·to·initialise. | 115 | ·····message·if·Allegro·fails·to·initialise. |
119 | See·also:·al_shutdown_native_dialog_addon | 116 | See·also:·al_shutdown_native_dialog_addon |
120 | ******·al_is_native_dialog_addon_initialized·****** | 117 | ******·al_is_native_dialog_addon_initialized·****** |
121 | bool·al_is_native_dialog_addon_initialized(void) | 118 | bool·al_is_native_dialog_addon_initialized(void) |
122 | bool·al_is_native_dialog_addon_initialized(void) | ||
123 | Source_Code | 119 | Source_Code |
124 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns | 120 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns |
125 | false. | 121 | false. |
126 | Since:·5.2.6 | 122 | Since:·5.2.6 |
127 | ******·al_shutdown_native_dialog_addon·****** | 123 | ******·al_shutdown_native_dialog_addon·****** |
128 | void·al_shutdown_native_dialog_addon(void) | 124 | void·al_shutdown_native_dialog_addon(void) |
129 | void·al_shutdown_native_dialog_addon(void) | ||
130 | Source_Code | 125 | Source_Code |
131 | Shut·down·the·native·dialog·addon. | 126 | Shut·down·the·native·dialog·addon. |
132 | Since:·5.0.9,·5.1.5 | 127 | Since:·5.0.9,·5.1.5 |
133 | See·also:·al_init_native_dialog_addon | 128 | See·also:·al_init_native_dialog_addon |
134 | ******·al_create_native_file_dialog·****** | 129 | ******·al_create_native_file_dialog·****** |
135 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( | 130 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( |
136 | ···char·const·*initial_path, | 131 | ···char·const·*initial_path, |
137 | ···char·const·*title, | 132 | ···char·const·*title, |
138 | ···char·const·*patterns, | 133 | ···char·const·*patterns, |
139 | ···int·mode) | 134 | ···int·mode) |
140 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( | ||
141 | ···char·const·*initial_path, | ||
142 | ···char·const·*title, | ||
143 | ···char·const·*patterns, | ||
144 | ···int·mode) | ||
145 | Source_Code | 135 | Source_Code |
146 | Creates·a·new·native·file·dialog.·You·should·only·have·one·such·dialog·opened | 136 | Creates·a·new·native·file·dialog.·You·should·only·have·one·such·dialog·opened |
147 | at·a·time. | 137 | at·a·time. |
148 | Parameters: | 138 | Parameters: |
149 | ····*·initial_path:·The·initial·search·path·and·filename.·Can·be·NULL.·To·start | 139 | ····*·initial_path:·The·initial·search·path·and·filename.·Can·be·NULL.·To·start |
150 | ······with·a·blank·file·name·the·string·should·end·with·a·directory·separator | 140 | ······with·a·blank·file·name·the·string·should·end·with·a·directory·separator |
151 | ······(this·should·be·the·common·case). | 141 | ······(this·should·be·the·common·case). |
Offset 178, 47 lines modified | Offset 168, 38 lines modified | ||
178 | display·it,·and·from·which·you·then·can·query·the·results·using | 168 | display·it,·and·from·which·you·then·can·query·the·results·using |
179 | al_get_native_file_dialog_count·and·al_get_native_file_dialog_path.·When·you | 169 | al_get_native_file_dialog_count·and·al_get_native_file_dialog_path.·When·you |
180 | are·done,·call·al_destroy_native_file_dialog·on·it. | 170 | are·done,·call·al_destroy_native_file_dialog·on·it. |
181 | If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL. | 171 | If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL. |
182 | ******·al_show_native_file_dialog·****** | 172 | ******·al_show_native_file_dialog·****** |
183 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | 173 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, |
184 | ···ALLEGRO_FILECHOOSER·*dialog) | 174 | ···ALLEGRO_FILECHOOSER·*dialog) |
185 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | ||
186 | ···ALLEGRO_FILECHOOSER·*dialog) | ||
187 | Source_Code | 175 | Source_Code |
188 | Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is | 176 | Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is |
189 | treated·as·the·parent·if·possible. | 177 | treated·as·the·parent·if·possible. |
190 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to | 178 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to |
191 | spawn·a·thread·with·al_create_thread·and·call·it·from·inside·that·thread. | 179 | spawn·a·thread·with·al_create_thread·and·call·it·from·inside·that·thread. |
192 | Returns·true·on·success,·false·on·failure. | 180 | Returns·true·on·success,·false·on·failure. |
193 | ******·al_get_native_file_dialog_count·****** | 181 | ******·al_get_native_file_dialog_count·****** |
194 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | 182 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) |
195 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | ||
196 | Source_Code | 183 | Source_Code |
197 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. | 184 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. |
198 | ******·al_get_native_file_dialog_path·****** | 185 | ******·al_get_native_file_dialog_path·****** |
199 | const·char·*al_get_native_file_dialog_path( | 186 | const·char·*al_get_native_file_dialog_path( |
200 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | 187 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) |
201 | const·char·*al_get_native_file_dialog_path( | ||
202 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | ||
203 | Source_Code | 188 | Source_Code |
204 | Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0 | 189 | Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0 |
205 | to·the·return·value·of·al_get_native_file_dialog_count·-1. | 190 | to·the·return·value·of·al_get_native_file_dialog_count·-1. |
206 | ******·al_destroy_native_file_dialog·****** | 191 | ******·al_destroy_native_file_dialog·****** |
207 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | 192 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) |
208 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | ||
209 | Source_Code | 193 | Source_Code |
210 | Frees·up·all·resources·used·by·the·file·dialog. | 194 | Frees·up·all·resources·used·by·the·file·dialog. |
211 | ******·al_show_native_message_box·****** | 195 | ******·al_show_native_message_box·****** |
212 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | 196 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, |
213 | ···char·const·*title,·char·const·*heading,·char·const·*text, | 197 | ···char·const·*title,·char·const·*heading,·char·const·*text, |
214 | ···char·const·*buttons,·int·flags) | 198 | ···char·const·*buttons,·int·flags) |
215 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | ||
216 | ···char·const·*title,·char·const·*heading,·char·const·*text, | ||
217 | ···char·const·*buttons,·int·flags) | ||
218 | Source_Code | 199 | Source_Code |
219 | Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error | 200 | Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error |
220 | message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL, | 201 | message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL, |
221 | otherwise·the·given·display·is·treated·as·the·parent·if·possible. | 202 | otherwise·the·given·display·is·treated·as·the·parent·if·possible. |
222 | The·message·box·will·have·a·single·âOKâ·button·and·use·the·style | 203 | The·message·box·will·have·a·single·âOKâ·button·and·use·the·style |
223 | informative·dialog·boxes·usually·have·on·the·native·system.·If·the·buttons | 204 | informative·dialog·boxes·usually·have·on·the·native·system.·If·the·buttons |
224 | parameter·is·not·NULL,·you·can·instead·specify·the·button·text·in·a·string, | 205 | parameter·is·not·NULL,·you·can·instead·specify·the·button·text·in·a·string, |
Offset 259, 15 lines modified | Offset 240, 14 lines modified | ||
259 | ··"generated·by·the·action·you·took·to·open·this·" | 240 | ··"generated·by·the·action·you·took·to·open·this·" |
260 | ··"message·box.", | 241 | ··"message·box.", |
261 | ··NULL, | 242 | ··NULL, |
262 | ··ALLEGRO_MESSAGEBOX_YES_NO | 243 | ··ALLEGRO_MESSAGEBOX_YES_NO |
263 | ); | 244 | ); |
264 | ******·al_open_native_text_log·****** | 245 | ******·al_open_native_text_log·****** |
265 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) | 246 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) |
266 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) | ||
267 | Source_Code | 247 | Source_Code |
268 | Opens·a·window·to·which·you·can·append·log·messages·with | 248 | Opens·a·window·to·which·you·can·append·log·messages·with |
269 | al_append_native_text_log.·This·can·be·useful·for·debugging·if·you·donât·want | 249 | al_append_native_text_log.·This·can·be·useful·for·debugging·if·you·donât·want |
270 | to·depend·on·a·console·being·available. | 250 | to·depend·on·a·console·being·available. |
271 | Use·al_close_native_text_log·to·close·the·window·again. | 251 | Use·al_close_native_text_log·to·close·the·window·again. |
272 | The·flags·available·are: | 252 | The·flags·available·are: |
273 | ··ALLEGRO_TEXTLOG_NO_CLOSE | 253 | ··ALLEGRO_TEXTLOG_NO_CLOSE |
Offset 277, 46 lines modified | Offset 257, 40 lines modified | ||
277 | ··ALLEGRO_TEXTLOG_MONOSPACE | 257 | ··ALLEGRO_TEXTLOG_MONOSPACE |
278 | ······Use·a·monospace·font·to·display·the·text. | 258 | ······Use·a·monospace·font·to·display·the·text. |
Max diff block lines reached; 15509/21242 bytes (73.01%) of diff not shown. |
Offset 291, 12 lines modified | Offset 291, 12 lines modified | ||
291 | <p>You·can·disable·the·detection·of·any·OpenGL·extension·by·Allegro·with·a·section·like·this·in·allegro5.cfg:</p> | 291 | <p>You·can·disable·the·detection·of·any·OpenGL·extension·by·Allegro·with·a·section·like·this·in·allegro5.cfg:</p> |
292 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·ini"><code·class="sourceCode·ini"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"></a><span·class="kw">[opengl_disabled_extensions]</span></span> | 292 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·ini"><code·class="sourceCode·ini"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"></a><span·class="kw">[opengl_disabled_extensions]</span></span> |
293 | <span·id="cb18-2"><a·href="#cb18-2"·aria-hidden="true"></a><span·class="dt">GL_ARB_texture_non_power_of_two</span><span·class="ot">=</span><span·class="dv">0</span></span> | 293 | <span·id="cb18-2"><a·href="#cb18-2"·aria-hidden="true"></a><span·class="dt">GL_ARB_texture_non_power_of_two</span><span·class="ot">=</span><span·class="dv">0</span></span> |
294 | <span·id="cb18-3"><a·href="#cb18-3"·aria-hidden="true"></a><span·class="dt">GL_EXT_framebuffer_object</span><span·class="ot">=</span><span·class="dv">0</span></span></code></pre></div> | 294 | <span·id="cb18-3"><a·href="#cb18-3"·aria-hidden="true"></a><span·class="dt">GL_EXT_framebuffer_object</span><span·class="ot">=</span><span·class="dv">0</span></span></code></pre></div> |
295 | <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> | 295 | <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> |
296 | <p·class="timestamp"> | 296 | <p·class="timestamp"> |
297 | Allegro·version·5.2.6 | 297 | Allegro·version·5.2.6 |
298 | ·-·Last·updated:·202 | 298 | ·-·Last·updated:·2024-01-06·13:49:37·UTC |
299 | </p> | 299 | </p> |
300 | </div> | 300 | </div> |
301 | </body> | 301 | </body> |
302 | </html> | 302 | </html> |
Offset 206, 8 lines modified | Offset 206, 8 lines modified | ||
206 | You·can·disable·the·detection·of·any·OpenGL·extension·by·Allegro·with·a·section | 206 | You·can·disable·the·detection·of·any·OpenGL·extension·by·Allegro·with·a·section |
207 | like·this·in·allegro5.cfg: | 207 | like·this·in·allegro5.cfg: |
208 | [opengl_disabled_extensions] | 208 | [opengl_disabled_extensions] |
209 | GL_ARB_texture_non_power_of_two=0 | 209 | GL_ARB_texture_non_power_of_two=0 |
210 | GL_EXT_framebuffer_object=0 | 210 | GL_EXT_framebuffer_object=0 |
211 | Any·extension·which·appears·in·the·section·is·treated·as·not·available·(it·does | 211 | Any·extension·which·appears·in·the·section·is·treated·as·not·available·(it·does |
212 | not·matter·if·you·set·it·to·0·or·any·other·value). | 212 | not·matter·if·you·set·it·to·0·or·any·other·value). |
213 | Allegro·version·5.2.6·-·Last·updated:·202 | 213 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:37·UTC |
Offset 324, 12 lines modified | Offset 324, 12 lines modified | ||
324 | <h1·id="al_make_path_canonical">al_make_path_canonical</h1> | 324 | <h1·id="al_make_path_canonical">al_make_path_canonical</h1> |
325 | <div·class="sourceCode"·id="cb25"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb25-1"><a·href="#cb25-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_make_path_canonical(ALLEGRO_PATH·*path)</span></code></pre></div> | 325 | <div·class="sourceCode"·id="cb25"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb25-1"><a·href="#cb25-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_make_path_canonical(ALLEGRO_PATH·*path)</span></code></pre></div> |
326 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L566">Source·Code</a></p> | 326 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L566">Source·Code</a></p> |
327 | <p>Removes·any·leading·‘..’·directory·components·in·absolute·paths.·Removes·all·‘.’·directory·components.</p> | 327 | <p>Removes·any·leading·‘..’·directory·components·in·absolute·paths.·Removes·all·‘.’·directory·components.</p> |
328 | <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> | 328 | <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> |
329 | <p·class="timestamp"> | 329 | <p·class="timestamp"> |
330 | Allegro·version·5.2.6 | 330 | Allegro·version·5.2.6 |
331 | ·-·Last·updated:·202 | 331 | ·-·Last·updated:·2024-01-06·13:49:35·UTC |
332 | </p> | 332 | </p> |
333 | </div> | 333 | </div> |
334 | </body> | 334 | </body> |
335 | </html> | 335 | </html> |
Offset 262, 8 lines modified | Offset 262, 8 lines modified | ||
262 | Source_Code | 262 | Source_Code |
263 | Removes·any·leading·â..â·directory·components·in·absolute·paths.·Removes | 263 | Removes·any·leading·â..â·directory·components·in·absolute·paths.·Removes |
264 | all·â.â·directory·components. | 264 | all·â.â·directory·components. |
265 | Note·that·this·does·not·collapse·âx/../yâ·sections·into·âyâ.·This·is·by | 265 | Note·that·this·does·not·collapse·âx/../yâ·sections·into·âyâ.·This·is·by |
266 | design.·If·â/fooâ·on·your·system·is·a·symlink·to·â/bar/bazâ,·then·â/ | 266 | design.·If·â/fooâ·on·your·system·is·a·symlink·to·â/bar/bazâ,·then·â/ |
267 | foo/../quuxâ·is·actually·â/bar/quuxâ,·not·â/quuxâ·as·a·naive·removal | 267 | foo/../quuxâ·is·actually·â/bar/quuxâ,·not·â/quuxâ·as·a·naive·removal |
268 | of·â..â·components·would·give·you. | 268 | of·â..â·components·would·give·you. |
269 | Allegro·version·5.2.6·-·Last·updated:·202 | 269 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:35·UTC |
Offset 169, 32 lines modified | Offset 169, 30 lines modified | ||
169 | </nav> | 169 | </nav> |
170 | <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> | 170 | <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> |
171 | <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> | 171 | <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> |
172 | <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> | 172 | <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> |
173 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_physfs.</p> | 173 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_physfs.</p> |
174 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_physfs.h></span></span></code></pre></div> | 174 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_physfs.h></span></span></code></pre></div> |
175 | <h1·id="al_set_physfs_file_interface">al_set_physfs_file_interface</h1> | 175 | <h1·id="al_set_physfs_file_interface">al_set_physfs_file_interface</h1> |
176 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_physfs_file_interface(<span·class="dt">void</span>)</span> | 176 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_physfs_file_interface(<span·class="dt">void</span>)</span></code></pre></div> |
177 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_physfs_file_interface(<span·class="dt">void</span>)</span></code></pre></div> | ||
178 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L295">Source·Code</a></p> | 177 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L295">Source·Code</a></p> |
179 | <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> | 178 | <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> |
180 | <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> | 179 | <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> |
181 | <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> | 180 | <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> |
182 | <blockquote> | 181 | <blockquote> |
183 | <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> | 182 | <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> |
184 | </blockquote> | 183 | </blockquote> |
185 | <blockquote> | 184 | <blockquote> |
186 | <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> | 185 | <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> |
187 | </blockquote> | 186 | </blockquote> |
188 | <p>See·also:·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> | 187 | <p>See·also:·<a·href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> |
189 | <h1·id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> | 188 | <h1·id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> |
190 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version(<span·class="dt">void</span>)</span> | 189 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version(<span·class="dt">void</span>)</span></code></pre></div> |
191 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version(<span·class="dt">void</span>)</span></code></pre></div> | ||
192 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L304">Source·Code</a></p> | 190 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L304">Source·Code</a></p> |
193 | <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>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> |
194 | <p·class="timestamp"> | 192 | <p·class="timestamp"> |
195 | Allegro·version·5.2.6 | 193 | Allegro·version·5.2.6 |
196 | ·-·Last·updated:·202 | 194 | ·-·Last·updated:·2024-01-06·13:49:38·UTC |
197 | </p> | 195 | </p> |
198 | </div> | 196 | </div> |
199 | </body> | 197 | </body> |
200 | </html> | 198 | </html> |
Offset 58, 15 lines modified | Offset 58, 14 lines modified | ||
58 | ALLEGRO_FILE·using·PhysicsFS,·first·call·al_set_physfs_file_interface,·then | 58 | ALLEGRO_FILE·using·PhysicsFS,·first·call·al_set_physfs_file_interface,·then |
59 | al_fopen·or·another·function·that·calls·al_fopen. | 59 | al_fopen·or·another·function·that·calls·al_fopen. |
60 | These·functions·are·declared·in·the·following·header·file.·Link·with | 60 | These·functions·are·declared·in·the·following·header·file.·Link·with |
61 | allegro_physfs. | 61 | allegro_physfs. |
62 | ·#include·<allegro5/allegro_physfs.h> | 62 | ·#include·<allegro5/allegro_physfs.h> |
63 | ******·al_set_physfs_file_interface·****** | 63 | ******·al_set_physfs_file_interface·****** |
64 | void·al_set_physfs_file_interface(void) | 64 | void·al_set_physfs_file_interface(void) |
65 | void·al_set_physfs_file_interface(void) | ||
66 | Source_Code | 65 | Source_Code |
67 | This·function·sets·both·the·ALLEGRO_FILE_INTERFACE·and·ALLEGRO_FS_INTERFACE·for | 66 | This·function·sets·both·the·ALLEGRO_FILE_INTERFACE·and·ALLEGRO_FS_INTERFACE·for |
68 | the·calling·thread. | 67 | the·calling·thread. |
69 | Subsequent·calls·to·al_fopen·on·the·calling·thread·will·be·handled·by | 68 | Subsequent·calls·to·al_fopen·on·the·calling·thread·will·be·handled·by |
70 | PHYSFS_open().·Operations·on·the·files·returned·by·al_fopen·will·then·be | 69 | PHYSFS_open().·Operations·on·the·files·returned·by·al_fopen·will·then·be |
71 | performed·through·PhysicsFS.·Calls·to·the·Allegro·filesystem·functions,·such·as | 70 | performed·through·PhysicsFS.·Calls·to·the·Allegro·filesystem·functions,·such·as |
72 | al_read_directory·or·al_create_fs_entry,·on·the·calling·thread·will·be·diverted | 71 | al_read_directory·or·al_create_fs_entry,·on·the·calling·thread·will·be·diverted |
Offset 77, 12 lines modified | Offset 76, 11 lines modified | ||
77 | ·····al_set_new_file_interface·and·al_set_standard_file_interface·which | 76 | ·····al_set_new_file_interface·and·al_set_standard_file_interface·which |
78 | ·····only·alter·the·current·ALLEGRO_FILE_INTERFACE. | 77 | ·····only·alter·the·current·ALLEGRO_FILE_INTERFACE. |
79 | ·····Note:·PhysFS·does·not·support·the·text-mode·reading·and·writing, | 78 | ·····Note:·PhysFS·does·not·support·the·text-mode·reading·and·writing, |
80 | ·····which·means·that·Windows-style·newlines·will·not·be·preserved. | 79 | ·····which·means·that·Windows-style·newlines·will·not·be·preserved. |
81 | See·also:·al_set_new_file_interface. | 80 | See·also:·al_set_new_file_interface. |
82 | ******·al_get_allegro_physfs_version·****** | 81 | ******·al_get_allegro_physfs_version·****** |
83 | uint32_t·al_get_allegro_physfs_version(void) | 82 | uint32_t·al_get_allegro_physfs_version(void) |
84 | uint32_t·al_get_allegro_physfs_version(void) | ||
85 | Source_Code | 83 | Source_Code |
86 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 84 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
87 | al_get_allegro_version. | 85 | al_get_allegro_version. |
88 | Allegro·version·5.2.6·-·Last·updated:·202 | 86 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:38·UTC |
Offset 314, 12 lines modified | Offset 314, 12 lines modified | ||
314 | <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> | 314 | <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> |
315 | <p>Since:·5.2.3</p> | 315 | <p>Since:·5.2.3</p> |
316 | <blockquote> | 316 | <blockquote> |
317 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·New·API.</p> | 317 | <p><em><a·href="getting_started.html#unstable-api">Unstable·API</a>:</em>·New·API.</p> |
318 | </blockquote> | 318 | </blockquote> |
319 | <p·class="timestamp"> | 319 | <p·class="timestamp"> |
320 | Allegro·version·5.2.6 | 320 | Allegro·version·5.2.6 |
321 | ·-·Last·updated:·202 | 321 | ·-·Last·updated:·2024-01-06·13:49:36·UTC |
322 | </p> | 322 | </p> |
323 | </div> | 323 | </div> |
324 | </body> | 324 | </body> |
325 | </html> | 325 | </html> |
Offset 194, 8 lines modified | Offset 194, 8 lines modified | ||
194 | Source_Code | 194 | Source_Code |
195 | On·some·window·managers·(notably·Ubuntuâs·Unity)·al_set_display_icon | 195 | On·some·window·managers·(notably·Ubuntuâs·Unity)·al_set_display_icon |
196 | doesnât·work·and·you·need·to·use·a·.desktop·file.·But·with·this·function·you | 196 | doesnât·work·and·you·need·to·use·a·.desktop·file.·But·with·this·function·you |
197 | can·set·an·icon·before·calling·al_create_display.·This·works·by·setting·the | 197 | can·set·an·icon·before·calling·al_create_display.·This·works·by·setting·the |
198 | icon·before·XMapWindow. | 198 | icon·before·XMapWindow. |
199 | Since:·5.2.3 | 199 | Since:·5.2.3 |
200 | ·····Unstable_API:·New·API. | 200 | ·····Unstable_API:·New·API. |
201 | Allegro·version·5.2.6·-·Last·updated:·202 | 201 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:36·UTC |
Offset 250, 35 lines modified | Offset 250, 31 lines modified | ||
250 | </ul></li> | 250 | </ul></li> |
251 | </ul> | 251 | </ul> |
252 | </nav> | 252 | </nav> |
253 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_primitives.</p> | 253 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_primitives.</p> |
254 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_primitives.h></span></span></code></pre></div> | 254 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_primitives.h></span></span></code></pre></div> |
255 | <h1·id="general">General</h1> | 255 | <h1·id="general">General</h1> |
256 | <h2·id="al_get_allegro_primitives_version">al_get_allegro_primitives_version</h2> | 256 | <h2·id="al_get_allegro_primitives_version">al_get_allegro_primitives_version</h2> |
257 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_primitives_version(<span·class="dt">void</span>)</span> | 257 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_primitives_version(<span·class="dt">void</span>)</span></code></pre></div> |
258 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_primitives_version(<span·class="dt">void</span>)</span></code></pre></div> | ||
259 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L158">Source·Code</a></p> | 258 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L158">Source·Code</a></p> |
260 | <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> | 259 | <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> |
261 | <h2·id="al_init_primitives_addon">al_init_primitives_addon</h2> | 260 | <h2·id="al_init_primitives_addon">al_init_primitives_addon</h2> |
262 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_primitives_addon(<span·class="dt">void</span>)</span> | 261 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_primitives_addon(<span·class="dt">void</span>)</span></code></pre></div> |
263 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_primitives_addon(<span·class="dt">void</span>)</span></code></pre></div> | ||
264 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L46">Source·Code</a></p> | 262 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L46">Source·Code</a></p> |
265 | <p>Initializes·the·primitives·addon.</p> | 263 | <p>Initializes·the·primitives·addon.</p> |
266 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> | 264 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> |
267 | <p>See·also:·<a·href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> | 265 | <p>See·also:·<a·href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> |
268 | <h2·id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2> | 266 | <h2·id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2> |
269 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_primitives_addon_initialized(<span·class="dt">void</span>)</span> | 267 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_primitives_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> |
270 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_primitives_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> | ||
271 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L60">Source·Code</a></p> | 268 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L60">Source·Code</a></p> |
272 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false.</p> | 269 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false.</p> |
273 | <p>Since:·5.2.6</p> | 270 | <p>Since:·5.2.6</p> |
274 | <p>See·also:·<a·href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a>,·<a·href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> | 271 | <p>See·also:·<a·href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a>,·<a·href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> |
275 | <h2·id="al_shutdown_primitives_addon">al_shutdown_primitives_addon</h2> | 272 | <h2·id="al_shutdown_primitives_addon">al_shutdown_primitives_addon</h2> |
276 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_primitives_addon(<span·class="dt">void</span>)</span> | 273 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_primitives_addon(<span·class="dt">void</span>)</span></code></pre></div> |
277 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_primitives_addon(<span·class="dt">void</span>)</span></code></pre></div> | ||
278 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L67">Source·Code</a></p> | 274 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L67">Source·Code</a></p> |
279 | <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> | 275 | <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> |
280 | <p>See·also:·<a·href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a></p> | 276 | <p>See·also:·<a·href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a></p> |
281 | <h1·id="high-level-drawing-routines">High·level·drawing·routines</h1> | 277 | <h1·id="high-level-drawing-routines">High·level·drawing·routines</h1> |
282 | <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> | 278 | <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> |
283 | <h2·id="pixel-precise-output">Pixel-precise·output</h2> | 279 | <h2·id="pixel-precise-output">Pixel-precise·output</h2> |
284 | <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> | 280 | <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 301, 116 lines modified | Offset 297, 99 lines modified | ||
301 | </figure> | 297 | </figure> |
302 | <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> | 298 | <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> |
303 | <p>Filled·rectangles·are·generated·by·making·a·rectangle·between·the·endpoints·passed·to·the·<code>al_draw_filled_rectangle</code>.</p> | 299 | <p>Filled·rectangles·are·generated·by·making·a·rectangle·between·the·endpoints·passed·to·the·<code>al_draw_filled_rectangle</code>.</p> |
304 | <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> | 300 | <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> |
305 | <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> | 301 | <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> |
306 | <h2·id="al_draw_line">al_draw_line</h2> | 302 | <h2·id="al_draw_line">al_draw_line</h2> |
307 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><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,</span> | 303 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><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,</span> |
308 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"></a>···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</span> | ||
309 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"></a><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,</span> | ||
310 | <span·id="cb7- | 304 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"></a>···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</span></code></pre></div> |
311 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L77">Source·Code</a></p> | 305 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L77">Source·Code</a></p> |
312 | <p>Draws·a·line·segment·between·two·points.</p> | 306 | <p>Draws·a·line·segment·between·two·points.</p> |
313 | <p><em>Parameters:</em></p> | 307 | <p><em>Parameters:</em></p> |
314 | <ul> | 308 | <ul> |
315 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> | 309 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> |
316 | <li>color·-·Color·of·the·line</li> | 310 | <li>color·-·Color·of·the·line</li> |
317 | <li>thickness·-·Thickness·of·the·line,·pass·<code><=·0</code>·to·draw·hairline·lines</li> | 311 | <li>thickness·-·Thickness·of·the·line,·pass·<code><=·0</code>·to·draw·hairline·lines</li> |
318 | </ul> | 312 | </ul> |
319 | <p>See·also:·<a·href="primitives.html#al_draw_soft_line">al_draw_soft_line</a></p> | 313 | <p>See·also:·<a·href="primitives.html#al_draw_soft_line">al_draw_soft_line</a></p> |
320 | <h2·id="al_draw_triangle">al_draw_triangle</h2> | 314 | <h2·id="al_draw_triangle">al_draw_triangle</h2> |
321 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><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,</span> | 315 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><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,</span> |
322 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·x3,·<span·class="dt">float</span>·y3,·ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</span> | ||
323 | <span·id="cb8-3"><a·href="#cb8-3"·aria-hidden="true"></a><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,</span> | ||
324 | <span·id="cb8- | 316 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·x3,·<span·class="dt">float</span>·y3,·ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</span></code></pre></div> |
325 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L122">Source·Code</a></p> | 317 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L122">Source·Code</a></p> |
326 | <p>Draws·an·outlined·triangle.</p> | 318 | <p>Draws·an·outlined·triangle.</p> |
327 | <p><em>Parameters:</em></p> | 319 | <p><em>Parameters:</em></p> |
328 | <ul> | 320 | <ul> |
329 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> | 321 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> |
330 | <li>color·-·Color·of·the·triangle</li> | 322 | <li>color·-·Color·of·the·triangle</li> |
331 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> | 323 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> |
332 | </ul> | 324 | </ul> |
333 | <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> | 325 | <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> |
334 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> | 326 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> |
335 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><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,</span> | 327 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><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,</span> |
336 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·x3,·<span·class="dt">float</span>·y3,·ALLEGRO_COLOR·color)</span> | ||
337 | <span·id="cb9-3"><a·href="#cb9-3"·aria-hidden="true"></a><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,</span> | ||
338 | <span·id="cb9- | 328 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·x3,·<span·class="dt">float</span>·y3,·ALLEGRO_COLOR·color)</span></code></pre></div> |
339 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L335">Source·Code</a></p> | 329 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L335">Source·Code</a></p> |
340 | <p>Draws·a·filled·triangle.</p> | 330 | <p>Draws·a·filled·triangle.</p> |
341 | <p><em>Parameters:</em></p> | 331 | <p><em>Parameters:</em></p> |
342 | <ul> | 332 | <ul> |
343 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> | 333 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> |
344 | <li>color·-·Color·of·the·triangle</li> | 334 | <li>color·-·Color·of·the·triangle</li> |
345 | </ul> | 335 | </ul> |
346 | <p>See·also:·<a·href="primitives.html#al_draw_triangle">al_draw_triangle</a></p> | 336 | <p>See·also:·<a·href="primitives.html#al_draw_triangle">al_draw_triangle</a></p> |
347 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> | 337 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> |
348 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><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,</span> | 338 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><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,</span> |
349 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"></a>···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</span> | ||
350 | <span·id="cb10-3"><a·href="#cb10-3"·aria-hidden="true"></a><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,</span> | ||
351 | <span·id="cb10- | 339 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"></a>···ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</span></code></pre></div> |
352 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L357">Source·Code</a></p> | 340 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L357">Source·Code</a></p> |
353 | <p>Draws·an·outlined·rectangle.</p> | 341 | <p>Draws·an·outlined·rectangle.</p> |
354 | <p><em>Parameters:</em></p> | 342 | <p><em>Parameters:</em></p> |
355 | <ul> | 343 | <ul> |
356 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> | 344 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> |
357 | <li>color·-·Color·of·the·rectangle</li> | 345 | <li>color·-·Color·of·the·rectangle</li> |
358 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> | 346 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> |
359 | </ul> | 347 | </ul> |
360 | <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> | 348 | <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> |
361 | <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2> | 349 | <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2> |
362 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><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,</span> | 350 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><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,</span> |
363 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a>···ALLEGRO_COLOR·color)</span> | ||
364 | <span·id="cb11-3"><a·href="#cb11-3"·aria-hidden="true"></a><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,</span> | ||
365 | <span·id="cb11- | 351 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a>···ALLEGRO_COLOR·color)</span></code></pre></div> |
366 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L402">Source·Code</a></p> | 352 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L402">Source·Code</a></p> |
367 | <p>Draws·a·filled·rectangle.</p> | 353 | <p>Draws·a·filled·rectangle.</p> |
368 | <p><em>Parameters:</em></p> | 354 | <p><em>Parameters:</em></p> |
369 | <ul> | 355 | <ul> |
370 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> | 356 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> |
371 | <li>color·-·Color·of·the·rectangle</li> | 357 | <li>color·-·Color·of·the·rectangle</li> |
372 | </ul> | 358 | </ul> |
373 | <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> | 359 | <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> |
374 | <h2·id="al_draw_rounded_rectangle">al_draw_rounded_rectangle</h2> | 360 | <h2·id="al_draw_rounded_rectangle">al_draw_rounded_rectangle</h2> |
375 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a><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,</span> | 361 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a><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,</span> |
376 | <span·id="cb12-2"><a·href="#cb12-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·rx,·<span·class="dt">float</span>·ry,·ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</span> | ||
377 | <span·id="cb12-3"><a·href="#cb12-3"·aria-hidden="true"></a><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,</span> | ||
378 | <span·id="cb12- | 362 | <span·id="cb12-2"><a·href="#cb12-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·rx,·<span·class="dt">float</span>·ry,·ALLEGRO_COLOR·color,·<span·class="dt">float</span>·thickness)</span></code></pre></div> |
379 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L851">Source·Code</a></p> | 363 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L851">Source·Code</a></p> |
380 | <p>Draws·an·outlined·rounded·rectangle.</p> | 364 | <p>Draws·an·outlined·rounded·rectangle.</p> |
381 | <p><em>Parameters:</em></p> | 365 | <p><em>Parameters:</em></p> |
382 | <ul> | 366 | <ul> |
383 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> | 367 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle</li> |
384 | <li>color·-·Color·of·the·rectangle</li> | 368 | <li>color·-·Color·of·the·rectangle</li> |
385 | <li>rx,·ry·-·The·radii·of·the·round</li> | 369 | <li>rx,·ry·-·The·radii·of·the·round</li> |
386 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> | 370 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to·draw·hairline·lines</li> |
387 | </ul> | 371 | </ul> |
388 | <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> | 372 | <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> |
389 | <h2·id="al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</h2> | 373 | <h2·id="al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</h2> |
390 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"></a><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,</span> | 374 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"></a><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,</span> |
391 | <span·id="cb13-2"><a·href="#cb13-2"·aria-hidden="true"></a>···<span·class="dt">float</span>·rx,·<span·class="dt">float</span>·ry,·ALLEGRO_COLOR·color)</span> | ||
Max diff block lines reached; 97564/117101 bytes (83.32%) of diff not shown. |
Offset 118, 35 lines modified | Offset 118, 31 lines modified | ||
118 | ··········o·ALLEGRO_PRIM_BUFFER_FLAGS | 118 | ··········o·ALLEGRO_PRIM_BUFFER_FLAGS |
119 | These·functions·are·declared·in·the·following·header·file.·Link·with | 119 | These·functions·are·declared·in·the·following·header·file.·Link·with |
120 | allegro_primitives. | 120 | allegro_primitives. |
121 | ·#include·<allegro5/allegro_primitives.h> | 121 | ·#include·<allegro5/allegro_primitives.h> |
122 | ******·General·****** | 122 | ******·General·****** |
123 | *****·al_get_allegro_primitives_version·***** | 123 | *****·al_get_allegro_primitives_version·***** |
124 | uint32_t·al_get_allegro_primitives_version(void) | 124 | uint32_t·al_get_allegro_primitives_version(void) |
125 | uint32_t·al_get_allegro_primitives_version(void) | ||
126 | Source_Code | 125 | Source_Code |
127 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 126 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
128 | al_get_allegro_version. | 127 | al_get_allegro_version. |
129 | *****·al_init_primitives_addon·***** | 128 | *****·al_init_primitives_addon·***** |
130 | bool·al_init_primitives_addon(void) | 129 | bool·al_init_primitives_addon(void) |
131 | bool·al_init_primitives_addon(void) | ||
132 | Source_Code | 130 | Source_Code |
133 | Initializes·the·primitives·addon. | 131 | Initializes·the·primitives·addon. |
134 | Returns:·True·on·success,·false·on·failure. | 132 | Returns:·True·on·success,·false·on·failure. |
135 | See·also:·al_shutdown_primitives_addon | 133 | See·also:·al_shutdown_primitives_addon |
136 | *****·al_is_primitives_addon_initialized·***** | 134 | *****·al_is_primitives_addon_initialized·***** |
137 | bool·al_is_primitives_addon_initialized(void) | 135 | bool·al_is_primitives_addon_initialized(void) |
138 | bool·al_is_primitives_addon_initialized(void) | ||
139 | Source_Code | 136 | Source_Code |
140 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. | 137 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. |
141 | Since:·5.2.6 | 138 | Since:·5.2.6 |
142 | See·also:·al_init_primitives_addon,·al_shutdown_primitives_addon | 139 | See·also:·al_init_primitives_addon,·al_shutdown_primitives_addon |
143 | *****·al_shutdown_primitives_addon·***** | 140 | *****·al_shutdown_primitives_addon·***** |
144 | void·al_shutdown_primitives_addon(void) | 141 | void·al_shutdown_primitives_addon(void) |
145 | void·al_shutdown_primitives_addon(void) | ||
146 | Source_Code | 142 | Source_Code |
147 | Shut·down·the·primitives·addon.·This·is·done·automatically·at·program·exit,·but | 143 | Shut·down·the·primitives·addon.·This·is·done·automatically·at·program·exit,·but |
148 | can·be·called·any·time·the·user·wishes·as·well. | 144 | can·be·called·any·time·the·user·wishes·as·well. |
149 | See·also:·al_init_primitives_addon | 145 | See·also:·al_init_primitives_addon |
150 | ******·High·level·drawing·routines·****** | 146 | ******·High·level·drawing·routines·****** |
151 | High·level·drawing·routines·encompass·the·most·common·usage·of·this·addon:·to | 147 | High·level·drawing·routines·encompass·the·most·common·usage·of·this·addon:·to |
152 | draw·geometric·primitives,·both·smooth·(variations·on·the·circle·theme)·and | 148 | draw·geometric·primitives,·both·smooth·(variations·on·the·circle·theme)·and |
Offset 223, 101 lines modified | Offset 219, 84 lines modified | ||
223 | sharp.·The·offsets·used·in·the·second·diagram·were·chosen·so·that·this·is·the | 219 | sharp.·The·offsets·used·in·the·second·diagram·were·chosen·so·that·this·is·the |
224 | case:·if·you·use·those·offsets,·your·shapes·(if·they·are·oriented·the·same·way | 220 | case:·if·you·use·those·offsets,·your·shapes·(if·they·are·oriented·the·same·way |
225 | as·they·are·on·the·diagram)·should·look·the·same·whether·multisampling·is | 221 | as·they·are·on·the·diagram)·should·look·the·same·whether·multisampling·is |
226 | turned·on·or·off. | 222 | turned·on·or·off. |
227 | *****·al_draw_line·***** | 223 | *****·al_draw_line·***** |
228 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, | 224 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, |
229 | ···ALLEGRO_COLOR·color,·float·thickness) | 225 | ···ALLEGRO_COLOR·color,·float·thickness) |
230 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, | ||
231 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
232 | Source_Code | 226 | Source_Code |
233 | Draws·a·line·segment·between·two·points. | 227 | Draws·a·line·segment·between·two·points. |
234 | Parameters: | 228 | Parameters: |
235 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line | 229 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line |
236 | ····*·color·-·Color·of·the·line | 230 | ····*·color·-·Color·of·the·line |
237 | ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines | 231 | ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines |
238 | See·also:·al_draw_soft_line | 232 | See·also:·al_draw_soft_line |
239 | *****·al_draw_triangle·***** | 233 | *****·al_draw_triangle·***** |
240 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 234 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
241 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | 235 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) |
242 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
243 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | ||
244 | Source_Code | 236 | Source_Code |
245 | Draws·an·outlined·triangle. | 237 | Draws·an·outlined·triangle. |
246 | Parameters: | 238 | Parameters: |
247 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 239 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
248 | ····*·color·-·Color·of·the·triangle | 240 | ····*·color·-·Color·of·the·triangle |
249 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 241 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
250 | See·also:·al_draw_filled_triangle,·al_draw_soft_triangle | 242 | See·also:·al_draw_filled_triangle,·al_draw_soft_triangle |
251 | *****·al_draw_filled_triangle·***** | 243 | *****·al_draw_filled_triangle·***** |
252 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 244 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
253 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | 245 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) |
254 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
255 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | ||
256 | Source_Code | 246 | Source_Code |
257 | Draws·a·filled·triangle. | 247 | Draws·a·filled·triangle. |
258 | Parameters: | 248 | Parameters: |
259 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 249 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
260 | ····*·color·-·Color·of·the·triangle | 250 | ····*·color·-·Color·of·the·triangle |
261 | See·also:·al_draw_triangle | 251 | See·also:·al_draw_triangle |
262 | *****·al_draw_rectangle·***** | 252 | *****·al_draw_rectangle·***** |
263 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 253 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
264 | ···ALLEGRO_COLOR·color,·float·thickness) | 254 | ···ALLEGRO_COLOR·color,·float·thickness) |
265 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
266 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
267 | Source_Code | 255 | Source_Code |
268 | Draws·an·outlined·rectangle. | 256 | Draws·an·outlined·rectangle. |
269 | Parameters: | 257 | Parameters: |
270 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 258 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
271 | ····*·color·-·Color·of·the·rectangle | 259 | ····*·color·-·Color·of·the·rectangle |
272 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 260 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
273 | See·also:·al_draw_filled_rectangle,·al_draw_rounded_rectangle | 261 | See·also:·al_draw_filled_rectangle,·al_draw_rounded_rectangle |
274 | *****·al_draw_filled_rectangle·***** | 262 | *****·al_draw_filled_rectangle·***** |
275 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 263 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
276 | ···ALLEGRO_COLOR·color) | 264 | ···ALLEGRO_COLOR·color) |
277 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
278 | ···ALLEGRO_COLOR·color) | ||
279 | Source_Code | 265 | Source_Code |
280 | Draws·a·filled·rectangle. | 266 | Draws·a·filled·rectangle. |
281 | Parameters: | 267 | Parameters: |
282 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 268 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
283 | ····*·color·-·Color·of·the·rectangle | 269 | ····*·color·-·Color·of·the·rectangle |
284 | See·also:·al_draw_rectangle,·al_draw_filled_rounded_rectangle | 270 | See·also:·al_draw_rectangle,·al_draw_filled_rounded_rectangle |
285 | *****·al_draw_rounded_rectangle·***** | 271 | *****·al_draw_rounded_rectangle·***** |
286 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 272 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
287 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | 273 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) |
288 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
289 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | ||
290 | Source_Code | 274 | Source_Code |
291 | Draws·an·outlined·rounded·rectangle. | 275 | Draws·an·outlined·rounded·rectangle. |
292 | Parameters: | 276 | Parameters: |
293 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 277 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
294 | ····*·color·-·Color·of·the·rectangle | 278 | ····*·color·-·Color·of·the·rectangle |
295 | ····*·rx,·ry·-·The·radii·of·the·round | 279 | ····*·rx,·ry·-·The·radii·of·the·round |
296 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 280 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
297 | See·also:·al_draw_filled_rounded_rectangle,·al_draw_rectangle | 281 | See·also:·al_draw_filled_rounded_rectangle,·al_draw_rectangle |
298 | *****·al_draw_filled_rounded_rectangle·***** | 282 | *****·al_draw_filled_rounded_rectangle·***** |
299 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 283 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
300 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) | 284 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) |
301 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
302 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) | ||
303 | Source_Code | 285 | Source_Code |
304 | Draws·an·filled·rounded·rectangle. | 286 | Draws·an·filled·rounded·rectangle. |
305 | Parameters: | 287 | Parameters: |
306 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 288 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
307 | ····*·color·-·Color·of·the·rectangle | 289 | ····*·color·-·Color·of·the·rectangle |
308 | ····*·rx,·ry·-·The·radii·of·the·round | 290 | ····*·rx,·ry·-·The·radii·of·the·round |
309 | See·also:·al_draw_rounded_rectangle,·al_draw_filled_rectangle | 291 | See·also:·al_draw_rounded_rectangle,·al_draw_filled_rectangle |
310 | *****·al_calculate_arc·***** | 292 | *****·al_calculate_arc·***** |
311 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, | 293 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, |
312 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, | 294 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, |
313 | ···int·num_points) | 295 | ···int·num_points) |
Max diff block lines reached; 32886/38816 bytes (84.72%) of diff not shown. |
Offset 183, 23 lines modified | Offset 183, 21 lines modified | ||
183 | <li><a·href="#al_set_shader_float_vector">al_set_shader_float_vector</a></li> | 183 | <li><a·href="#al_set_shader_float_vector">al_set_shader_float_vector</a></li> |
184 | <li><a·href="#al_get_default_shader_source">al_get_default_shader_source</a></li> | 184 | <li><a·href="#al_get_default_shader_source">al_get_default_shader_source</a></li> |
185 | </ul> | 185 | </ul> |
186 | </nav> | 186 | </nav> |
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"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 188 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
189 | <h1·id="allegro_shader">ALLEGRO_SHADER</h1> | 189 | <h1·id="allegro_shader">ALLEGRO_SHADER</h1> |
190 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SHADER·ALLEGRO_SHADER;</span> | 190 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SHADER·ALLEGRO_SHADER;</span></code></pre></div> |
191 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SHADER·ALLEGRO_SHADER;</span></code></pre></div> | ||
192 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L14">Source·Code</a></p> | 191 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L14">Source·Code</a></p> |
193 | <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> | 192 | <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> |
194 | <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> | 193 | <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> |
195 | <p>Since:·5.1.0</p> | 194 | <p>Since:·5.1.0</p> |
196 | <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1> | 195 | <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1> |
197 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE;</span> | 196 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE;</span></code></pre></div> |
198 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE;</span></code></pre></div> | ||
199 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source·Code</a></p> | 197 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source·Code</a></p> |
200 | <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 | <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> |
201 | <dl> | 199 | <dl> |
202 | <dt>ALLEGRO_VERTEX_SHADER</dt> | 200 | <dt>ALLEGRO_VERTEX_SHADER</dt> |
203 | <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 | <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> |
204 | <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 | <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> |
205 | </dd> | 203 | </dd> |
Offset 207, 16 lines modified | Offset 205, 15 lines modified | ||
207 | <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 | <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> |
208 | <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>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> |
209 | <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 | <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> |
210 | </dd> | 208 | </dd> |
211 | </dl> | 209 | </dl> |
212 | <p>Since:·5.1.0</p> | 210 | <p>Since:·5.1.0</p> |
213 | <h1·id="allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</h1> | 211 | <h1·id="allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</h1> |
214 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM;</span> | 212 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM;</span></code></pre></div> |
215 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM;</span></code></pre></div> | ||
216 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L33">Source·Code</a></p> | 213 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L33">Source·Code</a></p> |
217 | <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> | 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> |
218 | <ul> | 215 | <ul> |
219 | <li>ALLEGRO_SHADER_AUTO</li> | 216 | <li>ALLEGRO_SHADER_AUTO</li> |
220 | <li>ALLEGRO_SHADER_GLSL·-·OpenGL·Shading·Language</li> | 217 | <li>ALLEGRO_SHADER_GLSL·-·OpenGL·Shading·Language</li> |
221 | <li>ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D)</li> | 218 | <li>ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D)</li> |
222 | </ul> | 219 | </ul> |
Offset 429, 12 lines modified | Offset 426, 12 lines modified | ||
429 | <span·id="cb21-2"><a·href="#cb21-2"·aria-hidden="true"></a>···ALLEGRO_SHADER_TYPE·type)</span></code></pre></div> | 426 | <span·id="cb21-2"><a·href="#cb21-2"·aria-hidden="true"></a>···ALLEGRO_SHADER_TYPE·type)</span></code></pre></div> |
430 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L381">Source·Code</a></p> | 427 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L381">Source·Code</a></p> |
431 | <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> | 428 | <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> |
432 | <p>Since:·5.1.6</p> | 429 | <p>Since:·5.1.6</p> |
433 | <p>See·also:·<a·href="shader.html#al_attach_shader_source">al_attach_shader_source</a></p> | 430 | <p>See·also:·<a·href="shader.html#al_attach_shader_source">al_attach_shader_source</a></p> |
434 | <p·class="timestamp"> | 431 | <p·class="timestamp"> |
435 | Allegro·version·5.2.6 | 432 | Allegro·version·5.2.6 |
436 | ·-·Last·updated:·202 | 433 | ·-·Last·updated:·2024-01-06·13:49:38·UTC |
437 | </p> | 434 | </p> |
438 | </div> | 435 | </div> |
439 | </body> | 436 | </body> |
440 | </html> | 437 | </html> |
Offset 66, 26 lines modified | Offset 66, 24 lines modified | ||
66 | ····*·al_set_shader_int_vector | 66 | ····*·al_set_shader_int_vector |
67 | ····*·al_set_shader_float_vector | 67 | ····*·al_set_shader_float_vector |
68 | ····*·al_get_default_shader_source | 68 | ····*·al_get_default_shader_source |
69 | These·functions·are·declared·in·the·main·Allegro·header·file: | 69 | These·functions·are·declared·in·the·main·Allegro·header·file: |
70 | ·#include·<allegro5/allegro.h> | 70 | ·#include·<allegro5/allegro.h> |
71 | ******·ALLEGRO_SHADER·****** | 71 | ******·ALLEGRO_SHADER·****** |
72 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; | 72 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; |
73 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; | ||
74 | Source_Code | 73 | Source_Code |
75 | An·ALLEGRO_SHADER·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex | 74 | An·ALLEGRO_SHADER·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex |
76 | and·a·pixel·shader.·(In·OpenGL·terms,·an·ALLEGRO_SHADER·is·actually·a·program | 75 | and·a·pixel·shader.·(In·OpenGL·terms,·an·ALLEGRO_SHADER·is·actually·a·program |
77 | which·has·one·or·more·shaders·attached.·This·can·be·confusing.) | 76 | which·has·one·or·more·shaders·attached.·This·can·be·confusing.) |
78 | The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be·provided | 77 | The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be·provided |
79 | either·as·GLSL·or·HLSL,·depending·on·the·value·of·ALLEGRO_SHADER_PLATFORM·used | 78 | either·as·GLSL·or·HLSL,·depending·on·the·value·of·ALLEGRO_SHADER_PLATFORM·used |
80 | when·creating·it. | 79 | when·creating·it. |
81 | Since:·5.1.0 | 80 | Since:·5.1.0 |
82 | ******·ALLEGRO_SHADER_TYPE·****** | 81 | ******·ALLEGRO_SHADER_TYPE·****** |
83 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | 82 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; |
84 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | ||
85 | Source_Code | 83 | Source_Code |
86 | Used·with·al_attach_shader_source·and·al_attach_shader_source_file·to·specify | 84 | Used·with·al_attach_shader_source·and·al_attach_shader_source_file·to·specify |
87 | how·to·interpret·the·attached·source. | 85 | how·to·interpret·the·attached·source. |
88 | ··ALLEGRO_VERTEX_SHADER | 86 | ··ALLEGRO_VERTEX_SHADER |
89 | ······A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program | 87 | ······A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program |
90 | ······will·output·exactly·one·vertex·at·a·time. | 88 | ······will·output·exactly·one·vertex·at·a·time. |
91 | ······When·Allegroâs·graphics·are·being·used·then·in·addition·to·all·vertices | 89 | ······When·Allegroâs·graphics·are·being·used·then·in·addition·to·all·vertices |
Offset 101, 15 lines modified | Offset 99, 14 lines modified | ||
101 | ······A·more·accurate·term·for·pixel·shader·would·be·fragment·shader·since·one | 99 | ······A·more·accurate·term·for·pixel·shader·would·be·fragment·shader·since·one |
102 | ······final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only·a | 100 | ······final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only·a |
103 | ······single·output·but·of·multiple·fragments·(for·example·when·multi-sampling | 101 | ······single·output·but·of·multiple·fragments·(for·example·when·multi-sampling |
104 | ······is·being·used). | 102 | ······is·being·used). |
105 | Since:·5.1.0 | 103 | Since:·5.1.0 |
106 | ******·ALLEGRO_SHADER_PLATFORM·****** | 104 | ******·ALLEGRO_SHADER_PLATFORM·****** |
107 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; | 105 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; |
108 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; | ||
109 | Source_Code | 106 | Source_Code |
110 | The·underlying·platform·which·the·ALLEGRO_SHADER·is·built·on·top·of,·which | 107 | The·underlying·platform·which·the·ALLEGRO_SHADER·is·built·on·top·of,·which |
111 | dictates·the·language·used·to·program·the·shader. | 108 | dictates·the·language·used·to·program·the·shader. |
112 | ····*·ALLEGRO_SHADER_AUTO | 109 | ····*·ALLEGRO_SHADER_AUTO |
113 | ····*·ALLEGRO_SHADER_GLSL·-·OpenGL·Shading·Language | 110 | ····*·ALLEGRO_SHADER_GLSL·-·OpenGL·Shading·Language |
114 | ····*·ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D) | 111 | ····*·ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D) |
115 | Since:·5.1.0 | 112 | Since:·5.1.0 |
Offset 369, 8 lines modified | Offset 366, 8 lines modified | ||
369 | pixel·shader·appropriate·for·the·passed·platform.·The·ALLEGRO_SHADER_AUTO·value | 366 | pixel·shader·appropriate·for·the·passed·platform.·The·ALLEGRO_SHADER_AUTO·value |
370 | means·GLSL·is·used·if·OpenGL·is·being·used·otherwise·HLSL.·ALLEGRO_SHADER_AUTO | 367 | means·GLSL·is·used·if·OpenGL·is·being·used·otherwise·HLSL.·ALLEGRO_SHADER_AUTO |
371 | requires·that·there·is·a·current·display·set·on·the·calling·thread.·This | 368 | requires·that·there·is·a·current·display·set·on·the·calling·thread.·This |
372 | function·can·return·NULL·if·Allegro·was·built·without·support·for·shaders·of | 369 | function·can·return·NULL·if·Allegro·was·built·without·support·for·shaders·of |
373 | the·selected·platform. | 370 | the·selected·platform. |
374 | Since:·5.1.6 | 371 | Since:·5.1.6 |
375 | See·also:·al_attach_shader_source | 372 | See·also:·al_attach_shader_source |
376 | Allegro·version·5.2.6·-·Last·updated:·202 | 373 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:38·UTC |
Offset 170, 16 lines modified | Offset 170, 15 lines modified | ||
170 | <li><a·href="#al_get_errno">al_get_errno</a></li> | 170 | <li><a·href="#al_get_errno">al_get_errno</a></li> |
171 | <li><a·href="#al_set_errno">al_set_errno</a></li> | 171 | <li><a·href="#al_set_errno">al_set_errno</a></li> |
172 | </ul> | 172 | </ul> |
173 | </nav> | 173 | </nav> |
174 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 174 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
175 | <pre><code>·#include·<allegro5/allegro.h></code></pre> | 175 | <pre><code>·#include·<allegro5/allegro.h></code></pre> |
176 | <h1·id="allegro_state">ALLEGRO_STATE</h1> | 176 | <h1·id="allegro_state">ALLEGRO_STATE</h1> |
177 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_STATE·ALLEGRO_STATE;</span> | 177 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_STATE·ALLEGRO_STATE;</span></code></pre></div> |
178 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_STATE·ALLEGRO_STATE;</span></code></pre></div> | ||
179 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L49">Source·Code</a></p> | 178 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L49">Source·Code</a></p> |
180 | <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> | 179 | <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> |
181 | <p>The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this:</p> | 180 | <p>The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this:</p> |
182 | <pre><code>··global | 181 | <pre><code>··global |
183 | ······active·system·driver | 182 | ······active·system·driver |
184 | ··········current·config | 183 | ··········current·config |
185 | ··per·thread | 184 | ··per·thread |
Offset 194, 16 lines modified | Offset 193, 15 lines modified | ||
194 | ··········current·transformation | 193 | ··········current·transformation |
195 | ··········current·projection·transformation | 194 | ··········current·projection·transformation |
196 | ··········current·clipping·rectangle | 195 | ··········current·clipping·rectangle |
197 | ··········bitmap·locking | 196 | ··········bitmap·locking |
198 | ··········current·shader</code></pre> | 197 | ··········current·shader</code></pre> |
199 | <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> | 198 | <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> |
200 | <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1> | 199 | <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1> |
201 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</span> | 200 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</span></code></pre></div> |
202 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</span></code></pre></div> | ||
203 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source·Code</a></p> | 201 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source·Code</a></p> |
204 | <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 | <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> |
205 | <h1·id="al_restore_state">al_restore_state</h1> | 203 | <h1·id="al_restore_state">al_restore_state</h1> |
206 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_restore_state(ALLEGRO_STATE·<span·class="dt">const</span>·*state)</span></code></pre></div> | 204 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_restore_state(ALLEGRO_STATE·<span·class="dt">const</span>·*state)</span></code></pre></div> |
207 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L764">Source·Code</a></p> | 205 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L764">Source·Code</a></p> |
208 | <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>Restores·part·of·the·state·of·the·current·thread·from·the·given·<a·href="state.html#allegro_state">ALLEGRO_STATE</a>·object.</p> |
209 | <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> | 207 | <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 232, 12 lines modified | Offset 230, 12 lines modified | ||
232 | <h1·id="al_set_errno">al_set_errno</h1> | 230 | <h1·id="al_set_errno">al_set_errno</h1> |
233 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_errno(<span·class="dt">int</span>·errnum)</span> | 231 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_errno(<span·class="dt">int</span>·errnum)</span> |
234 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"></a>SETTER(allegro_errno,·errnum)</span></code></pre></div> | 232 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"></a>SETTER(allegro_errno,·errnum)</span></code></pre></div> |
235 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L933">Source·Code</a></p> | 233 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L933">Source·Code</a></p> |
236 | <p>Set·the·error·number·for·the·calling·thread.</p> | 234 | <p>Set·the·error·number·for·the·calling·thread.</p> |
237 | <p·class="timestamp"> | 235 | <p·class="timestamp"> |
238 | Allegro·version·5.2.6 | 236 | Allegro·version·5.2.6 |
239 | ·-·Last·updated:·202 | 237 | ·-·Last·updated:·2024-01-06·13:49:35·UTC |
240 | </p> | 238 | </p> |
241 | </div> | 239 | </div> |
242 | </body> | 240 | </body> |
243 | </html> | 241 | </html> |
Offset 53, 15 lines modified | Offset 53, 14 lines modified | ||
53 | ····*·al_store_state | 53 | ····*·al_store_state |
54 | ····*·al_get_errno | 54 | ····*·al_get_errno |
55 | ····*·al_set_errno | 55 | ····*·al_set_errno |
56 | These·functions·are·declared·in·the·main·Allegro·header·file: | 56 | These·functions·are·declared·in·the·main·Allegro·header·file: |
57 | ·#include·<allegro5/allegro.h> | 57 | ·#include·<allegro5/allegro.h> |
58 | ******·ALLEGRO_STATE·****** | 58 | ******·ALLEGRO_STATE·****** |
59 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; | 59 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; |
60 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; | ||
61 | Source_Code | 60 | Source_Code |
62 | Opaque·type·which·is·passed·to·al_store_state/al_restore_state. | 61 | Opaque·type·which·is·passed·to·al_store_state/al_restore_state. |
63 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: | 62 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: |
64 | ··global | 63 | ··global |
65 | ······active·system·driver | 64 | ······active·system·driver |
66 | ··········current·config | 65 | ··········current·config |
67 | ··per·thread | 66 | ··per·thread |
Offset 83, 15 lines modified | Offset 82, 14 lines modified | ||
83 | threads·they·never·will·interfere·with·each·other.·(Except·if·there·are·objects | 82 | threads·they·never·will·interfere·with·each·other.·(Except·if·there·are·objects |
84 | accessed·by·multiple·threads·of·course.·Usually·you·want·to·minimize·that | 83 | accessed·by·multiple·threads·of·course.·Usually·you·want·to·minimize·that |
85 | though·and·for·the·remaining·cases·use·synchronization·primitives·described·in | 84 | though·and·for·the·remaining·cases·use·synchronization·primitives·described·in |
86 | the·threads·section·or·events·described·in·the·events·section·to·control·inter- | 85 | the·threads·section·or·events·described·in·the·events·section·to·control·inter- |
87 | thread·communication.) | 86 | thread·communication.) |
88 | ******·ALLEGRO_STATE_FLAGS·****** | 87 | ******·ALLEGRO_STATE_FLAGS·****** |
89 | typedef·enum·ALLEGRO_STATE_FLAGS | 88 | typedef·enum·ALLEGRO_STATE_FLAGS |
90 | typedef·enum·ALLEGRO_STATE_FLAGS | ||
91 | Source_Code | 89 | Source_Code |
92 | Flags·which·can·be·passed·to·al_store_state/al_restore_state·as·bit | 90 | Flags·which·can·be·passed·to·al_store_state/al_restore_state·as·bit |
93 | combinations.·See·al_store_state·for·the·list·of·flags. | 91 | combinations.·See·al_store_state·for·the·list·of·flags. |
94 | ******·al_restore_state·****** | 92 | ******·al_restore_state·****** |
95 | void·al_restore_state(ALLEGRO_STATE·const·*state) | 93 | void·al_restore_state(ALLEGRO_STATE·const·*state) |
96 | Source_Code | 94 | Source_Code |
97 | Restores·part·of·the·state·of·the·current·thread·from·the·given·ALLEGRO_STATE | 95 | Restores·part·of·the·state·of·the·current·thread·from·the·given·ALLEGRO_STATE |
Offset 123, 8 lines modified | Offset 121, 8 lines modified | ||
123 | code.·Call·this·function·to·retrieve·the·last·error·number·set·for·the·calling | 121 | code.·Call·this·function·to·retrieve·the·last·error·number·set·for·the·calling |
124 | thread. | 122 | thread. |
125 | ******·al_set_errno·****** | 123 | ******·al_set_errno·****** |
126 | void·al_set_errno(int·errnum) | 124 | void·al_set_errno(int·errnum) |
127 | SETTER(allegro_errno,·errnum) | 125 | SETTER(allegro_errno,·errnum) |
128 | Source_Code | 126 | Source_Code |
129 | Set·the·error·number·for·the·calling·thread. | 127 | Set·the·error·number·for·the·calling·thread. |
130 | Allegro·version·5.2.6·-·Last·updated:·202 | 128 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:35·UTC |
Offset 192, 16 lines modified | Offset 192, 15 lines modified | ||
192 | <p>The·version·field·should·always·be·set·to·ALLEGRO_VERSION_INT.</p> | 192 | <p>The·version·field·should·always·be·set·to·ALLEGRO_VERSION_INT.</p> |
193 | <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> | 193 | <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> |
194 | <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> | 194 | <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> |
195 | <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> | 195 | <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> |
196 | <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> | 196 | <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> |
197 | <p>See·also:·<a·href="system.html#al_init">al_init</a></p> | 197 | <p>See·also:·<a·href="system.html#al_init">al_init</a></p> |
198 | <h1·id="al_init">al_init</h1> | 198 | <h1·id="al_init">al_init</h1> |
199 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="pp">#define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit))</span></span> | 199 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="pp">#define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit))</span></span></code></pre></div> |
200 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="pp">#define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit))</span></span></code></pre></div> | ||
201 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L30">Source·Code</a></p> | 200 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L30">Source·Code</a></p> |
202 | <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> | 201 | <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> |
203 | <blockquote> | 202 | <blockquote> |
204 | <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> | 203 | <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> |
205 | </blockquote> | 204 | </blockquote> |
206 | <p>See·also:·<a·href="system.html#al_install_system">al_install_system</a></p> | 205 | <p>See·also:·<a·href="system.html#al_install_system">al_install_system</a></p> |
207 | <h1·id="al_uninstall_system">al_uninstall_system</h1> | 206 | <h1·id="al_uninstall_system">al_uninstall_system</h1> |
Offset 567, 16 lines modified | Offset 566, 15 lines modified | ||
567 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/cpu.c#L77">Source·Code</a></p> | 566 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/cpu.c#L77">Source·Code</a></p> |
568 | <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> | 567 | <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> |
569 | <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> | 568 | <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> |
570 | <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> | 569 | <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> |
571 | <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> | 570 | <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> |
572 | <p>Since:·5.1.12</p> | 571 | <p>Since:·5.1.12</p> |
573 | <h1·id="allegro_system_id">ALLEGRO_SYSTEM_ID</h1> | 572 | <h1·id="allegro_system_id">ALLEGRO_SYSTEM_ID</h1> |
574 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_SYSTEM_ID·{</span> | 573 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_SYSTEM_ID·{</span></code></pre></div> |
575 | <span·id="cb21-2"><a·href="#cb21-2"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_SYSTEM_ID·{</span></code></pre></div> | ||
576 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L15">Source·Code</a></p> | 574 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L15">Source·Code</a></p> |
577 | <p>The·system·Allegro·is·running·on.</p> | 575 | <p>The·system·Allegro·is·running·on.</p> |
578 | <ul> | 576 | <ul> |
579 | <li>ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system.</li> | 577 | <li>ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system.</li> |
580 | <li>ALLEGRO_SYSTEM_ID_XGLX·-·Xglx</li> | 578 | <li>ALLEGRO_SYSTEM_ID_XGLX·-·Xglx</li> |
581 | <li>ALLEGRO_SYSTEM_ID_WINDOWS·-·Windows</li> | 579 | <li>ALLEGRO_SYSTEM_ID_WINDOWS·-·Windows</li> |
582 | <li>ALLEGRO_SYSTEM_ID_MACOSX·-·macOS</li> | 580 | <li>ALLEGRO_SYSTEM_ID_MACOSX·-·macOS</li> |
Offset 586, 12 lines modified | Offset 584, 12 lines modified | ||
586 | <li>ALLEGRO_SYSTEM_ID_RASPBERRYPI·-·Raspberry·Pi</li> | 584 | <li>ALLEGRO_SYSTEM_ID_RASPBERRYPI·-·Raspberry·Pi</li> |
587 | <li>ALLEGRO_SYSTEM_ID_SDL·-·SDL</li> | 585 | <li>ALLEGRO_SYSTEM_ID_SDL·-·SDL</li> |
588 | </ul> | 586 | </ul> |
589 | <p>Since:·5.2.5</p> | 587 | <p>Since:·5.2.5</p> |
590 | <p>See·also:·<a·href="system.html#al_get_system_id">al_get_system_id</a></p> | 588 | <p>See·also:·<a·href="system.html#al_get_system_id">al_get_system_id</a></p> |
591 | <p·class="timestamp"> | 589 | <p·class="timestamp"> |
592 | Allegro·version·5.2.6 | 590 | Allegro·version·5.2.6 |
593 | ·-·Last·updated:·202 | 591 | ·-·Last·updated:·2024-01-06·13:49:35·UTC |
594 | </p> | 592 | </p> |
595 | </div> | 593 | </div> |
596 | </body> | 594 | </body> |
597 | </html> | 595 | </html> |
Offset 85, 15 lines modified | Offset 85, 14 lines modified | ||
85 | Allegro·found·in·the·system·shared·library. | 85 | Allegro·found·in·the·system·shared·library. |
86 | If·you·defined·ALLEGRO_UNSTABLE·before·including·Allegro·headers,·then·version | 86 | If·you·defined·ALLEGRO_UNSTABLE·before·including·Allegro·headers,·then·version |
87 | A·is·compatible·with·B·only·if·xa.ya.za·=·xb.yb.zb.·Otherwise,·A·is·compatible | 87 | A·is·compatible·with·B·only·if·xa.ya.za·=·xb.yb.zb.·Otherwise,·A·is·compatible |
88 | with·B·only·if·xa.ya·=·xb.yb. | 88 | with·B·only·if·xa.ya·=·xb.yb. |
89 | See·also:·al_init | 89 | See·also:·al_init |
90 | ******·al_init·****** | 90 | ******·al_init·****** |
91 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) | 91 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) |
92 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) | ||
93 | Source_Code | 92 | Source_Code |
94 | Like·al_install_system,·but·automatically·passes·in·the·version·and·uses·the | 93 | Like·al_install_system,·but·automatically·passes·in·the·version·and·uses·the |
95 | atexit·function·visible·in·the·current·binary. | 94 | atexit·function·visible·in·the·current·binary. |
96 | ·····Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final | 95 | ·····Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final |
97 | ·····game·binary.·In·particular,·do·not·call·it·inside·a·shared·library | 96 | ·····game·binary.·In·particular,·do·not·call·it·inside·a·shared·library |
98 | ·····unless·you·know·what·youâre·doing.·In·those·cases,·it·is·better·to | 97 | ·····unless·you·know·what·youâre·doing.·In·those·cases,·it·is·better·to |
99 | ·····call·al_install_system·either·with·a·NULL·atexit_ptr,·or·with·a | 98 | ·····call·al_install_system·either·with·a·NULL·atexit_ptr,·or·with·a |
Offset 524, 22 lines modified | Offset 523, 21 lines modified | ||
524 | Therefore,·itâs·best·to·use·this·for·advisory·purposes·only.·It·is·certainly | 523 | Therefore,·itâs·best·to·use·this·for·advisory·purposes·only.·It·is·certainly |
525 | a·bad·idea·to·make·your·program·exclusive·to·systems·for·which·this·function | 524 | a·bad·idea·to·make·your·program·exclusive·to·systems·for·which·this·function |
526 | returns·a·certain·âdesirableâ·number. | 525 | returns·a·certain·âdesirableâ·number. |
527 | This·function·may·be·called·prior·to·al_install_system·or·al_init. | 526 | This·function·may·be·called·prior·to·al_install_system·or·al_init. |
528 | Since:·5.1.12 | 527 | Since:·5.1.12 |
529 | ******·ALLEGRO_SYSTEM_ID·****** | 528 | ******·ALLEGRO_SYSTEM_ID·****** |
530 | enum·ALLEGRO_SYSTEM_ID·{ | 529 | enum·ALLEGRO_SYSTEM_ID·{ |
531 | enum·ALLEGRO_SYSTEM_ID·{ | ||
532 | Source_Code | 530 | Source_Code |
533 | The·system·Allegro·is·running·on. | 531 | The·system·Allegro·is·running·on. |
534 | ····*·ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system. | 532 | ····*·ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system. |
535 | ····*·ALLEGRO_SYSTEM_ID_XGLX·-·Xglx | 533 | ····*·ALLEGRO_SYSTEM_ID_XGLX·-·Xglx |
536 | ····*·ALLEGRO_SYSTEM_ID_WINDOWS·-·Windows | 534 | ····*·ALLEGRO_SYSTEM_ID_WINDOWS·-·Windows |
537 | ····*·ALLEGRO_SYSTEM_ID_MACOSX·-·macOS | 535 | ····*·ALLEGRO_SYSTEM_ID_MACOSX·-·macOS |
538 | ····*·ALLEGRO_SYSTEM_ID_ANDROID·-·Android | 536 | ····*·ALLEGRO_SYSTEM_ID_ANDROID·-·Android |
539 | ····*·ALLEGRO_SYSTEM_ID_IPHONE·-·iOS | 537 | ····*·ALLEGRO_SYSTEM_ID_IPHONE·-·iOS |
540 | ····*·ALLEGRO_SYSTEM_ID_GP2XWIZ·-·GP2XWIZ | 538 | ····*·ALLEGRO_SYSTEM_ID_GP2XWIZ·-·GP2XWIZ |
541 | ····*·ALLEGRO_SYSTEM_ID_RASPBERRYPI·-·Raspberry·Pi | 539 | ····*·ALLEGRO_SYSTEM_ID_RASPBERRYPI·-·Raspberry·Pi |
542 | ····*·ALLEGRO_SYSTEM_ID_SDL·-·SDL | 540 | ····*·ALLEGRO_SYSTEM_ID_SDL·-·SDL |
543 | Since:·5.2.5 | 541 | Since:·5.2.5 |
544 | See·also:·al_get_system_id | 542 | See·also:·al_get_system_id |
545 | Allegro·version·5.2.6·-·Last·updated:·202 | 543 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:35·UTC |
Offset 187, 26 lines modified | Offset 187, 23 lines modified | ||
187 | <li><a·href="#al_signal_cond">al_signal_cond</a></li> | 187 | <li><a·href="#al_signal_cond">al_signal_cond</a></li> |
188 | </ul> | 188 | </ul> |
189 | </nav> | 189 | </nav> |
190 | <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> | 190 | <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> |
191 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 191 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
192 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 192 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
193 | <h1·id="allegro_thread">ALLEGRO_THREAD</h1> | 193 | <h1·id="allegro_thread">ALLEGRO_THREAD</h1> |
194 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD;</span> | 194 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD;</span></code></pre></div> |
195 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_THREAD·ALLEGRO_THREAD;</span></code></pre></div> | ||
196 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source·Code</a></p> | 195 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source·Code</a></p> |
197 | <p>An·opaque·structure·representing·a·thread.</p> | 196 | <p>An·opaque·structure·representing·a·thread.</p> |
198 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> | 197 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> |
199 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX;</span> | 198 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX;</span></code></pre></div> |
200 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX;</span></code></pre></div> | ||
201 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source·Code</a></p> | 199 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source·Code</a></p> |
202 | <p>An·opaque·structure·representing·a·mutex.</p> | 200 | <p>An·opaque·structure·representing·a·mutex.</p> |
203 | <h1·id="allegro_cond">ALLEGRO_COND</h1> | 201 | <h1·id="allegro_cond">ALLEGRO_COND</h1> |
204 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND;</span> | 202 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND;</span></code></pre></div> |
205 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND;</span></code></pre></div> | ||
206 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source·Code</a></p> | 203 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source·Code</a></p> |
207 | <p>An·opaque·structure·representing·a·condition·variable.</p> | 204 | <p>An·opaque·structure·representing·a·condition·variable.</p> |
208 | <h1·id="al_create_thread">al_create_thread</h1> | 205 | <h1·id="al_create_thread">al_create_thread</h1> |
209 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a>ALLEGRO_THREAD·*al_create_thread(</span> | 206 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a>ALLEGRO_THREAD·*al_create_thread(</span> |
210 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a>···<span·class="dt">void</span>·*(*proc)(ALLEGRO_THREAD·*thread,·<span·class="dt">void</span>·*arg),·<span·class="dt">void</span>·*arg)</span></code></pre></div> | 207 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a>···<span·class="dt">void</span>·*(*proc)(ALLEGRO_THREAD·*thread,·<span·class="dt">void</span>·*arg),·<span·class="dt">void</span>·*arg)</span></code></pre></div> |
211 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L115">Source·Code</a></p> | 208 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L115">Source·Code</a></p> |
212 | <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> | 209 | <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 331, 12 lines modified | Offset 328, 12 lines modified | ||
331 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb24-1"><a·href="#cb24-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_signal_cond(ALLEGRO_COND·*cond)</span></code></pre></div> | 328 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb24-1"><a·href="#cb24-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_signal_cond(ALLEGRO_COND·*cond)</span></code></pre></div> |
332 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L409">Source·Code</a></p> | 329 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L409">Source·Code</a></p> |
333 | <p>Unblock·at·least·one·thread·waiting·on·a·condition·variable.</p> | 330 | <p>Unblock·at·least·one·thread·waiting·on·a·condition·variable.</p> |
334 | <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> | 331 | <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> |
335 | <p>See·also:·<a·href="threads.html#al_broadcast_cond">al_broadcast_cond</a>.</p> | 332 | <p>See·also:·<a·href="threads.html#al_broadcast_cond">al_broadcast_cond</a>.</p> |
336 | <p·class="timestamp"> | 333 | <p·class="timestamp"> |
337 | Allegro·version·5.2.6 | 334 | Allegro·version·5.2.6 |
338 | ·-·Last·updated:·202 | 335 | ·-·Last·updated:·2024-01-06·13:49:35·UTC |
339 | </p> | 336 | </p> |
340 | </div> | 337 | </div> |
341 | </body> | 338 | </body> |
342 | </html> | 339 | </html> |
Offset 76, 25 lines modified | Offset 76, 22 lines modified | ||
76 | subtly·on·different·platforms·(more·so·than·usual).·Your·best·bet·is·to·be | 76 | subtly·on·different·platforms·(more·so·than·usual).·Your·best·bet·is·to·be |
77 | aware·of·this·and·code·to·the·intersection·of·the·semantics·and·avoid·edge | 77 | aware·of·this·and·code·to·the·intersection·of·the·semantics·and·avoid·edge |
78 | cases. | 78 | cases. |
79 | These·functions·are·declared·in·the·main·Allegro·header·file: | 79 | These·functions·are·declared·in·the·main·Allegro·header·file: |
80 | ·#include·<allegro5/allegro.h> | 80 | ·#include·<allegro5/allegro.h> |
81 | ******·ALLEGRO_THREAD·****** | 81 | ******·ALLEGRO_THREAD·****** |
82 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | 82 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; |
83 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | ||
84 | Source_Code | 83 | Source_Code |
85 | An·opaque·structure·representing·a·thread. | 84 | An·opaque·structure·representing·a·thread. |
86 | ******·ALLEGRO_MUTEX·****** | 85 | ******·ALLEGRO_MUTEX·****** |
87 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | 86 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; |
88 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | ||
89 | Source_Code | 87 | Source_Code |
90 | An·opaque·structure·representing·a·mutex. | 88 | An·opaque·structure·representing·a·mutex. |
91 | ******·ALLEGRO_COND·****** | 89 | ******·ALLEGRO_COND·****** |
92 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | 90 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; |
93 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | ||
94 | Source_Code | 91 | Source_Code |
95 | An·opaque·structure·representing·a·condition·variable. | 92 | An·opaque·structure·representing·a·condition·variable. |
96 | ******·al_create_thread·****** | 93 | ******·al_create_thread·****** |
97 | ALLEGRO_THREAD·*al_create_thread( | 94 | ALLEGRO_THREAD·*al_create_thread( |
98 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) | 95 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) |
99 | Source_Code | 96 | Source_Code |
100 | Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its | 97 | Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its |
Offset 254, 8 lines modified | Offset 251, 8 lines modified | ||
254 | ******·al_signal_cond·****** | 251 | ******·al_signal_cond·****** |
255 | void·al_signal_cond(ALLEGRO_COND·*cond) | 252 | void·al_signal_cond(ALLEGRO_COND·*cond) |
256 | Source_Code | 253 | Source_Code |
257 | Unblock·at·least·one·thread·waiting·on·a·condition·variable. | 254 | Unblock·at·least·one·thread·waiting·on·a·condition·variable. |
258 | Generally·you·should·use·al_broadcast_cond·but·al_signal_cond·may·be·more | 255 | Generally·you·should·use·al_broadcast_cond·but·al_signal_cond·may·be·more |
259 | efficient·when·itâs·applicable. | 256 | efficient·when·itâs·applicable. |
260 | See·also:·al_broadcast_cond. | 257 | See·also:·al_broadcast_cond. |
261 | Allegro·version·5.2.6·-·Last·updated:·202 | 258 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:35·UTC |
Offset 190, 12 lines modified | Offset 190, 12 lines modified | ||
190 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_rest(<span·class="dt">double</span>·seconds)</span></code></pre></div> | 190 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_rest(<span·class="dt">double</span>·seconds)</span></code></pre></div> |
191 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L513">Source·Code</a></p> | 191 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L513">Source·Code</a></p> |
192 | <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> | 192 | <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> |
193 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a>al_rest(<span·class="fl">0.000001</span>)</span></code></pre></div> | 193 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a>al_rest(<span·class="fl">0.000001</span>)</span></code></pre></div> |
194 | <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> | 194 | <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> |
195 | <p·class="timestamp"> | 195 | <p·class="timestamp"> |
196 | Allegro·version·5.2.6 | 196 | Allegro·version·5.2.6 |
197 | ·-·Last·updated:·202 | 197 | ·-·Last·updated:·2024-01-06·13:49:36·UTC |
198 | </p> | 198 | </p> |
199 | </div> | 199 | </div> |
200 | </body> | 200 | </body> |
201 | </html> | 201 | </html> |
Offset 77, 8 lines modified | Offset 77, 8 lines modified | ||
77 | Source_Code | 77 | Source_Code |
78 | Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the | 78 | Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the |
79 | current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the | 79 | current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the |
80 | accuracy·can·be·in·the·order·of·10ms.·That·is,·even | 80 | accuracy·can·be·in·the·order·of·10ms.·That·is,·even |
81 | al_rest(0.000001) | 81 | al_rest(0.000001) |
82 | might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for | 82 | might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for |
83 | easier·ways·to·time·your·program·without·using·up·all·CPU. | 83 | easier·ways·to·time·your·program·without·using·up·all·CPU. |
84 | Allegro·version·5.2.6·-·Last·updated:·202 | 84 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:36·UTC |
Offset 181, 36 lines modified | Offset 181, 31 lines modified | ||
181 | <li><a·href="#al_set_timer_speed">al_set_timer_speed</a></li> | 181 | <li><a·href="#al_set_timer_speed">al_set_timer_speed</a></li> |
182 | <li><a·href="#al_get_timer_event_source">al_get_timer_event_source</a></li> | 182 | <li><a·href="#al_get_timer_event_source">al_get_timer_event_source</a></li> |
183 | </ul> | 183 | </ul> |
184 | </nav> | 184 | </nav> |
185 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 185 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
186 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 186 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
187 | <h1·id="allegro_timer">ALLEGRO_TIMER</h1> | 187 | <h1·id="allegro_timer">ALLEGRO_TIMER</h1> |
188 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER;</span> | 188 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER;</span></code></pre></div> |
189 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TIMER·ALLEGRO_TIMER;</span></code></pre></div> | ||
190 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source·Code</a></p> | 189 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source·Code</a></p> |
191 | <p>This·is·an·abstract·data·type·representing·a·timer·object.</p> | 190 | <p>This·is·an·abstract·data·type·representing·a·timer·object.</p> |
192 | <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1> | 191 | <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1> |
193 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0)</span></span> | 192 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0)</span></span></code></pre></div> |
194 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0)</span></span></code></pre></div> | ||
195 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source·Code</a></p> | 193 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source·Code</a></p> |
196 | <p>Convert·microseconds·to·seconds.</p> | 194 | <p>Convert·microseconds·to·seconds.</p> |
197 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> | 195 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> |
198 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0)</span></span> | 196 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0)</span></span></code></pre></div> |
199 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0)</span></span></code></pre></div> | ||
200 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L33">Source·Code</a></p> | 197 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L33">Source·Code</a></p> |
201 | <p>Convert·milliseconds·to·seconds.</p> | 198 | <p>Convert·milliseconds·to·seconds.</p> |
202 | <h1·id="allegro_bps_to_secs">ALLEGRO_BPS_TO_SECS</h1> | 199 | <h1·id="allegro_bps_to_secs">ALLEGRO_BPS_TO_SECS</h1> |
203 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x))</span></span> | 200 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x))</span></span></code></pre></div> |
204 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x))</span></span></code></pre></div> | ||
205 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L37">Source·Code</a></p> | 201 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L37">Source·Code</a></p> |
206 | <p>Convert·beats·per·second·to·seconds.</p> | 202 | <p>Convert·beats·per·second·to·seconds.</p> |
207 | <h1·id="allegro_bpm_to_secs">ALLEGRO_BPM_TO_SECS</h1> | 203 | <h1·id="allegro_bpm_to_secs">ALLEGRO_BPM_TO_SECS</h1> |
208 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x))</span></span> | 204 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x))</span></span></code></pre></div> |
209 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x))</span></span></code></pre></div> | ||
210 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L41">Source·Code</a></p> | 205 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L41">Source·Code</a></p> |
211 | <p>Convert·beats·per·minute·to·seconds.</p> | 206 | <p>Convert·beats·per·minute·to·seconds.</p> |
212 | <h1·id="al_create_timer">al_create_timer</h1> | 207 | <h1·id="al_create_timer">al_create_timer</h1> |
213 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a>ALLEGRO_TIMER·*al_create_timer(<span·class="dt">double</span>·speed_secs)</span></code></pre></div> | 208 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a>ALLEGRO_TIMER·*al_create_timer(<span·class="dt">double</span>·speed_secs)</span></code></pre></div> |
214 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L243">Source·Code</a></p> | 209 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L243">Source·Code</a></p> |
215 | <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> | 210 | <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> |
216 | <p>Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but·with·some·drivers·might·only·be·milliseconds.</p> | 211 | <p>Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but·with·some·drivers·might·only·be·milliseconds.</p> |
Offset 270, 12 lines modified | Offset 265, 12 lines modified | ||
270 | <p>See·also:·<a·href="timer.html#al_get_timer_speed">al_get_timer_speed</a></p> | 265 | <p>See·also:·<a·href="timer.html#al_get_timer_speed">al_get_timer_speed</a></p> |
271 | <h1·id="al_get_timer_event_source">al_get_timer_event_source</h1> | 266 | <h1·id="al_get_timer_event_source">al_get_timer_event_source</h1> |
272 | <div·class="sourceCode"·id="cb19"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb19-1"><a·href="#cb19-1"·aria-hidden="true"></a>ALLEGRO_EVENT_SOURCE·*al_get_timer_event_source(ALLEGRO_TIMER·*timer)</span></code></pre></div> | 267 | <div·class="sourceCode"·id="cb19"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb19-1"><a·href="#cb19-1"·aria-hidden="true"></a>ALLEGRO_EVENT_SOURCE·*al_get_timer_event_source(ALLEGRO_TIMER·*timer)</span></code></pre></div> |
273 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L435">Source·Code</a></p> | 268 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L435">Source·Code</a></p> |
274 | <p>Retrieve·the·associated·event·source.·Timers·will·generate·events·of·type·<a·href="events.html#allegro_event_timer">ALLEGRO_EVENT_TIMER</a>.</p> | 269 | <p>Retrieve·the·associated·event·source.·Timers·will·generate·events·of·type·<a·href="events.html#allegro_event_timer">ALLEGRO_EVENT_TIMER</a>.</p> |
275 | <p·class="timestamp"> | 270 | <p·class="timestamp"> |
276 | Allegro·version·5.2.6 | 271 | Allegro·version·5.2.6 |
277 | ·-·Last·updated:·202 | 272 | ·-·Last·updated:·2024-01-06·13:49:36·UTC |
278 | </p> | 273 | </p> |
279 | </div> | 274 | </div> |
280 | </body> | 275 | </body> |
281 | </html> | 276 | </html> |
Offset 64, 35 lines modified | Offset 64, 30 lines modified | ||
64 | ····*·al_get_timer_speed | 64 | ····*·al_get_timer_speed |
65 | ····*·al_set_timer_speed | 65 | ····*·al_set_timer_speed |
66 | ····*·al_get_timer_event_source | 66 | ····*·al_get_timer_event_source |
67 | These·functions·are·declared·in·the·main·Allegro·header·file: | 67 | These·functions·are·declared·in·the·main·Allegro·header·file: |
68 | ·#include·<allegro5/allegro.h> | 68 | ·#include·<allegro5/allegro.h> |
69 | ******·ALLEGRO_TIMER·****** | 69 | ******·ALLEGRO_TIMER·****** |
70 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; | 70 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; |
71 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; | ||
72 | Source_Code | 71 | Source_Code |
73 | This·is·an·abstract·data·type·representing·a·timer·object. | 72 | This·is·an·abstract·data·type·representing·a·timer·object. |
74 | ******·ALLEGRO_USECS_TO_SECS·****** | 73 | ******·ALLEGRO_USECS_TO_SECS·****** |
75 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | 74 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) |
76 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | ||
77 | Source_Code | 75 | Source_Code |
78 | Convert·microseconds·to·seconds. | 76 | Convert·microseconds·to·seconds. |
79 | ******·ALLEGRO_MSECS_TO_SECS·****** | 77 | ******·ALLEGRO_MSECS_TO_SECS·****** |
80 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | 78 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) |
81 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | ||
82 | Source_Code | 79 | Source_Code |
83 | Convert·milliseconds·to·seconds. | 80 | Convert·milliseconds·to·seconds. |
84 | ******·ALLEGRO_BPS_TO_SECS·****** | 81 | ******·ALLEGRO_BPS_TO_SECS·****** |
85 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | 82 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) |
86 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | ||
87 | Source_Code | 83 | Source_Code |
88 | Convert·beats·per·second·to·seconds. | 84 | Convert·beats·per·second·to·seconds. |
89 | ******·ALLEGRO_BPM_TO_SECS·****** | 85 | ******·ALLEGRO_BPM_TO_SECS·****** |
90 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | 86 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) |
91 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | ||
92 | Source_Code | 87 | Source_Code |
93 | Convert·beats·per·minute·to·seconds. | 88 | Convert·beats·per·minute·to·seconds. |
94 | ******·al_create_timer·****** | 89 | ******·al_create_timer·****** |
95 | ALLEGRO_TIMER·*al_create_timer(double·speed_secs) | 90 | ALLEGRO_TIMER·*al_create_timer(double·speed_secs) |
96 | Source_Code | 91 | Source_Code |
97 | Allocates·and·initializes·a·timer.·If·successful,·a·pointer·to·a·new·timer | 92 | Allocates·and·initializes·a·timer.·If·successful,·a·pointer·to·a·new·timer |
98 | object·is·returned,·otherwise·NULL·is·returned.·speed_secs·is·in·seconds·per | 93 | object·is·returned,·otherwise·NULL·is·returned.·speed_secs·is·in·seconds·per |
Offset 170, 8 lines modified | Offset 165, 8 lines modified | ||
170 | speed_secs·has·exactly·the·same·meaning·as·with·al_create_timer. | 165 | speed_secs·has·exactly·the·same·meaning·as·with·al_create_timer. |
171 | See·also:·al_get_timer_speed | 166 | See·also:·al_get_timer_speed |
172 | ******·al_get_timer_event_source·****** | 167 | ******·al_get_timer_event_source·****** |
173 | ALLEGRO_EVENT_SOURCE·*al_get_timer_event_source(ALLEGRO_TIMER·*timer) | 168 | ALLEGRO_EVENT_SOURCE·*al_get_timer_event_source(ALLEGRO_TIMER·*timer) |
174 | Source_Code | 169 | Source_Code |
175 | Retrieve·the·associated·event·source.·Timers·will·generate·events·of·type | 170 | Retrieve·the·associated·event·source.·Timers·will·generate·events·of·type |
176 | ALLEGRO_EVENT_TIMER. | 171 | ALLEGRO_EVENT_TIMER. |
177 | Allegro·version·5.2.6·-·Last·updated:·202 | 172 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:36·UTC |
Offset 177, 54 lines modified | Offset 177, 49 lines modified | ||
177 | <li><a·href="#al_get_touch_input_event_source">al_get_touch_input_event_source</a></li> | 177 | <li><a·href="#al_get_touch_input_event_source">al_get_touch_input_event_source</a></li> |
178 | <li><a·href="#al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</a></li> | 178 | <li><a·href="#al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</a></li> |
179 | </ul> | 179 | </ul> |
180 | </nav> | 180 | </nav> |
181 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 181 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
182 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> | 182 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro.h></span></span></code></pre></div> |
183 | <h1·id="allegro_touch_input">ALLEGRO_TOUCH_INPUT</h1> | 183 | <h1·id="allegro_touch_input">ALLEGRO_TOUCH_INPUT</h1> |
184 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT;</span> | 184 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT;</span></code></pre></div> |
185 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT;</span></code></pre></div> | ||
186 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L34">Source·Code</a></p> | 185 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L34">Source·Code</a></p> |
187 | <p>An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad.</p> | 186 | <p>An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad.</p> |
188 | <p>Since:·5.1.0</p> | 187 | <p>Since:·5.1.0</p> |
189 | <h1·id="allegro_touch_input_max_touch_count">ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT</h1> | 188 | <h1·id="allegro_touch_input_max_touch_count">ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT</h1> |
190 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16</span></span> | 189 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16</span></span></code></pre></div> |
191 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="pp">#define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16</span></span></code></pre></div> | ||
192 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L29">Source·Code</a></p> | 190 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L29">Source·Code</a></p> |
193 | <p>The·maximum·amount·of·simultaneous·touches·that·can·be·detected.</p> | 191 | <p>The·maximum·amount·of·simultaneous·touches·that·can·be·detected.</p> |
194 | <p>Since:·5.1.0</p> | 192 | <p>Since:·5.1.0</p> |
195 | <h1·id="allegro_touch_state">ALLEGRO_TOUCH_STATE</h1> | 193 | <h1·id="allegro_touch_state">ALLEGRO_TOUCH_STATE</h1> |
196 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE;</span> | 194 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE;</span></code></pre></div> |
197 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE;</span></code></pre></div> | ||
198 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L44">Source·Code</a></p> | 195 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L44">Source·Code</a></p> |
199 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a·particular·instant.</p> | 196 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a·particular·instant.</p> |
200 | <p>Public·fields·(read·only):</p> | 197 | <p>Public·fields·(read·only):</p> |
201 | <ul> | 198 | <ul> |
202 | <li>id·-·identifier·of·the·touch.·If·the·touch·is·valid,·this·is·positive.</li> | 199 | <li>id·-·identifier·of·the·touch.·If·the·touch·is·valid,·this·is·positive.</li> |
203 | <li>x·-·touch·x·position</li> | 200 | <li>x·-·touch·x·position</li> |
204 | <li>y·-·touch·y·position</li> | 201 | <li>y·-·touch·y·position</li> |
205 | <li>dx·-·touch·relative·x·position</li> | 202 | <li>dx·-·touch·relative·x·position</li> |
206 | <li>dy·-·touch·relative·y·position</li> | 203 | <li>dy·-·touch·relative·y·position</li> |
207 | <li>primary·-·TRUE·if·this·touch·is·the·primary·one·(usually·the·first·one).</li> | 204 | <li>primary·-·TRUE·if·this·touch·is·the·primary·one·(usually·the·first·one).</li> |
208 | <li>display·-·The·<a·href="display.html#allegro_display">ALLEGRO_DISPLAY</a>·that·was·touched.</li> | 205 | <li>display·-·The·<a·href="display.html#allegro_display">ALLEGRO_DISPLAY</a>·that·was·touched.</li> |
209 | </ul> | 206 | </ul> |
210 | <p>Since:·5.1.0</p> | 207 | <p>Since:·5.1.0</p> |
211 | <h1·id="allegro_touch_input_state">ALLEGRO_TOUCH_INPUT_STATE</h1> | 208 | <h1·id="allegro_touch_input_state">ALLEGRO_TOUCH_INPUT_STATE</h1> |
212 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE;</span> | 209 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE;</span></code></pre></div> |
213 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE;</span></code></pre></div> | ||
214 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L39">Source·Code</a></p> | 210 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L39">Source·Code</a></p> |
215 | <p>This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at·a·particular·instant.</p> | 211 | <p>This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at·a·particular·instant.</p> |
216 | <p>Public·fields·(read·only):</p> | 212 | <p>Public·fields·(read·only):</p> |
217 | <ul> | 213 | <ul> |
218 | <li>touches·-·an·array·of·<a·href="touch.html#allegro_touch_state">ALLEGRO_TOUCH_STATE</a></li> | 214 | <li>touches·-·an·array·of·<a·href="touch.html#allegro_touch_state">ALLEGRO_TOUCH_STATE</a></li> |
219 | </ul> | 215 | </ul> |
220 | <p>Since:·5.1.0</p> | 216 | <p>Since:·5.1.0</p> |
221 | <h1·id="allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</h1> | 217 | <h1·id="allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</h1> |
222 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</span> | 218 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</span></code></pre></div> |
223 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</span></code></pre></div> | ||
224 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L71">Source·Code</a></p> | 219 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L71">Source·Code</a></p> |
225 | <p>Type·of·mouse·emulation·to·apply.</p> | 220 | <p>Type·of·mouse·emulation·to·apply.</p> |
226 | <dl> | 221 | <dl> |
227 | <dt>ALLEGRO_MOUSE_EMULATION_NONE</dt> | 222 | <dt>ALLEGRO_MOUSE_EMULATION_NONE</dt> |
228 | <dd>Disables·mouse·emulation. | 223 | <dd>Disables·mouse·emulation. |
229 | </dd> | 224 | </dd> |
230 | <dt>ALLEGRO_MOUSE_EMULATION_TRANSPARENT</dt> | 225 | <dt>ALLEGRO_MOUSE_EMULATION_TRANSPARENT</dt> |
Offset 298, 12 lines modified | Offset 293, 12 lines modified | ||
298 | <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> | 293 | <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> |
299 | <p>Since:·5.1.0</p> | 294 | <p>Since:·5.1.0</p> |
300 | <blockquote> | 295 | <blockquote> |
301 | <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> | 296 | <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> |
302 | </blockquote> | 297 | </blockquote> |
303 | <p·class="timestamp"> | 298 | <p·class="timestamp"> |
304 | Allegro·version·5.2.6 | 299 | Allegro·version·5.2.6 |
305 | ·-·Last·updated:·202 | 300 | ·-·Last·updated:·2024-01-06·13:49:36·UTC |
306 | </p> | 301 | </p> |
307 | </div> | 302 | </div> |
308 | </body> | 303 | </body> |
309 | </html> | 304 | </html> |
Offset 60, 51 lines modified | Offset 60, 46 lines modified | ||
60 | ····*·al_get_mouse_emulation_mode | 60 | ····*·al_get_mouse_emulation_mode |
61 | ····*·al_get_touch_input_event_source | 61 | ····*·al_get_touch_input_event_source |
62 | ····*·al_get_touch_input_mouse_emulation_event_source | 62 | ····*·al_get_touch_input_mouse_emulation_event_source |
63 | These·functions·are·declared·in·the·main·Allegro·header·file: | 63 | These·functions·are·declared·in·the·main·Allegro·header·file: |
64 | ·#include·<allegro5/allegro.h> | 64 | ·#include·<allegro5/allegro.h> |
65 | ******·ALLEGRO_TOUCH_INPUT·****** | 65 | ******·ALLEGRO_TOUCH_INPUT·****** |
66 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; | 66 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; |
67 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; | ||
68 | Source_Code | 67 | Source_Code |
69 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. | 68 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. |
70 | Since:·5.1.0 | 69 | Since:·5.1.0 |
71 | ******·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT·****** | 70 | ******·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT·****** |
72 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 | 71 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 |
73 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 | ||
74 | Source_Code | 72 | Source_Code |
75 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. | 73 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. |
76 | Since:·5.1.0 | 74 | Since:·5.1.0 |
77 | ******·ALLEGRO_TOUCH_STATE·****** | 75 | ******·ALLEGRO_TOUCH_STATE·****** |
78 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; | 76 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; |
79 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; | ||
80 | Source_Code | 77 | Source_Code |
81 | This·is·a·structure·that·is·used·to·hold·a·âsnapshotâ·of·a·touch·at·a | 78 | This·is·a·structure·that·is·used·to·hold·a·âsnapshotâ·of·a·touch·at·a |
82 | particular·instant. | 79 | particular·instant. |
83 | Public·fields·(read·only): | 80 | Public·fields·(read·only): |
84 | ····*·id·-·identifier·of·the·touch.·If·the·touch·is·valid,·this·is·positive. | 81 | ····*·id·-·identifier·of·the·touch.·If·the·touch·is·valid,·this·is·positive. |
85 | ····*·x·-·touch·x·position | 82 | ····*·x·-·touch·x·position |
86 | ····*·y·-·touch·y·position | 83 | ····*·y·-·touch·y·position |
87 | ····*·dx·-·touch·relative·x·position | 84 | ····*·dx·-·touch·relative·x·position |
88 | ····*·dy·-·touch·relative·y·position | 85 | ····*·dy·-·touch·relative·y·position |
89 | ····*·primary·-·TRUE·if·this·touch·is·the·primary·one·(usually·the·first·one). | 86 | ····*·primary·-·TRUE·if·this·touch·is·the·primary·one·(usually·the·first·one). |
90 | ····*·display·-·The·ALLEGRO_DISPLAY·that·was·touched. | 87 | ····*·display·-·The·ALLEGRO_DISPLAY·that·was·touched. |
91 | Since:·5.1.0 | 88 | Since:·5.1.0 |
92 | ******·ALLEGRO_TOUCH_INPUT_STATE·****** | 89 | ******·ALLEGRO_TOUCH_INPUT_STATE·****** |
93 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; | 90 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; |
94 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; | ||
95 | Source_Code | 91 | Source_Code |
96 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at·a | 92 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at·a |
97 | particular·instant. | 93 | particular·instant. |
98 | Public·fields·(read·only): | 94 | Public·fields·(read·only): |
99 | ····*·touches·-·an·array·of·ALLEGRO_TOUCH_STATE | 95 | ····*·touches·-·an·array·of·ALLEGRO_TOUCH_STATE |
100 | Since:·5.1.0 | 96 | Since:·5.1.0 |
101 | ******·ALLEGRO_MOUSE_EMULATION_MODE·****** | 97 | ******·ALLEGRO_MOUSE_EMULATION_MODE·****** |
102 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE | 98 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE |
103 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE | ||
104 | Source_Code | 99 | Source_Code |
105 | Type·of·mouse·emulation·to·apply. | 100 | Type·of·mouse·emulation·to·apply. |
106 | ··ALLEGRO_MOUSE_EMULATION_NONE | 101 | ··ALLEGRO_MOUSE_EMULATION_NONE |
107 | ······Disables·mouse·emulation. | 102 | ······Disables·mouse·emulation. |
108 | ··ALLEGRO_MOUSE_EMULATION_TRANSPARENT | 103 | ··ALLEGRO_MOUSE_EMULATION_TRANSPARENT |
109 | ······Enables·transparent·mouse·emulation. | 104 | ······Enables·transparent·mouse·emulation. |
110 | ··ALLEGRO_MOUSE_EMULATION_INCLUSIVE | 105 | ··ALLEGRO_MOUSE_EMULATION_INCLUSIVE |
Offset 171, 8 lines modified | Offset 166, 8 lines modified | ||
171 | Source_Code | 166 | Source_Code |
172 | Returns·the·global·touch·input·event·source·for·emulated·mouse·events.·This | 167 | Returns·the·global·touch·input·event·source·for·emulated·mouse·events.·This |
173 | event·source·generates·emulated_mouse_events·that·are·based·on·touch·events. | 168 | event·source·generates·emulated_mouse_events·that·are·based·on·touch·events. |
174 | See·also:·ALLEGRO_EVENT_SOURCE,·al_register_event_source | 169 | See·also:·ALLEGRO_EVENT_SOURCE,·al_register_event_source |
175 | Since:·5.1.0 | 170 | Since:·5.1.0 |
176 | ·····Unstable_API:·Seems·of·limited·value,·as·touch·input·tends·to·have | 171 | ·····Unstable_API:·Seems·of·limited·value,·as·touch·input·tends·to·have |
177 | ·····different·semantics·compared·to·mouse·input. | 172 | ·····different·semantics·compared·to·mouse·input. |
178 | Allegro·version·5.2.6·-·Last·updated:·202 | 173 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:36·UTC |
Offset 228, 16 lines modified | Offset 228, 15 lines modified | ||
228 | <span·id="cb4-11"><a·href="#cb4-11"·aria-hidden="true"></a>al_use_transform(&T);</span></code></pre></div> | 228 | <span·id="cb4-11"><a·href="#cb4-11"·aria-hidden="true"></a>al_use_transform(&T);</span></code></pre></div> |
229 | <p>it·does·exactly·the·same·as:</p> | 229 | <p>it·does·exactly·the·same·as:</p> |
230 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a>al_identity_transform(&T);</span> | 230 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a>al_identity_transform(&T);</span> |
231 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a>al_scale_transform(&T,·<span·class="dv">2</span>,·<span·class="dv">2</span>);</span> | 231 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a>al_scale_transform(&T,·<span·class="dv">2</span>,·<span·class="dv">2</span>);</span> |
232 | <span·id="cb5-3"><a·href="#cb5-3"·aria-hidden="true"></a>al_translate_transform(&T,·<span·class="dv">100</span>,·<span·class="dv">0</span>);</span> | 232 | <span·id="cb5-3"><a·href="#cb5-3"·aria-hidden="true"></a>al_translate_transform(&T,·<span·class="dv">100</span>,·<span·class="dv">0</span>);</span> |
233 | <span·id="cb5-4"><a·href="#cb5-4"·aria-hidden="true"></a>al_use_transform(&T);</span></code></pre></div> | 233 | <span·id="cb5-4"><a·href="#cb5-4"·aria-hidden="true"></a>al_use_transform(&T);</span></code></pre></div> |
234 | <h1·id="allegro_transform">ALLEGRO_TRANSFORM</h1> | 234 | <h1·id="allegro_transform">ALLEGRO_TRANSFORM</h1> |
235 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM;</span> | 235 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM;</span></code></pre></div> |
236 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM;</span></code></pre></div> | ||
237 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/transformations.h#L12">Source·Code</a></p> | 236 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/transformations.h#L12">Source·Code</a></p> |
238 | <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> | 237 | <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> |
239 | <p><em>Fields:</em></p> | 238 | <p><em>Fields:</em></p> |
240 | <ul> | 239 | <ul> |
241 | <li>m·-·A·4x4·float·matrix</li> | 240 | <li>m·-·A·4x4·float·matrix</li> |
242 | </ul> | 241 | </ul> |
243 | <h1·id="al_copy_transform">al_copy_transform</h1> | 242 | <h1·id="al_copy_transform">al_copy_transform</h1> |
Offset 625, 12 lines modified | Offset 624, 12 lines modified | ||
625 | <li>trans·-·Transformation·to·alter</li> | 624 | <li>trans·-·Transformation·to·alter</li> |
626 | <li>theta·-·Rotation·angle·in·radians</li> | 625 | <li>theta·-·Rotation·angle·in·radians</li> |
627 | </ul> | 626 | </ul> |
628 | <p>Since:·5.1.7</p> | 627 | <p>Since:·5.1.7</p> |
629 | <p>See·also:·<a·href="transformations.html#al_horizontal_shear_transform">al_horizontal_shear_transform</a></p> | 628 | <p>See·also:·<a·href="transformations.html#al_horizontal_shear_transform">al_horizontal_shear_transform</a></p> |
630 | <p·class="timestamp"> | 629 | <p·class="timestamp"> |
631 | Allegro·version·5.2.6 | 630 | Allegro·version·5.2.6 |
632 | ·-·Last·updated:·202 | 631 | ·-·Last·updated:·2024-01-06·13:49:36·UTC |
633 | </p> | 632 | </p> |
634 | </div> | 633 | </div> |
635 | </body> | 634 | </body> |
636 | </html> | 635 | </html> |
Offset 134, 15 lines modified | Offset 134, 14 lines modified | ||
134 | it·does·exactly·the·same·as: | 134 | it·does·exactly·the·same·as: |
135 | al_identity_transform(&T); | 135 | al_identity_transform(&T); |
136 | al_scale_transform(&T,·2,·2); | 136 | al_scale_transform(&T,·2,·2); |
137 | al_translate_transform(&T,·100,·0); | 137 | al_translate_transform(&T,·100,·0); |
138 | al_use_transform(&T); | 138 | al_use_transform(&T); |
139 | ******·ALLEGRO_TRANSFORM·****** | 139 | ******·ALLEGRO_TRANSFORM·****** |
140 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | 140 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; |
141 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | ||
142 | Source_Code | 141 | Source_Code |
143 | Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms·use·only·a | 142 | Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms·use·only·a |
144 | small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right | 143 | small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right |
145 | most·2x1·matrix,·for·a·total·of·6·values. | 144 | most·2x1·matrix,·for·a·total·of·6·values. |
146 | Fields: | 145 | Fields: |
147 | ····*·m·-·A·4x4·float·matrix | 146 | ····*·m·-·A·4x4·float·matrix |
148 | ******·al_copy_transform·****** | 147 | ******·al_copy_transform·****** |
Offset 577, 8 lines modified | Offset 576, 8 lines modified | ||
577 | Source_Code | 576 | Source_Code |
578 | Apply·a·vertical·shear·to·the·transform | 577 | Apply·a·vertical·shear·to·the·transform |
579 | Parameters: | 578 | Parameters: |
580 | ····*·trans·-·Transformation·to·alter | 579 | ····*·trans·-·Transformation·to·alter |
581 | ····*·theta·-·Rotation·angle·in·radians | 580 | ····*·theta·-·Rotation·angle·in·radians |
582 | Since:·5.1.7 | 581 | Since:·5.1.7 |
583 | See·also:·al_horizontal_shear_transform | 582 | See·also:·al_horizontal_shear_transform |
584 | Allegro·version·5.2.6·-·Last·updated:·202 | 583 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:36·UTC |
Offset 304, 21 lines modified | Offset 304, 19 lines modified | ||
304 | <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> | 304 | <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> |
305 | <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> | 305 | <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> |
306 | <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> | 306 | <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> |
307 | <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> | 307 | <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> |
308 | <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> | 308 | <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> |
309 | <h1·id="utf-8-string-types">UTF-8·string·types</h1> | 309 | <h1·id="utf-8-string-types">UTF-8·string·types</h1> |
310 | <h2·id="allegro_ustr">ALLEGRO_USTR</h2> | 310 | <h2·id="allegro_ustr">ALLEGRO_USTR</h2> |
311 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR;</span> | 311 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR;</span></code></pre></div> |
312 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR;</span></code></pre></div> | ||
313 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source·Code</a></p> | 312 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source·Code</a></p> |
314 | <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> | 313 | <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> |
315 | <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2> | 314 | <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2> |
316 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO;</span> | 315 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO;</span></code></pre></div> |
317 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO;</span></code></pre></div> | ||
318 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source·Code</a></p> | 316 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source·Code</a></p> |
319 | <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> | 317 | <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> |
320 | <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> | 318 | <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> |
321 | <h1·id="creating-and-destroying-strings">Creating·and·destroying·strings</h1> | 319 | <h1·id="creating-and-destroying-strings">Creating·and·destroying·strings</h1> |
322 | <h2·id="al_ustr_new">al_ustr_new</h2> | 320 | <h2·id="al_ustr_new">al_ustr_new</h2> |
323 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a>ALLEGRO_USTR·*al_ustr_new(<span·class="dt">const</span>·<span·class="dt">char</span>·*s)</span></code></pre></div> | 321 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a>ALLEGRO_USTR·*al_ustr_new(<span·class="dt">const</span>·<span·class="dt">char</span>·*s)</span></code></pre></div> |
324 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L62">Source·Code</a></p> | 322 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L62">Source·Code</a></p> |
Offset 726, 12 lines modified | Offset 724, 12 lines modified | ||
726 | <div·class="sourceCode"·id="cb72"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb72-1"><a·href="#cb72-1"·aria-hidden="true"></a><span·class="dt">size_t</span>·al_utf16_encode(<span·class="dt">uint16_t</span>·s[],·<span·class="dt">int32_t</span>·c)</span></code></pre></div> | 724 | <div·class="sourceCode"·id="cb72"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb72-1"><a·href="#cb72-1"·aria-hidden="true"></a><span·class="dt">size_t</span>·al_utf16_encode(<span·class="dt">uint16_t</span>·s[],·<span·class="dt">int32_t</span>·c)</span></code></pre></div> |
727 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L1067">Source·Code</a></p> | 725 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L1067">Source·Code</a></p> |
728 | <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> | 726 | <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> |
729 | <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> | 727 | <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> |
730 | <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> | 728 | <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> |
731 | <p·class="timestamp"> | 729 | <p·class="timestamp"> |
732 | Allegro·version·5.2.6 | 730 | Allegro·version·5.2.6 |
733 | ·-·Last·updated:·202 | 731 | ·-·Last·updated:·2024-01-06·13:49:36·UTC |
734 | </p> | 732 | </p> |
735 | </div> | 733 | </div> |
736 | </body> | 734 | </body> |
737 | </html> | 735 | </html> |
Offset 195, 22 lines modified | Offset 195, 20 lines modified | ||
195 | actually·store·arbitrary·data·in·the·ALLEGRO_USTRs.) | 195 | actually·store·arbitrary·data·in·the·ALLEGRO_USTRs.) |
196 | For·actual·text·processing,·where·you·want·to·specify·positions·with·code·point | 196 | For·actual·text·processing,·where·you·want·to·specify·positions·with·code·point |
197 | indices,·you·should·use·al_ustr_offset·to·find·the·code·unit·offset·position. | 197 | indices,·you·should·use·al_ustr_offset·to·find·the·code·unit·offset·position. |
198 | However,·most·of·the·time·you·would·probably·just·work·with·byte·offsets. | 198 | However,·most·of·the·time·you·would·probably·just·work·with·byte·offsets. |
199 | ******·UTF-8·string·types·****** | 199 | ******·UTF-8·string·types·****** |
200 | *****·ALLEGRO_USTR·***** | 200 | *****·ALLEGRO_USTR·***** |
201 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; | 201 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; |
202 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; | ||
203 | Source_Code | 202 | Source_Code |
204 | An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF- | 203 | An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF- |
205 | 8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including | 204 | 8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including |
206 | NULs. | 205 | NULs. |
207 | *****·ALLEGRO_USTR_INFO·***** | 206 | *****·ALLEGRO_USTR_INFO·***** |
208 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; | 207 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; |
209 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; | ||
210 | Source_Code | 208 | Source_Code |
211 | A·type·that·holds·additional·information·for·an·ALLEGRO_USTR·that·references·an | 209 | A·type·that·holds·additional·information·for·an·ALLEGRO_USTR·that·references·an |
212 | external·memory·buffer. | 210 | external·memory·buffer. |
213 | See·also:·al_ref_cstr,·al_ref_buffer·and·al_ref_ustr. | 211 | See·also:·al_ref_cstr,·al_ref_buffer·and·al_ref_ustr. |
214 | ******·Creating·and·destroying·strings·****** | 212 | ******·Creating·and·destroying·strings·****** |
215 | *****·al_ustr_new·***** | 213 | *****·al_ustr_new·***** |
216 | ALLEGRO_USTR·*al_ustr_new(const·char·*s) | 214 | ALLEGRO_USTR·*al_ustr_new(const·char·*s) |
Offset 749, 8 lines modified | Offset 747, 8 lines modified | ||
749 | Source_Code | 747 | Source_Code |
750 | Encode·the·specified·code·point·to·UTF-16·into·the·buffer·s.·The·buffer·must | 748 | Encode·the·specified·code·point·to·UTF-16·into·the·buffer·s.·The·buffer·must |
751 | have·enough·space·to·hold·the·encoding,·which·takes·either·2·or·4·bytes.·This | 749 | have·enough·space·to·hold·the·encoding,·which·takes·either·2·or·4·bytes.·This |
752 | routine·will·refuse·to·encode·code·points·above·0x10FFFF. | 750 | routine·will·refuse·to·encode·code·points·above·0x10FFFF. |
753 | Returns·the·number·of·bytes·written,·which·is·the·same·as·that·returned·by | 751 | Returns·the·number·of·bytes·written,·which·is·the·same·as·that·returned·by |
754 | al_utf16_width. | 752 | al_utf16_width. |
755 | See·also:·al_utf8_encode,·al_ustr_encode_utf16 | 753 | See·also:·al_utf8_encode,·al_ustr_encode_utf16 |
756 | Allegro·version·5.2.6·-·Last·updated:·202 | 754 | Allegro·version·5.2.6·-·Last·updated:·2024-01-06·13:49:36·UTC |
Offset 189, 16 lines modified | Offset 189, 15 lines modified | ||
189 | <li><a·href="#al_seek_video">al_seek_video</a></li> | 189 | <li><a·href="#al_seek_video">al_seek_video</a></li> |
190 | </ul> | 190 | </ul> |
191 | </nav> | 191 | </nav> |
192 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_video.</p> | 192 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with·allegro_video.</p> |
193 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_video.h></span></span></code></pre></div> | 193 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_video.h></span></span></code></pre></div> |
194 | <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> | 194 | <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> |
195 | <h1·id="allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</h1> | 195 | <h1·id="allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</h1> |
196 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</span> | 196 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</span></code></pre></div> |
197 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"></a><span·class="kw">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</span></code></pre></div> | ||
198 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L35">Source·Code</a></p> | 197 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L35">Source·Code</a></p> |
199 | <p>Events·sent·by·<a·href="video.html#al_get_video_event_source">al_get_video_event_source</a>.</p> | 198 | <p>Events·sent·by·<a·href="video.html#al_get_video_event_source">al_get_video_event_source</a>.</p> |
200 | <h2·id="allegro_event_video_frame_show">ALLEGRO_EVENT_VIDEO_FRAME_SHOW</h2> | 199 | <h2·id="allegro_event_video_frame_show">ALLEGRO_EVENT_VIDEO_FRAME_SHOW</h2> |
201 | <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> | 200 | <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> |
202 | <dl> | 201 | <dl> |
203 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> | 202 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> |
204 | <dd>The·video·which·generated·the·event. | 203 | <dd>The·video·which·generated·the·event. |
Offset 210, 140 lines modified | Offset 209, 124 lines modified | ||
210 | <dl> | 209 | <dl> |
211 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> | 210 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> |
212 | <dd>The·video·which·generated·the·event. | 211 | <dd>The·video·which·generated·the·event. |
213 | </dd> | 212 | </dd> |
214 | </dl> | 213 | </dl> |
215 | <p>Since:·5.1.0</p> | 214 | <p>Since:·5.1.0</p> |
216 | <h1·id="allegro_video_position_type">ALLEGRO_VIDEO_POSITION_TYPE</h1> | 215 | <h1·id="allegro_video_position_type">ALLEGRO_VIDEO_POSITION_TYPE</h1> |
217 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE;</span> | 216 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE;</span></code></pre></div> |
218 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE;</span></code></pre></div> | ||
219 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L51">Source·Code</a></p> | 217 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L51">Source·Code</a></p> |
220 | <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> | 218 | <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> |
221 | <ul> | 219 | <ul> |
222 | <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> | 220 | <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> |
223 | <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> | 221 | <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> |
224 | <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> | 222 | <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> |
225 | </ul> | 223 | </ul> |
226 | <p>Since:·5.1.11</p> | 224 | <p>Since:·5.1.11</p> |
227 | <h1·id="al_init_video_addon">al_init_video_addon</h1> | 225 | <h1·id="al_init_video_addon">al_init_video_addon</h1> |
228 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_video_addon(<span·class="dt">void</span>)</span> | 226 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_video_addon(<span·class="dt">void</span>)</span></code></pre></div> |
229 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_init_video_addon(<span·class="dt">void</span>)</span></code></pre></div> | ||
230 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L259">Source·Code</a></p> | 227 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L259">Source·Code</a></p> |
231 | <p>Initializes·the·video·addon.</p> | 228 | <p>Initializes·the·video·addon.</p> |
232 | <p>Since:·5.1.12</p> | 229 | <p>Since:·5.1.12</p> |
233 | <h1·id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1> | 230 | <h1·id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1> |
234 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_video_addon_initialized(<span·class="dt">void</span>)</span> | 231 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_video_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> |
235 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_video_addon_initialized(<span·class="dt">void</span>)</span></code></pre></div> | ||
236 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L281">Source·Code</a></p> | 232 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L281">Source·Code</a></p> |
237 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false.</p> | 233 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false.</p> |
238 | <p>Since:·5.2.6</p> | 234 | <p>Since:·5.2.6</p> |
239 | <h1·id="al_shutdown_video_addon">al_shutdown_video_addon</h1> | 235 | <h1·id="al_shutdown_video_addon">al_shutdown_video_addon</h1> |
240 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_video_addon(<span·class="dt">void</span>)</span> | 236 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_video_addon(<span·class="dt">void</span>)</span></code></pre></div> |
241 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_shutdown_video_addon(<span·class="dt">void</span>)</span></code></pre></div> | ||
242 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L289">Source·Code</a></p> | 237 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L289">Source·Code</a></p> |
243 | <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> | 238 | <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> |
244 | <p>Since:·5.1.12</p> | 239 | <p>Since:·5.1.12</p> |
245 | <h1·id="al_get_allegro_video_version">al_get_allegro_video_version</h1> | 240 | <h1·id="al_get_allegro_video_version">al_get_allegro_video_version</h1> |
246 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_video_version(<span·class="dt">void</span>)</span> | 241 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_video_version(<span·class="dt">void</span>)</span></code></pre></div> |
247 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"></a><span·class="dt">uint32_t</span>·al_get_allegro_video_version(<span·class="dt">void</span>)</span></code></pre></div> | ||
248 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L307">Source·Code</a></p> | 242 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L307">Source·Code</a></p> |
249 | <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> | 243 | <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> |
250 | <p>Since:·5.1.12</p> | 244 | <p>Since:·5.1.12</p> |
251 | <h1·id="al_open_video">al_open_video</h1> | 245 | <h1·id="al_open_video">al_open_video</h1> |
252 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a>ALLEGRO_VIDEO·*al_open_video(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename)</span> | 246 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"></a>ALLEGRO_VIDEO·*al_open_video(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename)</span></code></pre></div> |
253 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"></a>ALLEGRO_VIDEO·*al_open_video(<span·class="dt">char</span>·<span·class="dt">const</span>·*filename)</span></code></pre></div> | ||
254 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L94">Source·Code</a></p> | 247 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L94">Source·Code</a></p> |
255 | <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> | 248 | <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> |
256 | <p>Since:·5.1.0</p> | 249 | <p>Since:·5.1.0</p> |
257 | <h1·id="al_close_video">al_close_video</h1> | 250 | <h1·id="al_close_video">al_close_video</h1> |
258 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_close_video(ALLEGRO_VIDEO·*video)</span> | 251 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_close_video(ALLEGRO_VIDEO·*video)</span></code></pre></div> |
259 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_close_video(ALLEGRO_VIDEO·*video)</span></code></pre></div> | ||
260 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L130">Source·Code</a></p> | 252 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L130">Source·Code</a></p> |
261 | <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is·invalid·after·the·function·returns.</p> | 253 | <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is·invalid·after·the·function·returns.</p> |
262 | <p>Since:·5.1.0</p> | 254 | <p>Since:·5.1.0</p> |
263 | <h1·id="al_start_video">al_start_video</h1> | 255 | <h1·id="al_start_video">al_start_video</h1> |
264 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer)</span> | 256 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer)</span></code></pre></div> |
265 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer)</span></code></pre></div> | ||
266 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L152">Source·Code</a></p> | 257 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L152">Source·Code</a></p> |
267 | <p>Starts·streaming·the·video·from·the·beginning.</p> | 258 | <p>Starts·streaming·the·video·from·the·beginning.</p> |
268 | <p>Since:·5.1.0</p> | 259 | <p>Since:·5.1.0</p> |
269 | <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1> | 260 | <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1> |
270 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice)</span> | 261 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice)</span></code></pre></div> |
271 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice)</span></code></pre></div> | ||
272 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L163">Source·Code</a></p> | 262 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L163">Source·Code</a></p> |
273 | <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio·is·routed·to·the·provided·voice.</p> | 263 | <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio·is·routed·to·the·provided·voice.</p> |
274 | <p>Since:·5.1.0</p> | 264 | <p>Since:·5.1.0</p> |
275 | <h1·id="al_get_video_event_source">al_get_video_event_source</h1> | 265 | <h1·id="al_get_video_event_source">al_get_video_event_source</h1> |
276 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a>ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video)</span> | 266 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"></a>ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video)</span></code></pre></div> |
277 | <span·id="cb12-2"><a·href="#cb12-2"·aria-hidden="true"></a>ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video)</span></code></pre></div> | ||
278 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L144">Source·Code</a></p> | 267 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L144">Source·Code</a></p> |
279 | <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> | 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> |
280 | <p>Since:·5.1.0</p> | 269 | <p>Since:·5.1.0</p> |
281 | <h1·id="al_set_video_playing">al_set_video_playing</h1> | 270 | <h1·id="al_set_video_playing">al_set_video_playing</h1> |
282 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_video_playing(ALLEGRO_VIDEO·*video,·<span·class="dt">bool</span>·play)</span> | 271 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_video_playing(ALLEGRO_VIDEO·*video,·<span·class="dt">bool</span>·play)</span></code></pre></div> |
283 | <span·id="cb13-2"><a·href="#cb13-2"·aria-hidden="true"></a><span·class="dt">void</span>·al_set_video_playing(ALLEGRO_VIDEO·*video,·<span·class="dt">bool</span>·play)</span></code></pre></div> | ||
284 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L174">Source·Code</a></p> | 272 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L174">Source·Code</a></p> |
285 | <p>Paused·or·resumes·playback.</p> | 273 | <p>Paused·or·resumes·playback.</p> |
286 | <p>Since:·5.1.12</p> | 274 | <p>Since:·5.1.12</p> |
287 | <h1·id="al_is_video_playing">al_is_video_playing</h1> | 275 | <h1·id="al_is_video_playing">al_is_video_playing</h1> |
288 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_video_playing(ALLEGRO_VIDEO·*video)</span> | 276 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_video_playing(ALLEGRO_VIDEO·*video)</span></code></pre></div> |
289 | <span·id="cb14-2"><a·href="#cb14-2"·aria-hidden="true"></a><span·class="dt">bool</span>·al_is_video_playing(ALLEGRO_VIDEO·*video)</span></code></pre></div> | ||
290 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L186">Source·Code</a></p> | 277 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L186">Source·Code</a></p> |
291 | <p>Returns·true·if·the·video·is·currently·playing.</p> | 278 | <p>Returns·true·if·the·video·is·currently·playing.</p> |
292 | <p>Since:·5.1.12</p> | 279 | <p>Since:·5.1.12</p> |
293 | <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1> | 280 | <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1> |
294 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"></a><span·class="dt">double</span>·al_get_video_audio_rate(ALLEGRO_VIDEO·*video)</span> | 281 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"></a><span·class="dt">double</span>·al_get_video_audio_rate(ALLEGRO_VIDEO·*video)</span></code></pre></div> |
295 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"></a><span·class="dt">double</span>·al_get_video_audio_rate(ALLEGRO_VIDEO·*video)</span></code></pre></div> | ||
296 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L227">Source·Code</a></p> | 282 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L227">Source·Code</a></p> |
297 | <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p> | 283 | <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p> |
298 | <p>Since:·5.1.0</p> | 284 | <p>Since:·5.1.0</p> |
299 | <h1·id="al_get_video_fps">al_get_video_fps</h1> | 285 | <h1·id="al_get_video_fps">al_get_video_fps</h1> |
300 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"></a><span·class="dt">double</span>·al_get_video_fps(ALLEGRO_VIDEO·*video)</span> | 286 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"></a><span·class="dt">double</span>·al_get_video_fps(ALLEGRO_VIDEO·*video)</span></code></pre></div> |
301 | <span·id="cb16-2"><a·href="#cb16-2"·aria-hidden="true"></a><span·class="dt">double</span>·al_get_video_fps(ALLEGRO_VIDEO·*video)</span></code></pre></div> | ||
302 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L235">Source·Code</a></p> | 287 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L235">Source·Code</a></p> |
303 | <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an·integer·value.</p> | 288 | <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an·integer·value.</p> |
304 | <p>Since:·5.1.0</p> | 289 | <p>Since:·5.1.0</p> |
305 | <h1·id="al_get_video_scaled_width">al_get_video_scaled_width</h1> | 290 | <h1·id="al_get_video_scaled_width">al_get_video_scaled_width</h1> |
306 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"></a><span·class="dt">float</span>·al_get_video_scaled_width(ALLEGRO_VIDEO·*video)</span> | 291 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"></a><span·class="dt">float</span>·al_get_video_scaled_width(ALLEGRO_VIDEO·*video)</span></code></pre></div> |
307 | <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"></a><span·class="dt">float</span>·al_get_video_scaled_width(ALLEGRO_VIDEO·*video)</span></code></pre></div> | ||
308 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L243">Source·Code</a></p> | 292 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L243">Source·Code</a></p> |
309 | <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> | 293 | <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> |
310 | <p>Since:·5.1.12</p> | 294 | <p>Since:·5.1.12</p> |
311 | <p>See·also:·<a·href="video.html#al_get_video_frame">al_get_video_frame</a></p> | 295 | <p>See·also:·<a·href="video.html#al_get_video_frame">al_get_video_frame</a></p> |
312 | <h1·id="al_get_video_scaled_height">al_get_video_scaled_height</h1> | 296 | <h1·id="al_get_video_scaled_height">al_get_video_scaled_height</h1> |
313 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"></a><span·class="dt">float</span>·al_get_video_scaled_height(ALLEGRO_VIDEO·*video)</span> | 297 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"></a><span·class="dt">float</span>·al_get_video_scaled_height(ALLEGRO_VIDEO·*video)</span></code></pre></div> |
314 | <span·id="cb18-2"><a·href="#cb18-2"·aria-hidden="true"></a><span·class="dt">float</span>·al_get_video_scaled_height(ALLEGRO_VIDEO·*video)</span></code></pre></div> | ||
315 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L251">Source·Code</a></p> | 298 | <p><a·href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L251">Source·Code</a></p> |
316 | <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> | 299 | <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> |
317 | <p>See·also:·<a·href="video.html#al_get_video_frame">al_get_video_frame</a></p> | 300 | <p>See·also:·<a·href="video.html#al_get_video_frame">al_get_video_frame</a></p> |
318 | <p>Since:·5.1.12</p> | 301 | <p>Since:·5.1.12</p> |
319 | <h1·id="al_get_video_frame">al_get_video_frame</h1> | 302 | <h1·id="al_get_video_frame">al_get_video_frame</h1> |
Max diff block lines reached; 4031/23291 bytes (17.31%) of diff not shown. |
Offset 72, 15 lines modified | Offset 72, 14 lines modified | ||
72 | These·functions·are·declared·in·the·following·header·file.·Link·with | 72 | These·functions·are·declared·in·the·following·header·file.·Link·with |
73 | allegro_video. | 73 | allegro_video. |
74 | ·#include·<allegro5/allegro_video.h> | 74 | ·#include·<allegro5/allegro_video.h> |
75 | Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·http://xiph.org/·for | 75 | Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·http://xiph.org/·for |
76 | installation·instructions,·licensing·information·and·supported·video·formats. | 76 | installation·instructions,·licensing·information·and·supported·video·formats. |
77 | ******·ALLEGRO_VIDEO_EVENT_TYPE·****** | 77 | ******·ALLEGRO_VIDEO_EVENT_TYPE·****** |
78 | enum·ALLEGRO_VIDEO_EVENT_TYPE | 78 | enum·ALLEGRO_VIDEO_EVENT_TYPE |
79 | enum·ALLEGRO_VIDEO_EVENT_TYPE | ||
80 | Source_Code | 79 | Source_Code |
81 | Events·sent·by·al_get_video_event_source. | 80 | Events·sent·by·al_get_video_event_source. |
82 | *****·ALLEGRO_EVENT_VIDEO_FRAME_SHOW·***** | 81 | *****·ALLEGRO_EVENT_VIDEO_FRAME_SHOW·***** |
83 | This·event·is·sent·when·it·is·time·to·show·a·new·frame.·Once·you·receive·this | 82 | This·event·is·sent·when·it·is·time·to·show·a·new·frame.·Once·you·receive·this |
84 | event,·you·can·draw·the·current·frame·(as·returned·by·al_get_video_frame). | 83 | event,·you·can·draw·the·current·frame·(as·returned·by·al_get_video_frame). |
85 | al_get_video_frame·will·continue·returning·the·same·frame·until·the·next | 84 | al_get_video_frame·will·continue·returning·the·same·frame·until·the·next |
86 | ALLEGRO_EVENT_VIDEO_FRAME_SHOW·is·sent. | 85 | ALLEGRO_EVENT_VIDEO_FRAME_SHOW·is·sent. |
Offset 92, 15 lines modified | Offset 91, 14 lines modified | ||
92 | be·possible·to·seek·to·an·earlier·part·of·the·video·and·set·the·video·to·play | 91 | be·possible·to·seek·to·an·earlier·part·of·the·video·and·set·the·video·to·play |
93 | to·resume·playback. | 92 | to·resume·playback. |
94 | ··user.data1·(ALLEGRO_VIDEO·*) | 93 | ··user.data1·(ALLEGRO_VIDEO·*) |
95 | ······The·video·which·generated·the·event. | 94 | ······The·video·which·generated·the·event. |
96 | Since:·5.1.0 | 95 | Since:·5.1.0 |
97 | ******·ALLEGRO_VIDEO_POSITION_TYPE·****** | 96 | ******·ALLEGRO_VIDEO_POSITION_TYPE·****** |
98 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; | 97 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; |
99 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; | ||
100 | Source_Code | 98 | Source_Code |
101 | Used·with·al_get_video_position·to·specify·which·position·to·retrieve.·If·these | 99 | Used·with·al_get_video_position·to·specify·which·position·to·retrieve.·If·these |
102 | get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the·display·of·the | 100 | get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the·display·of·the |
103 | video. | 101 | video. |
104 | ····*·ALLEGRO_VIDEO_POSITION_ACTUAL·-·The·amount·of·time·the·video·has·been | 102 | ····*·ALLEGRO_VIDEO_POSITION_ACTUAL·-·The·amount·of·time·the·video·has·been |
105 | ······playing.·If·the·video·has·audio·then·this·value·can·be·ahead·of | 103 | ······playing.·If·the·video·has·audio·then·this·value·can·be·ahead·of |
106 | ······ALLEGRO_VIDEO_POSITION_VIDEO_DECODE·when·video·decoding·lags. | 104 | ······ALLEGRO_VIDEO_POSITION_VIDEO_DECODE·when·video·decoding·lags. |
Offset 110, 117 lines modified | Offset 108, 101 lines modified | ||
110 | ····*·ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that·has·been | 108 | ····*·ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that·has·been |
111 | ······decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL·if·audio | 109 | ······decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL·if·audio |
112 | ······decode·is·driving·the·position,·which·is·common·to·keep·audio·and·video | 110 | ······decode·is·driving·the·position,·which·is·common·to·keep·audio·and·video |
113 | ······in·sync. | 111 | ······in·sync. |
114 | Since:·5.1.11 | 112 | Since:·5.1.11 |
115 | ******·al_init_video_addon·****** | 113 | ******·al_init_video_addon·****** |
116 | bool·al_init_video_addon(void) | 114 | bool·al_init_video_addon(void) |
117 | bool·al_init_video_addon(void) | ||
118 | Source_Code | 115 | Source_Code |
119 | Initializes·the·video·addon. | 116 | Initializes·the·video·addon. |
120 | Since:·5.1.12 | 117 | Since:·5.1.12 |
121 | ******·al_is_video_addon_initialized·****** | 118 | ******·al_is_video_addon_initialized·****** |
122 | bool·al_is_video_addon_initialized(void) | 119 | bool·al_is_video_addon_initialized(void) |
123 | bool·al_is_video_addon_initialized(void) | ||
124 | Source_Code | 120 | Source_Code |
125 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. | 121 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. |
126 | Since:·5.2.6 | 122 | Since:·5.2.6 |
127 | ******·al_shutdown_video_addon·****** | 123 | ******·al_shutdown_video_addon·****** |
128 | void·al_shutdown_video_addon(void) | 124 | void·al_shutdown_video_addon(void) |
129 | void·al_shutdown_video_addon(void) | ||
130 | Source_Code | 125 | Source_Code |
131 | Shut·down·the·video·addon.·This·is·done·automatically·at·program·exit,·but·can | 126 | Shut·down·the·video·addon.·This·is·done·automatically·at·program·exit,·but·can |
132 | be·called·any·time·the·user·wishes·as·well. | 127 | be·called·any·time·the·user·wishes·as·well. |
133 | Since:·5.1.12 | 128 | Since:·5.1.12 |
134 | ******·al_get_allegro_video_version·****** | 129 | ******·al_get_allegro_video_version·****** |
135 | uint32_t·al_get_allegro_video_version(void) | 130 | uint32_t·al_get_allegro_video_version(void) |
136 | uint32_t·al_get_allegro_video_version(void) | ||
137 | Source_Code | 131 | Source_Code |
138 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 132 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
139 | al_get_allegro_version. | 133 | al_get_allegro_version. |
140 | Since:·5.1.12 | 134 | Since:·5.1.12 |
141 | ******·al_open_video·****** | 135 | ******·al_open_video·****** |
142 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | 136 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) |
143 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | ||
144 | Source_Code | 137 | Source_Code |
145 | Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the·meta·info | 138 | Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the·meta·info |
146 | so·you·can·query·e.g. the·size·or·audio·rate. | 139 | so·you·can·query·e.g. the·size·or·audio·rate. |
147 | Since:·5.1.0 | 140 | Since:·5.1.0 |
148 | ******·al_close_video·****** | 141 | ******·al_close_video·****** |
149 | void·al_close_video(ALLEGRO_VIDEO·*video) | 142 | void·al_close_video(ALLEGRO_VIDEO·*video) |
150 | void·al_close_video(ALLEGRO_VIDEO·*video) | ||
151 | Source_Code | 143 | Source_Code |
152 | Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is | 144 | Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is |
153 | invalid·after·the·function·returns. | 145 | invalid·after·the·function·returns. |
154 | Since:·5.1.0 | 146 | Since:·5.1.0 |
155 | ******·al_start_video·****** | 147 | ******·al_start_video·****** |
156 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | 148 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) |
157 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | ||
158 | Source_Code | 149 | Source_Code |
159 | Starts·streaming·the·video·from·the·beginning. | 150 | Starts·streaming·the·video·from·the·beginning. |
160 | Since:·5.1.0 | 151 | Since:·5.1.0 |
161 | ******·al_start_video_with_voice·****** | 152 | ******·al_start_video_with_voice·****** |
162 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | 153 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) |
163 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | ||
164 | Source_Code | 154 | Source_Code |
165 | Like·al_start_video·but·audio·is·routed·to·the·provided·voice. | 155 | Like·al_start_video·but·audio·is·routed·to·the·provided·voice. |
166 | Since:·5.1.0 | 156 | Since:·5.1.0 |
167 | ******·al_get_video_event_source·****** | 157 | ******·al_get_video_event_source·****** |
168 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | 158 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) |
169 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | ||
170 | Source_Code | 159 | Source_Code |
171 | Get·an·event·source·for·the·video.·The·possible·events·are·described·under | 160 | Get·an·event·source·for·the·video.·The·possible·events·are·described·under |
172 | ALLEGRO_VIDEO_EVENT_TYPE. | 161 | ALLEGRO_VIDEO_EVENT_TYPE. |
173 | Since:·5.1.0 | 162 | Since:·5.1.0 |
174 | ******·al_set_video_playing·****** | 163 | ******·al_set_video_playing·****** |
175 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) | 164 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) |
176 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) | ||
177 | Source_Code | 165 | Source_Code |
178 | Paused·or·resumes·playback. | 166 | Paused·or·resumes·playback. |
179 | Since:·5.1.12 | 167 | Since:·5.1.12 |
180 | ******·al_is_video_playing·****** | 168 | ******·al_is_video_playing·****** |
181 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) | 169 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) |
182 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) | ||
183 | Source_Code | 170 | Source_Code |
184 | Returns·true·if·the·video·is·currently·playing. | 171 | Returns·true·if·the·video·is·currently·playing. |
185 | Since:·5.1.12 | 172 | Since:·5.1.12 |
186 | ******·al_get_video_audio_rate·****** | 173 | ******·al_get_video_audio_rate·****** |
187 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) | 174 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) |
188 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) | ||
189 | Source_Code | 175 | Source_Code |
190 | Returns·the·audio·rate·of·the·video,·in·Hz. | 176 | Returns·the·audio·rate·of·the·video,·in·Hz. |
191 | Since:·5.1.0 | 177 | Since:·5.1.0 |
192 | ******·al_get_video_fps·****** | 178 | ******·al_get_video_fps·****** |
193 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) | 179 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) |
194 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) | ||
195 | Source_Code | 180 | Source_Code |
196 | Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an | 181 | Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an |
197 | integer·value. | 182 | integer·value. |
198 | Since:·5.1.0 | 183 | Since:·5.1.0 |
199 | ******·al_get_video_scaled_width·****** | 184 | ******·al_get_video_scaled_width·****** |
200 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) | 185 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) |
201 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) | ||
202 | Source_Code | 186 | Source_Code |
203 | Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do | 187 | Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do |
204 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of | 188 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of |
Max diff block lines reached; 1931/7296 bytes (26.47%) of diff not shown. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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·integers. | 19 | Mixers·only·use·32-bit·signed·float·(-1..+1),·or·16-bit·signed·integers. |
21 | Signedness·is·determined·by·an·\[lq]unsigned\[rq]·bit-flag·applied·to | 20 | Signedness·is·determined·by·an·\[lq]unsigned\[rq]·bit-flag·applied·to |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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\[cq]s·axes·and·buttons·at·a·particular·instant. | 19 | joystick\[cq]s·axes·and·buttons·at·a·particular·instant. |
21 | All·fields·public·and·read-only. | 20 | All·fields·public·and·read-only. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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\[cq]s·state·at·a·particular·instant. | 19 | keyboard\[cq]s·state·at·a·particular·instant. |
21 | It·contains·the·following·publically·readable·fields: | 20 | It·contains·the·following·publically·readable·fields: |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Describes·a·monitor\[cq]s·size·and·position·relative·to·other·monitors. | 18 | Describes·a·monitor\[cq]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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 | ALLEGRO_MOUSE_EMULATION_NONE | 20 | ALLEGRO_MOUSE_EMULATION_NONE |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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·\[*p], | 18 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·\[*p], |
20 | but·you·can·use·this·one·instead. | 19 | but·you·can·use·this·one·instead. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 7, 15 lines modified | Offset 7, 14 lines modified | ||
7 | ALLEGRO_STATE·-·Allegro·5·API | 7 | ALLEGRO_STATE·-·Allegro·5·API |
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[R] | 13 | \f[R] |
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 7, 15 lines modified | Offset 7, 14 lines modified | ||
7 | ALLEGRO_STATE_FLAGS·-·Allegro·5·API | 7 | ALLEGRO_STATE_FLAGS·-·Allegro·5·API |
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[R] | 13 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_SYSTEM_ID·{ | 13 | enum·ALLEGRO_SYSTEM_ID·{ |
14 | enum·ALLEGRO_SYSTEM_ID·{ | ||
15 | \f[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | The·system·Allegro·is·running·on. | 18 | The·system·Allegro·is·running·on. |
20 | .IP·\[bu]·2 | 19 | .IP·\[bu]·2 |
21 | ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system. | 20 | ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system. |
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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\[cq]t·create·a·voice·with·the·buffer | 21 | This·may·fail·if·the·driver·can\[cq]t·create·a·voice·with·the·buffer |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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\[cq]s·gain·and·loop·mode·will·be·ignored,·and·it·must·have | 20 | The·instance\[cq]s·gain·and·loop·mode·will·be·ignored,·and·it·must·have |
23 | the·same·frequency,·channel·configuration·and·depth·(including | 21 | the·same·frequency,·channel·configuration·and·depth·(including |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R]·elements. | 19 | \f[C]ALLEGRO_MENU_INFO\f[R]·elements. |
21 | .PP | 20 | .PP |
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[R] | 16 | \f[R] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | When·\f[C]thickness·<=·0\f[R]·this·function·computes·positions·of | 20 | When·\f[C]thickness·<=·0\f[R]·this·function·computes·positions·of |
24 | \f[C]num_points\f[R]·regularly·spaced·points·on·an·elliptical·arc. | 21 | \f[C]num_points\f[R]·regularly·spaced·points·on·an·elliptical·arc. |
25 | When·\f[C]thickness·>·0\f[R]·this·function·computes·two·sets·of·points, | 22 | When·\f[C]thickness·>·0\f[R]·this·function·computes·two·sets·of·points, |
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[R] | 15 | \f[R] |
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[R],·then·\f[C]num_segments\f[R]·of·points·are | 21 | If·\f[C]thickness·<=·0\f[R],·then·\f[C]num_segments\f[R]·of·points·are |
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[R] | 15 | \f[R] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Calculates·a·B\['e]zier·spline·given·4·control·points. | 19 | Calculates·a·B\['e]zier·spline·given·4·control·points. |
22 | If·\f[C]thickness·<=·0\f[R],·then·\f[C]num_segments\f[R]·of·points·are | 20 | If·\f[C]thickness·<=·0\f[R],·then·\f[C]num_segments\f[R]·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 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_calloc(c,·n)·\[rs] | 13 | #define·al_calloc(c,·n)·\[rs] |
14 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | 14 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) |
15 | #define·al_calloc(c,·n)·\[rs] | ||
16 | ···(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
17 | \f[R] | 15 | \f[R] |
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. |
23 | .PP | 21 | .PP |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Interprets·an·HTML-style·hex·number·(e.g.\·#00faff)·as·a·color. | 18 | Interprets·an·HTML-style·hex·number·(e.g.\·#00faff)·as·a·color. |
20 | The·accepted·format·is·the·same·as·al_color_html_to_rgb(3alleg5). | 19 | The·accepted·format·is·the·same·as·al_color_html_to_rgb(3alleg5). |
21 | .PP | 20 | .PP |
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[R] | 15 | \f[R] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Interprets·an·HTML-style·hex·number·(e.g.\·#00faff)·as·a·color. | 19 | Interprets·an·HTML-style·hex·number·(e.g.\·#00faff)·as·a·color. |
22 | The·only·accepted·formats·are·\[lq]#RRGGBB\[rq]·and·\[lq]RRGGBB\[rq] | 20 | The·only·accepted·formats·are·\[lq]#RRGGBB\[rq]·and·\[lq]RRGGBB\[rq] |
23 | where·R,·G,·B·are·hexadecimal·digits·[0-9A-Fa-f]. | 21 | where·R,·G,·B·are·hexadecimal·digits·[0-9A-Fa-f]. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Create·an·HTML-style·string·representation·of·an·ALLEGRO_COLOR(3alleg5), | 19 | Create·an·HTML-style·string·representation·of·an·ALLEGRO_COLOR(3alleg5), |
22 | e.g.\·#00faff. | 20 | e.g.\·#00faff. |
23 | .PP | 21 | .PP |
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_lab(float·red,·float·green,·float·blue, | 13 | void·al_color_rgb_to_lab(float·red,·float·green,·float·blue, |
14 | ···float·*l,·float·*a,·float·*b) | 14 | ···float·*l,·float·*a,·float·*b) |
15 | void·al_color_rgb_to_lab(float·red,·float·green,·float·blue, | ||
16 | ···float·*l,·float·*a,·float·*b) | ||
17 | \f[R] | 15 | \f[R] |
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 |
23 | .PP | 21 | .PP |
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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 16 | \f[R] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Creates·an·audio·recorder·using·the·system\[cq]s·default·recording | 20 | Creates·an·audio·recorder·using·the·system\[cq]s·default·recording |
24 | device. | 21 | device. |
25 | (So·if·the·returned·device·does·not·work,·try·updating·the·system\[cq]s | 22 | (So·if·the·returned·device·does·not·work,·try·updating·the·system\[cq]s |
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[R] | 16 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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_INDEX_BUFFER*·al_create_index_buffer(int·index_size, | 13 | ALLEGRO_INDEX_BUFFER*·al_create_index_buffer(int·index_size, |
14 | ····const·void*·initial_data,·int·num_indices,·int·flags) | 14 | ····const·void*·initial_data,·int·num_indices,·int·flags) |
15 | ALLEGRO_INDEX_BUFFER*·al_create_index_buffer(int·index_size, | ||
16 | ····const·void*·initial_data,·int·num_indices,·int·flags) | ||
17 | \f[R] | 15 | \f[R] |
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 |
23 | only·supports·write-only·buffers). | 21 | only·supports·write-only·buffers). |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R]·on·failure. | 20 | Returns·\f[C]NULL\f[R]·on·failure. |
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[R] | 15 | \f[R] |
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 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[R] | 18 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 16 | \f[R] |
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[R]·is·true·then·the·buffer·will·be·freed·with | 21 | If·\f[C]free_buf\f[R]·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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 7, 15 lines modified | Offset 7, 14 lines modified | ||
7 | al_create_vertex_decl·-·Allegro·5·API | 7 | al_create_vertex_decl·-·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_primitives.h> | 12 | #include·<allegro5/allegro_primitives.h> |
13 | ALLEGRO_VERTEX_DECL*·al_create_vertex_decl(const·ALLEGRO_VERT(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | ||
14 | 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) |
15 | \f[R] | 14 | \f[R] |
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 |
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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R]·parameter·set·to·true, | 19 | If·it·was·created·with·the·\f[C]free_buf\f[R]·parameter·set·to·true, |
21 | then·the·buffer·will·be·freed·with·al_free(3alleg5). | 20 | then·the·buffer·will·be·freed·with·al_free(3alleg5). |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R] | 19 | frees·it·(the·sample·data,·i.e.\·its·ALLEGRO_SAMPLE,·is·\f[I]not\f[R] |
21 | freed!). | 20 | freed!). |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R] | 20 | \f[I]Parameters:\f[R] |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Detach·the·stream·from·whatever·it\[cq]s·attached·to,·if·anything. | 18 | Detach·the·stream·from·whatever·it\[cq]s·attached·to,·if·anything. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Detach·the·sample·instance·from·whatever·it\[cq]s·attached·to,·if | 18 | Detach·the·sample·instance·from·whatever·it\[cq]s·attached·to,·if |
20 | anything. | 19 | anything. |
21 | .PP | 20 | .PP |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 17 | \f[R] |
22 | .fi | 18 | .fi |
23 | .SH·DESCRIPTION | 19 | .SH·DESCRIPTION |
24 | .PP | 20 | .PP |
25 | This·function·processes·the·\f[C]text\f[R]·and·splits·it·into·lines·as | 21 | This·function·processes·the·\f[C]text\f[R]·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[R]·once·for·every·line. | 23 | \f[C]cb\f[R]·once·for·every·line. |
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[R] | 17 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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\[cq]s·playing·state·will·change·to·false. | 20 | The·stream\[cq]s·playing·state·will·change·to·false. |
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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R] | 20 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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[R]·in·the·given | 19 | Draws·the·glyph·that·corresponds·with·\f[C]codepoint\f[R]·in·the·given |
22 | \f[C]color\f[R]·using·the·given·\f[C]font\f[R]. | 20 | \f[C]color\f[R]·using·the·given·\f[C]font\f[R]. |
23 | If·\f[C]font\f[R]·does·not·have·such·a·glyph,·nothing·will·be·drawn. | 21 | If·\f[C]font\f[R]·does·not·have·such·a·glyph,·nothing·will·be·drawn. |
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[R] | 16 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 16 | \f[R] |
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 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_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 | ···float·diff,·int·flags,·const·char·*format,·...) | 15 | ···float·diff,·int·flags,·const·char·*format,·...) |
16 | void·al_draw_justified_textf(const·ALLEGRO_FONT·*f, | ||
17 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2,·float·y, | ||
18 | ···float·diff,·int·flags,·const·char·*format,·...) | ||
19 | \f[R] | 16 | \f[R] |
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_justified_text(3alleg5)·otherwise. | 22 | al_draw_justified_text(3alleg5)·otherwise. |
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[R] | 16 | \f[R] |
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 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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 16 | \f[R] |
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[R]·in·lines·based·on·its·contents·and·the | 22 | It·will·break·\f[C]text\f[R]·in·lines·based·on·its·contents·and·the |
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[R] | 16 | \f[R] |
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 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[R] | 16 | \f[R] |
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 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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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[R]·to | 20 | This·is·the·same·as·passing·\f[C]ALLEGRO_LINE_CAP_CLOSED\f[R]·to |
23 | al_draw_polyline(3alleg5). | 21 | al_draw_polyline(3alleg5). |
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[R] | 16 | \f[R] |
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 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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 17 | \f[R] |
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 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[R] | 19 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_spline(float·points[8],·ALLEGRO_COLOR·color,·float·thickness) | 13 | void·al_draw_spline(float·points[8],·ALLEGRO_COLOR·color,·float·thickness) |
14 | void·al_draw_spline(float·points[8],·ALLEGRO_COLOR·color,·float·thickness) | ||
15 | \f[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Draws·a·B\['e]zier·spline·given·4·control·points. | 18 | Draws·a·B\['e]zier·spline·given·4·control·points. |
20 | .PP | 19 | .PP |
21 | \f[I]Parameters:\f[R] | 20 | \f[I]Parameters:\f[R] |
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[R] | 16 | \f[R] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Writes·the·NUL-terminated·string·\f[C]text\f[R]·onto·the·target·bitmap | 20 | Writes·the·NUL-terminated·string·\f[C]text\f[R]·onto·the·target·bitmap |
24 | at·position·\f[C]x\f[R],·\f[C]y\f[R],·using·the·specified | 21 | at·position·\f[C]x\f[R],·\f[C]y\f[R],·using·the·specified |
25 | \f[C]font\f[R]. | 22 | \f[C]font\f[R]. |
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[R] | 16 | \f[R] |
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 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[R] | 15 | \f[R] |
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[R] | 21 | \f[I]Parameters:\f[R] |
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[R] | 16 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Searches·in·the·\f[C]haystack\f[R]·menu·for·any·submenu·with·the·given | 18 | Searches·in·the·\f[C]haystack\f[R]·menu·for·any·submenu·with·the·given |
20 | \f[C]id\f[R]. | 19 | \f[C]id\f[R]. |
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 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[R] | 15 | \f[R] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Searches·in·the·\f[C]haystack\f[R]·menu·for·an·item·with·the·given | 19 | Searches·in·the·\f[C]haystack\f[R]·menu·for·an·item·with·the·given |
22 | \f[C]id\f[R]. | 20 | \f[C]id\f[R]. |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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)·\[rs] | 13 | #define·al_free(p)·\[rs] |
14 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | 14 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) |
15 | #define·al_free(p)·\[rs] | ||
16 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | ||
17 | \f[R] | 15 | \f[R] |
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 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_acodec.h> | 12 | #include·<allegro5/allegro_acodec.h> |
13 | uint32_t·al_get_allegro_acodec_version(void) | 13 | uint32_t·al_get_allegro_acodec_version(void) |
14 | uint32_t·al_get_allegro_acodec_version(void) | ||
15 | \f[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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_image.h> | 12 | #include·<allegro5/allegro_image.h> |
13 | uint32_t·al_get_allegro_image_version(void) | 13 | uint32_t·al_get_allegro_image_version(void) |
14 | uint32_t·al_get_allegro_image_version(void) | ||
15 | \f[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | When·using·Allegro\[cq]s·audio·streaming,·you·will·use·this·function·to | 18 | When·using·Allegro\[cq]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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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 | unsigned·int·al_get_available_audio_stream_fragments( | 13 | unsigned·int·al_get_available_audio_stream_fragments( |
14 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | 14 | ···const·ALLEGRO_AUDIO_STREAM·*stream) |
15 | unsigned·int·al_get_available_audio_stream_fragments( | ||
16 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
17 | \f[R] | 15 | \f[R] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Returns·the·number·of·available·fragments·in·the·stream,·that·is, | 19 | Returns·the·number·of·available·fragments·in·the·stream,·that·is, |
22 | fragments·which·are·not·currently·filled·with·data·for·playback. | 20 | fragments·which·are·not·currently·filled·with·data·for·playback. |
23 | .SH·SEE·ALSO | 21 | .SH·SEE·ALSO |
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R],·or | 18 | Returns·the·menu·associated·with·the·\f[C]display\f[R],·or |
20 | \f[C]NULL\f[R]·if·it·does·not·have·a·menu. | 19 | \f[C]NULL\f[R]·if·it·does·not·have·a·menu. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R]·in·the·font·\f[C]font\f[R]. | 19 | with·\f[C]codepoint\f[R]·in·the·font·\f[C]font\f[R]. |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_MENU·*menu,·int·pos) | 13 | const·char·*al_get_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos) |
14 | const·char·*al_get_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos) | ||
15 | \f[R] | 14 | \f[R] |
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. |
21 | .PP | 20 | .PP |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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[R]. | 19 | Returns·one·of·the·selected·paths·with·index·\f[C]i\f[R]. |
22 | The·index·should·range·from·\f[C]0\f[R]·to·the·return·value·of | 20 | The·index·should·range·from·\f[C]0\f[R]·to·the·return·value·of |
23 | al_get_native_file_dialog_count(3alleg5)·\f[C]-1\f[R]. | 21 | al_get_native_file_dialog_count(3alleg5)·\f[C]-1\f[R]. |
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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R]·the | 20 | Note·this·returns·a·pointer·to·an·internal·structure,·\f[I]not\f[R]·the |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
18 | .fi | 16 | .fi |
19 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
20 | .PP | 18 | .PP |
21 | Return·the·channel·configuration·of·the·sample·instance\[cq]s·sample | 19 | Return·the·channel·configuration·of·the·sample·instance\[cq]s·sample |
22 | data. | 20 | data. |
23 | .SH·SEE·ALSO | 21 | .SH·SEE·ALSO |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·audio·depth·of·the·sample·instance\[cq]s·sample·data. | 18 | Return·the·audio·depth·of·the·sample·instance\[cq]s·sample·data. |
20 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
21 | .PP | 20 | .PP |
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Return·the·frequency·(in·Hz)·of·the·sample·instance\[cq]s·sample·data. | 18 | Return·the·frequency·(in·Hz)·of·the·sample·instance\[cq]s·sample·data. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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\[cq]s·sample | 19 | This·property·may·differ·from·the·length·of·the·instance\[cq]s·sample |
21 | data. | 20 | data. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 16 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 16 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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\[cq]s·current·sample·position. | 19 | sample,·returns·the·voice\[cq]s·current·sample·position. |
21 | Otherwise,·returns·zero. | 20 | Otherwise,·returns·zero. |
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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R]·True·on·success,·false·on·failure. | 20 | \f[I]Returns:\f[R]·True·on·success,·false·on·failure. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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[R]·parameter·is·interpreted. | 21 | \f[C]pos\f[R]·parameter·is·interpreted. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_is_acodec_addon_initialized(void) | 13 | bool·al_is_acodec_addon_initialized(void) |
14 | bool·al_is_acodec_addon_initialized(void) | ||
15 | \f[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns | 18 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns |
20 | false. | 19 | false. |
21 | .SH·SINCE | 20 | .SH·SINCE |
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_recorder_recording(ALLEGRO_AUDIO_RECORDER·*r) | 13 | bool·al_is_audio_recorder_recording(ALLEGRO_AUDIO_RECORDER·*r) |
14 | bool·al_is_audio_recorder_recording(ALLEGRO_AUDIO_RECORDER·*r) | ||
15 | \f[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·true·if·the·audio·recorder·is·currently·capturing·data·and | 18 | Returns·true·if·the·audio·recorder·is·currently·capturing·data·and |
20 | generating·events. | 19 | generating·events. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_is_font_addon_initialized(void) | 13 | bool·al_is_font_addon_initialized(void) |
14 | bool·al_is_font_addon_initialized(void) | ||
15 | \f[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. | 18 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_is_image_addon_initialized(void) | 13 | bool·al_is_image_addon_initialized(void) |
14 | bool·al_is_image_addon_initialized(void) | ||
15 | \f[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. | 18 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_is_native_dialog_addon_initialized(void) | 13 | bool·al_is_native_dialog_addon_initialized(void) |
14 | bool·al_is_native_dialog_addon_initialized(void) | ||
15 | \f[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise | 18 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise |
20 | returns·false. | 19 | returns·false. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_is_primitives_addon_initialized(void) | 13 | bool·al_is_primitives_addon_initialized(void) |
14 | bool·al_is_primitives_addon_initialized(void) | ||
15 | \f[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns | 18 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns |
20 | false. | 19 | false. |
21 | .SH·SINCE | 20 | .SH·SINCE |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_is_ttf_addon_initialized(void) | 13 | bool·al_is_ttf_addon_initialized(void) |
14 | bool·al_is_ttf_addon_initialized(void) | ||
15 | \f[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·true·if·the·TTF·addon·is·initialized,·otherwise·returns·false. | 18 | Returns·true·if·the·TTF·addon·is·initialized,·otherwise·returns·false. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_addon_initialized(void) | 13 | bool·al_is_video_addon_initialized(void) |
14 | bool·al_is_video_addon_initialized(void) | ||
15 | \f[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. | 18 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. |
20 | .SH·SINCE | 19 | .SH·SINCE |
21 | .PP | 20 | .PP |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_f(ALLEGRO_FILE*·fp,·const·char·*ident) | 13 | ALLEGRO_SAMPLE·*al_load_sample_f(ALLEGRO_FILE*·fp,·const·char·*ident) |
14 | ALLEGRO_SAMPLE·*al_load_sample_f(ALLEGRO_FILE*·fp,·const·char·*ident) | ||
15 | \f[R] | 14 | \f[R] |
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). |
21 | The·file·type·is·determined·by·the·passed·`ident'·parameter,·which·is·a | 20 | The·file·type·is·determined·by·the·passed·`ident'·parameter,·which·is·a |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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)·\[rs] | 13 | #define·al_malloc(n)·\[rs] |
14 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | 14 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) |
15 | #define·al_malloc(n)·\[rs] | ||
16 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | ||
17 | \f[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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\[cq]t·want·to·depend·on·a | 20 | This·can·be·useful·for·debugging·if·you·don\[cq]t·want·to·depend·on·a |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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)·\[rs] | 13 | #define·al_realloc(p,·n)·\[rs] |
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)·\[rs] | ||
16 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | ||
17 | \f[R] | 15 | \f[R] |
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 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[R] | 16 | \f[R] |
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 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[R] | 16 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Restores·Allegro\[cq]s·default·mixer·and·attaches·it·to·the·default | 18 | Restores·Allegro\[cq]s·default·mixer·and·attaches·it·to·the·default |
20 | voice. | 19 | voice. |
21 | If·the·default·mixer·hasn\[cq]t·been·created·before,·it·will·be·created. | 20 | If·the·default·mixer·hasn\[cq]t·been·created·before,·it·will·be·created. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R])·is·filled·with·new·data. | 20 | (pointed·to·by·\f[C]val\f[R])·is·filled·with·new·data. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_gain(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | 13 | bool·al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM·*stream,·float·val) |
14 | bool·al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
15 | \f[R] | 14 | \f[R] |
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 |
21 | Returns·true·on·success,·false·on·failure. | 20 | Returns·true·on·success,·false·on·failure. |
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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 7, 15 lines modified | Offset 7, 14 lines modified | ||
7 | al_set_audio_stream_speed·-·Allegro·5·API | 7 | al_set_audio_stream_speed·-·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 | bool·al_set_audio_stream_speedALLEGRO_TIMEOUT | ||
14 | 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) |
15 | \f[R] | 14 | \f[R] |
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. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Associates·the·\f[C]menu\f[R]·with·the·\f[C]display\f[R]·and·shows·it. | 18 | Associates·the·\f[C]menu\f[R]·with·the·\f[C]display\f[R]·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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R]. | 18 | Updates·the·menu·item·caption·with·the·new·\f[C]caption\f[R]. |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Updates·the·menu·item\[cq]s·flags. | 18 | Updates·the·menu·item\[cq]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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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[R]·and·may | 19 | The·menu·assumes·ownership·of·the·\f[C]ALLEGRO_BITMAP\f[R]·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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 16 | \f[R] |
20 | .fi | 17 | .fi |
21 | .SH·DESCRIPTION | 18 | .SH·DESCRIPTION |
22 | .PP | 19 | .PP |
23 | Sets·a·post-processing·filter·function·that\[cq]s·called·after·the | 20 | Sets·a·post-processing·filter·function·that\[cq]s·called·after·the |
24 | attached·streams·have·been·mixed. | 21 | attached·streams·have·been·mixed. |
25 | The·buffer\[cq]s·format·will·be·whatever·the·mixer·was·created·with. | 22 | The·buffer\[cq]s·format·will·be·whatever·the·mixer·was·created·with. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | This·function·sets·\f[I]both\f[R]·the·ALLEGRO_FILE_INTERFACE(3alleg5) | 18 | This·function·sets·\f[I]both\f[R]·the·ALLEGRO_FILE_INTERFACE(3alleg5) |
20 | and·ALLEGRO_FS_INTERFACE(3alleg5)·for·the·calling·thread. | 19 | and·ALLEGRO_FS_INTERFACE(3alleg5)·for·the·calling·thread. |
21 | .PP | 20 | .PP |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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_playing(ALLEGRO_SAMPLE_INSTANCE·*spl,·bool·val) | 13 | bool·al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE·*spl,·bool·val) |
14 | bool·al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE·*spl,·bool·val) | ||
15 | \f[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Change·whether·the·sample·instance·is·playing. | 18 | Change·whether·the·sample·instance·is·playing. |
20 | .PP | 19 | .PP |
21 | The·instance·does·not·need·to·be·attached·to·anything·(since:·5.1.8). | 20 | The·instance·does·not·need·to·be·attached·to·anything·(since:·5.1.8). |
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[R] | 15 | \f[R] |
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 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[R] | 15 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 15 | \f[R] |
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 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[R] | 16 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 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[R] | 14 | \f[R] |
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\[cq]t·need·to·call·this. | 19 | You·normally·don\[cq]t·need·to·call·this. |
Offset 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
16 | .fi | 15 | .fi |
17 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
18 | .PP | 17 | .PP |
19 | Toggles·the·specified·menu·item\[cq]s·flags. | 18 | Toggles·the·specified·menu·item\[cq]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 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[R] | 16 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 8, 15 lines modified | Offset 8, 14 lines modified | ||
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[R] | 14 | \f[R] |
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 |