I am using Allegro 5.1.8 with Msys2. I am trying to combine OpenGL and Allegro drawing, using Allegro routines to draw 2D elements in front of the 3D scene.
Well, so far so good, I get it drawing all right but I am getting stuck on Backface culling.
I have allegro drawing a bitmap mousepointer on top of my 3D scene (a spinning cube). I am using a single al_flip_display(), in this fashion:
I can either have no backface culling, and my 2D overlay works, or I can have backfaceculling, and my 2D overlay disappears.
Anyone knows the best way to get this to work?
I was thinking maybe rendering 3D to a bitmap, and then disabling backface culling again, and rendering the 2D on top of that bitmap before showing it but maybe there is a better way?