init_menu(3alleg)

init_menu3alleg

Low level initialisation of a menu. allegro game programming library.

Usage

#include <allegro.h>

MENU_PLAYER *init_menu(MENU *menu, int x, int y);

Overview

This function provides lower level access to the same functionality as do_menu(), but allows you to combine a popup menu with your own program control structures. It initialises a menu, returning a pointer to a menu player object that can be used with update_menu() and shutdown_menu(). With these functions, you could implement your own version of do_menu() with the lines:

   MENU_PLAYER *player = init_menu(menu, x, y);
   while (update_menu(player))
      ;
   return shutdown_menu(player);

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.