Original Post
I''ve got a problem
, I''m using glOrtho() to initialize a 2d rendering interface, but my 2d ordering seems messed up, and I haven''t a clue as to how to go about fixing it.
For example, when I do something like this:
drawFirstSquare();
drawSecondSquare();
First square is always on top, even if second square overlaps it. I need to be able to draw them both such that what ever is drawn first, stays at the bottom. I''ve solved this before by enabling and disabling depth masking, but surely there has to be a more convienient option.
Any help?