How do I make the last object drawn in a 2D openGL window draw on top of all other objects?

I have a 2D openGL window.  I draw several object which overlap one another.  I need the very last object that I draw to be displayed as the "TOP" object.  Currently, the last object I draw is getting hidden behind the earlier drawn objects.  Any thoughts?

Thank you.
clintMonAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
rajeev_devinConnect With a Mentor Commented:
If you +ve Z is pointing toward your display then increase the last objects Z coordinate.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.