Zeus_666

07-08-2001, 06:44 AM

Hi,

I have a really silly problem were the answer is evading me at the moment.

I have an OpenGL window created using glut.

I have drawn 3 biggish squares with lines inside to create 3 grid boxes on the screen.

I register clicks on the screen and take them to be points.

I cannot however seem to plot these points in the boxes that that should have their own scales i.e Top Left Point 0,0...

If anyone can help me solve this silly problem, i would be most grateful.

Thanks, Paul

P.S. This is more than likly a maths problems but the answer still evades me.

I have a really silly problem were the answer is evading me at the moment.

I have an OpenGL window created using glut.

I have drawn 3 biggish squares with lines inside to create 3 grid boxes on the screen.

I register clicks on the screen and take them to be points.

I cannot however seem to plot these points in the boxes that that should have their own scales i.e Top Left Point 0,0...

If anyone can help me solve this silly problem, i would be most grateful.

Thanks, Paul

P.S. This is more than likly a maths problems but the answer still evades me.