gluProject(...) question


I’m a bit confused regards gluProject(…) function - it returns window coordinates in 3 dimensions, while in my understanding window has only x and y. What it is and what to do with the returned window z coordinate?


Z is projected depth, you may not need it but can be useful sometimes.