What's problem with gluProject and gluUnProject


I have a question about gluProject and gluUnProject under the windows xp system.

This is the pesudo code snippet.

CPoint pnt1(100, 100), pnt2;
GLPoint glPnt;
gluUnproject(pnt, glPnt);
gluProject(glPnt, pnt2);

I found pnt2 is different with pnt1. Could you please tell me the reason?

Thanks lot.

Neither gluProject not gluUnProject takes a CPoint and a GLPoint as parameters, so unless you have written your own versions of these functions, you better show us the code you’re having problem with instead of this non-complete piece of pseudo-code.