Allegro+OpenGL It is possible to use Allegro in several different ways but if you want mouse and sound functions should you do something like this :
  • use the normal Allegro init functions
  • get the window handle with the win_get_win function
  • setup OpenGL to use this window
  • it is not possible to write to this window with the normal Allegro functions (only OpenGL can be used)
  • this works in full screen but is more problematical in windowed mode but you can try to use the GFX_GDI driver for debugging purposes
An example of this is in the wagl lib, see the function get_window_waglbmp. The wagl library also has some code letting both Allegro and OpenGL with no back buffer write to the same bitmap but this is of more limited use.

Another attempt to use Allegro with OpenGL is AllegroGL. At the time of this writing is no official release done but many reports that it is working pretty good. George Foot's original page contains some related stuff.

Another option is to use just the non hardware oriented functions of Allegro, see the ports of the NeHe tutorials.

Using Allegro together with GLUT can be rather difficult but if you define USE_CONSOLE is at least some Allegro functions available. Take a look at GLBoids for a example.
 

back