Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-07-20
1
Medium Priority
?
249 Views
Last Modified: 2010-04-01
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.
0
Comment
Question by:clintMon
1 Comment
 
LVL 12

Accepted Solution

by:
rajeev_devin earned 200 total points
ID: 17147662
If you +ve Z is pointing toward your display then increase the last objects Z coordinate.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question