where is this wrong?
The program is here.
void CTopView::OnLButtonDown(UINT nFlags, CPoint point)
GLuint CTopView::PickPoint(int x,int y)
glSelectBuffer (BUFSIZE, selectBuf);
(void) glRenderMode (GL_SELECT);
gluPickMatrix((GLdouble)x, (GLdouble) (viewport - y), 18, 18, viewport);
gluPerspective(35.0, (GLfloat)viewport/(GLfloat)viewport, 1.0f, 5000.0f);
hits = glRenderMode(GL_RENDER);
anyone can tell me where this is wrong.
Re: where is this wrong?
Could you please tell us what exactly doesnt' work like it should?
Does it draw polygons in purple, when they should be orange? Or does it dial into your local Krogers and get 1/2 gal skim when you want 2%?
Some hints, please.