Firstly: I'm confused about al_set_current_opengl_context() and what its purpose is. I'm not sure what the documentation is trying to say about it - its very vague saying that I "might need it" but gives no indication as to why, or when not to use it, etc...
Secondly: if I specifically set a target bitmap, will OpenGL not render to that bitmap?
I don't know where my target bitmap is when I'm rendering with OpenGL without setting a target, although when I flip_display it works fine - everything renders as expected. But when I use al_draw_text, regardless if I set_target_bitmap to backbuffer or not, it doesnt show up. I'm accustomed to simply setting target bitmap to display backbuffer but the al_set_current_opengl_context() manual entry has me confused about whether or not this is even available when using OpenGL?
I thought this may just be an issue with the projection matrix, so I disabled all of that but it still doesn't display anything...
I'm sure its another bonehead misunderstanding on my part...
Hi I'm also new to AL5+OpenGL but got that "al_draw_text" problem solved last day:
To draw 2D stuff you must first configure both matrix.
About the other issue you talk about... I can't help you sorry.
al_set_current_opengl_context is only necessary if you create multiple OpenGL contexts, where one or more of them is "forward compatible," and need to switch between them. This means using OpenGL 3 or greater.
So, are you using an OpenGL 3 forward compatible context? E.g., do you pass ALLEGRO_OPENGL_3_0 to al_set_new_display_flags, and if so, do you also pass ALLEGRO_OPENGL_FORWARD_COMPATIBLE? If the answer is no, then do not worry about that method.