.\" Generated by the Allegro makedoc utility .TH init_menu 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME init_menu \- Low level initialisation of a menu. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B MENU_PLAYER *init_menu(MENU *menu, int x, int y); .SH DESCRIPTION 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: .nf MENU_PLAYER *player = init_menu(menu, x, y); while (update_menu(player)) ; return shutdown_menu(player); .fi .SH SEE ALSO .BR update_menu (3alleg4), .BR shutdown_menu (3alleg4), .BR do_menu (3alleg4)