title: How can you efficiently create an allegro 5 title menu?
body: <p>I'm working on my first game in Allegro 5, I've got the title menu rendering as such, however I want to add clickable text in the menu. How would I make it so that, when you hover over the text you can click it? I'm thinking having a for statement checking the pixels would be very bad for performance, here's what I have so far:</p>
  
  <pre><code>#include &lt;allegro5\allegro.h&gt;
  #include &lt;allegro5\allegro_image.h&gt;
  #include &lt;allegro5\allegro_primitives.h&gt;
  
  const int width = 1280;
  const int height = 720;
  
  int main(void)
  {
      al_init();
  
      al_init_primitives_addon();
      al_init_image_addon();
  
      ALLEGRO_DISPLAY *display = al_create_display(width, height);
      ALLEGRO_BITMAP *title = al_load_bitmap("titlemenu.bmp");
  
      al_clear_to_color(al_map_rgb(0, 0, 0));
      al_draw_bitmap(title, 0, 0, 0);
      al_flip_display();
      al_rest(3.0);
      al_destroy_display(display);
      return 0;
  }
  </code></pre>
  
  <p>I'm using codeblocks on windows XP SP3</p>