01-05-2001, 09:52 AM

so I've got this little game I"m working on but the problem is the macintosh toolbox routine GetMouse returns an integer Point structure...two numbers between 0 and 600 and 800(800 x 600 screen) but when you use the openGL calls they do things in terms of floating point...and there is the glVertex3i but the numbers are still nasty....up till now I've been multiplying and adding arbitrary values to convert where the mouse is in pixels into the floating points...I'm sick of it. I'm sure there is some function that truly specifys what the perspective matrix does to the frame buffer or whatever...i assume that -1.0f and 1.0f in the x plane are the left and right sides of the screen while z is equal to 0.0f. but what about when z = -5.0f or something???