Allegro (software library) explained

Allegro
Screenshot Size:frameless
Developer:Allegro developers
Released:early
Latest Release Version:5.2.9.1[1]
Programming Language:C
Operating System:Windows, Linux, macOS, Android, iOS, web browser et al.
Genre:Multimedia and Games SDK
License:Allegro 5: zlib[2]

Allegro is a software library for video game development.[3] [4] [5] The functionality of the library includes support for basic 2D graphics, image manipulation, text output, audio output, MIDI music, input and timers, as well as additional routines for fixed-point and floating-point matrix arithmetic, Unicode strings, file system access, file manipulation, data files, and 3D graphics. The library is written in the C programming language and designed to be used with C, C++, or Objective-C, with bindings available for Python, Lua, Scheme, D, Go, and other languages.[6] Allegro comes with extensive documentation and many examples.

Allegro supports Windows, macOS, Unix-like systems, Android, and iOS, abstracting their application programming interfaces (APIs) into one portable interface. It can run also on top of Simple DirectMedia Layer which is used to run Allegro programs in web browser using Emscripten.[7]

Released under the terms of the zlib license, Allegro is free and open source software.

History

Initially standing for Atari Low-Level Game Routines,[8] Allegro was originally created by for the Atari ST in the early 1990s. However, Hargreaves abandoned the Atari version as he realized the platform was dying, and reimplemented his work for the Borland C++ and DJGPP compilers in 1995. Support for Borland C++ was dropped in version 2.0, and DJGPP was the only supported compiler. As DJGPP was a DOS compiler, all games which used Allegro therefore used DOS, attracting the enthusiast scene for that legacy system.[9] Around 1998, Allegro branched out into several versions. A port to Windows, WinAllegro, was created, and also during this time, a Unix port of Allegro, XwinAllegro, was created. These various ports were brought together during the Allegro 3.9 WIP versions, with Allegro 4.0 being the first stable version of Allegro to support multiple platforms.

Allegro 5

Current development is focused on the Allegro 5 branch, a complete redesign of both the API and much of the library's internal operation. Effort was made to make the API more consistent and multi-thread safe. By default, the library is now hardware accelerated using OpenGL or DirectX rendering backends where appropriate. Many of the addons that existed as separate projects for Allegro 4 now interface seamlessly with Allegro proper and are bundled with the default installation. Allegro 5 is event driven.

Features

Allegro 5 supports following features in its Core API:[10]

Addons

The community of Allegro users have contributed several library extensions to handle things like scrolling tile maps and import and export of various file formats. Also some parts of what used to be part of Allegro, is now separated as an addon in Allegro 5. These addons are distributed with the core library:[11]

See also

External links

Notes and References

  1. Web site: 5.2.9.1 Release . 5.2.9.1 Github Release Page . 24 January 2024.
  2. Web site: The giftware license . 2013-11-16 . Allegro Development Team.
  3. Book: Harbour, Jonathan . Game Programming All in One, Second Edition . Course Technology PTR . 2004 . 1-59200-383-4.
  4. Book: Steinke, Lennart . Spielprogrammierung . BHV Verlag . 2003 . 3-8266-8075-8 .
  5. Book: Deitel, P. J. . C How to Program . . How to Program . 2006 . 0-13-240416-8 .
  6. http://liballeg.org/bindings.html List of Allegro language bindings
  7. Web site: Welcome to Allegro! . . 23 September 2022 .
  8. http://www.allegro.cc/forums/thread/573313/574083#target Forum posting by Shawn Hargreaves
  9. Web site: Building a Retro Linux Gaming Computer Part 41: The Worm Turns. GamingOnLinux. Hamish. Wilson. 2024-04-09. 2024-04-13. Although the project does see continued support to this day with the Allegro 5 branch, for much of its history Allegro was very much associated with the MS-DOS freeware scene that was still going strong well into the early 2000s..
  10. Web site: Allegro 5 Reference Manual . Core API .
  11. Web site: Allegro 5 Reference Manual . Addons .