even then it is giving an error
cannot convert `LONG*' to `GLdouble*' for argument `7' to `GLint gluUnProject(GLdouble, GLdouble, GLdouble, const GLdouble*, const GLdouble*, const GLint*, GLdouble*, GLdouble*, GLdouble*)'
how to correct it
thanks
help mouse coordinates
winX=pt.x;
winY=pt.y;
gluUnProject( winX, winY, winZ, modelview, projection, viewport, &posX, &posY, &posZ);
winY=pt.y;
gluUnProject( winX, winY, winZ, modelview, projection, viewport, &posX, &posY, &posZ);
thanks that error is removed
but my basic problem has become even more
now mouse clicks are not being captured at all
help please
but my basic problem has become even more
now mouse clicks are not being captured at all
help please
Quote:Original post by ViperGNo, quite the opposite. If you click somewhere and then move the mouse, the WM_LBUTTONDOWN message will have the coordinates of the click in it, but GetCursorPos() could return a completely different position, which will make the mouse feel laggy.
I haven't used windows messages to receive mouse x,y (because windows messages are crap, you should be using GetCursorPos(&mouse);
Also, window messages contain the cursor position in client space, not in screen space - which means you don't need to use ScreenToClient().
As for the actual problem, I forget - which way is "up" in OpenGL? Is that +y or +z? (I'm a D3D guy). And have you tried initialising WinZ to something (Like 0.0)?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement