HOME

TheInfoList



OR:

Allegro is a
software library In computer science, a library is a collection of non-volatile resources used by computer programs, often for software development. These may include configuration data, documentation, help data, message templates, pre-written code and sub ...
for
video game Video games, also known as computer games, are electronic games that involves interaction with a user interface or input device such as a joystick, game controller, controller, computer keyboard, keyboard, or motion sensing device to gener ...
development. The functionality of the library includes support for basic 2D graphics, image manipulation, text output, audio output,
MIDI MIDI (; Musical Instrument Digital Interface) is a technical standard that describes a communications protocol, digital interface, and electrical connectors that connect a wide variety of electronic musical instruments, computers, an ...
music, input and timers, as well as additional routines for fixed-point and floating-point
matrix Matrix most commonly refers to: * ''The Matrix'' (franchise), an American media franchise ** '' The Matrix'', a 1999 science-fiction action film ** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchi ...
arithmetic,
Unicode Unicode, formally The Unicode Standard,The formal version reference is is an information technology standard for the consistent encoding, representation, and handling of text expressed in most of the world's writing systems. The standard, ...
strings, file system access, file manipulation, data files, and 3D graphics. The library is written in the
C programming language ''The C Programming Language'' (sometimes termed ''K&R'', after its authors' initials) is a computer programming book written by Brian Kernighan and Dennis Ritchie, the latter of whom originally designed and implemented the language, as well as ...
and designed to be used with C, C++, or
Objective-C Objective-C is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language. Originally developed by Brad Cox and Tom Love in the early 1980s, it was selected by NeXT for its N ...
, with bindings available for Python,
Lua Lua or LUA may refer to: Science and technology * Lua (programming language) * Latvia University of Agriculture * Last universal ancestor, in evolution Ethnicity and language * Lua people, of Laos * Lawa people, of Thailand sometimes referred t ...
, Scheme, D, Go, and other languages. Allegro comes with extensive documentation and many examples. Allegro supports
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for ...
,
macOS macOS (; previously OS X and originally Mac OS X) is a Unix operating system developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac (computer), Mac computers. Within the market of ...
, Unix-like systems,
Android Android may refer to: Science and technology * Android (robot), a humanoid robot or synthetic organism designed to imitate a human * Android (operating system), Google's mobile operating system ** Bugdroid, a Google mascot sometimes referred to ...
, 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. Released under the terms of the zlib license, Allegro is
free and open source software Free and open-source software (FOSS) is a term used to refer to groups of software consisting of both free software and open-source software where anyone is freely licensed to use, copy, study, and change the software in any way, and the source ...
.


History

Initially standing for ''Atari Low-Level Game Routines'', 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 DJ's GNU Programming Platform (DJGPP) is a software development suite for Intel 80386-level and above, IBM PC compatibles which supports DOS operating systems. It is guided by DJ Delorie, who began the project in 1989. It is a porting, port of t ...
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. Around 1998, Allegro branched out into several versions. A port to
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for ...
, 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: * Configuration files – INI format file handling * Displays - working with windows * Events - event management * File I/O - abstraction over both real files and files inside some data file (e.g. ZIP * archive) * Filesystem - abstraction over both real file system and file system inside some data file (e.g. ZIP archive) * Fixed point math - might useful for embedded processors without FPU * Fullscreen modes * Graphics routines - colors, pixel formats, bitmaps, clipping * Haptic routines - force feedback and vibration on input devices * Joystick routines * Keyboard routines * Memory management * Monitors * Mouse routines * Path structures - file path manipulation * Shader * State - you can store and later restore the state of Allegro application * System routines * Threads * Time * Timer * Touch input * Transformations – transformation of coordinates for 2D and 3D * UTF-8 string routines * Direct3D integration * OpenGL integration


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: * Audio addon * Audio codecs - .wav, .flac, .ogg, .opus, .it, .mod, .s3m, .xm, .voc * Color addon - color space conversion * Font addons * Image I/O addon - BMP, DDS, PCX, TGA, JPEG, PNG * Main addon * Memfile addon - treat a fixed block of contiguous memory as a file * Native dialogs addon * PhysicsFS addon - using archive as a file system * Primitives addon - drawing primitives (e.g. circle) * Video streaming addon


See also

*
Borland Graphics Interface The Borland Graphics Interface, also known as BGI, was a graphics library bundled with several Borland compilers for the DOS operating systems since 1987. BGI was also used to provide graphics for many other Borland products including the Quattro P ...
(BGI) *
ClanLib ClanLib is a video game SDK, supporting Microsoft Windows, macOS, and Linux, with partial support for mobile platforms. It has full hardware accelerated graphics support through OpenGL, and also a software renderer. ClanLib also helps in playing ...
*
DirectX Microsoft DirectX is a collection of application programming interfaces (APIs) for handling tasks related to multimedia, especially game programming and video, on Microsoft platforms. Originally, the names of these APIs all began with "Direc ...
* List of game engines * Microsoft XNA *
OpenAL OpenAL (Open Audio Library) is a cross-platform audio application programming interface (API). It is designed for efficient rendering of multichannel three-dimensional positional audio. Its API style and conventions deliberately resemble those ...
*
OpenGL OpenGL (Open Graphics Library) is a cross-language, cross-platform application programming interface (API) for rendering 2D and 3D vector graphics. The API is typically used to interact with a graphics processing unit (GPU), to achieve ha ...
* OpenML *
Raylib raylib (officially named all lowercase) is a cross-platform open-source software development library. The library was made to create graphical applications and games. The library was inspired by the Borland BGI graphics library and by the X ...
*
SciTech SNAP SciTech SNAP (System Neutral Access Protocol) is an operating system portable, dynamically loadable, native-size 32-bit/64-bit device driver architecture. SciTech SNAP defines the architecture for loading an operating system neutral binary device ...
* SDL * SFML *
UniVBE UniVBE (short for ''Universal VESA BIOS Extensions'') is a software driver that allows DOS applications written to the VESA BIOS standard to run on almost any display device made in the last 15 years or so. The UniVBE driver was written by SciT ...


References


External links

*
Allegro Wiki

Games Using Allegro

Shawn Hargreaves's Homepage
{{Video game engines AmigaOS 4 software Application programming interfaces C (programming language) libraries Cross-platform software Free game engines Free software programmed in C Graphics libraries Linux APIs MacOS APIs MorphOS software Software using the zlib license Video game development software Widget toolkits Windows APIs