Unix specifics

In order to locate things like the config and translation files, Allegro needs to know the path to your executable. Since there is no standard way to find that, it needs to capture a copy of your argv[] parameter, and it does this with some preprocessor macro trickery. Unfortunately it can't quite pull this off without a little bit of your help, so you will have to write END_OF_MAIN() right after your main() function. Pretty easy, really, and if you forget, you'll get a nice linker error about a missing _mangled_main function to remind you :-)


Drivers GFX_*/Linux

When running in Linux console mode, Allegro supports the following card parameters for the set_gfx_mode() function:
See also: set_gfx_mode, GFX_*/X.
Drivers GFX_*/X

When running in X mode, Allegro supports the following card parameters for the set_gfx_mode() function:
See also: set_gfx_mode, GFX_*/Linux.
Drivers DIGI_*/Unix

The Unix sound functions support the following digital soundcards:
      DIGI_AUTODETECT      - let Allegro pick a digital sound driver
      DIGI_NONE            - no digital sound
      DIGI_OSS             - Open Sound System
      DIGI_ESD             - Enlightened Sound Daemon
      DIGI_ALSA            - ALSA sound driver
See also: detect_digi_driver, install_sound, install_sound_input.
Drivers MIDI_*/Unix

The Unix sound functions support the following MIDI soundcards:
      MIDI_AUTODETECT      - let Allegro pick a MIDI sound driver
      MIDI_NONE            - no MIDI sound
      MIDI_OSS             - Open Sound System
      MIDI_DIGMID          - sample-based software wavetable player
      MIDI_ALSA            - ALSA RawMIDI driver
See also: detect_midi_driver, install_sound, install_sound_input.
void xwin_set_window_name(const char *name, const char *group);

This function is only available under X. It lets you to specify the window name and group (or class). They are important because they allow the window manager to remember the window attributes (position, layer, etc). Note that the name and the title of the window are two different things: the title is what appears in the title bar of the window, but usually has no other effects on the behaviour of the application.
See also: set_window_title.

Back to contents